:root{
  --brand:#0f766e;
  --accent:#2563eb;
  --ink:#111827;
  --muted:#667085;
  --line:#e4e7ec;
  --soft:#f8fafc;
  --white:#fff;
  --danger:#b42318;
  --success:#067647;
  --radius:16px;
  --shadow:0 12px 35px rgba(15,23,42,.08);
  --shadow-lg:0 24px 65px rgba(15,23,42,.13)
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#fff;
  color:var(--ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,
    BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased
}
a{color:inherit}
img{display:block;max-width:100%}
button,input{font:inherit}
.store-shell{width:min(1180px,calc(100% - 40px));margin:auto}

.announcement{
  padding:8px 18px;
  background:#101828;
  color:#fff;
  text-align:center;
  font-size:12px;
  font-weight:600;
  letter-spacing:.01em
}

.store-header{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid rgba(228,231,236,.9);
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(16px)
}
.header-row{
  min-height:70px;
  display:flex;
  align-items:center;
  gap:25px
}
.store-brand{
  min-width:185px;
  display:flex;
  align-items:center;
  gap:11px;
  text-decoration:none
}
.brand-mark{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:10px;
  background:linear-gradient(135deg,var(--brand),var(--accent));
  color:#fff;
  font-size:14px;
  font-weight:900;
  box-shadow:0 8px 20px color-mix(in srgb,var(--brand) 22%,transparent)
}
.brand-mark img{width:100%;height:100%;object-fit:cover}
.brand-name strong,.brand-name small{display:block}
.brand-name strong{font-size:15px;line-height:1.2}
.brand-name small{margin-top:3px;color:var(--muted);font-size:11px}

.main-nav{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:26px
}
.main-nav a{
  color:#475467;
  font-size:13px;
  font-weight:700;
  text-decoration:none
}
.main-nav a:hover{color:var(--brand)}

.header-actions{display:flex;align-items:center;gap:7px}
.auth-link{
  padding:9px 12px;
  border-radius:9px;
  color:#344054;
  font-size:13px;
  font-weight:750;
  text-decoration:none
}
.auth-link:hover{background:#f2f4f7}
.auth-link.signup{
  background:var(--brand);
  color:#fff
}
.auth-link.signup:hover{filter:brightness(.94)}

.cart-link{
  display:flex;
  align-items:center;
  gap:7px;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  font-size:13px;
  font-weight:800;
  text-decoration:none
}
.cart-count{
  min-width:20px;
  height:20px;
  display:grid;
  place-items:center;
  padding:0 5px;
  border-radius:999px;
  background:var(--brand);
  color:#fff;
  font-size:10px
}

.hero{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(350px,.85fr);
  gap:38px;
  align-items:center;
  min-height:480px;
  padding:52px 0
}
.hero-copy{padding:8px 0}
.hero-kicker{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border:1px solid color-mix(in srgb,var(--brand) 18%,#fff);
  border-radius:999px;
  background:color-mix(in srgb,var(--brand) 7%,#fff);
  color:var(--brand);
  font-size:11px;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase
}
.hero h1{
  max-width:650px;
  margin:17px 0;
  font-size:clamp(2.75rem,5vw,4.5rem);
  line-height:1.01;
  letter-spacing:-.055em
}
.hero-copy>p{
  max-width:590px;
  margin:0 0 25px;
  color:var(--muted);
  font-size:1rem;
  line-height:1.7
}

.button-row{display:flex;flex-wrap:wrap;gap:10px}
.store-button{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 17px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  color:var(--ink);
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer
}
.store-button:hover{background:#f9fafb}
.store-button.primary{
  border-color:var(--brand);
  background:var(--brand);
  color:#fff
}
.store-button.primary:hover{filter:brightness(.94)}
.store-button.dark{
  border-color:#101828;
  background:#101828;
  color:#fff
}

.hero-showcase{
  position:relative;
  min-height:390px;
  overflow:hidden;
  border-radius:24px;
  background:
    radial-gradient(circle at 80% 15%,rgba(255,255,255,.22),transparent 30%),
    linear-gradient(145deg,var(--brand),var(--accent));
  box-shadow:var(--shadow-lg)
}
.hero-showcase:before{
  position:absolute;
  width:240px;
  height:240px;
  right:-90px;
  bottom:-90px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  content:""
}
.showcase-content{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:29px;
  color:#fff
}
.showcase-content h2{
  max-width:370px;
  margin:0;
  font-size:1.8rem;
  line-height:1.12
}
.showcase-product{
  display:grid;
  grid-template-columns:82px 1fr;
  gap:14px;
  align-items:center;
  padding:13px;
  border:1px solid rgba(255,255,255,.48);
  border-radius:15px;
  background:rgba(255,255,255,.96);
  color:var(--ink);
  box-shadow:0 15px 35px rgba(15,23,42,.14)
}
.showcase-image{
  width:82px;
  height:82px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:11px;
  background:#eef2f6;
  color:var(--brand);
  font-size:28px;
  font-weight:900
}
.showcase-image img{width:100%;height:100%;object-fit:cover}
.showcase-product small{display:block;color:var(--muted);font-size:11px}
.showcase-product strong{display:block;margin:4px 0;font-size:14px}

.trust-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 7px 25px rgba(15,23,42,.05)
}
.trust-item{padding:18px 20px;border-right:1px solid var(--line)}
.trust-item:last-child{border-right:0}
.trust-item strong{display:block;margin-bottom:4px;font-size:14px}
.trust-item span{color:var(--muted);font-size:12px;line-height:1.5}

.store-section{padding:64px 0}
.store-section.soft{background:var(--soft)}
.section-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px
}
.section-heading h2{
  margin:0 0 6px;
  font-size:clamp(1.8rem,3vw,2.5rem);
  letter-spacing:-.035em
}
.section-heading p{
  max-width:620px;
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px
}
.product-card{
  min-width:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 15px rgba(15,23,42,.035);
  transition:transform .18s ease,box-shadow .18s ease
}
.product-card:hover{
  transform:translateY(-3px);
  box-shadow:0 15px 35px rgba(15,23,42,.1)
}
.product-image{
  position:relative;
  height:205px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#f2f4f7;
  color:var(--brand);
  font-size:40px;
  font-weight:900
}
.product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease
}
.product-card:hover .product-image img{transform:scale(1.025)}
.stock-badge{
  position:absolute;
  top:10px;
  left:10px;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(236,253,243,.96);
  color:var(--success);
  font-size:10px;
  font-weight:850
}
.stock-badge.out{background:#fef3f2;color:var(--danger)}
.product-details{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:15px
}
.product-category{
  color:var(--muted);
  font-size:11px;
  font-weight:650;
  text-transform:uppercase;
  letter-spacing:.04em
}
.product-details h3{margin:6px 0;font-size:1rem}
.product-description{
  min-height:38px;
  color:var(--muted);
  font-size:12px;
  line-height:1.5
}
.product-price{
  margin:13px 0 11px;
  font-size:1.08rem;
  font-weight:900
}
.add-form{
  display:grid;
  grid-template-columns:60px 1fr;
  gap:7px;
  margin-top:auto
}
.quantity-input{
  width:100%;
  min-height:41px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  text-align:center;
  outline:none
}
.quantity-input:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 12%,transparent)
}
.add-button{
  min-height:41px;
  border:0;
  border-radius:8px;
  background:var(--brand);
  color:#fff;
  font-size:12px;
  font-weight:850;
  cursor:pointer
}
.add-button:hover{filter:brightness(.94)}
.add-button:disabled{background:#98a2b3;cursor:not-allowed}

.empty-catalogue{
  padding:48px 22px;
  border:1px dashed #cbd5e1;
  border-radius:14px;
  background:#fff;
  text-align:center
}
.empty-catalogue h3{margin:0 0 8px}
.empty-catalogue p{
  max-width:580px;
  margin:0 auto;
  color:var(--muted);
  line-height:1.6
}

.about-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:20px
}
.about-panel,.info-panel{
  padding:27px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
  box-shadow:0 5px 20px rgba(15,23,42,.035)
}
.about-panel h2{margin-top:0;font-size:2rem}
.about-panel p,.info-row span{
  color:var(--muted);
  line-height:1.7;
  white-space:pre-line
}
.info-row{padding:14px 0;border-bottom:1px solid var(--line)}
.info-row:first-child{padding-top:0}
.info-row:last-child{padding-bottom:0;border-bottom:0}
.info-row strong{display:block;margin-bottom:4px;font-size:13px}
.info-row span{font-size:13px}

.flash{
  margin:16px auto 0;
  padding:12px 15px;
  border:1px solid #abefc6;
  border-radius:9px;
  background:#ecfdf3;
  color:#067647;
  font-size:13px
}
.flash.danger{border-color:#fecdca;background:#fef3f2;color:#b42318}

.cart-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:24px;
  padding:45px 0 70px
}
.cart-panel{
  padding:24px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
  box-shadow:var(--shadow)
}
.cart-panel h1,.cart-panel h2{margin-top:0}
.cart-panel h1{font-size:1.8rem}
.cart-panel h2{font-size:1.25rem}
.cart-layout>aside{height:max-content;position:sticky;top:94px}
.cart-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) 90px 110px;
  gap:15px;
  align-items:center;
  padding:17px 0;
  border-bottom:1px solid var(--line)
}
.cart-item:last-child{border-bottom:0}
.cart-item small{display:block;margin-top:4px;color:var(--muted)}
.cart-price{text-align:right;font-weight:850}
.cart-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.link-button{
  margin-top:8px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--danger);
  font-size:12px;
  font-weight:750;
  cursor:pointer
}
.summary-row{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:9px 0;
  color:#475467;
  font-size:13px
}
.summary-row strong{color:var(--ink)}
.summary-total{
  margin-top:8px;
  padding-top:16px;
  border-top:1px solid var(--line);
  font-size:1.08rem
}
.auth-notice{
  margin:17px 0;
  padding:13px;
  border:1px solid #fedf89;
  border-radius:9px;
  background:#fffaeb;
  color:#7a2e0e;
  font-size:12px;
  line-height:1.55
}

