:root {
  --aa-primary: #005A9C;
  --aa-secondary: #60C1E5;
  --aa-accent: #A0E0EF;
  --aa-neutral: #1B365D;
  --aa-ink: #10233f;
  --aa-muted: #5b6b82;
  --aa-line: #d7e6f2;
  --aa-bg: #f4f8fc;
  --aa-card: #ffffff;
  --aa-danger: #c2410c;
  --aa-radius: 18px;
  --aa-shadow: 0 18px 40px rgba(27, 54, 93, 0.08);
  --aa-container: 1180px;
  --aa-font: "Vazirmatn", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--aa-font);
  color: var(--aa-ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(96, 193, 229, 0.28), transparent 55%),
    radial-gradient(700px 360px at 0% 20%, rgba(160, 224, 239, 0.35), transparent 50%),
    var(--aa-bg);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--aa-primary); text-decoration: none; }
a:hover { color: var(--aa-neutral); }
button, input, select, textarea { font: inherit; }

.aa-container {
  width: min(var(--aa-container), calc(100% - 2rem));
  margin-inline: auto;
}

.aa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.aa-btn:hover { transform: translateY(-1px); }
.aa-btn--primary {
  background: linear-gradient(135deg, var(--aa-primary), #0a74c2);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 90, 156, 0.28);
}
.aa-btn--primary:hover { color: #fff; }
.aa-btn--ghost {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--aa-line);
  color: var(--aa-neutral);
}

/* Top bar */
.aa-topbar {
  background: var(--aa-neutral);
  color: #e8f4fb;
  font-size: 0.86rem;
}
.aa-topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}
.aa-topbar a { color: var(--aa-accent); }

/* Header */
.aa-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 248, 252, 0.88);
  border-bottom: 1px solid rgba(215, 230, 242, 0.8);
}
.aa-header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
}
.aa-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}
.aa-brand__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--aa-line);
}
.aa-brand__text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--aa-neutral);
}
.aa-brand__text span {
  display: block;
  font-size: 0.78rem;
  color: var(--aa-muted);
}
.aa-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: 999px;
  padding: 0.25rem 0.35rem 0.25rem 1rem;
  box-shadow: var(--aa-shadow);
}
.aa-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  padding: 0.55rem 0;
}
.aa-search button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--aa-primary);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.aa-search svg,
.aa-iconbtn svg,
.aa-value svg { width: 20px; height: 20px; }
.aa-header__actions {
  display: flex;
  gap: 0.45rem;
}
.aa-iconbtn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--aa-line);
  background: #fff;
  color: var(--aa-neutral);
  display: grid;
  place-items: center;
  position: relative;
}
.aa-iconbtn__badge {
  position: absolute;
  top: -4px;
  inset-inline-start: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--aa-secondary);
  color: var(--aa-neutral);
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.aa-nav {
  border-top: 1px solid rgba(215, 230, 242, 0.7);
}
.aa-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0.7rem;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.aa-nav a {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--aa-neutral);
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.92rem;
}
.aa-nav a:hover,
.aa-nav .current-menu-item > a {
  background: rgba(0, 90, 156, 0.08);
  color: var(--aa-primary);
}

/* Hero */
.aa-hero {
  padding: 2.2rem 0 1rem;
}
.aa-hero__panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: clamp(320px, 48vw, 520px);
  background:
    linear-gradient(120deg, rgba(16, 35, 63, 0.55), rgba(0, 90, 156, 0.35)),
    radial-gradient(circle at 80% 20%, rgba(160, 224, 239, 0.55), transparent 40%),
    linear-gradient(160deg, #0d3d6e, #005A9C 55%, #1B365D);
  color: #fff;
  display: grid;
  align-items: end;
  box-shadow: var(--aa-shadow);
}
.aa-hero__content {
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 640px;
}
.aa-hero__eyebrow {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.82rem;
  margin-bottom: 1rem;
}
.aa-hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.aa-hero p {
  margin: 0 0 1.4rem;
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
}
.aa-hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Sections */
.aa-section { padding: 2.2rem 0; }
.aa-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.aa-section__head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  color: var(--aa-neutral);
}
.aa-section__head p { margin: 0.35rem 0 0; color: var(--aa-muted); }

.aa-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}
.aa-cat-card {
  background: var(--aa-card);
  border: 1px solid var(--aa-line);
  border-radius: 20px;
  padding: 1rem 0.75rem;
  text-align: center;
  color: var(--aa-neutral);
  box-shadow: var(--aa-shadow);
  transition: transform .18s ease;
}
.aa-cat-card:hover { transform: translateY(-3px); color: var(--aa-primary); }
.aa-cat-card__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 0.7rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--aa-accent), #fff);
  color: var(--aa-primary);
  font-weight: 800;
}
.aa-cat-card strong { display: block; font-size: 0.92rem; }

