:root{
  --blue:#1687f8;
  --blue-dark:#0758b8;
  --blue-soft:#eaf6ff;
  --blue-pale:#f4faff;
  --text:#172033;
  --muted:#718096;
  --border:#e8edf3;
  --danger:#ef4444;
  --success:#16a34a;
  --white:#fff;
  --shadow:0 12px 35px rgba(22,135,248,.10);
  --radius:18px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.5;
}
button,input{font:inherit}
button{cursor:pointer}
a{text-decoration:none;color:inherit}
.container{width:min(1380px,calc(100% - 40px));margin:auto}

/* TOP BAR */
.topbar{
  background:linear-gradient(90deg,#eef8ff,#f8fcff);
  border-bottom:1px solid #edf3f8;
  color:#45617d;
  font-size:12px;
}
.topbar-inner{
  height:38px;display:flex;align-items:center;justify-content:space-between;gap:20px
}
.top-left,.top-right{display:flex;align-items:center;gap:22px}
.top-item{display:flex;align-items:center;gap:7px}
.top-item strong{color:var(--blue-dark)}
.social-mini{display:flex;gap:12px;color:#4b6b89}

/* HEADER */
.header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(15px);
  border-bottom:1px solid rgba(230,236,243,.9);
}
.header-main{
  min-height:78px;display:flex;align-items:center;gap:28px
}
.logo{display:flex;align-items:center;gap:10px;min-width:175px}
.logo-mark{
  width:38px;height:42px;border-radius:11px 11px 14px 14px;
  background:linear-gradient(145deg,#4cb5ff,#0875df);
  display:grid;place-items:center;color:white;font-size:21px;
  box-shadow:0 7px 16px rgba(22,135,248,.25)
}
.logo-text{font-size:22px;font-weight:800;color:#0758b8;letter-spacing:-.7px}
.logo-text small{display:block;font-size:8px;letter-spacing:.5px;color:#7b91a7;font-weight:600}

.search{
  flex:1;max-width:620px;display:flex;height:46px;
  background:#f4f7fa;border:1px solid #e6ebf1;border-radius:13px;overflow:hidden
}
.search input{
  flex:1;border:0;outline:0;background:transparent;padding:0 17px;color:var(--text)
}
.search button{
  width:54px;border:0;background:var(--blue);color:white;font-size:18px
}
.header-actions{display:flex;align-items:center;gap:20px}
.action{
  position:relative;border:0;background:none;color:#25364a;display:flex;
  flex-direction:column;align-items:center;gap:2px;font-size:11px
}
.action .icon{font-size:21px;line-height:1}
.action-cart {
  flex-direction: row !important;
  align-items: center !important;
  background: var(--blue-soft) !important;
  padding: 8px 14px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  color: var(--blue-dark) !important;
  gap: 8px !important;
  transition: all 0.2s ease;
  border: 1px solid #d0e8ff !important;
}
.action-cart:hover {
  background: #d8eeff !important;
  transform: translateY(-1px);
}
.badge-blue {
  background: var(--blue) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px rgba(22, 135, 248, 0.3);
}
.badge{
  position:absolute;top:-5px;right:1px;min-width:17px;height:17px;
  padding:0 5px;border-radius:20px;background:#ef4444;color:#fff;font-size:9px;
  display:grid;place-items:center;border:2px solid white
}
.auth-buttons{display:flex;gap:8px}
.btn{
  border:0;border-radius:10px;padding:11px 18px;font-weight:700;
  transition:.2s ease;display:inline-flex;align-items:center;justify-content:center;gap:8px
}
.btn-primary{background:var(--blue);color:white;box-shadow:0 8px 18px rgba(22,135,248,.18)}
.btn-primary:hover{background:#0879e8;transform:translateY(-1px)}
.btn-outline{background:#fff;border:1px solid var(--blue);color:var(--blue)}
.btn-light{background:#eaf5ff;color:#0764c9}
.btn-sm{padding:9px 14px;font-size:12px}

/* NAV */
.nav{
  border-top:1px solid #f2f4f7;
  background:#fff
}
.nav-inner{display:flex;align-items:center;gap:28px;height:50px}
.category-btn{
  background:var(--blue);color:white;border:0;border-radius:8px;padding:10px 18px;
  font-weight:700
}
.nav-links{display:flex;gap:28px;font-size:13px;font-weight:600}
.nav-links a{position:relative;padding:15px 0}
.nav-links a:hover{color:var(--blue)}
.nav-links a.active{color:var(--blue)}
.nav-links a.active:after{
  content:"";position:absolute;left:0;right:0;bottom:5px;height:2px;background:var(--blue);border-radius:2px
}

/* HERO */
.hero{padding:14px 0 0}
.hero-slider{
  position:relative;overflow:hidden;border-radius:18px;
  min-height:350px;background:linear-gradient(110deg,#dff2ff,#bfe4ff);
}
.slide{
  display:none;min-height:350px;padding:55px 7%;
  align-items:center;position:relative;overflow:hidden
}
.slide.active{display:flex}
.slide-content{width:52%;position:relative;z-index:2}
.slide-kicker{color:#176ab6;font-size:16px;font-weight:700;letter-spacing:.5px}
.slide h1{
  font-family:Georgia,serif;font-size:48px;line-height:1.05;
  color:#0758b8;margin:6px 0 14px;letter-spacing:-1.5px
}
.slide p{max-width:470px;color:#31597c;margin-bottom:22px}
.slide-art{
  position:absolute;right:2%;bottom:0;width:50%;height:100%;
  display:flex;align-items:end;justify-content:center
}
.slide-art img{width:100%;height:100%;object-fit:cover;object-position:center;border-radius:0}
.discount{
  position:absolute;right:39%;top:31%;z-index:3;
  width:84px;height:84px;border-radius:50%;background:#1168bd;color:#fff;
  display:grid;place-items:center;text-align:center;font-weight:800;font-size:14px;
  box-shadow:0 8px 22px rgba(7,88,184,.25)
}
.slider-control{
  position:absolute;top:50%;transform:translateY(-50%);z-index:5;
  width:38px;height:38px;border-radius:50%;border:0;background:#fff;color:#126ac4;
  box-shadow:0 5px 15px rgba(0,0,0,.08);font-size:18px
}
.slider-prev{left:12px}.slider-next{right:12px}
.dots{position:absolute;bottom:13px;left:50%;transform:translateX(-50%);display:flex;gap:7px;z-index:5}
.dot{width:8px;height:8px;border:0;border-radius:50%;background:#b4d8f6}
.dot.active{background:#0879e8;width:23px;border-radius:8px}

/* TRUST */
.trust{padding:16px 0 5px}
.trust-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.trust-card{display:flex;align-items:center;gap:9px;padding:9px 8px}
.trust-icon{
  width:34px;height:34px;border-radius:10px;background:#eaf6ff;color:var(--blue);
  display:grid;place-items:center;flex:none
}
.trust-card strong{font-size:11px;display:block}
.trust-card span{font-size:9px;color:var(--muted);display:block}

/* SECTION */
.section{padding:27px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:18px}
.section-title{font-size:23px;letter-spacing:-.5px}
.section-sub{font-size:12px;color:var(--muted);margin-top:3px}
.see-all{font-size:12px;color:var(--blue);font-weight:700}

/* CATEGORIES */
.categories{display:grid;grid-template-columns:repeat(10,1fr);gap:14px}
.category-card{text-align:center;font-size:12px;font-weight:600}
.category-image{
  width:78px;height:78px;margin:0 auto 8px;border-radius:50%;overflow:hidden;
  background:#f2f6fa;display:grid;place-items:center;transition:.25s
}
.category-image img{width:100%;height:100%;object-fit:cover}
.category-card:hover .category-image{transform:translateY(-5px);box-shadow:0 10px 25px rgba(22,135,248,.15)}

/* PROMO */
.promo-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.promo{
  min-height:190px;border-radius:16px;overflow:hidden;position:relative;
  background:#dff2ff;padding:28px
}
.promo.blue{background:linear-gradient(110deg,#1186ee,#bde5ff);color:#fff}
.promo.light{background:linear-gradient(110deg,#e8f7ff,#d4edff)}
.promo h3{font-family:Georgia,serif;font-size:27px;color:#0758b8;max-width:290px;line-height:1.05;margin:5px 0 10px}
.promo.blue h3,.promo.blue .promo-kicker{color:#fff}
.promo-kicker{font-family:Georgia,serif;color:#0758b8;font-size:14px}
.promo p{font-size:12px;max-width:300px;color:#38617e;margin-bottom:13px}
.promo.blue p{color:#eaf6ff}
.promo-art{position:absolute;right:0;bottom:0;width:50%;height:100%;overflow:hidden}
.promo-art img{width:100%;height:100%;object-fit:cover}

/* PRODUCTS */
.product-tabs{display:flex;gap:24px}
.tab{
  border:0;background:none;font-size:12px;font-weight:700;color:#8290a0;
  padding:0 0 7px;border-bottom:2px solid transparent
}
.tab.active{color:#0758b8;border-color:#0758b8}
.products{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}
.product{
  border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#fff;
  transition:.25s;position:relative
}
.product:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.product-image{height:235px;background:#f4f7fa;position:relative;overflow:hidden}
.product-image img{width:100%;height:100%;object-fit:cover;transition:.35s}
.product:hover .product-image img{transform:scale(1.035)}
.product-badge{
  position:absolute;top:10px;left:10px;background:#ef4444;color:#fff;
  padding:4px 7px;border-radius:5px;font-size:9px;font-weight:800
}
.product-badge.new{background:#16a34a}
.wishlist{
  position:absolute;top:9px;right:9px;width:32px;height:32px;border:0;
  background:rgba(255,255,255,.94);border-radius:50%;color:#6c7b8c;font-size:16px;
  display:flex;align-items:center;justify-content:center;line-height:1;padding:0;
  box-shadow:0 4px 10px rgba(0,0,0,0.1)
}
.wishlist.active{color:#ef4444}

/* LIGHTBOX MODAL (IMAGE VIEWER OVERLAY) */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-modal.active {
  display: flex !important;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.4);
}

.product-info{padding:12px}
.product-name{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rating{font-size:10px;color:#f59e0b;margin:5px 0}
.rating span{color:#718096}
.price{font-size:15px;font-weight:800;color:#ed3f3f}
.old-price{font-size:10px;text-decoration:line-through;color:#9aa7b4;margin-left:5px}
.product-actions{display:flex;gap:7px;margin-top:10px}
.cart-btn{flex:1;border:0;background:#0e8bf1;color:white;border-radius:8px;padding:8px;font-size:11px;font-weight:700}
.quick-btn{width:35px;border:1px solid #dce8f2;background:white;border-radius:8px;color:#167dd6}

/* COLOR SWATCHES & SIZE CHOICE BUTTONS */
.color-swatch-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  position: relative;
  display: inline-block;
}
.color-swatch-btn:hover {
  transform: scale(1.15);
  border-color: var(--blue);
}
.color-swatch-btn.active {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 4px rgba(22, 135, 248, 0.3);
  transform: scale(1.12);
}

.btn-size-choice {
  min-width: 52px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.btn-size-choice:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-2px);
}
.btn-size-choice.active {
  border-color: var(--blue) !important;
  background: var(--blue) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(22, 135, 248, 0.35);
  transform: translateY(-1px);
}
.btn-size-choice.disabled-size,
.btn-size-choice:disabled {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #cbd5e1 !important;
  cursor: not-allowed !important;
  opacity: 0.65;
  text-decoration: line-through;
  transform: none !important;
  box-shadow: none !important;
}


/* FEATURE BANNER */
.feature-grid{display:grid;grid-template-columns:2fr 1fr;gap:14px}
.feature-main{
  min-height:310px;border-radius:16px;overflow:hidden;position:relative;
  background:linear-gradient(105deg,#e0f3ff,#b8e0ff)
}
.feature-main img{position:absolute;right:0;bottom:0;width:57%;height:100%;object-fit:cover}
.feature-content{position:relative;z-index:2;padding:45px 34px;width:55%}
.feature-content h2{font:34px/1.05 Georgia,serif;color:#0758b8;margin:5px 0 13px}
.feature-content p{font-size:12px;color:#39617f;max-width:280px;margin-bottom:17px}
.feature-side{display:grid;grid-template-rows:1fr 1fr;gap:14px}
.small-banner{border-radius:16px;overflow:hidden;position:relative;padding:22px;background:#e8f6ff}
.small-banner.pink{background:#fff1f5}
.small-banner h4{font-family:Georgia,serif;color:#0758b8;font-size:18px;max-width:55%}
.small-banner p{font-size:11px;color:#54718b;margin:4px 0 8px}
.small-banner img{position:absolute;right:0;bottom:0;width:48%;height:100%;object-fit:cover}

/* NEWSLETTER */
.newsletter{
  margin:30px 0 0;border-radius:16px;padding:27px 35px;
  background:linear-gradient(100deg,#1590fa,#74c7ff);color:white;
  display:flex;align-items:center;justify-content:space-between;gap:25px
}
.newsletter-title{display:flex;align-items:center;gap:15px}
.newsletter-icon{font-size:35px}
.newsletter h3{font-size:19px}.newsletter p{font-size:11px;color:#e7f6ff}
.newsletter-form{display:flex;background:white;border-radius:9px;overflow:hidden;width:min(420px,100%)}
.newsletter-form input{flex:1;border:0;outline:0;padding:12px 14px;font-size:12px}
.newsletter-form button{border:0;background:#0758b8;color:#fff;padding:0 17px;font-weight:700;font-size:11px}

/* FOOTER */
.footer{margin-top:45px;background:#f8fbfe;border-top:1px solid #e9f0f6}
.footer-main{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:40px;padding:38px 0}
.footer-brand p{font-size:11px;color:#718096;max-width:290px;margin:10px 0 15px}
.footer h4{font-size:12px;margin-bottom:12px}
.footer ul{list-style:none;display:grid;gap:7px}
.footer li,.footer li a{font-size:11px;color:#718096}
.footer li a:hover{color:var(--blue)}
.app-badges{display:flex;gap:8px;margin-top:10px}
.app-badge{border:1px solid #d8e5ef;background:#fff;padding:7px 10px;border-radius:7px;font-size:10px;font-weight:700}
.footer-bottom{border-top:1px solid #e7eef5;padding:15px 0;display:flex;align-items:center;justify-content:space-between;color:#7b8998;font-size:10px}
.payment-logos{display:flex;gap:12px;font-weight:800;color:#426991}

/* TOAST */
.toast{
  position:fixed;right:25px;bottom:25px;z-index:99999;
  background:#111827;
  color:#ffffff;padding:16px 28px;border-radius:14px;
  box-shadow:0 15px 40px rgba(0,0,0,.4);font-size:14px;font-weight:700;
  border:1px solid rgba(255,255,255,.15);backdrop-filter:blur(10px);
  min-width:240px;max-width:420px;
  opacity:0;transform:translateY(20px);pointer-events:none;transition:all .25s ease
}
.toast.show{opacity:1;transform:translateY(0)}

/* MOBILE */
.mobile-menu{display:none;border:0;background:none;font-size:23px;color:#0758b8}
@media(max-width:1100px){
  .categories{grid-template-columns:repeat(5,1fr)}
  .trust-grid{grid-template-columns:repeat(3,1fr)}
  .products{grid-template-columns:repeat(4,1fr)}
  .product:nth-child(5){display:none}
}
@media(max-width:820px){
  .top-left .top-item:nth-child(2),.top-left .top-item:nth-child(3){display:none}
  .header-main{gap:12px}
  .mobile-menu{display:block}
  .logo{min-width:auto}
  .search{order:3;flex-basis:100%;max-width:none}
  .header-main{flex-wrap:wrap;padding:12px 0}
  .header-actions .action:nth-child(1),.auth-buttons{display:none}
  .nav{display:none}
  .slide{min-height:320px;padding:35px 25px}
  .slide-content{width:58%}
  .slide h1{font-size:34px}
  .slide-art{width:53%;opacity:.85}
  .discount{right:35%;top:27%;transform:scale(.8)}
  .products{grid-template-columns:repeat(2,1fr)}
  .product-image{height:240px}
  .feature-grid{grid-template-columns:1fr}
  .feature-side{grid-template-columns:1fr 1fr;grid-template-rows:1fr}
  .footer-main{grid-template-columns:1fr 1fr}
  .newsletter{flex-direction:column;align-items:flex-start}
  .newsletter-form{width:100%}
}
@media(max-width:520px){
  .container{width:min(100% - 24px,1380px)}
  .topbar{display:none}
  .header-main{min-height:auto}
  .logo-text{font-size:19px}
  .header-actions{margin-left:auto}
  .hero{padding-top:8px}
  .slide{min-height:330px;padding:30px 22px}
  .slide-content{width:100%;z-index:3}
  .slide h1{font-size:31px;max-width:250px}
  .slide p{font-size:11px;max-width:245px}
  .slide-art{width:100%;opacity:.22}
  .discount{right:14%;top:23%}
  .trust-grid{grid-template-columns:repeat(2,1fr)}
  .trust-card:nth-child(n+5){display:none}
  .categories{grid-template-columns:repeat(5,1fr);gap:13px 7px}
  .category-image{width:58px;height:58px}
  .category-card{font-size:9px}
  .section{padding:20px 0}
  .section-title{font-size:19px}
  .product-tabs{gap:13px}
  .tab{font-size:10px}
  .product-image{height:205px}
  .product-info{padding:9px}
  .price{font-size:13px}
  .old-price{font-size:8px}
  .promo-grid{grid-template-columns:1fr}
  .promo{min-height:170px}
  .feature-main{min-height:290px}
  .feature-content{width:75%;padding:30px 24px}
  .feature-content h2{font-size:28px}
  .feature-main img{width:70%;opacity:.45}
  .feature-side{grid-template-columns:1fr;grid-template-rows:1fr 1fr}
  .footer-main{grid-template-columns:1fr 1fr;gap:25px}
  .footer-brand{grid-column:1/-1}
  .footer-bottom{flex-direction:column;gap:8px;text-align:center}
  .newsletter{padding:22px}
}

/* PAGE LOADER OVERLAY */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-spinner {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.loader-mark {
  font-size: 26px;
  animation: loaderPulse 1.4s infinite ease-in-out;
}
.spinner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid #e0f2fe;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: loaderSpin 0.75s linear infinite;
}
.loader-text {
  font-size: 15px;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -0.3px;
}

@keyframes loaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}