:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f3f4f6;
  --line: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --primary: #1e3a5f;
  --primary-strong: #142b45;
  --primary-glow: rgba(30,58,95,.12);
  --accent: #1e3a5f;
  --accent-strong: #142b45;
  --accent-glow: rgba(30,58,95,.12);
  --brand-grad: none;
  --brand-grad-h: none;
  --topbar: #ffffff;
  --success: #15803d;
  --danger: #dc2626;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(17,24,39,.03), 0 1px 1px rgba(17,24,39,.02);
  --shadow: 0 12px 30px rgba(17,24,39,.06);
  --shadow-lg: 0 24px 60px rgba(17,24,39,.08);
  --container: 1360px;
  /* Legacy alias — maps old --color-* names to canonical vars */
  --color-text-primary: var(--text);
  --color-text-secondary: var(--muted);
  --color-text-muted: var(--muted);
  --color-border: var(--line);
  --color-bg-subtle: var(--surface);
  --color-bg-surface: var(--surface-2);
  --color-brand-primary: var(--primary);
  --color-brand-secondary: var(--accent);
}

html, body {
  font-family: Inter, Arial, sans-serif;
  background: #fff;
  color: var(--text);
}

body {
  letter-spacing: -0.01em;
}

.container {
  width: min(var(--container), calc(100% - 56px));
}