.aa-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}
.aa-value {
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: var(--aa-radius);
  padding: 1.1rem;
  display: grid;
  gap: 0.55rem;
  box-shadow: var(--aa-shadow);
}
.aa-value strong { color: var(--aa-neutral); }
.aa-value span { color: var(--aa-muted); font-size: 0.9rem; }

.aa-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.aa-products-grid .product,
.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: 20px;
  overflow: hidden;
  padding: 0.75rem !important;
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  box-shadow: var(--aa-shadow);
}
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.98rem;
  color: var(--aa-neutral);
  padding: 0.4rem 0 0;
}
.woocommerce ul.products li.product .price {
  color: var(--aa-primary);
  font-weight: 700;
}

/* Single product */
.aa-product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0 2.5rem;
}
.aa-product-gallery,
.aa-product-summary {
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: var(--aa-shadow);
}
.aa-product-summary .product_title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--aa-neutral);
}
.aa-buy-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(160, 224, 239, 0.28), rgba(255,255,255,0.7));
  border: 1px solid var(--aa-line);
}
.single-product div.product form.cart .button,
.woocommerce button.button.alt {
  background: var(--aa-primary) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 700;
  min-height: 48px;
}
.aa-sticky-atc {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  border-top: 1px solid var(--aa-line);
  backdrop-filter: blur(12px);
  padding: 0.7rem 0;
  box-shadow: 0 -10px 30px rgba(27, 54, 93, 0.08);
}
.aa-sticky-atc[hidden] { display: none !important; }
.aa-sticky-atc__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.aa-sticky-atc__title {
  display: block;
  font-weight: 700;
  color: var(--aa-neutral);
}
.aa-sticky-atc__price { color: var(--aa-primary); font-weight: 700; }

/* Footer */
.aa-footer {
  margin-top: 3rem;
  background: var(--aa-neutral);
  color: #dceaf5;
  padding: 2.5rem 0 1.5rem;
}
.aa-footer a { color: var(--aa-accent); }
.aa-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.4rem;
}
.aa-footer h3 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: 1rem;
}
.aa-footer p, .aa-footer li { color: rgba(220, 234, 245, 0.86); font-size: 0.92rem; }
.aa-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.aa-footer__bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.aa-page {
  padding: 2rem 0 3rem;
}
.aa-page__card {
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--aa-shadow);
}
.aa-page__card h1 { margin-top: 0; color: var(--aa-neutral); }

@media (max-width: 1024px) {
  .aa-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aa-value-grid,
  .aa-products-grid,
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aa-product-layout,
  .aa-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .aa-header__row { grid-template-columns: auto auto; }
  .aa-search { grid-column: 1 / -1; order: 3; }
  .aa-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aa-value-grid,
  .aa-footer__grid,
  .aa-product-layout { grid-template-columns: 1fr; }
  .aa-brand__text span { display: none; }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
body.aa-lock { overflow: hidden; }
.aa-eyebrow {
  display: inline-flex;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(0,90,156,.08);
  color: var(--aa-primary);
  font-size: .82rem;
  font-weight: 700;
}

.aa-archive__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.2rem;
  align-items: start;
}
.aa-archive__head { margin-bottom: 1rem; }
.aa-archive__head h1 { margin: 0 0 .5rem; color: var(--aa-neutral); }
.aa-filter-card, .aa-widget {
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--aa-shadow);
  margin-bottom: .8rem;
}
.aa-sizeguide-trigger {
  display: inline-flex;
  margin-bottom: .8rem;
  background: transparent;
  border: 0;
  color: var(--aa-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.aa-delivery-box {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 16px;
  border: 1px dashed var(--aa-line);
  background: rgba(160,224,239,.2);
  display: grid;
  gap: .55rem;
}
.aa-delivery-box select {
  width: 100%;
  margin-top: .35rem;
  border-radius: 10px;
  border: 1px solid var(--aa-line);
  padding: .55rem .7rem;
}
.aa-fbt h3 { color: var(--aa-neutral); margin: 1.5rem 0 .8rem; }

.aa-modal[hidden], .aa-drawer[hidden] { display: none !important; }
.aa-modal, .aa-drawer { position: fixed; inset: 0; z-index: 80; }
.aa-modal__backdrop, .aa-drawer__backdrop {
  position: absolute; inset: 0; background: rgba(16,35,63,.45);
}
.aa-modal__panel {
  position: relative;
  width: min(640px, calc(100% - 2rem));
  margin: 8vh auto;
  background: #fff;
  border-radius: 20px;
  padding: 1.2rem 1.2rem 1.4rem;
  box-shadow: var(--aa-shadow);
}
.aa-modal__close, .aa-drawer__head button {
  border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; color: var(--aa-neutral);
}
.aa-size-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.aa-size-table th, .aa-size-table td {
  border-bottom: 1px solid var(--aa-line);
  padding: .55rem .4rem;
  text-align: center;
}
.aa-drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(390px, 92vw);
  background: #fff;
  box-shadow: var(--aa-shadow);
  display: flex;
  flex-direction: column;
}
.aa-drawer__head, .aa-drawer__body { padding: 1rem; }
.aa-drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--aa-line);
}
.aa-mini-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.aa-mini-items li { display: grid; grid-template-columns: 64px 1fr; gap: .7rem; align-items: center; }
.aa-mini-items img { border-radius: 12px; border: 1px solid var(--aa-line); }
.aa-mini-total, .aa-mini-actions {
  display: flex; justify-content: space-between; gap: .6rem; margin-top: 1rem; align-items: center;
}
.aa-mini-actions { flex-wrap: wrap; }
.aa-mini-actions .aa-btn { flex: 1; }