.store-footer{
  padding:38px 0;
  border-top:1px solid #344054;
  background:#101828;
  color:#d0d5dd
}
.footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  gap:32px
}
.store-footer h3{margin-top:0;color:#fff;font-size:15px}
.store-footer p{max-width:440px;font-size:13px;line-height:1.65}
.store-footer a{
  display:block;
  margin:7px 0;
  color:#d0d5dd;
  font-size:13px;
  text-decoration:none
}
.store-footer a:hover{color:#fff}
.copyright{
  margin-top:28px;
  padding-top:19px;
  border-top:1px solid #344054;
  font-size:12px
}

@media(max-width:980px){
  .main-nav{display:none}
  .hero{
    grid-template-columns:1fr;
    min-height:auto;
    padding:44px 0
  }
  .hero-showcase{min-height:350px}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .about-grid,.cart-layout{grid-template-columns:1fr}
  .cart-layout>aside{position:static}
}

@media(max-width:650px){
  .store-shell{width:min(100% - 22px,1180px)}
  .announcement{font-size:11px}
  .header-row{min-height:62px;gap:6px}
  .store-brand{min-width:0;margin-right:auto}
  .brand-mark{width:36px;height:36px}
  .brand-name small{display:none}
  .auth-link{padding:7px;font-size:12px}
  .cart-link{padding:8px}
  .cart-link>span:first-of-type{display:none}
  .hero{gap:24px;padding:35px 0}
  .hero h1{font-size:clamp(2.35rem,12vw,3.4rem)}
  .hero-copy>p{font-size:14px}
  .hero-showcase{min-height:315px;border-radius:18px}
  .showcase-content{padding:21px}
  .showcase-content h2{font-size:1.45rem}
  .showcase-product{grid-template-columns:68px 1fr}
  .showcase-image{width:68px;height:68px}
  .trust-strip{grid-template-columns:1fr}
  .trust-item{border-right:0;border-bottom:1px solid var(--line)}
  .trust-item:last-child{border-bottom:0}
  .store-section{padding:47px 0}
  .section-heading{display:block}
  .section-heading .store-button{margin-top:13px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .product-image{height:155px}
  .product-details{padding:11px}
  .product-description{display:none}
  .add-form{grid-template-columns:48px 1fr}
  .quantity-input,.add-button{min-height:38px}
  .about-grid{grid-template-columns:1fr}
  .about-panel,.info-panel{padding:21px}
  .footer-grid{grid-template-columns:1fr;gap:20px}
  .cart-panel{padding:18px}
  .cart-item{grid-template-columns:minmax(0,1fr) 72px}
  .cart-price{grid-column:2;grid-row:1}
  .cart-item .quantity-input{grid-column:1/3}
}

@media(max-width:390px){
  .auth-link.signup{display:none}
  .product-grid{grid-template-columns:1fr}
}

/* RETAILNEXA SEARCHABLE CATALOGUE */
.nav-active{color:var(--brand)!important}

.catalogue-hero{
  padding:48px 0;
  background:
    radial-gradient(
      circle at 85% 20%,
      color-mix(in srgb,var(--accent) 15%,transparent),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      color-mix(in srgb,var(--brand) 7%,#fff),
      #fff
    );
  border-bottom:1px solid var(--line)
}
.catalogue-hero-content{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:35px
}
.catalogue-hero h1{
  max-width:680px;
  margin:13px 0 10px;
  font-size:clamp(2.4rem,5vw,4rem);
  line-height:1;
  letter-spacing:-.05em
}
.catalogue-hero p{
  max-width:690px;
  margin:0;
  color:var(--muted);
  line-height:1.7
}
.catalogue-stat{
  min-width:155px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:var(--shadow)
}
.catalogue-stat strong{
  display:block;
  color:var(--brand);
  font-size:2rem
}
.catalogue-stat span{color:var(--muted);font-size:12px}

.catalogue-section{background:#f8fafc}
.catalogue-search{
  display:grid;
  grid-template-columns:minmax(250px,1fr) 220px auto auto;
  gap:10px;
  align-items:end;
  margin-bottom:18px;
  padding:17px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 5px 20px rgba(15,23,42,.04)
}
.catalogue-search label{
  display:block;
  margin-bottom:6px;
  color:#344054;
  font-size:11px;
  font-weight:800
}
.catalogue-search input,
.catalogue-search select{
  width:100%;
  min-height:43px;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  outline:none
}
.catalogue-search input:focus,
.catalogue-search select:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 12%,transparent)
}
.catalogue-search-button{min-width:95px}

.catalogue-result-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px
}
.catalogue-result-bar strong{font-size:14px}
.catalogue-result-bar span{
  margin-left:5px;
  color:var(--muted);
  font-size:13px
}
.catalogue-result-bar a{
  color:var(--brand);
  font-size:13px;
  font-weight:800;
  text-decoration:none
}

.catalogue-product-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))
}
.catalogue-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin-top:30px
}
.catalogue-pagination a,
.catalogue-pagination span{
  padding:9px 13px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  font-size:13px;
  text-decoration:none
}
.catalogue-pagination a{
  color:var(--brand);
  font-weight:800
}
.catalogue-empty-actions{
  justify-content:center;
  margin-top:18px
}