.utility-bar {
  background: #0B1F3A;
  color: #ffffff;
}
.utility-inner { min-height: 44px; }
.utility-pill {
  background: transparent;
  color: #ffffff;
  border: none;
  font-weight: 500;
}
.utility-right a { color: #ffffff; font-weight: 600; }

.store-header {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.ref-header-main {
  min-height: 88px;
  gap: 22px;
}
.site-text-logo {
  min-width: 180px;
  text-decoration: none;
}
.logo-wordmark {
  font-family: Inter, Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
}
.logo-t, .logo-m { color: var(--text) !important; }
.logo-tagline {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.ref-search-shell { max-width: 720px; }
.ref-search-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
}
.ref-search-form input {
  font-size: 15px;
  color: var(--text);
}
.ref-search-form button {
  min-width: 110px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.header-actions {
  gap: 10px;
}
.header-action {
  min-width: auto;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.header-action:hover {
  background: var(--surface);
  color: var(--primary);
}
.header-action-cta {
  background: var(--primary);
  color: #fff;
}
.header-action-cta:hover { background: var(--primary-strong); color: #fff; }
.header-action-icon {
  font-size: 12px;
  font-weight: 600;
}
.cart-badge {
  background: var(--danger);
  color: #fff;
}

.mega-nav {
  background: #fff;
  border-top: none;
  border-bottom: 1px solid var(--line);
}
.ref-nav-row {
  min-height: 56px;
  gap: 8px;
}
.ref-nav-link {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
  font-weight: 600;
}
.ref-nav-link:hover,
.mega-item.open > .ref-nav-link {
  background: var(--surface);
  color: var(--primary);
}
.mega-dropdown {
  border-top: 1px solid var(--line);
  border-radius: 0 0 22px 22px;
  box-shadow: var(--shadow-lg);
}

.page-header h1,
.auth-card h1,
.apple-product-copy h1 {
  letter-spacing: -0.05em;
}
.page-header h1,
.apple-page-header h1 {
  font-size: clamp(2.75rem, 4vw, 4.75rem);
  line-height: .95;
}
.page-header p,
.apple-page-header p { color: var(--muted); }

.panel,
.product-description-card,
.stat-card,
.order-card,
.support-link,
.empty-state,
.ref-product-gallery-main,
.auth-card,
.checkout-summary-card,
.apple-order-summary,
.apple-delivery-panel,
.compact-panel {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 24px;
}

.btn,
.btn-dark,
.btn-accent {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  box-shadow: none;
  font-weight: 600;
}
.btn:hover,
.btn-dark:hover,
.btn-accent:hover {
  background: var(--primary-strong);
  box-shadow: none;
  transform: translateY(-1px);
}
.btn-light {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--line);
}
.btn-light:hover {
  background: var(--surface);
  color: var(--primary);
}

input,
select,
textarea {
  font-family: Inter, Arial, sans-serif;
  border-radius: 16px !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--text) !important;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(30,58,95,.08) !important;
}
label {
  color: var(--text);
  font-weight: 600;
}
.muted,
.rating-count,
.tax-note,
.product-short-copy,
.field-help,
.summary-row span,
.auth-demo-note {
  color: var(--muted) !important;
}
.flash {
  width: min(var(--container), calc(100% - 56px));
  margin: 18px auto 0;
  border-radius: 16px;
}

.apple-product-wrap { padding-top: 8px; }
.apple-breadcrumb { margin-bottom: 22px; }
.apple-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: 34px;
  align-items: start;
}
.apple-gallery-sticky,
.apple-copy-sticky {
  position: sticky;
  top: 138px;
}
.apple-main-frame {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
}
.apple-main-frame img {
  width: 100%;
  max-height: 580px;
  object-fit: contain;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  color: var(--primary);
  font-size: 26px;
  line-height: 1;
}
.gallery-nav-prev { left: 18px; }
.gallery-nav-next { right: 18px; }
.apple-thumb-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.apple-thumb {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  background: #fff;
}
.apple-thumb.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(30,58,95,.08);
}
.apple-thumb img {
  width: 100%;
  height: 84px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
}
.apple-product-copy h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: .95;
}
.apple-product-kicker {
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.apple-rating-row,
.apple-price-meta,
.panel-heading-row,
.apple-inline-form {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.rating-pill {
  border-radius: 999px;
  background: var(--success);
  color: #fff;
}
.apple-price-stack strong {
  display: block;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  margin-bottom: 10px;
}
.apple-price-meta .discount,
.price-line .discount {
  border-radius: 999px;
  padding: 8px 12px;
  background: #fef2f2;
  color: var(--danger);
  font-weight: 700;
}
.apple-price-meta .mrp,
.price-line .mrp {
  text-decoration: line-through;
  color: var(--muted);
}
.compact-panel {
  padding: 22px;
  margin-top: 18px;
}
.product-short-copy {
  font-size: 1.04rem;
  line-height: 1.8;
  margin: 0;
}
.pincode-form-row,
.checkout-pincode-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.pincode-result {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
}
.pin-status {
  color: var(--muted);
  font-size: 14px;
}
.apple-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.apple-highlight-grid div {
  display: grid;
  gap: 6px;
}
.apple-highlight-grid span {
  color: var(--muted);
  line-height: 1.6;
}
.highlight-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
  color: var(--muted);
}
.apple-detail-sections { margin-top: 34px; }
.product-description-card { padding: 30px; }
.product-description-card h2,
.checkout-summary-card h3,
.apple-order-summary h3,
.product-highlights h3 {
  margin-top: 0;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.apple-cart-grid,
.apple-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .62fr);
  gap: 28px;
  align-items: start;
}
.apple-cart-list {
  display: grid;
  gap: 18px;
}
.apple-cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.apple-cart-image-wrap img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 18px;
}
.apple-cart-meta {
  margin: 0 0 8px;
  color: var(--muted);
}
.apple-cart-content h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.apple-cart-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}
.apple-inline-form input[type="number"],
.apple-cart-actions input[type="number"] {
  width: 84px;
  padding: 12px 14px;
}
.summary-card,
.apple-order-summary,
.checkout-summary-card {
  padding: 28px;
  position: sticky;
  top: 138px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.summary-row.total strong,
.summary-row.total span {
  font-size: 1.1rem;
  color: var(--text) !important;
  font-weight: 800;
}
.checkout-summary-note {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.checkout-form-grid {
  gap: 20px 22px;
}
.checkout-panel { padding: 26px; }
.checkout-consent {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.auth-shell {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 40px 0 64px;
}
.apple-auth-wrap {
  display: flex;
  justify-content: center;
}
.apple-auth-card {
  width: min(640px, 100%);
  padding: 36px;
  border-radius: 30px;
}
.auth-copy-block {
  margin-bottom: 22px;
}
.auth-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}
.apple-auth-card h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 10px;
}
.apple-auth-form {
  display: grid;
  gap: 16px;
}
.auth-alt-link {
  margin: 18px 0 0;
  text-align: center;
}
.auth-alt-link a { color: var(--primary); font-weight: 700; }

.stats-grid,
.dashboard-grid,
.support-links,
.ref-listing-grid,
.ref-product-grid,
.ref-department-grid {
  gap: 20px;
}
.stat-card,
.support-link,
.panel {
  padding: 22px;
}
.stat-card strong { font-size: 2rem; }
.footer-newsletter { display: none; }
.apple-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr .8fr;
  gap: 26px;
  padding: 36px 0 26px;
}
.footer-brand-mark {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-main a {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
}
.footer-main a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0 24px;
}
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .apple-product-layout,
  .apple-cart-grid,
  .apple-checkout-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }
  .apple-gallery-sticky,
  .apple-copy-sticky,
  .summary-card,
  .apple-order-summary,
  .checkout-summary-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .ref-header-main {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 0;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
    overflow: auto;
  }
  .ref-nav-row {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
  }
  .page-header h1,
  .apple-page-header h1,
  .apple-product-copy h1 {
    font-size: 2.35rem;
  }
  .apple-main-frame {
    min-height: 420px;
    padding: 24px;
  }
  .apple-main-frame img { max-height: 360px; }
  .apple-highlight-grid {
    grid-template-columns: 1fr;
  }
  .apple-cart-item {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .footer-bottom-row {
    flex-direction: column;
  }
}