.aa-thankyou__card {
  background: linear-gradient(180deg, rgba(160,224,239,.35), #fff);
  border: 1px solid var(--aa-line);
  border-radius: 20px;
  padding: 1.2rem;
  margin: 1rem 0 1.5rem;
}
.aa-timeline { display: grid; gap: .45rem; padding-inline-start: 1.1rem; }
.aa-timeline .is-done { color: var(--aa-primary); font-weight: 700; }
.aa-account-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; margin: 1rem 0 1.5rem;
}
.aa-account-card {
  background: #fff; border: 1px solid var(--aa-line); border-radius: 16px; padding: 1rem; text-align: center;
  box-shadow: var(--aa-shadow);
}
.aa-account-card strong { display: block; font-size: 1.5rem; color: var(--aa-primary); }
.aa-faq details {
  background: #fff; border: 1px solid var(--aa-line); border-radius: 14px; padding: .85rem 1rem; margin-bottom: .6rem;
}
.aa-faq summary { cursor: pointer; font-weight: 700; color: var(--aa-neutral); }
.aa-blog-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem;
}
.aa-blog-card {
  background: #fff; border: 1px solid var(--aa-line); border-radius: 18px; overflow: hidden; box-shadow: var(--aa-shadow);
}
.aa-blog-card a { color: inherit; display: block; }
.aa-blog-card__body { padding: 1rem; }
.aa-blog-card h2 { margin: 0 0 .45rem; font-size: 1.05rem; color: var(--aa-neutral); }
.aa-toc { background: rgba(160,224,239,.2); border-radius: 14px; padding: 1rem; margin: 1rem 0; }
.aa-toc ol { margin: .4rem 0 0; padding-inline-start: 1.1rem; }
.woocommerce-cart .cart-collaterals, .woocommerce-checkout .col2-set {
  display: grid; gap: 1rem;
}
.woocommerce table.shop_table { border-radius: 16px; overflow: hidden; }
.woocommerce-checkout #order_review {
  position: sticky; top: 100px; background: #fff; border: 1px solid var(--aa-line);
  border-radius: 18px; padding: 1rem; box-shadow: var(--aa-shadow);
}
@media (max-width: 960px) {
  .aa-archive__layout, .aa-blog-grid, .aa-account-cards { grid-template-columns: 1fr; }
}

.aa-flash__timer {
  font-weight: 800;
  color: #fff;
  background: var(--aa-primary);
  border-radius: 999px;
  padding: .45rem .9rem;
}
.aa-banners {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: .9rem;
}
.aa-banner {
  min-height: 160px;
  border-radius: 22px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff !important;
  background: linear-gradient(145deg, var(--aa-neutral), var(--aa-primary));
  box-shadow: var(--aa-shadow);
}
.aa-banner--lg { background: linear-gradient(145deg, #0b4f86, #60C1E5); }
.aa-banner strong { font-size: 1.2rem; }
.aa-banner span { opacity: .9; }
.aa-contact-form input, .aa-contact-form textarea {
  width: 100%;
  border: 1px solid var(--aa-line);
  border-radius: 12px;
  padding: .7rem .8rem;
}
.aa-contact-form button {
  background: var(--aa-primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .75rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}
.aa-thankyou__actions { display: flex; gap: .7rem; flex-wrap: wrap; }
@media (max-width: 900px) {
  .aa-banners { grid-template-columns: 1fr; }
}