@media(max-width:900px){
  .catalogue-search{
    grid-template-columns:1fr 1fr
  }
  .catalogue-product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
}

@media(max-width:650px){
  .catalogue-hero{padding:35px 0}
  .catalogue-hero-content{
    display:block
  }
  .catalogue-stat{
    width:max-content;
    margin-top:20px
  }
  .catalogue-search{
    grid-template-columns:1fr
  }
  .catalogue-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .catalogue-result-bar{
    display:block
  }
  .catalogue-result-bar a{
    display:inline-block;
    margin-top:8px
  }
}

@media(max-width:390px){
  .catalogue-product-grid{
    grid-template-columns:1fr
  }
}

/* RETAILNEXA PRODUCT LIGHTBOX */
.product-image img,
.showcase-image img{
  cursor:zoom-in
}

.product-image-zoomable:focus{
  outline:3px solid
    color-mix(in srgb,var(--brand) 35%,transparent);
  outline-offset:-3px
}

body.lightbox-open{
  overflow:hidden
}

.product-lightbox[hidden]{
  display:none
}

.product-lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  padding:28px;
  background:rgba(3,7,18,.92);
  backdrop-filter:blur(8px)
}

.product-lightbox-stage{
  width:min(1100px,100%);
  height:min(820px,calc(100vh - 70px));
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px
}

.product-lightbox-stage img{
  max-width:100%;
  max-height:calc(100% - 45px);
  object-fit:contain;
  border-radius:12px;
  background:#fff;
  box-shadow:0 30px 90px rgba(0,0,0,.45)
}

.product-lightbox-caption{
  max-width:800px;
  overflow:hidden;
  color:#fff;
  font-size:14px;
  font-weight:700;
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap
}

.product-lightbox-close{
  position:fixed;
  top:18px;
  right:22px;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.25);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:29px;
  line-height:1;
  cursor:pointer
}

.product-lightbox-close:hover,
.product-lightbox-close:focus{
  background:#fff;
  color:#111827;
  outline:none
}

@media(max-width:650px){
  .product-lightbox{
    padding:14px
  }

  .product-lightbox-stage{
    height:calc(100vh - 55px)
  }

  .product-lightbox-stage img{
    border-radius:8px
  }

  .product-lightbox-close{
    top:10px;
    right:10px;
    width:40px;
    height:40px
  }
}