/* ===== refined desktop rebuild ===== */
.site-main { padding-bottom: 54px; }
.utility-bar-clean { background:#fff; }
.utility-inner-clean { display:flex; justify-content:space-between; align-items:center; gap:24px; min-height:44px; }
.utility-quick-links, .utility-contact-links { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.utility-quick-links span, .utility-contact-links a { font-size:13px; color:var(--muted); text-decoration:none; }
.ref-header-main-clean { display:grid; min-height:92px; grid-template-columns: auto minmax(0,1fr) auto; align-items:center; gap:24px; }
.site-brand { display:flex; align-items:center; gap:0; min-width:unset; flex-shrink:0; }
.site-brand-logo { width:auto; height:62px; display:block; object-fit:contain; border-radius:0; background:transparent; padding:0; }
.site-brand-copy { display:none; }
.site-brand-title { font-size:1.5rem; font-weight:800; color:var(--text); letter-spacing:-.04em; }
.header-actions-clean .header-action { min-width:unset; padding:12px 14px; font-size:14px; font-weight:600; color:var(--text); }
.header-actions-clean .header-action span:last-child, .header-actions-clean .header-action-icon { font-size:14px; }
.cart-link-clean { position:relative; }
/* mega-item must stay static so dropdown is full-width relative to the nav bar */
.mega-item { position:static; }
/* Let style.css display:none/block handle visibility; just override animation */
.mega-dropdown { animation:none !important; }
/* Do not override mega-dropdown-grid layout — style.css uses display:flex which is correct */
.mega-col a { white-space:nowrap; }
.ref-hero-section { margin-top:0; }
.ref-hero-content h2 { font-size:clamp(2.8rem,5vw,5rem); letter-spacing:-.05em; }
.ref-hero-content p { font-size:1.05rem; max-width:540px; }
.ref-department-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
.ref-department-item { border-radius:24px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow-sm); }
.ref-department-icon img { width:72px; height:72px; object-fit:cover; border-radius:18px; }
.ref-product-card { border-radius:26px; overflow:hidden; border:1px solid var(--line); background:#fff; box-shadow:var(--shadow-sm); }
.reference-thumb { aspect-ratio:1 / 1; background:#fff; }
.reference-thumb img { object-fit:contain; padding:18px; }
.reference-product-copy { padding:18px 18px 20px; }
.reference-product-copy h3 { font-size:1.15rem; line-height:1.35; min-height:3.1em; }
.modern-price-line strong { font-size:1.25rem; }
.ref-service-section { padding-top:26px; }
.ref-service-card { background:#fff; border:1px solid var(--line); border-radius:24px; }
.ref-showcase-block, .ref-promo-card { border-radius:30px; overflow:hidden; }

.refined-product-layout { grid-template-columns:minmax(0, 600px) minmax(420px, 1fr); gap:42px; }
.refined-main-frame { min-height:560px; padding:20px; }
.refined-main-frame img { width:100%; max-height:520px; object-fit:contain; }
.refined-thumb-row { grid-template-columns: repeat(5, minmax(72px, 96px)); justify-content:flex-start; }
.refined-product-copy .compact-panel { border-radius:22px; }
.refined-product-copy .apple-highlight-grid { grid-template-columns:repeat(3, minmax(0,1fr)); }
.refined-product-form .apple-button-stack { margin-top:18px; }
.refined-detail-sections { max-width:980px; }
.stock-line { margin:0 0 12px; color:var(--success); font-size:1.05rem; font-weight:700; }

.refined-cart-grid, .refined-checkout-grid { grid-template-columns:minmax(0,1.1fr) 420px; }
.refined-cart-panel, .refined-checkout-panel { padding:28px; }
.refined-cart-item { grid-template-columns:120px minmax(0,1fr) 210px; }
.refined-cart-item .price-line { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.refined-cart-item .price-line strong { font-size:1.8rem; letter-spacing:-.04em; }
.refined-checkout-form input, .refined-checkout-form select, .refined-checkout-form textarea { width:100%; }
.refined-checkout-form .full { grid-column:1 / -1; }

.auth-shell-clean { padding:52px 0 72px; background:linear-gradient(180deg,#fff 0%,#f8fafc 100%); }
.auth-clean-wrap { width:min(1060px, calc(100% - 48px)); margin:0 auto; }
.auth-card-clean { display:grid; grid-template-columns:1fr 1fr; gap:0; padding:0; border-radius:24px; overflow:hidden; border:1px solid #e5e7eb; box-shadow:0 20px 60px rgba(17,24,39,.12); background:#fff; }
.auth-side-copy { padding:52px 44px; background:linear-gradient(145deg,#1a3a5e 0%,#0d2040 100%); color:#fff; display:flex; flex-direction:column; justify-content:center; }
.auth-side-copy h1 { font-size:clamp(2rem,3.5vw,3rem); line-height:1; margin:10px 0 14px; letter-spacing:-.05em; color:#fff; }
.auth-feature-list { margin:22px 0 0; padding-left:18px; color:#bfdbfe; line-height:1.9; }
.auth-form-clean { display:grid; gap:18px; align-content:start; }
/* Stack label above input inside form field wrappers */
.auth-form-clean > div { display:flex; flex-direction:column; gap:6px; }
.auth-form-clean label { font-size:13px; font-weight:600; color:var(--text); }
.auth-form-clean input { width:100%; height:48px; padding:0 16px; font-size:15px; box-sizing:border-box; }
.auth-form-grid-2 { grid-template-columns:repeat(2, minmax(0,1fr)); }
.auth-form-grid-2 .full { grid-column:1 / -1; }
.auth-alt-link { margin:2px 0 0; }

.account-clean-grid { display:grid; grid-template-columns:minmax(0,1.15fr) 360px; gap:28px; align-items:start; }
.account-profile-card, .account-help-card { padding:30px; }
.account-profile-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; margin-bottom:24px; }
.account-profile-head h2 { margin:8px 0 8px; font-size:2.4rem; letter-spacing:-.04em; }
.account-member-since { color:var(--muted); font-weight:600; }
.account-stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:24px; }
.mini-stat { border:1px solid var(--line); border-radius:20px; padding:18px; background:var(--surface); }
.mini-stat span { display:block; color:var(--muted); margin-bottom:8px; }
.mini-stat strong { font-size:2rem; letter-spacing:-.04em; }

@media (max-width: 1100px) {
  .ref-header-main-clean { grid-template-columns: 1fr; gap:16px; }
  .header-actions-clean { justify-content:flex-start; }
  .refined-product-layout, .refined-cart-grid, .refined-checkout-grid, .account-clean-grid, .auth-card-clean { grid-template-columns:1fr; }
  .summary-card, .apple-order-summary, .checkout-summary-card, .apple-gallery-sticky, .apple-copy-sticky { position:static; top:auto; }
}


/* ================================================================
   TRIJALMART PATCH — v2 — Header / Login / Product / Support
   ================================================================ */

/* --- Utility bar ------------------------------------------------ */
.utility-bar-clean {
  background: #0B1F3A !important;
  border-bottom: none !important;
}
.utility-inner-clean {
  min-height: 40px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}
.utility-quick-links span,
.utility-contact-links a {
  font-size: 12.5px;
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
}

/* --- Header ----------------------------------------------------- */
.ref-header-clean,
.store-header.ref-header-clean {
  background: #fff !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: 0 2px 8px rgba(17,24,39,.05) !important;
}
.ref-header-main-clean {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  min-height: 76px !important;
  gap: 18px !important;
  align-items: center !important;
  padding: 10px 0 !important;
}

/* --- Logo ------------------------------------------------------- */
.site-brand-logo {
  width: auto !important;
  height: 62px !important;
  object-fit: contain !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* --- Search bar ------------------------------------------------- */
.ref-search-shell {
  width: 100% !important;
  max-width: 100% !important;
}
.ref-search-form {
  border-radius: 10px !important;
  border: 1.5px solid #dde3f0 !important;
  height: 46px !important;
  display: flex !important;
  align-items: stretch !important;
  background: #f8fafc !important;
  overflow: hidden;
  box-shadow: none !important;
}
.ref-search-form:focus-within {
  border-color: var(--primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(30,58,95,.07) !important;
}
.ref-search-form input {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  padding: 0 12px !important;
  height: 100%;
  flex: 1;
}
.ref-search-form select {
  border: none !important;
  border-right: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
  padding: 0 10px !important;
  height: 100%;
}
.ref-search-form button {
  min-width: 46px !important;
  width: 46px !important;
  height: 100% !important;
  border-radius: 0 8px 8px 0 !important;
  background: var(--primary) !important;
  display: grid;
  place-items: center;
}

/* --- Header icons ----------------------------------------------- */
.header-actions-clean {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
}
.header-actions-clean .header-action {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 8px 11px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: background .15s;
  white-space: nowrap;
}
.header-actions-clean .header-action:hover {
  background: var(--surface);
  color: var(--primary) !important;
}
.header-actions-clean .header-action-cta {
  flex-direction: row !important;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  gap: 6px !important;
}
.header-actions-clean .header-action-cta:hover {
  background: var(--primary-strong) !important;
  color: #fff !important;
}

/* --- Nav -------------------------------------------------------- */
.mega-nav { background: #fff; }
.ref-nav-link {
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  color: #1f2937 !important;
}

/* --- Product page ----------------------------------------------- */
.refined-product-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) !important;
  gap: 32px !important;
}
.apple-product-copy h1,
.refined-product-copy h1 {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.03em !important;
  margin: 8px 0 14px !important;
}
.apple-price-stack strong {
  font-size: 2rem !important;
  font-weight: 800 !important;
}
.refined-main-frame { min-height: 440px !important; }
.refined-main-frame img { max-height: 440px !important; }
.refined-detail-sections { max-width: 100% !important; }
.apple-button-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
.apple-button-stack .btn {
  width: 100% !important;
  height: 48px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
}

/* --- Login page ------------------------------------------------- */
.auth-shell-clean {
  padding: 48px 0 72px !important;
  background: linear-gradient(155deg, #eef2ff 0%, #f8fafc 55%, #fff 100%) !important;
}
.auth-clean-wrap {
  width: min(1060px, calc(100% - 48px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
}
.auth-card-clean {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  padding: 0 !important;
  border-radius: 20px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 8px 32px rgba(17,24,39,.09) !important;
  overflow: hidden !important;
  background: #fff !important;
}
/* Left blue side */
.auth-side-copy {
  background: linear-gradient(140deg, #1e3a5f 0%, #0f2238 100%);
  color: #fff;
  padding: 48px 40px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-side-copy .auth-kicker {
  color: #93c5fd !important;
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
  font-weight: 700;
  margin: 0 0 12px !important;
}
.auth-side-copy h1 {
  color: #fff !important;
  font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.auth-side-copy .muted,
.auth-side-copy p.muted { color: #93c5fd !important; font-size: 14px; line-height: 1.7; }
.auth-side-copy .auth-feature-list { color: #bfdbfe !important; line-height: 2; margin: 16px 0 0 !important; }
.auth-side-copy .auth-demo-note { color: #7dd3fc !important; font-size: 12px !important; margin-top: 28px !important; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); }
/* Right form side */
.auth-form-clean {
  padding: 44px 40px !important;
  display: grid !important;
  gap: 18px !important;
  align-content: center !important;
}
/* FORCE label + input to stack — this is the key fix */
.apple-auth-form > div,
.auth-form-clean > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}
.apple-auth-form label,
.auth-form-clean label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #374151 !important;
}
.apple-auth-form input[type="email"],
.apple-auth-form input[type="password"],
.auth-form-clean input[type="email"],
.auth-form-clean input[type="password"],
.auth-form-clean input[type="text"] {
  width: 100% !important;
  height: 46px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
  border: 1.5px solid #dde3f0 !important;
  background: #f8fafc !important;
  color: #111827 !important;
  box-shadow: none !important;
  transition: border-color .2s, box-shadow .2s;
}
.apple-auth-form input:focus,
.auth-form-clean input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(30,58,95,.07) !important;
  background: #fff !important;
}
.auth-form-clean .btn-dark,
.apple-auth-form .btn-dark {
  height: 48px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  margin-top: 2px !important;
}
.auth-form-clean .auth-alt-link,
.apple-auth-form .auth-alt-link {
  text-align: center !important;
  font-size: 14px !important;
  color: #6b7280 !important;
  margin: 4px 0 0 !important;
}
.auth-form-clean .auth-alt-link a,
.apple-auth-form .auth-alt-link a {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

/* --- Responsive ------------------------------------------------- */
@media (max-width: 1100px) {
  .ref-header-main-clean { grid-template-columns: auto 1fr !important; }
  .header-actions-clean { grid-column: 1 / -1; width: 100%; justify-content: flex-start; }
  .refined-product-layout { grid-template-columns: 1fr !important; }
  .auth-card-clean { grid-template-columns: 1fr !important; }
  .auth-side-copy { padding: 32px 28px !important; }
  .auth-form-clean { padding: 32px 28px !important; }
}
@media (max-width: 768px) {
  .ref-header-main-clean {
    grid-template-columns: 44px 1fr auto !important;
    min-height: 60px !important;
    padding: 8px 0 !important;
    gap: 0 !important;
  }
  .ref-search-shell { grid-column: 1 / -1; grid-row: 2; margin-top: 6px; }
  .site-brand-logo { width: auto !important; height: 38px !important; }
  .header-actions-clean .header-action span:last-child { display: none; }
  .header-actions-clean .header-action { padding: 6px 5px !important; }
}

/* =====================================================
   PROFESSIONAL POLISH — COMPREHENSIVE SITE FIX
   ===================================================== */

/* ── 1. ELIMINATE LARGE PAGE GAPS ─────────────────── */
.section {
  padding: 0 0 20px !important;
}
.apple-product-wrap {
  padding-top: 8px !important;
}
.apple-product-page.section {
  padding-top: 0 !important;
  padding-bottom: 40px !important;
}
.apple-product-page .apple-breadcrumb,
.apple-product-page .ref-breadcrumb {
  margin-bottom: 10px !important;
  padding: 0 !important;
}
.site-main {
  padding-bottom: 48px !important;
}
/* Breadcrumb - tighter */
.apple-breadcrumb,
.breadcrumbs,
[class*="breadcrumb"] {
  margin-bottom: 10px !important;
  padding: 0 !important;
}

/* ── 2. HEADER — CLEAN, TIGHT, PROFESSIONAL ────────── */
.store-header,
.ref-header,
.ref-header-clean {
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 8px rgba(17,24,39,.06) !important;
}
.utility-bar-clean {
  border-bottom: 1px solid #f0f0f0 !important;
  background: #0B1F3A !important;
}
.utility-quick-links span,
.utility-contact-links a {
  font-size: 12.5px !important;
}

/* ── 3. PRODUCT PAGE — PROFESSIONAL LAYOUT ─────────── */
.refined-product-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr) !important;
  gap: 40px !important;
  align-items: start !important;
}
/* Product image frame */
.refined-main-frame,
.apple-gallery-main {
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
}
/* Product title */
.apple-product-copy h1,
.refined-product-copy h1 {
  font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.15 !important;
  color: #111827 !important;
  margin: 0 0 12px !important;
}
/* Price */
.apple-price-stack strong {
  font-size: 2.2rem !important;
  font-weight: 900 !important;
  color: #111827 !important;
  letter-spacing: -0.03em !important;
}
/* Delivery / info panels */
.compact-panel {
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  background: #fff !important;
}
/* Add to cart / Buy now buttons */
.apple-button-stack .btn,
.apple-button-stack button {
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  height: 50px !important;
  letter-spacing: -0.01em !important;
}

/* ── 4. AUTH PAGES — LOGIN & REGISTER ──────────────── */
.auth-shell-clean {
  background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 50%, #fff 100%) !important;
  min-height: calc(100vh - 200px) !important;
  display: flex !important;
  align-items: center !important;
  padding: 40px 0 !important;
}
.auth-clean-wrap {
  width: min(1000px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
}
.auth-card-clean {
  border-radius: 24px !important;
  box-shadow: 0 20px 60px rgba(17,24,39,.12), 0 4px 16px rgba(17,24,39,.06) !important;
  overflow: hidden !important;
  border: none !important;
}
.auth-side-copy {
  background: linear-gradient(145deg, #1a3a5e 0%, #0d2040 100%) !important;
  padding: 52px 44px !important;
}
.auth-side-copy img {
  margin-bottom: 28px !important;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)) !important;
}
.auth-side-copy h1 {
  font-size: clamp(2rem, 3.5vw, 3rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em !important;
  line-height: 1 !important;
  margin: 0 0 16px !important;
}
.auth-form-clean {
  padding: 52px 48px !important;
  background: #fff !important;
}
.auth-form-clean label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #374151 !important;
  letter-spacing: 0.01em !important;
}
.auth-form-clean input {
  height: 48px !important;
  border-radius: 10px !important;
  border: 1.5px solid #e0e7ef !important;
  background: #f9fafb !important;
  font-size: 14.5px !important;
  padding: 0 16px !important;
  transition: all .2s !important;
}
.auth-form-clean input:focus {
  border-color: #1a3a5e !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(26,58,94,.08) !important;
}
.auth-form-clean .btn-dark {
  height: 50px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  background: linear-gradient(135deg, #1a3a5e 0%, #0d2040 100%) !important;
  transition: transform .2s, box-shadow .2s !important;
}
.auth-form-clean .btn-dark:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(26,58,94,.3) !important;
}

/* ── 5. ACCOUNT PAGE ───────────────────────────────── */
.page-header.apple-page-header {
  padding: 28px 0 20px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  margin-bottom: 28px !important;
}
.page-header h1,
.apple-page-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em !important;
  margin: 0 0 4px !important;
}
.page-header p,
.apple-page-header p {
  font-size: 15px !important;
  color: #6b7280 !important;
  margin: 0 !important;
}

/* ── 6. PRODUCT CARDS — GRID & LISTING ─────────────── */
.ref-listing-grid,
.apple-listing-grid {
  gap: 20px !important;
}
.product-card,
.ref-product-card,
.apple-product-card {
  border-radius: 16px !important;
  border: 1px solid #f0f0f0 !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
  overflow: hidden !important;
}
.product-card:hover,
.ref-product-card:hover,
.apple-product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(17,24,39,.1) !important;
  border-color: #e0e7ef !important;
}

/* ── 7. CART PAGE ──────────────────────────────────── */
.refined-cart-grid {
  gap: 28px !important;
  align-items: start !important;
}
.refined-cart-item {
  padding: 20px !important;
  border-radius: 14px !important;
  border: 1px solid #f0f0f0 !important;
  background: #fff !important;
}

/* ── 8. FORMS GLOBAL ───────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
  border-radius: 10px !important;
  border: 1.5px solid #e0e7ef !important;
  font-family: inherit !important;
  transition: border-color .2s, box-shadow .2s !important;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #1a3a5e !important;
  box-shadow: 0 0 0 3px rgba(26,58,94,.08) !important;
  outline: none !important;
}

/* ── 9. FOOTER — CLEAN UP ──────────────────────────── */
.site-footer,
.modern-footer {
  border-top: 1px solid #e5e7eb !important;
}
.footer-brand-mark {
  margin-bottom: 16px !important;
}
.footer-main {
  padding-top: 48px !important;
  padding-bottom: 36px !important;
}

/* ── 10. FLASH MESSAGES ────────────────────────────── */
.flash {
  border-radius: 10px !important;
  margin: 16px 0 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
.flash.success { background: #dcfce7 !important; color: #15803d !important; border: 1px solid #bbf7d0 !important; }
.flash.danger  { background: #fee2e2 !important; color: #dc2626 !important; border: 1px solid #fecaca !important; }
.flash.warning { background: #fef9c3 !important; color: #92400e !important; border: 1px solid #fde68a !important; }
.site-flash    { padding: 14px 20px !important; }

/* ── 11. REGISTER 2-COLUMN FORM ────────────────────── */
.auth-form-grid-2 {
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}
.auth-form-grid-2 > div:first-child {
  grid-column: 1 / -1 !important;
}
.auth-form-grid-2 .btn-dark,
.auth-form-grid-2 [type="submit"] {
  grid-column: 1 / -1 !important;
}

/* ── 12. MOBILE RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .auth-shell-clean {
    align-items: flex-start !important;
    padding: 24px 0 40px !important;
  }
  .auth-card-clean {
    grid-template-columns: 1fr !important;
  }
  .auth-side-copy {
    padding: 36px 28px !important;
  }
  .auth-form-clean {
    padding: 36px 28px !important;
  }
  .auth-form-grid-2 {
    grid-template-columns: 1fr !important;
  }
  .auth-form-grid-2 > div:first-child {
    grid-column: 1 !important;
  }
  .refined-product-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Reviews section inherits from style.css — no overrides needed */
