:root{
  --bg:#0f1f18;
  --surface:#173126;
  --surface-2:#1c3a2d;
  --ink:#f3f7f4;
  --muted:#9bb3a5;
  --accent:#b6f06c;
  --accent-ink:#102016;
  --danger:#ef4444;
  --line:rgba(255,255,255,.08);
  --card:#152b22;
  --price-bg:#0c1913;
  --radius:1rem;
}
*{box-sizing:border-box}
html{direction:rtl;overflow-x:clip}
body{margin:0;font-family:'Vazirmatn FD','Vazirmatn',Tahoma,sans-serif;background:var(--bg);color:var(--ink);line-height:1.7;overflow-x:clip}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.shell{width:min(1180px,94%);margin-inline:auto;min-width:0}
.grove-header{position:sticky;top:0;z-index:40;background:#0c1914;color:#f3f7f4;border-bottom:1px solid var(--line)}
.grove-header__top{display:flex;align-items:center;direction:rtl;gap:.7rem;padding:.7rem 0 .55rem}
.grove-header__banner{flex:0 0 auto;display:block;width:2.75rem;height:2.75rem;border-radius:50%;overflow:hidden}
.grove-header__banner img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.grove-header__brand{direction:rtl;text-align:right;font-weight:800;font-size:1.2rem;letter-spacing:0;color:#fff;min-width:0}
.grove-header__toggle{display:none;margin-right:auto;width:2.5rem;height:2.5rem;border:1px solid var(--line);border-radius:.55rem;background:transparent;color:#fff;padding:0;cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:.26rem}
.grove-header__toggle span{display:block;width:1rem;height:2px;background:currentColor;border-radius:999px}
.grove-header__toggle.is-open span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.grove-header__toggle.is-open span:nth-child(2){opacity:0}
.grove-header__toggle.is-open span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.grove-header__nav{flex:1;min-width:0;background:transparent;border:0}
.grove-header__links{display:flex;align-items:center;direction:rtl;gap:.35rem;padding:0;min-width:0;width:100%}
.grove-header__auth{display:inline-flex;align-items:center;gap:.4rem;flex:0 0 auto;padding:.35rem .95rem;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:.84rem;font-weight:800;line-height:1.2;white-space:nowrap}
.grove-header__auth a{color:inherit}
.grove-header__auth span{opacity:.55}
.grove-header__links>a{padding:.28rem .75rem;border-radius:999px;color:var(--muted);font-size:.86rem;font-weight:600}
.grove-header__links>a:hover,.grove-header__links>a.is-active{background:rgba(182,240,108,.16);color:var(--accent)}
.grove-header__account{display:inline-flex;align-items:center;gap:.4rem;margin-inline-start:auto}
.grove-header__account>a{color:#fff;font-size:.84rem;font-weight:700;padding:.28rem .7rem;border:1px solid var(--line);border-radius:999px}
.grove-header__logout{display:inline;margin:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;border:0;border-radius:999px;padding:.7rem 1.2rem;background:var(--accent);color:var(--accent-ink);font:inherit;font-weight:800;cursor:pointer}
.btn-outline{background:transparent;color:var(--ink);border:1px solid var(--line)}
.btn-danger-outline{display:inline-flex;align-items:center;justify-content:center;text-align:center;background:transparent;color:#fca5a5;border:1px solid #f87171;border-radius:999px;padding:.65rem 1.1rem;font:inherit;cursor:pointer}
.btn-sm{padding:.45rem .85rem;font-size:.85rem}
.hero{padding:2.5rem 0 1.5rem}
.hero h1{margin:0 0 .75rem;font-size:clamp(1.8rem,4vw,2.6rem)}
.hero p{color:var(--muted);max-width:36rem}
.hero__visual{margin-top:0;border-radius:1.25rem;overflow:hidden;aspect-ratio:21/9;background:var(--surface)}
.hero__visual img{width:100%;height:100%;object-fit:cover;opacity:.9}
.home-banner{margin:0 0 1.25rem;border-radius:1.25rem;overflow:hidden;aspect-ratio:21/8;background:var(--surface)}
.home-banner img{width:100%;height:100%;object-fit:cover}
.home-banner-slider{position:relative;margin:0 0 1.25rem;border-radius:1.25rem;overflow:hidden;aspect-ratio:21/8;background:var(--surface);user-select:none;-webkit-user-select:none}
.home-banner-slider__track{display:flex;direction:ltr;width:100%;height:100%;transition:transform .45s cubic-bezier(.25,1,.5,1);will-change:transform}
.home-banner-slider__slide{flex:0 0 100%;width:100%;height:100%;position:relative}
.home-banner-slider__slide img{width:100%;height:100%;object-fit:cover;display:block}
.home-banner-slider__nav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:2.65rem;height:2.65rem;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:rgba(15,31,24,.7);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .2s,border-color .2s,transform .2s,color .2s;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.home-banner-slider__nav:hover{background:rgba(15,31,24,.92);border-color:var(--accent);color:var(--accent);transform:translateY(-50%) scale(1.08)}
.home-banner-slider__nav:active{transform:translateY(-50%) scale(.95)}
.home-banner-slider__nav--prev{right:1rem}
.home-banner-slider__nav--next{left:1rem}
.home-banner-slider__dots{position:absolute;bottom:.85rem;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:.45rem;z-index:3;padding:.3rem .65rem;border-radius:999px;background:rgba(0,0,0,.38);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.home-banner-slider__dot{width:.6rem;height:.6rem;border-radius:999px;background:rgba(255,255,255,.45);border:none;padding:0;cursor:pointer;transition:all .25s ease}
.home-banner-slider__dot:hover{background:rgba(255,255,255,.8)}
.home-banner-slider__dot.is-active{background:var(--accent);width:1.4rem}
@media (max-width: 640px){
  .home-banner-slider{aspect-ratio:16/9;border-radius:.85rem}
  .home-banner-slider__nav{width:2.2rem;height:2.2rem}
  .home-banner-slider__nav--prev{right:.5rem}
  .home-banner-slider__nav--next{left:.5rem}
}
.section{padding:2rem 0}
.section__head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;margin-bottom:1.25rem}
.section__head h2{margin:0;font-size:1.25rem;min-width:0}
.section-more{display:inline-flex;align-items:center;gap:.35rem;color:var(--muted);font-size:.84rem;font-weight:700;line-height:1.2;white-space:nowrap}
.section-more svg{width:1.05rem;height:1.05rem;flex:0 0 auto}
.section-more:hover{color:var(--accent)}
.chips{display:flex;flex-wrap:wrap;gap:.55rem;margin-bottom:1.25rem}
.chip{background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:.4rem .9rem;color:var(--muted)}
.chip:hover{color:var(--accent);border-color:var(--accent)}
.home-rail{position:relative}
.home-rail__track{
  display:flex;
  gap:.9rem;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:.35rem .15rem .85rem;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.home-rail__track::-webkit-scrollbar{display:none}
.home-rail__nav{
  position:absolute;
  top:42%;
  z-index:2;
  width:2.5rem;
  height:2.5rem;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(15,31,24,.88);
  color:var(--ink);
  box-shadow:0 8px 20px rgba(0,0,0,.28);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:1.35rem;
  line-height:1;
  cursor:pointer;
  backdrop-filter:blur(6px);
}
.home-rail__nav:hover{border-color:var(--accent);color:var(--accent)}
.home-rail__nav:disabled{opacity:.35;cursor:default;border-color:var(--line);color:var(--muted)}
.home-rail__nav[hidden]{display:none}
.home-rail__nav--prev{right:.2rem}
.home-rail__nav--next{left:.2rem}
.home-rail__empty{color:var(--muted);margin:0;padding:.5rem 0}
.home-category-card{
  flex:0 0 auto;
  width:min(280px,78vw);
  scroll-snap-align:start;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1.6rem;
  padding:1.2rem 1.4rem;
  border-radius:1.05rem;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--ink);
  text-decoration:none;
  transition:border-color .15s ease,transform .15s ease;
}
.home-category-card--has-image{justify-content:space-between}
.home-category-card:hover{border-color:rgba(182,240,108,.45);transform:translateY(-2px);color:var(--ink)}
.home-category-card__image{width:3.5rem;height:3.5rem;object-fit:contain;flex-shrink:0;display:block}
.home-category-card__label{font-size:1.25rem;font-weight:700}
.home-rail__track .product-card{
  flex:0 0 auto;
  width:min(240px,72vw);
  scroll-snap-align:start;
}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.product-card{background:var(--card);border-radius:1.1rem;overflow:hidden;border:1px solid var(--line);height:100%;display:flex;flex-direction:column;color:inherit;text-decoration:none}
.product-card__media{position:relative;aspect-ratio:1;background:#fff}
.product-card__media-link{display:block;width:100%;height:100%}
.product-card__media img{width:100%;height:100%;object-fit:cover}
.product-card__wish{position:absolute;top:.7rem;right:.7rem;z-index:3;margin:0}
.product-card__wish-btn{width:2.35rem;height:2.35rem;border:0;border-radius:999px;background:rgba(255,255,255,.94);color:#a8a29e;box-shadow:0 4px 14px rgba(0,0,0,.14);display:grid;place-items:center;cursor:pointer;padding:0;text-decoration:none}
.product-card__wish-btn svg{width:1.15rem;height:1.15rem;display:block}
.product-card__wish-btn:hover{color:#e11d48}
.product-card__wish-btn.is-active{color:#e11d48}
.badge-off{position:absolute;top:.7rem;left:.7rem;z-index:2;background:var(--danger);color:#fff;width:2rem;height:2rem;border-radius:999px;display:grid;place-items:center;font-size:.75rem;font-weight:800}
.product-card__body{padding:1rem;text-align:center;display:flex;flex-direction:column;gap:.35rem;flex:1;color:inherit;text-decoration:none}
.product-card__brand,.product-card__category{color:var(--muted);font-size:.8rem}
.product-card__title{margin:0;font-size:.95rem;font-weight:700;min-height:2.7em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
.product-card__prices{margin-top:auto;display:flex;flex-direction:column;align-items:center;gap:.2rem}
.price-pill{display:inline-block;background:var(--price-bg);border-radius:999px;padding:.45rem .9rem;font-weight:700}
.compare{display:block;color:var(--muted);text-decoration:line-through;font-size:.82rem}
.shop-layout{display:grid;grid-template-columns:280px 1fr;gap:1.25rem;align-items:start}
.filters-panel{background:var(--surface);border:1px solid var(--line);border-radius:1.1rem;padding:1.1rem;position:sticky;top:5rem}
.filters-panel h2{margin:0 0 1rem;font-size:1.1rem}
.applied-filters{margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}
.applied-filters__head{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.applied-filters__head a{color:var(--accent);font-weight:700;font-size:.9rem}
.filter-block{border-top:1px solid var(--line);padding:1rem 0}
.catalog-filters-form .filter-block:first-of-type{border-top:0;padding-top:0}
.filter-block summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between;align-items:center}
.filter-block summary::-webkit-details-marker{display:none}
.filter-block summary::after{content:"▾";color:var(--muted)}
.filter-block[open] summary::after{transform:rotate(180deg)}
.filter-list{margin:.85rem 0 0;padding:0;list-style:none;display:grid;gap:.55rem}
.filter-list label{display:flex;gap:.65rem;align-items:center;color:var(--muted);cursor:pointer;font-size:.92rem}
.filter-list label span{flex:1}
.filter-list input[type=radio],
.filter-list input[type=checkbox]{
  appearance:none;-webkit-appearance:none;
  width:1.2rem;height:1.2rem;flex-shrink:0;
  border:1.5px solid rgba(255,255,255,.28);
  border-radius:.4rem;
  background:transparent;
  margin:0;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease;
}
.filter-list input[type=radio]:checked,
.filter-list input[type=checkbox]:checked{
  background:var(--accent);
  border-color:var(--accent);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23102016' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-size:.75rem;background-repeat:no-repeat;background-position:center;
}
.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}
.switch{position:relative;width:3rem;height:1.55rem;background:#0b1510;border-radius:999px;border:1px solid var(--line);display:inline-block}
.switch input{opacity:0;width:0;height:0}
.switch span{position:absolute;inset:.15rem auto .15rem .15rem;width:1.2rem;border-radius:999px;background:#d1d5db;transition:.2s}
.switch input:checked + span{inset-inline-start:auto;inset-inline-end:.15rem;background:var(--accent)}
.filter-actions{display:grid;gap:.65rem;margin-top:1rem}
.sort-bar{display:flex;flex-wrap:wrap;gap:.85rem;align-items:center;margin-bottom:1rem;padding-bottom:.85rem;border-bottom:1px solid var(--line);color:var(--muted)}
.sort-bar a{color:var(--ink);font-weight:600;padding-bottom:.2rem;border-bottom:2px solid transparent}
.sort-bar a.is-active{color:var(--accent);border-bottom-color:var(--accent)}
.alert{padding:.85rem 1rem;border-radius:.85rem;margin:1rem 0;background:var(--surface);border:1px solid var(--line)}
.alert-ok{border-color:#4ade80;color:#bbf7d0}
.alert-err{border-color:#f87171;color:#fecaca}
.form-control,input:not([type=radio]):not([type=checkbox]),select,textarea{width:100%;max-width:100%;border:1px solid var(--line);border-radius:.75rem;padding:.7rem .85rem;font:inherit;background:var(--price-bg);color:var(--ink)}
.filters-panel input[type=search]{margin-bottom:.35rem}
.table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table{width:100%;border-collapse:collapse;min-width:28rem}.table th,.table td{padding:.85rem;border-bottom:1px solid var(--line);text-align:right}
.auth-card{max-width:420px;margin:2rem auto;background:var(--surface);border:1px solid var(--line);border-radius:1rem;padding:1.5rem}
.auth-card h1{text-align:center}
.auth-switch{margin:0;text-align:center;font-size:.92rem}
.auth-switch a{color:#2563eb;font-weight:700}
.stack{display:grid;gap:.85rem}
.site-footer{margin-top:2.5rem;border-top:1px solid var(--line);padding:2.5rem 0 1.25rem;color:var(--muted);background:rgba(0,0,0,.18)}
.site-footer a{color:var(--muted)}
.site-footer a:hover{color:var(--accent)}
.site-footer__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.75rem}
.site-footer__heading{margin:0 0 1rem;font-size:1rem;font-weight:800;color:var(--ink)}
.site-footer__links{list-style:none;margin:0;padding:0;display:grid;gap:.65rem}
.site-footer__links li{position:relative;padding-inline-start:1rem;font-size:.92rem}
.site-footer__links li::before{content:"";position:absolute;inset-inline-start:0;top:.55rem;width:.4rem;height:.4rem;border-radius:999px;background:rgba(255,255,255,.22)}
.site-footer__text{margin:0 0 .55rem;font-size:.9rem;line-height:1.8}
.site-footer__social{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:.85rem;align-items:center}
.site-footer__social a{display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border-radius:50%;background:rgba(255,255,255,.06);color:var(--accent);border:1px solid var(--line);transition:background .2s ease,color .2s ease,transform .2s ease,border-color .2s ease}
.site-footer__social a:hover{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);transform:translateY(-2px)}
.site-footer__social svg{width:1.15rem;height:1.15rem;display:block}
.site-footer__bottom{margin-top:1.75rem;padding-top:1rem;border-top:1px solid var(--line);font-size:.85rem}
.content-page--compact{max-width:42rem}
.content-page__title{margin:0 0 1rem;font-size:clamp(1.35rem,2.5vw,1.75rem);font-weight:800;color:var(--ink)}
.content-page__hero{position:relative;border-radius:1.25rem;overflow:hidden;min-height:220px;margin-bottom:1.5rem;background:var(--surface);border:1px solid var(--line)}
.content-page__hero img{width:100%;height:100%;min-height:220px;object-fit:cover;opacity:.45;display:block}
.content-page__hero-copy{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;padding:1.5rem 1.75rem;color:var(--ink)}
.content-page__hero-copy h1{margin:0 0 .35rem;font-size:clamp(1.4rem,3vw,2rem)}
.content-page__hero-copy p{margin:0;color:var(--muted);max-width:36rem}
.content-page__body{max-width:52rem}
.content-page__intro{color:var(--muted);margin:0 0 1.25rem;max-width:46rem;line-height:1.9}
.content-page__body h2{margin:1.5rem 0 .65rem;font-size:1.15rem;color:var(--ink)}
.content-page__body p,.content-page__copy{margin:0 0 .85rem;line-height:1.9}
.content-page__body a{color:var(--accent);font-weight:600}
.content-list{margin:.5rem 0 1rem;padding:0 1.1rem;display:grid;gap:.45rem;line-height:1.8}
.content-page__media{margin:1.25rem 0;border-radius:1rem;overflow:hidden;border:1px solid var(--line)}
.content-page__media img{width:100%;aspect-ratio:21/9;object-fit:cover}
.content-page__body--split{display:grid;grid-template-columns:400px minmax(0,1fr);gap:1.5rem;align-items:start;max-width:none}
.content-page__aside{margin:0;width:400px;max-width:100%;aspect-ratio:4/3;border-radius:1rem;overflow:hidden;position:relative;border:1px solid var(--line);background:var(--surface)}
.content-page__aside img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.content-contact{list-style:none;margin:0;padding:0;display:grid;gap:.65rem;max-width:28rem}
.content-contact li{background:var(--surface);border:1px solid var(--line);border-radius:.75rem;padding:.65rem .85rem;display:grid;gap:.2rem;line-height:1.45}
.content-contact strong{font-size:.95rem;color:var(--ink)}
.content-contact span{color:var(--muted);font-size:1.05rem}
.content-social{display:flex;flex-wrap:wrap;gap:.65rem}
.content-social a{background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:.4rem .85rem;font-size:.88rem;font-weight:600}
.faq-list{display:grid;gap:.65rem}
.faq-item{background:var(--surface);border:1px solid var(--line);border-radius:.9rem;padding:.85rem 1rem}
.faq-item summary{cursor:pointer;font-weight:700;list-style:none;color:var(--ink)}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"▾";float:left;color:var(--muted)}
.faq-item[open] summary::after{transform:rotate(180deg);display:inline-block}
.faq-item p{margin:.75rem 0 0;line-height:1.85}
.content-note{margin-top:1.25rem}
@media (max-width:980px){
  .site-footer__grid{grid-template-columns:1fr 1fr}
  .content-page__body--split{grid-template-columns:minmax(240px,36%) minmax(0,1fr);gap:1.25rem}
  .content-page__aside{width:100%}
}
@media (max-width:640px){
  .site-footer__grid,.content-page__body--split{grid-template-columns:1fr}
  .content-page__aside{width:100%;max-width:400px}
}
/* Product Detail Page (PDP) Layout & Components */
.pdp-container {
  width: min(1040px, 94%);
  margin: 1.5rem auto 3rem;
  direction: rtl;
}

/* Breadcrumb */
.pdp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  direction: rtl;
}
.pdp-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.pdp-breadcrumb a:hover {
  color: var(--accent);
}
.pdp-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  user-select: none;
}
.pdp-breadcrumb__current {
  color: var(--ink);
  font-weight: 500;
}

/* Main Card */
.pdp-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Gallery */
.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.pdp-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--price-bg);
  border: 1px solid var(--line);
}

.pdp-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-gallery__counter {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(12, 25, 19, 0.85);
  backdrop-filter: blur(4px);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  line-height: 1.2;
  border: 1px solid var(--line);
}

.pdp-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(23, 49, 38, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.15s ease;
  z-index: 2;
  padding: 0;
}

.pdp-gallery__nav:hover {
  background: var(--surface-2);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.05);
}

.pdp-gallery__nav--prev {
  left: 0.75rem;
}

.pdp-gallery__nav--next {
  right: 0.75rem;
}

.pdp-gallery__badge-icon {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(23, 49, 38, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  z-index: 2;
}

.pdp-gallery__thumbs {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.pdp-gallery__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 0.55rem;
  overflow: hidden;
  padding: 0;
  background: var(--price-bg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-gallery__thumb.is-active {
  border-color: var(--accent);
}

/* Details Column */
.pdp-details {
  display: flex;
  flex-direction: column;
  direction: rtl;
  text-align: right;
}

.pdp-details__title {
  margin: 0 0 0.35rem 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}

.pdp-details__sku {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.pdp-details__cat-wrap {
  margin-bottom: 1.25rem;
}

.pdp-details__cat-badge {
  display: inline-block;
  background: rgba(182, 240, 108, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.pdp-details__cat-badge:hover {
  background: rgba(182, 240, 108, 0.22);
}

/* Attribute Groups */
.pdp-attribute-group {
  margin-bottom: 1rem;
}

.pdp-attribute-group__label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

/* Swatches (Color) */
.pdp-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pdp-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 0.65rem;
  background: var(--price-bg);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.pdp-swatch:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.pdp-swatch.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.pdp-swatch.is-unavailable,
.pdp-pill.is-unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.pdp-swatch__box {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.35rem;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.pdp-swatch__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

/* Pills (Size / Other) */
.pdp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pdp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5rem;
  padding: 0.45rem 1.15rem;
  border: 1.5px solid var(--line);
  border-radius: 0.65rem;
  background: var(--price-bg);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.pdp-pill:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ink);
}

.pdp-pill.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(182, 240, 108, 0.1);
  box-shadow: 0 0 0 1px var(--accent);
}

/* Brand Pill */
.pdp-brand-pill {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  border: 1.5px solid var(--line);
  border-radius: 0.65rem;
  background: var(--price-bg);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Price Box */
.pdp-price-box {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.pdp-price-box__top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.pdp-badge {
  display: inline-flex;
  align-items: center;
  background: var(--danger);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  line-height: 1.4;
}

.pdp-badge[hidden] {
  display: none !important;
}

.pdp-compare {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.95rem;
  font-weight: 500;
}

.pdp-compare[hidden] {
  display: none !important;
}

.pdp-price-box__main {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1.2;
}

.pdp-price__amount {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent);
}

.pdp-price__currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.pdp-stock {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.pdp-stock.is-in {
  color: var(--accent);
}

.pdp-stock.is-in .pdp-stock__dot {
  background: var(--accent);
}

.pdp-stock.is-out {
  color: #fca5a5;
}

.pdp-stock.is-out .pdp-stock__dot {
  background: #f87171;
}

.pdp-stock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Quantity */
.pdp-quantity-wrap {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

.pdp-quantity {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pdp-quantity__btn {
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--line);
  border-radius: 0.55rem;
  background: var(--price-bg);
  color: var(--muted);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  padding: 0;
}

.pdp-quantity__btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ink);
  background: var(--surface-2);
}

.pdp-quantity__input {
  width: 4.25rem;
  height: 2.75rem;
  border: 1.5px solid var(--line);
  border-radius: 0.55rem;
  background: var(--price-bg);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  font-family: inherit;
  -moz-appearance: textfield;
}

.pdp-quantity__input::-webkit-outer-spin-button,
.pdp-quantity__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Action Buttons */
.pdp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.pdp-btn-cart {
  width: 100%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
  font-weight: 800;
  border-radius: 0.75rem;
  padding: 0.85rem 1.5rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 0 4px 14px rgba(182, 240, 108, 0.25);
  transition: all 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}

.pdp-btn-cart:hover {
  background: #c7f48b;
  color: var(--accent-ink);
}

.pdp-btn-cart:disabled {
  background: #243e32;
  color: #5c786a;
  cursor: not-allowed;
  box-shadow: none;
}

.pdp-wishlist-wrap {
  width: 100%;
}

.pdp-btn-wishlist {
  width: 100%;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: all 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}

.pdp-btn-wishlist:hover,
.pdp-btn-wishlist.is-active {
  background: rgba(182, 240, 108, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

/* Trust / Service Badges Card */
.pdp-trust-card {
  margin-top: 1.25rem;
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  direction: rtl;
}

.pdp-trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 1rem;
}

.pdp-trust-item:not(:last-child) {
  border-left: 1px solid var(--line);
}

.pdp-trust-item__icon {
  color: var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-trust-item__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.pdp-trust-item__desc {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Tabs Card */
.pdp-tabs-card {
  margin-top: 1.25rem;
  background: var(--surface);
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  direction: rtl;
}

.pdp-tabs-nav {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding: 0 1.5rem;
  background: var(--surface);
}

.pdp-tab-btn {
  padding: 1rem 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  transition: all 0.15s ease;
}

.pdp-tab-btn:hover {
  color: var(--ink);
}

.pdp-tab-btn.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 800;
}

.pdp-tabs-content {
  padding: 1.75rem;
}

.pdp-tab-pane[hidden] {
  display: none !important;
}

.pdp-tab-pane__title {
  margin: 0 0 0.85rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.pdp-tab-pane__body {
  line-height: 2;
  color: var(--ink);
  font-size: 0.92rem;
}

/* Specifications Box */
.pdp-specs-box {
  background: #42655B;
  border-radius: 0.85rem;
  padding: 1.5rem;
  margin-top: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pdp-specs-box__title {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  text-align: right;
}

.pdp-specs-list {
  display: flex;
  flex-direction: column;
}

.pdp-specs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pdp-specs-row:last-child {
  border-bottom: none;
}

.pdp-specs-row__key {
  color: #d1e3da;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: right;
}

.pdp-specs-row__val {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .pdp-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .pdp-trust-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .pdp-trust-item:not(:last-child) {
    border-left: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
  }
}
.breadcrumbs{display:flex;flex-wrap:wrap;gap:.35rem;color:var(--muted);font-size:.88rem;margin:1rem 0}
.breadcrumbs a:hover{color:var(--accent)}
@media (max-width:980px){
  .shop-layout,.pdp,.product-grid,.pdp-gallery{grid-template-columns:1fr}
  .product-grid{grid-template-columns:1fr 1fr}
  .pdp-thumbs{flex-direction:row;overflow:auto}
  .pdp-main img{aspect-ratio:1}
  .filters-panel{position:static}
  .grove-header__top{flex-wrap:wrap}
  .grove-header__toggle{display:inline-flex}
  .grove-header__auth{margin-right:0}
  .grove-header__nav{display:none;flex:1 1 100%;width:100%;border-top:1px solid var(--line);margin-top:.35rem;padding-top:.45rem}
  .grove-header__nav.is-open{display:block}
  .grove-header__links{flex-direction:column;align-items:stretch;gap:.35rem;padding:.45rem 0 .7rem}
  .grove-header__links>a,.grove-header__account>a,.grove-header__logout .btn{
    width:100%;
    justify-content:flex-start;
    min-height:2.75rem;
    padding:.7rem .85rem;
    border-radius:.75rem;
  }
  .grove-header__links>a.is-active{background:rgba(182,240,108,.12);color:var(--accent)}
  .grove-header__account{display:flex;flex-direction:column;align-items:stretch;width:100%;margin:0;gap:.35rem}
  .grove-header__logout{width:100%}
}

/* Cart + checkout */
.cart-page__head{display:flex;align-items:center;gap:.75rem;margin-bottom:1.35rem}
.cart-page__back{width:2.25rem;height:2.25rem;border-radius:999px;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;font-size:1.35rem;color:var(--muted);line-height:1}
.cart-page__shop{color:var(--muted);font-size:.9rem;font-weight:600}
.cart-page__title{margin:0;font-size:1.35rem;font-weight:800}
.cart-empty{background:var(--surface);border:1px solid var(--line);border-radius:1rem;padding:2rem;text-align:center;display:grid;gap:1rem;justify-items:center}
.cart-layout,.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:1.25rem;align-items:start}
.checkout-layout{grid-template-areas:"title ." "main side"}
.checkout-layout > input[type=hidden]{display:none}
.checkout-layout__title{grid-area:title;margin:0}
.checkout-main{grid-area:main}
.checkout-side{grid-area:side;display:grid;gap:1rem}
.cart-items{display:grid;gap:.9rem}
.cart-item{display:grid;grid-template-columns:96px minmax(0,1fr) auto auto;gap:1rem;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:1.1rem;padding:1rem}
.cart-item__media{width:96px;height:96px;border-radius:.85rem;overflow:hidden;background:#fff}
.cart-item__media img{width:100%;height:100%;object-fit:cover}
.cart-item__title{margin:0 0 .65rem;font-size:.98rem;font-weight:700;line-height:1.55}
.cart-item__qty{display:inline-flex;align-items:center;gap:.35rem;border:1px solid var(--line);border-radius:999px;padding:.15rem;background:var(--price-bg)}
.cart-item__qty form{margin:0}
.cart-item__qty-btn{width:2rem;height:2rem;border:0;border-radius:999px;background:transparent;cursor:pointer;font:inherit;font-size:1.1rem;color:var(--ink)}
.cart-item__qty-btn:disabled{opacity:.35;cursor:default}
.cart-item__qty-value{min-width:1.5rem;text-align:center;font-weight:700}
.cart-item__attrs{display:flex;flex-direction:column;gap:.4rem;align-items:flex-start}
.cart-item__attr{display:inline-flex;background:var(--surface);color:var(--muted);border:1px solid var(--line);border-radius:.65rem;padding:.35rem .65rem;font-size:.8rem;white-space:nowrap}
.cart-item__side{display:flex;flex-direction:column;align-items:flex-end;gap:.75rem;min-width:7rem}
.cart-item__remove{width:2.2rem;height:2.2rem;border:0;border-radius:.65rem;background:rgba(239,68,68,.15);color:#fca5a5;cursor:pointer;font-size:1rem}
.cart-item__price{color:var(--accent);font-weight:800;font-size:.95rem;white-space:nowrap}
.cart-invoice,.checkout-panel{background:var(--surface);border:1px solid var(--line);border-radius:1.1rem;padding:1.15rem;position:sticky;top:5rem}
.cart-invoice__title,.checkout-section-title{margin:0 0 1rem;font-size:1.05rem;font-weight:800}
.cart-invoice__row{display:flex;justify-content:space-between;gap:1rem;align-items:center;color:var(--muted);margin-bottom:.75rem;font-size:.92rem}
.cart-invoice__row strong{color:var(--ink);font-weight:700}
.cart-invoice__row--total{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line);color:var(--ink);font-weight:700}
.cart-invoice__cta{width:100%;margin-top:1rem;border-radius:.9rem;padding:.95rem 1rem;font-weight:800;text-align:center}
.checkout-layout__title{margin:0}
.checkout-panel{position:static}
.checkout-address-list{display:grid;gap:.85rem}
.choice-card{position:relative;display:flex;gap:.85rem;align-items:flex-start;background:var(--card);border:1.5px solid var(--line);border-radius:1rem;padding:1rem 1.1rem;cursor:pointer;transition:border-color .15s ease}
.choice-card input{position:absolute;opacity:0;pointer-events:none}
.choice-card__check{width:1.35rem;height:1.35rem;border-radius:999px;border:1.5px solid rgba(255,255,255,.28);flex-shrink:0;margin-top:.15rem;background:transparent}
.choice-card:has(input:checked){border-color:var(--accent)}
.choice-card:has(input:checked) .choice-card__check{border-color:var(--accent);background:var(--accent);box-shadow:inset 0 0 0 3px var(--card)}
.choice-card__body{display:grid;gap:.35rem;flex:1;min-width:0}
.choice-card__body--row{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.choice-card__title{font-weight:700}
.choice-card__text{color:var(--muted);font-size:.9rem;line-height:1.7}
.choice-card__meta{display:flex;flex-wrap:wrap;gap:.75rem;color:var(--muted);font-size:.85rem}
.choice-card__price{color:var(--muted);font-size:.9rem;white-space:nowrap}
.choice-card__delete{border:0;background:transparent;color:#fca5a5;font:inherit;font-size:.82rem;cursor:pointer;white-space:nowrap;padding:0;margin-top:.15rem}
.choice-card--add{justify-content:center;align-items:center;border-style:dashed;min-height:4.5rem;color:var(--muted);font-weight:700}
.choice-card--add:hover{border-color:var(--accent);color:var(--accent)}
.checkout-coupon{display:flex;align-items:stretch;gap:.5rem;flex-wrap:nowrap}
.checkout-coupon input{flex:1 1 auto;width:auto !important;min-width:0}
.checkout-coupon__apply{flex:0 0 auto;align-self:stretch;white-space:nowrap;border:0;border-radius:.75rem;padding:.7rem 1.25rem;background:var(--accent);color:var(--accent-ink);font:inherit;font-weight:800;cursor:pointer}
.checkout-coupon__apply:hover{filter:brightness(1.05)}
.checkout-empty{color:var(--muted);padding:.5rem 0}
.form-label{display:block;font-weight:600;margin-bottom:.35rem;font-size:.9rem}
@media (max-width:980px){
  .cart-layout,.checkout-layout{grid-template-columns:1fr}
  .checkout-layout{grid-template-areas:"title" "main" "side"}
  .cart-item{grid-template-columns:84px minmax(0,1fr)}
  .cart-item__attrs{grid-column:1 / -1;flex-direction:row;flex-wrap:wrap}
  .cart-item__side{grid-column:1 / -1;flex-direction:row;justify-content:space-between;align-items:center}
  .cart-invoice{position:static}
}

/* Account */
.account-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:1.5rem;align-items:start}
.account-sidebar{position:sticky;top:5rem;background:var(--card);border:1px solid var(--line);border-radius:1.15rem;padding:1.1rem;display:grid;gap:1rem}
.account-sidebar__head{display:flex;gap:.85rem;align-items:center;padding-bottom:1rem;border-bottom:1px solid var(--line)}
.account-sidebar__avatar{width:3rem;height:3rem;border-radius:.9rem;background:var(--surface);display:grid;place-items:center;color:var(--muted);flex-shrink:0;overflow:hidden}
.account-sidebar__avatar svg{width:1.55rem;height:1.55rem}
.account-sidebar__avatar img{width:100%;height:100%;object-fit:cover}
.account-sidebar__head strong{display:block;font-size:.95rem}
.account-sidebar__head small{display:block;color:var(--muted);font-size:.78rem;word-break:break-all}
.account-nav{display:flex;flex-direction:column;gap:.35rem}
.account-nav__link{display:flex;align-items:center;justify-content:center;text-align:center;padding:.75rem .9rem;border-radius:.85rem;color:var(--muted);font-size:.92rem;font-weight:600;border:1px solid transparent;transition:background .15s ease,color .15s ease,border-color .15s ease}
.account-nav__link:hover{color:var(--ink);background:rgba(255,255,255,.04)}
.account-nav__link.is-active{color:var(--accent-ink);background:var(--accent);border-color:transparent;font-weight:800}
.account-nav__logout{margin-top:.5rem;padding-top:.75rem;border-top:1px solid var(--line)}
.account-nav__logout button{width:100%;text-align:center;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:#fca5a5;font:inherit;font-size:.92rem;font-weight:700;cursor:pointer;padding:.75rem .9rem;border-radius:.85rem}
.account-nav__logout button:hover{background:rgba(239,68,68,.1)}
.account-main{min-width:0;display:grid;gap:1.15rem}
.account-main__head h2{margin:0 0 .35rem;font-size:1.45rem;font-weight:800}
.account-main__head p{margin:0;color:var(--muted);font-size:.92rem}
.account-alert{background:rgba(182,240,108,.12);border:1px solid rgba(182,240,108,.28);color:var(--accent);border-radius:.85rem;padding:.75rem 1rem;font-weight:600}
.account-form{display:grid;gap:1.15rem}
.account-card{background:var(--card);border:1px solid var(--line);border-radius:1.15rem;padding:1.35rem}
.account-card__title{margin:0 0 1.1rem;font-size:1.05rem;font-weight:800}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.star-rating{display:flex;flex-direction:row-reverse;justify-content:center;align-items:center;gap:.2rem;margin-top:.35rem;width:100%}
.star-rating input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.star-rating label{cursor:pointer;line-height:1;padding:.15rem;border-radius:.4rem;transition:transform .12s ease,color .12s ease}
.star-rating__icon{display:block;font-size:2.15rem;color:rgba(255,255,255,.22);text-shadow:0 0 0 transparent;transition:color .12s ease,text-shadow .12s ease}
.star-rating label:hover .star-rating__icon,
.star-rating label:hover ~ label .star-rating__icon,
.star-rating input:checked ~ label .star-rating__icon{color:#fbbf24;text-shadow:0 0 12px rgba(251,191,36,.35)}
.star-rating label:hover{transform:scale(1.08)}
.star-rating input:focus-visible + label{outline:2px solid var(--accent);outline-offset:2px}
.account-avatar-block{display:grid;justify-items:center;gap:.65rem;margin-bottom:1.35rem;padding-bottom:1.2rem;border-bottom:1px solid var(--line)}
.account-avatar-block__photo{width:6.5rem;height:6.5rem;border-radius:1.2rem;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;color:var(--muted);overflow:hidden}
.account-avatar-block__photo svg{width:3rem;height:3rem}
.account-avatar-block__photo img{width:100%;height:100%;object-fit:cover}
.account-avatar-block__hint{color:var(--muted);font-size:.88rem;font-weight:600}
.account-avatar-upload{display:inline-flex;align-items:center;justify-content:center;padding:.65rem 1.15rem;border-radius:.75rem;background:var(--accent);color:var(--accent-ink);font-weight:800;font-size:.88rem;cursor:pointer}
.account-avatar-upload__input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0,0,0,0)}
.account-form__grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.account-field{display:grid;gap:.4rem}
.account-field__error{color:#fca5a5;font-size:.8rem}
.account-input{position:relative;display:flex;align-items:center}
.account-input__icon{position:absolute;right:.85rem;width:1.15rem;height:1.15rem;color:var(--muted);pointer-events:none;display:grid;place-items:center}
.account-input__icon svg{width:100%;height:100%}
.account-input input,.account-input textarea,.account-card input,.account-card textarea,.account-card select{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:.85rem;color:var(--ink);font:inherit;padding:.85rem 1rem}
.account-input:has(.account-input__icon) input{padding-right:2.6rem}
.account-input input:focus,.account-card input:focus,.account-card textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(182,240,108,.12)}
.account-form__actions{display:flex;flex-wrap:wrap;align-items:center;gap:.85rem;margin-top:1.15rem;justify-content:flex-start}
.account-form__submit{min-width:10rem;border-radius:.85rem}
.account-form__link{color:var(--muted);font-size:.9rem;font-weight:600}
.account-form__link:hover{color:var(--accent)}
.account-modal{position:fixed;inset:0;z-index:80;display:none;align-items:center;justify-content:center;padding:1rem}
.account-modal.is-open{display:flex}
.account-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.account-modal__dialog{position:relative;z-index:1;width:min(720px,100%);max-height:min(90vh,900px);overflow:auto;background:var(--card);border:1px solid var(--line);border-radius:1.15rem;padding:1.25rem 1.35rem}
.account-modal__head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.account-modal__head h3{margin:0;font-size:1.15rem;font-weight:800}
.account-modal__close{width:2.2rem;height:2.2rem;border:0;border-radius:.7rem;background:var(--surface);color:var(--ink);font-size:1.4rem;cursor:pointer;line-height:1}
.account-input select{width:100%;appearance:none;-webkit-appearance:none;background-color:var(--surface);border:1px solid var(--line);border-radius:.85rem;color:var(--ink);font:inherit;padding:.85rem 1rem .85rem 2.5rem;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:1rem calc(1.1rem),1.35rem calc(1.1rem);background-size:6px 6px,6px 6px;background-repeat:no-repeat}
.address-card--add{cursor:pointer;font:inherit;background:transparent;color:inherit;width:100%}
.account-panel{background:var(--card);border:1px solid var(--line);border-radius:1rem;padding:1.15rem}
.account-pagination{margin-top:1.25rem}
@media (max-width:980px){
  .account-shell{grid-template-columns:1fr}
  .account-sidebar{position:static}
  .account-nav{flex-direction:row;flex-wrap:wrap;justify-content:center}
  .account-nav__link{flex:1 1 auto;justify-content:center;text-align:center}
  .account-nav__logout{width:100%;margin-top:0;padding-top:0;border-top:0}
  .account-form__grid{grid-template-columns:1fr}
}
.data-table{display:grid;gap:.75rem}
.data-table__head{display:none;color:var(--muted);font-size:.82rem;font-weight:600;padding:0 .85rem}
.data-table__row{display:grid;gap:.85rem;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:1rem;padding:1rem 1.05rem}
.data-table__cell{display:flex;flex-direction:column;gap:.2rem;min-width:0}
.data-table__cell::before{content:attr(data-label);color:var(--muted);font-size:.75rem;font-weight:600}
.data-table__cell--amount{color:#f87171;font-weight:800}
.data-table__cell--amount small{color:var(--muted);font-weight:500;margin-inline-start:.2rem}
.data-table__cell--date span{display:block;font-weight:600}
.data-table__cell--date small{color:var(--muted);font-size:.82rem}
.data-table__ref{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;color:var(--muted)}
.gateway-pill{display:inline-flex;align-items:center;padding:.25rem .65rem;border-radius:.55rem;background:var(--surface);border:1px solid var(--line);font-size:.85rem;font-weight:700;text-transform:capitalize}
.status-chip{display:inline-flex;align-items:center;padding:.28rem .7rem;border-radius:999px;font-size:.78rem;font-weight:700;border:1px solid transparent}
.status-chip.is-success{background:rgba(34,197,94,.12);color:#86efac;border-color:rgba(34,197,94,.25)}
.status-chip.is-warn{background:rgba(234,179,8,.12);color:#fde68a;border-color:rgba(234,179,8,.28)}
.status-chip.is-danger{background:rgba(239,68,68,.12);color:#fca5a5;border-color:rgba(239,68,68,.28)}
.status-chip.is-info{background:rgba(59,130,246,.12);color:#93c5fd;border-color:rgba(59,130,246,.28)}
.status-chip.is-muted{background:rgba(255,255,255,.06);color:var(--muted);border-color:var(--line)}
.wishlist-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:1rem}
.wishlist-card{background:var(--card);border:1px solid var(--line);border-radius:1.1rem;overflow:hidden;display:flex;flex-direction:column}
.wishlist-card__media{aspect-ratio:1;background:var(--surface);display:block}
.wishlist-card__media img{width:100%;height:100%;object-fit:cover}
.wishlist-card__body{padding:1rem;display:grid;gap:.65rem;flex:1}
.wishlist-card__title{margin:0;font-size:.98rem;font-weight:700;line-height:1.55}
.wishlist-card__prices{display:flex;flex-wrap:wrap;gap:.5rem;align-items:baseline}
.wishlist-card__price{color:var(--accent);font-weight:800}
.wishlist-card__compare{color:var(--muted);text-decoration:line-through;font-size:.85rem}
.wishlist-card__actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-top:auto}
.wishlist-card__remove{background:rgba(239,68,68,.15);color:#fca5a5;border:0}
.pdp-wishlist{margin-top:.85rem}
.pdp-wishlist form{margin:0}
.pdp-wishlist__btn{display:inline-flex;align-items:center;justify-content:center;width:100%;box-sizing:border-box;border-radius:.9rem;padding:.75rem 1rem;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;text-align:center}
.pdp-wishlist__btn.is-active{border-color:#f87171;color:#fca5a5}
.address-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:1rem}
.address-card{background:var(--card);border:1px solid var(--line);border-radius:1.1rem;padding:1.1rem;display:grid;gap:.75rem}
.address-card__text{margin:0;font-weight:700;line-height:1.7}
.address-card__meta{display:flex;flex-wrap:wrap;gap:.75rem;color:var(--muted);font-size:.88rem}
.address-card__actions{display:flex;flex-wrap:wrap;gap:.5rem}
.address-card--add{display:grid;place-items:center;border-style:dashed;color:var(--muted);font-weight:700;min-height:8rem}
.address-card--add:hover{border-color:var(--accent);color:var(--accent)}
@media (min-width:860px){
  .data-table__head{display:grid;gap:.75rem}
  .data-table--orders .data-table__head,.data-table--orders .data-table__row{grid-template-columns:80px 1.1fr 1fr 1fr auto}
  .data-table--transactions .data-table__head,.data-table--transactions .data-table__row{grid-template-columns:1.2fr .7fr .9fr .8fr .8fr .9fr 1.3fr}
  .data-table--payments .data-table__head,.data-table--payments .data-table__row{grid-template-columns:1.2fr .9fr .8fr .8fr .9fr 1.3fr}
  .data-table__cell{display:block}
  .data-table__cell::before{display:none}
}

/* Mobile polish */
@media (max-width:768px){
  .shell{width:min(1180px,92%)}
  .section{padding:1.35rem 0}
  .hero{padding:1.5rem 0 1rem}
  .hero__visual{aspect-ratio:16/9;border-radius:1rem}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
  .product-card__body{padding:.75rem}
  .product-card__title{font-size:.88rem;min-height:0}
  .price-pill{padding:.35rem .7rem;font-size:.85rem}
  .shop-layout{gap:1rem}
  .sort-bar{gap:.55rem .75rem;font-size:.88rem}
  .pdp{padding:1rem;border-radius:1rem;margin:.85rem 0}
  .pdp-gallery{grid-template-columns:1fr}
  .pdp-thumbs{flex-direction:row;overflow:auto;gap:.45rem;padding-bottom:.25rem}
  .pdp-thumbs button{width:4.25rem;flex:0 0 auto}
  .pdp-title{overflow-wrap:anywhere}
  .pdp-cart,.pdp-btn-cart,.pdp-wishlist__btn,.pdp-btn-wishlist,.cart-invoice__cta,.account-form__submit,.checkout-coupon__apply{min-height:2.75rem}
  .swatch{width:4.1rem}
  .size-pill{min-width:3.75rem;min-height:2.5rem}
  .cart-item{grid-template-columns:72px minmax(0,1fr);gap:.75rem;padding:.85rem}
  .cart-item__media{width:72px;height:72px}
  .cart-item__title{font-size:.9rem;overflow-wrap:anywhere}
  .cart-item__attrs{grid-column:1 / -1;flex-direction:row;flex-wrap:wrap}
  .cart-item__side{grid-column:1 / -1;flex-direction:row;justify-content:space-between;align-items:center;min-width:0;width:100%}
  .cart-item__qty-btn{width:2.4rem;height:2.4rem}
  .choice-card{padding:.85rem;gap:.65rem}
  .choice-card__title,.choice-card__text{overflow-wrap:anywhere}
  .choice-card__body--row{flex-wrap:wrap}
  .checkout-coupon{gap:.45rem}
  .checkout-coupon__apply{padding:.7rem .9rem;font-size:.9rem}
  .account-main__head h2{font-size:1.25rem}
  .account-card{padding:1rem}
  .account-form__actions{flex-direction:column;align-items:stretch}
  .account-form__submit{width:100%;min-width:0}
  .account-modal{padding:.65rem;align-items:flex-end}
  .account-modal__dialog{width:100%;max-height:min(92vh,900px);border-radius:1rem 1rem .65rem .65rem;padding:1rem}
  .account-nav__link,.account-nav__logout button{min-height:2.75rem}
  .address-card__text{overflow-wrap:anywhere}
  .wishlist-card__title{overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .auth-card{margin:1.25rem auto;padding:1.15rem;width:min(420px,100%)}
  .breadcrumbs{font-size:.8rem;gap:.25rem}
  .content-page__body--split{grid-template-columns:1fr}
  .content-page__aside{width:100%;max-width:100%}
  .site-footer__grid{grid-template-columns:1fr 1fr;gap:1.25rem}
  .home-category-card{width:min(260px,82vw);gap:1.3rem}
  .home-category-card__image{width:3rem;height:3rem}
  .home-category-card__label{font-size:1.15rem}
  .home-rail__track .product-card{width:min(220px,78vw)}
  .btn,.btn-sm{min-height:2.5rem}
  .btn-sm{padding:.55rem .95rem}
}

@media (max-width:430px){
  .shell{width:min(1180px,94%)}
  .site-footer__grid{grid-template-columns:1fr}
  .product-grid{gap:.55rem}
  .cart-page__title{font-size:1.15rem}
  .account-sidebar__head small{font-size:.72rem}
  .data-table--transactions .data-table__row,.data-table--payments .data-table__row{padding:.85rem}
  .checkout-coupon{flex-direction:column}
  .checkout-coupon__apply{width:100%}
}

body.nav-open{overflow:hidden}

.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:stretch}
.blog-card{display:flex;flex-direction:column;height:100%;background:var(--card);border:1px solid var(--line);border-radius:1.1rem;overflow:hidden;color:inherit;text-decoration:none;min-width:0}
.blog-card:hover{border-color:rgba(182,240,108,.45)}
.blog-card__media{display:block;position:relative;width:100%;aspect-ratio:16/10;background:var(--surface);flex:0 0 auto;overflow:hidden}
.blog-card__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.blog-card__body{display:flex;flex-direction:column;gap:.35rem;padding:.85rem 1rem 1rem;flex:0 0 auto}
.blog-card__body strong{font-size:1rem;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(1.65em * 2)}
.blog-card__body small{color:var(--muted);line-height:1.4}
.pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 1rem}
.pager__summary{margin:0;color:var(--muted);font-size:.92rem}
.pager__links{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem}
.pager__links a,.pager__links span{display:inline-flex;align-items:center;justify-content:center;min-width:2.4rem;height:2.4rem;padding:0 .7rem;border:1px solid var(--line);border-radius:.7rem;background:var(--surface);color:var(--ink);font-size:.9rem;font-weight:700}
.pager__links a:hover{border-color:var(--accent);color:var(--accent)}
.pager__links .is-current{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.pager__links .is-disabled{color:var(--muted)}
.blog-pager{display:flex;gap:.75rem;margin-top:1.25rem}
.blog-pager a{color:var(--accent);font-weight:700}
@media (max-width:980px){.blog-grid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.blog-grid{grid-template-columns:1fr}}

@media (max-width:360px){
  .product-grid{grid-template-columns:1fr}
  .wishlist-grid,.address-grid{grid-template-columns:1fr}
  .brand{max-width:12rem;font-size:1.05rem}
}

/* Brands Marquee Slider */
.brands-marquee-section {
  margin: 2.25rem 0 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem 0;
  overflow: hidden;
  position: relative;
  direction: ltr !important;
}

.brands-marquee {
  width: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  direction: ltr !important;
  mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
}

.brands-marquee__track {
  display: flex;
  width: max-content;
  direction: ltr !important;
  gap: 0;
  animation: brandsMarquee 50s linear infinite;
  will-change: transform;
}

.brands-marquee:hover .brands-marquee__track {
  animation-play-state: paused;
}

.brands-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  direction: ltr !important;
}

.brands-marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin: 0 1.5rem;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brands-marquee__item:hover {
  transform: scale(1.12);
}

.brands-marquee__circle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.65rem;
  flex-shrink: 0;
}

.brands-marquee__circle img {
  width: 100%;
  height: 100%;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.brands-marquee__name {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1e293b;
  text-align: center;
  line-height: 1.2;
  padding: 0.2rem;
}

@keyframes brandsMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 640px) {
  .brands-marquee-section {
    padding: 1rem 0;
    margin: 1.5rem 0 1rem;
    border-radius: 1rem;
  }
  .brands-marquee__circle {
    width: 60px;
    height: 60px;
    padding: 0.45rem;
  }
  .brands-marquee__item {
    margin: 0 1rem;
  }
}

/* Quill rich text content classes */
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-left { text-align: left; }
.ql-align-justify { text-align: justify; }
.ql-direction-rtl { direction: rtl; text-align: inherit; }



