:root{
  --bg: #f8fafc;
  --panel: #ffffff;
  --card: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(0,0,0,.10);
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --white: #ffffff;
}

*{ box-sizing:border-box; }
html{ height:100%; }
body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: radial-gradient(1200px 800px at 15% 10%, rgba(37,99,235,.08), transparent 55%),
              radial-gradient(900px 600px at 75% 20%, rgba(99,102,241,.06), transparent 55%),
              var(--bg);
}

a{ color:inherit; text-decoration:none; }
.container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header{
  position: sticky;
  top:0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(248,250,252,.90);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .5px;
}
.logo-img{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0,0,0,.05);
  border: 1px solid var(--line);
  object-fit: cover;
}
.logo-text{ font-size: 14px; }

.nav{
  display:flex;
  gap: 18px;
  align-items:center;
}
.nav-link{
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-link:hover{ background: rgba(0,0,0,.05); color: var(--text); }
.nav-link.is-active{ color: var(--text); background: rgba(0,0,0,.05); }
.nav-cart{ border: 1px solid var(--line); }

.header-actions{
  display:flex;
  gap: 10px;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor:pointer;
}
.btn-lg{ padding: 12px 16px; border-radius: 14px; }
.btn-block{ width:100%; }
.btn-primary{
  background: var(--primary);
  border-color: rgba(0,0,0,.10);
}
.btn-primary:hover{ background: var(--primary-hover); }
.btn-ghost{
  background: rgba(0,0,0,.05);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover{ background: rgba(0,0,0,.08); }

.hero{
  padding: 56px 0 24px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: start;
}
.eyebrow{
  color: rgba(15,23,42,.55);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 10px;
}
.hero-title{
  margin: 0;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero-subtitle{
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 54ch;
}
.hero-cta{ display:flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.trust-row{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.trust-item{
  display:flex;
  gap: 8px;
  align-items:center;
  color: rgba(15,23,42,.70);
  font-weight: 650;
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 12px;
}
.trust-icon{
  width: 18px; height: 18px;
  display:inline-flex;
  align-items:center; justify-content:center;
  border-radius: 6px;
  background: rgba(37,99,235,.25);
  border: 1px solid rgba(37,99,235,.35);
}

.hero-card .card{
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.card-title{ margin: 0 0 6px; font-size: 18px; }
.card-subtitle{ margin: 0 0 14px; color: var(--muted); font-size: 14px; }

.search-form{ display:grid; gap: 12px; }
.field{ display:grid; gap: 6px; }
.field-label{ font-size: 12px; color: rgba(15,23,42,.65); font-weight: 700; }
.input{
  width: 100%;
  background: rgba(0,0,0,.05);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
}
.input:focus{
  border-color: rgba(37,99,235,.6);
  box-shadow: 0 0 0 3px rgba(37,99,235,.22);
}
.hint{
  margin: 0;
  color: rgba(100,116,139,.85);
  font-size: 12px;
}

.feature-strip{
  padding: 14px 0 10px;
}
.feature-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature{
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.feature h3{ margin: 0 0 6px; font-size: 14px; }
.feature p{ margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

main{ flex:1; }
.section{ padding: 34px 0 60px; flex:1; }
.section-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2{ margin:0; font-size: 22px; }
.text-link{ color: rgba(15,23,42,.70); font-weight: 700; }
.text-link:hover{ text-decoration: underline; }

.cards-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.product-card{
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .15s ease, background .15s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover{
  transform: translateY(-2px);
  background: rgba(0,0,0,.05);
}
.product-img{
  height: 150px;
  border-bottom: 1px solid var(--line);
}
.product-img.placeholder{
  background: linear-gradient(130deg, rgba(0,0,0,.07), rgba(37,99,235,.18));
}
.product-body{ padding: 14px; display:flex; flex-direction:column; flex-grow:1; }
.product-body h3{ margin:0 0 6px; font-size: 16px; }
.product-body p{ margin:0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Pagination */
.pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  margin-top:40px;
  flex-wrap:wrap;
}
.page-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  height:38px;
  padding:0 12px;
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--text);
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:background .15s, border-color .15s;
}
.page-btn:hover:not(.page-btn-active):not(.page-btn-disabled){
  background:rgba(0,0,0,.07);
  border-color:rgba(0,0,0,.12);
}
.page-btn-active{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
  pointer-events:none;
}
.page-btn-disabled{
  opacity:.35;
  pointer-events:none;
}
.page-btn-dots{
  border-color:transparent;
  background:transparent;
  pointer-events:none;
  color:var(--muted);
}

.section-dark{
  background: rgba(0,0,0,.03);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}
.muted{ color: var(--muted); }
.cta-row{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

.stats{
  display:grid;
  gap: 12px;
}
.stat{
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.stat-number{
  font-size: 22px;
  font-weight: 900;
}
.stat-label{
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.site-footer{
  padding: 26px 0 18px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.footer-brand{ font-weight: 900; letter-spacing: .06em; }
.footer-title{ font-weight: 800; margin-bottom: 8px; }
.footer-link{
  display:block;
  color: var(--muted);
  margin: 6px 0;
}
.footer-link:hover{ color: var(--text); }
.footer-bottom{
  padding-top: 12px;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 920px){
  .hero-inner{ grid-template-columns: 1fr; }
  .feature-grid{ grid-template-columns: 1fr; }
  .cards-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .nav{ display:none; } /* keep it simple for now */
}

/* Mobile nav */
.nav-toggle{
  display:none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.05);
  cursor:pointer;

  display:flex;
  flex-direction: column;   /* IMPORTANT */
  justify-content: center;
  align-items: center;
  gap: 5px;                  /* space between lines */
}

.nav-toggle:hover{
  background: rgba(0,0,0,.08);
}

.nav-toggle-bar{
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s ease;
}

.nav-desktop{ display:flex; }

.nav-mobile{
  display:none;
  border-top: 1px solid var(--line);
  background: rgba(248,250,252,.96);
  backdrop-filter: blur(12px);
  overflow: hidden;
  max-height: 0;
  transition: max-height .22s ease;
}
.nav-mobile .nav-link{
  display:block;
  padding: 12px 10px;
  border-radius: 0;
  color: var(--muted);
}
.nav-mobile .nav-link:hover{
  background: rgba(0,0,0,.05);
  color: var(--text);
}

.site-header.is-open .nav-mobile{
  display:block;
  max-height: 320px; /* enough for links */
}

/* Account page */
.account-grid{
  display:grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 16px;
}

.account-card{
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.account-avatar{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 22px;
  background: rgba(37,99,235,.18);
  border: 1px solid rgba(37,99,235,.35);
  margin-bottom: 10px;
}

.account-name{ margin: 0 0 4px; font-size: 18px; }
.account-muted{ margin: 0; color: var(--muted); font-size: 13px; }

.pill-row{ margin-top: 10px; display:flex; flex-wrap:wrap; gap: 8px; }
.pill{
  font-size: 12px;
  color: rgba(15,23,42,.75);
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 999px;
}

.account-actions{ margin-top: 14px; display:grid; gap: 10px; }

.account-panel{
  background: rgba(248,250,252,.85);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.panel-head h3{ margin: 0 0 6px; font-size: 18px; }
.panel-head p{ margin: 0 0 12px; }

.settings-form{ display:grid; gap: 14px; }
.form-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.field-full{ grid-column: 1 / -1; }

.panel-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

.divider{
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.security-grid{
  display:grid;
  gap: 12px;
}
.security-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.security-title{
  font-weight: 850;
  margin-bottom: 4px;
}

@media (max-width: 920px){
  .account-grid{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
}

/* Responsive override */
@media (max-width: 920px){
  .nav{ display:none; } /* your original rule */
  .nav-desktop{ display:none; }
  .nav-toggle{ display:inline-flex; }
}

/* ===== FIX mobile header layout ===== */
@media (max-width: 920px){
  .header-inner{
    gap: 10px;
  }

  /* keep actions on the right, but toggle is LEFT of Sign in */
  .header-actions{
    margin-left: auto;
    display:flex;
    align-items:center;
    gap: 10px;
  }

  /* fix weird button look */
  .btn{
    padding: 10px 12px;
    border-radius: 14px;
    line-height: 1;
    white-space: nowrap;
  }

  /* hamburger should look compact */
  .nav-toggle{
    width: 40px;
    height: 40px;
    border-radius: 12px;
    padding: 0;
  }
}

/* ===== Admin Panel ===== */
.admin-alert{
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.3);
  color: #059669;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-weight: 600;
}

.admin-table-wrap{
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.admin-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table thead{
  background: rgba(0,0,0,.04);
  border-bottom: 1px solid var(--line);
}

.admin-table th{
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.admin-table td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td{
  border-bottom: none;
}

.admin-table tbody tr:hover{
  background: rgba(0,0,0,.03);
}

.admin-actions{
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-danger{
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.3);
  color: #dc2626;
}
.btn-danger:hover{
  background: rgba(239,68,68,.22);
}

.pill-green{
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.3);
  color: #059669;
}
.pill-muted{
  background: rgba(0,0,0,.04);
  border-color: var(--line);
  color: var(--muted);
}

/* ===== Photo upload zone ===== */
.upload-zone{
  border: 2px dashed var(--line);
  border-radius: 16px;
  padding: 20px;
  transition: border-color .2s;
}
.upload-zone:focus-within{
  border-color: rgba(37,99,235,.5);
}

.upload-input{
  /* visually hidden but still accessible/tappable via the label */
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.upload-label{
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}

.upload-icon{
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(37,99,235,.12);
  border: 1px solid rgba(37,99,235,.25);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-text{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.upload-title{
  font-weight: 700;
  font-size: 15px;
}
.upload-hint{
  font-size: 13px;
  color: var(--muted);
}

.upload-preview-wrap{
  display: flex;
}
.upload-preview-img{
  width: 100%;
  max-width: 340px;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.04);
}

/* ===== Admin thumbnails in table ===== */
.admin-thumb-wrap{
  width: 56px;
  height: 44px;
}
.admin-thumb{
  width: 56px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.admin-thumb-placeholder{
  width: 56px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(130deg, rgba(0,0,0,.05), rgba(37,99,235,.10));
  border: 1px solid var(--line);
}

/* ===== Product image fill ===== */
.product-img-fill{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Toast notification ===== */
.toast{
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.4);
  color: #059669;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 100;
  pointer-events: none;
}
.toast.toast-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ===== Cart badge on nav ===== */
.cart-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  margin-left: 4px;
}

/* ===== Cart page ===== */
.cart-grid{
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}

.cart-items-col{
  display: grid;
  gap: 12px;
}

.cart-item{
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.cart-thumb{
  flex-shrink: 0;
  width: 80px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.cart-thumb.placeholder{
  background: linear-gradient(130deg, rgba(0,0,0,.07), rgba(37,99,235,.18));
}
.cart-thumb-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info{
  flex: 1;
  min-width: 0;
}
.cart-item-name{
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quantity controls */
.qty-form{ flex-shrink: 0; }
.qty-controls{
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 6px;
}
.qty-btn{
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.qty-btn:hover{ background: rgba(0,0,0,.08); }
.qty-input{
  width: 38px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button{ -webkit-appearance: none; margin: 0; }

.cart-item-right{
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cart-item-subtotal{
  margin: 0;
  font-weight: 900;
  font-size: 16px;
}
.btn-remove{
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 6px;
}
.btn-remove:hover{ color: #dc2626; background: rgba(239,68,68,.1); }

/* Cart / Order summary panel */
.cart-summary{
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  overflow: hidden;
}
.summary-title{
  margin: 0 0 14px;
  font-size: 17px;
}
.summary-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
}
.summary-total{
  font-weight: 900;
  font-size: 17px;
}
.summary-divider{
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

@media (max-width: 760px){
  .cart-grid{ grid-template-columns: 1fr; }
  .cart-item{ flex-wrap: wrap; }
}

/* ===== Checkout page ===== */
.checkout-steps{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13px;
}
.step{ color: var(--muted); font-weight: 600; }
.step.is-done{ color: rgba(15,23,42,.45); }
.step.is-active{ color: var(--text); font-weight: 800; }
.step-sep{ color: var(--muted); }

.checkout-grid{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: start;
}

.co-section{
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
}
.co-section-title{
  margin: 0 0 16px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.co-step-num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

/* Shipping options */
.shipping-placeholder,
.shipping-loading{
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.shipping-options{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shipping-option-row{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.shipping-option-row:hover{ background: rgba(0,0,0,.04); }
.shipping-option-row.is-selected{
  border-color: rgba(37,99,235,.6);
  background: rgba(37,99,235,.08);
}
.shipping-option-info{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.shipping-option-name{ font-weight: 700; font-size: 14px; }
.shipping-option-days{ font-size: 12px; }
.shipping-option-price{ font-weight: 900; font-size: 15px; white-space: nowrap; }

/* Spinner */
.spinner{
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* Payment card logos */
.card-logos{
  display: flex;
  gap: 10px;
  align-items: center;
}
.card-logo{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0,0,0,.04);
  opacity: .4;
  transition: opacity .2s, border-color .2s;
}
.card-logo.is-active{
  opacity: 1;
  border-color: rgba(37,99,235,.6);
  background: rgba(37,99,235,.08);
}
.visa-logo{ font-weight: 900; font-size: 16px; letter-spacing: .04em; color: #4b6cb7; }
.mc-logo{ gap: 4px; }
.mc-circle{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
}
.mc-red   { background: rgba(235,0,27,.85); }
.mc-orange{ background: rgba(255,95,0,.85); margin-left: -10px; }

.card-num-input{ letter-spacing: .1em; font-family: monospace; font-size: 16px; }

/* Checkout order summary mini items */
.co-item-list{ display: grid; gap: 10px; margin-bottom: 4px; }
.co-item{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.co-item-thumb{
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: visible;
}
.co-item-thumb.placeholder{
  background: linear-gradient(130deg, rgba(0,0,0,.07), rgba(37,99,235,.18));
}
.co-item-thumb-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.co-item-qty-badge{
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.co-item-name{
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-item-price{
  flex-shrink: 0;
  font-weight: 700;
  font-size: 13px;
}

@media (max-width: 900px){
  .checkout-grid{ grid-template-columns: 1fr; }
}

/* ===== Order success page ===== */
.success-card{
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
}
.success-icon{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16,185,129,.15);
  border: 2px solid rgba(16,185,129,.4);
  color: #059669;
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.success-title{
  margin: 0 0 8px;
  font-size: 26px;
}
.success-subtitle{
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}
.success-ref-box{
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin: 0 0 12px;
}
.success-ref{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--primary);
}
.success-steps{
  text-align: left;
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.success-step{
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.success-step-icon{
  font-size: 22px;
  flex-shrink: 0;
  width: 38px;
  text-align: center;
}
.success-step p{
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

/* ===== Empty state ===== */
.empty-state{
  text-align: center;
  padding: 48px 0;
}

/* ── Headlights filter form ── */
.hl-filter-form{
  width: 100%;
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.hl-filter-row{
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 860px) {
  .hl-filter-row{ flex-direction: column; }
  .hl-filter-row .hp-search-div{ width: auto; height: 1px; }
  .hl-filter-row .hp-search-btn{ border-radius: 0 0 12px 12px; border-left: none; border-top: 1px solid rgba(37,99,235,.3); padding: 14px; }
}

/* ── Filter bar (headlights page) ── */
.filter-bar{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 18px;
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.22);
  border-radius: 14px;
}
.filter-bar-label{
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.filter-bar-clear{
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.filter-bar-clear:hover{ color: var(--text); background: rgba(0,0,0,.05); }

/* ── Inactive/disabled dropdown style (home search) ── */
.hp-select-inactive{
  opacity: .45;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   HOME PAGE  (hp-* prefix)
═══════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.hp-hero{
  padding: 88px 0 72px;
  text-align: center;
}
.hp-hero-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hp-badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.35);
  background: rgba(37,99,235,.10);
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hp-title{
  margin: 0 0 18px;
  font-size: 62px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
  background: linear-gradient(160deg, var(--text) 55%, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hp-sub{
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 50ch;
}
.hp-cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 38px;
}

/* ── Inline vehicle search card ── */
.hp-search-card{
  width: 100%;
  max-width: 680px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,.12), 0 0 0 1px rgba(37,99,235,.10);
  backdrop-filter: blur(16px);
}
.hp-search-label{
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  text-align: left;
}
.hp-search-row{
  display: flex;
  align-items: stretch;
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.hp-search-field{
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 11px 16px;
  min-width: 0;
}
.hp-search-fl{
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.hp-search-select{
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.hp-search-select option{ background: #ffffff; }
.hp-search-div{
  width: 1px;
  background: var(--line);
  flex-shrink: 0;
  align-self: stretch;
}
.hp-search-btn{
  border-radius: 0 12px 12px 0;
  padding: 0 24px;
  flex-shrink: 0;
  border: none;
  border-left: 1px solid rgba(37,99,235,.3);
}

/* ── Trust bar ── */
.hp-trust-bar{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.02);
  padding: 16px 0;
}
.hp-trust-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.hp-trust-item{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 28px;
}
.hp-trust-icon{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37,99,235,.18);
  border: 1px solid rgba(37,99,235,.35);
  color: #2563eb;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
}
.hp-trust-sep{
  width: 1px;
  height: 20px;
  background: var(--line);
  flex-shrink: 0;
}

/* ── Generic home section ── */
.hp-section{ padding: 72px 0; }
.hp-section-alt{
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hp-eyebrow{
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hp-title2{
  margin: 0 0 40px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── Feature cards ── */
.hp-features{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hp-feat-card{
  background: rgba(0,0,0,.04);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  transition: background .2s, border-color .2s, transform .2s;
}
.hp-feat-card:hover{
  background: rgba(0,0,0,.06);
  border-color: rgba(37,99,235,.32);
  transform: translateY(-3px);
}
.hp-feat-icon{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(37,99,235,.14);
  border: 1px solid rgba(37,99,235,.28);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.hp-feat-title{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
}
.hp-feat-desc{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Popular picks ── */
.hp-picks-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.hp-picks-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hp-pick-card{
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.hp-pick-card:hover{
  border-color: rgba(37,99,235,.38);
  transform: translateY(-3px);
}
.hp-pick-img{
  height: 164px;
  background: #e2e8f0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.hp-pick-badge{
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(37,99,235,.28);
  border: 1px solid rgba(37,99,235,.5);
  color: #2563eb;
}
.hp-pick-body{ padding: 18px; }
.hp-pick-title{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
}
.hp-pick-desc{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.hp-pick-link{
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
}

/* ── Stats bar ── */
.hp-stats-bar{
  padding: 38px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hp-stats-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.hp-stat{
  text-align: center;
  padding: 10px 48px;
}
.hp-stat-num{
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
  background: linear-gradient(130deg, var(--text), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hp-stat-label{
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.hp-stats-sep{
  width: 1px;
  height: 40px;
  background: var(--line);
  flex-shrink: 0;
}

/* ── CTA banner ── */
.hp-cta-box{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--card);
  border: 1px solid rgba(37,99,235,.28);
  border-radius: 24px;
  padding: 44px 52px;
}
.hp-cta-title{
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
  max-width: 32ch;
}
.hp-cta-sub{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 44ch;
}
.hp-cta-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Product card link ── */
.product-card-link{ display:block; }
.product-title-link{
  color: var(--text);
  text-decoration: none;
}
.product-title-link:hover{ color: var(--primary); }

/* ── Headlight detail page ── */
.breadcrumb{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.breadcrumb-sep{ color: var(--muted); }
.breadcrumb-current{ color: var(--text); }

.detail-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.detail-gallery{ display: flex; flex-direction: column; gap: 12px; }

/* Slider */
.detail-slider{
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.04);
}
.detail-slide{
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.detail-slide.is-visible{ display: flex; }
.detail-slide-placeholder{
  background: linear-gradient(130deg, rgba(0,0,0,.07), rgba(37,99,235,.18));
}
.detail-img-fill{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Arrow buttons */
.slider-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(0,0,0,.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .15s, opacity .15s;
  padding: 0;
}
.slider-arrow:hover{ background: rgba(0,0,0,.8); }
.slider-arrow:disabled{ opacity: .25; cursor: default; }
.slider-prev{ left: 10px; }
.slider-next{ right: 10px; }

/* Slide counter badge */
.slider-counter{
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
}

/* Thumbnails */
.detail-thumbs{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-thumb{
  width: 72px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: rgba(0,0,0,.04);
  cursor: pointer;
  padding: 0;
  transition: border-color .15s;
}
.detail-thumb:hover{ border-color: rgba(255,255,255,.3); }
.detail-thumb.is-active{ border-color: var(--primary); }
.detail-thumb-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Info panel */
.detail-title{
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}
.detail-subtitle{
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
}
.detail-price{
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
}

.detail-specs{
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.spec-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.spec-label{ color: var(--muted); }
.spec-value{ font-weight: 600; }

@media (max-width: 760px){
  .detail-grid{ grid-template-columns: 1fr; }
}

/* ── Home responsive ── */
@media (max-width: 920px){
  .hp-title{ font-size: 44px; }
  .hp-cta-box{ flex-direction: column; padding: 32px 26px; }
  .hp-cta-actions{ justify-content: flex-start; }
  .hp-stats-inner, .hp-trust-inner{ gap: 0; }
  .hp-stat{ padding: 10px 24px; }
  .hp-trust-item{ padding: 6px 16px; }
  .hp-picks-head{ flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px){
  .hp-hero{ padding: 60px 0 48px; }
  .hp-title{ font-size: 36px; }
  .hp-sub{ font-size: 15px; }
  .hp-features{ grid-template-columns: 1fr; }
  .hp-picks-grid{ grid-template-columns: 1fr; }
  .hp-search-row{ flex-direction: column; }
  .hp-search-div{ width: auto; height: 1px; }
  .hp-search-btn{ border-radius: 0 0 12px 12px; border-left: none; border-top: 1px solid rgba(37,99,235,.3); padding: 14px; }
  .hp-stats-sep, .hp-trust-sep{ display: none; }
  .hp-stats-inner{ display: grid; grid-template-columns: 1fr 1fr; }
  .hp-trust-inner{ display: grid; grid-template-columns: 1fr 1fr; }
}

/* ── Auth split layout (login / register page) ── */
.auth-split{
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 48px;
  align-items: start;
  padding: 8px 0 48px;
}
.auth-pane{
  display: flex;
  flex-direction: column;
}
.auth-title{
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}
.auth-sub{
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}
.auth-divider{
  background: var(--line);
  align-self: stretch;
}
.auth-form{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Alert banners */
.alert{
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.alert-error{
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.28);
  color: #dc2626;
}
.alert-success{
  background: rgba(16,185,129,.09);
  border: 1px solid rgba(16,185,129,.24);
  color: #059669;
}

@media (max-width: 640px){
  .auth-split{
    grid-template-columns: 1fr;
    gap: 32px 0;
  }
  .auth-divider{
    height: 1px;
    width: 100%;
  }
}

