/* =========================================================
   BBS COSMETICS & BEAUTY — Storefront brand theme
   Does not alter admin layout styles under .admin-body
   ========================================================= */

:root {
  --primary: #00AEEF;
  --primary-hover: #008FCB;
  --aqua: #33C4F5;
  --aqua-light: #D7F3FC;
  --dark-teal: #0B4F6C;
  --deep-teal: #083D54;
  --gold: #00C2E0;
  --champagne: #9FE3F7;
  --background: #F3F8FB;
  --surface: #FFFFFF;
  --text: #143247;
  --muted-text: #5E7384;
  --border: #D2E4EE;

  /* Legacy aliases used across style.css */
  --ink: var(--text);
  --muted: var(--muted-text);
  --line: var(--border);
  --cream: var(--background);
  --blush: var(--aqua-light);
  --accent: var(--primary);
  --white: var(--surface);
  --danger: #E25563;
  --success: #0B4F6C;
  --shadow: 0 14px 40px rgba(11, 79, 108, 0.10);
  --shadow-soft: 0 8px 24px rgba(11, 79, 108, 0.08);
  --radius-card: 16px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Poppins", system-ui, sans-serif;
}

/* ---------- Base (storefront only) ---------- */
body:not(.admin-body) {
  font-family: var(--font);
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

body:not(.admin-body) img {
  filter: none;
}

body:not(.admin-body) a:focus-visible,
body:not(.admin-body) button:focus-visible,
body:not(.admin-body) input:focus-visible,
body:not(.admin-body) select:focus-visible,
body:not(.admin-body) textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Announcement / Header ---------- */
body:not(.admin-body) .announcement {
  background: var(--announcement-bg, var(--dark-teal));
  color: var(--announcement-text, #fff);
  letter-spacing: 0.14em;
  font-weight: 500;
  font-size: 11px;
  padding: 9px 16px;
}

body:not(.admin-body) .site-header {
  background: var(--header-bg, var(--surface));
  border-bottom: 1px solid var(--header-border, var(--border));
  box-shadow: 0 1px 0 var(--header-border, var(--border));
}

body:not(.admin-body) .header-main {
  height: 118px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

body:not(.admin-body) .header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

body:not(.admin-body) .header-right {
  justify-self: end;
}

body:not(.admin-body) .brand-lockup {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  line-height: 1;
  max-width: min(320px, 52vw);
}

body:not(.admin-body) .brand-logo {
  display: block;
  height: 88px;
  width: auto;
  max-width: min(300px, 52vw);
  object-fit: contain;
}

body:not(.admin-body) .brand-logo-footer {
  height: 56px;
  max-width: 180px;
}

body:not(.admin-body) .brand-mark {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: block;
  object-fit: contain;
}

body:not(.admin-body) .brand-lockup > .brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 2.8vw, 36px);
  letter-spacing: 0.22em;
  color: var(--header-logo-text, var(--dark-teal));
  margin: 0;
  line-height: 1;
}

body:not(.admin-body) .brand-lockup-footer > .brand-title {
  color: #fff;
  font-size: 24px;
}

body:not(.admin-body) .brand-lockup-footer .brand-mark {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

body:not(.admin-body) .logo span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--header-logo-text, var(--dark-teal));
  font-size: 32px;
}

body:not(.admin-body) .store-logo-img {
  max-height: 88px;
  width: auto;
  object-fit: contain;
}

body:not(.admin-body) .header-tool {
  color: var(--header-text, var(--dark-teal));
  font-weight: 500;
  transition: color 0.2s ease;
}

body:not(.admin-body) .header-tool:hover {
  color: var(--header-hover, var(--primary));
}

body:not(.admin-body) .header-icon {
  color: var(--header-icon, var(--dark-teal));
}

body:not(.admin-body) .header-tool:hover .header-icon,
body:not(.admin-body) .mobile-menu-toggle:hover .header-icon {
  color: var(--header-hover, var(--primary));
}

body:not(.admin-body) .mobile-menu-toggle {
  color: var(--header-icon, var(--dark-teal));
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  align-items: center;
  justify-content: center;
}

body:not(.admin-body) .mobile-menu-toggle .header-icon {
  display: block;
  width: 24px;
  height: 24px;
  min-width: 24px;
  color: var(--header-icon, var(--dark-teal));
  opacity: 1;
}

body:not(.admin-body) .mobile-menu-toggle .header-icon path {
  stroke: currentColor;
  stroke-width: 1.9;
}

body:not(.admin-body) .cart-count {
  background: var(--cart-badge-bg, var(--primary));
  color: var(--cart-badge-text, #fff);
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--header-bg, var(--surface));
}

body:not(.admin-body) .desktop-nav {
  border-top: 1px solid var(--nav-border, var(--border));
  background: var(--nav-bg, var(--surface));
}

/* Full-width category bar so more buttons fit on one line (desktop) */
body:not(.admin-body) .desktop-nav .nav-inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(14px, 2.5vw, 48px);
  gap: clamp(18px, 2vw, 32px);
  justify-content: center;
  flex-wrap: nowrap;
  overflow: visible;
  font-size: clamp(11px, .8vw, 13px);
}
body:not(.admin-body) .desktop-nav .nav-item,
body:not(.admin-body) .desktop-nav .nav-inner > a {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

body:not(.admin-body) .nav-inner {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--nav-text, var(--text));
}

body:not(.admin-body) .nav-inner > a,
body:not(.admin-body) .nav-item > a {
  transition: color 0.2s ease;
}

body:not(.admin-body) .nav-inner > a:hover,
body:not(.admin-body) .nav-item:hover > a,
body:not(.admin-body) .nav-inner > a:focus-visible {
  color: var(--nav-hover, var(--primary));
}

body:not(.admin-body) .sale-link {
  color: var(--nav-sale, var(--gold)) !important;
}

body:not(.admin-body) .sale-link:hover {
  color: var(--nav-sale-hover, var(--dark-teal)) !important;
}

body:not(.admin-body) .mega-menu {
  background: var(--mega-bg, var(--surface));
  border: 1px solid var(--nav-border, var(--border));
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 100;
}

body:not(.admin-body) .mega-menu h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--mega-heading, var(--dark-teal));
}

body:not(.admin-body) .mega-menu a {
  color: var(--mega-text, var(--muted-text));
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 -6px;
  transition: background 0.2s ease, color 0.2s ease;
}

body:not(.admin-body) .mega-menu a:hover {
  background: var(--mega-hover-bg, #E7F7F8);
  color: var(--mega-hover-text, var(--dark-teal));
}

body:not(.admin-body) .nav-item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Keep edge dropdowns inside the viewport. */
body:not(.admin-body) .nav-item:first-child .mega-menu {
  left: auto;
  right: auto;
  inset-inline-start: 0;
  transform: translateY(8px);
}

body:not(.admin-body) .nav-item:first-child:hover .mega-menu,
body:not(.admin-body) .nav-item:first-child:focus-within .mega-menu {
  transform: translateY(0);
}

body:not(.admin-body) .nav-item:last-of-type .mega-menu {
  left: auto;
  right: auto;
  inset-inline-end: 0;
  transform: translateY(8px);
}

body:not(.admin-body) .nav-item:last-of-type:hover .mega-menu,
body:not(.admin-body) .nav-item:last-of-type:focus-within .mega-menu {
  transform: translateY(0);
}

/* ---------- Drawers / Mobile ---------- */
body:not(.admin-body) .drawer-backdrop,
body:not(.admin-body) .mobile-menu-overlay {
  background: rgba(var(--drawer-overlay-rgb, 22, 60, 68), 0.45);
}

body:not(.admin-body) .search-drawer,
body:not(.admin-body) .cart-drawer,
body:not(.admin-body) .mobile-menu {
  background: var(--drawer-bg, var(--surface));
  color: var(--drawer-text, var(--text));
}

body:not(.admin-body) .mobile-menu {
  width: min(400px, 100vw);
  padding: 0 22px 28px;
  overscroll-behavior: contain;
  box-shadow: 12px 0 36px rgba(var(--drawer-overlay-rgb, 22, 60, 68), .2);
}

[dir="rtl"] body:not(.admin-body) .mobile-menu {
  left: auto;
  right: 0;
  transform: translateX(100%);
  box-shadow: -12px 0 36px rgba(var(--drawer-overlay-rgb, 22, 60, 68), .2);
}

[dir="rtl"] body:not(.admin-body) .mobile-menu.show {
  transform: none;
}

body:not(.admin-body) .mobile-menu-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--drawer-bg, var(--surface));
  border-bottom: 1px solid var(--drawer-border, var(--border));
}

body:not(.admin-body) .mobile-menu-head h3 {
  margin: 0;
}

body:not(.admin-body) .mobile-menu-head .drawer-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  line-height: 1;
}

body:not(.admin-body) .drawer-head {
  border-bottom-color: var(--drawer-border, var(--border));
}

body:not(.admin-body) .drawer-close,
body:not(.admin-body) .search-keywords,
body:not(.admin-body) .cart-drawer-item {
  color: var(--drawer-text, var(--text));
}

body:not(.admin-body) .mobile-menu h3,
body:not(.admin-body) .drawer-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--drawer-text, var(--dark-teal));
}

body:not(.admin-body) .mobile-menu > a {
  border-bottom-color: var(--drawer-border, var(--border));
  font-weight: 500;
  min-height: 55px;
  padding: 15px 2px;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

body:not(.admin-body) .mobile-menu > a span {
  color: var(--header-hover, var(--primary));
  font-size: 20px;
  line-height: 1;
}

body:not(.admin-body) .mobile-menu > .mobile-menu-all {
  font-weight: 700;
  color: var(--header-hover, var(--primary));
}

body:not(.admin-body) .mobile-menu > .mobile-sale-link {
  color: var(--nav-sale, var(--gold));
  font-weight: 700;
}

body:not(.admin-body) .mobile-menu > a:hover {
  color: var(--header-hover, var(--primary));
}

body:not(.admin-body) .search-drawer form {
  border: 1px solid var(--drawer-border, var(--border));
  border-radius: 12px;
  overflow: hidden;
}

body:not(.admin-body) .search-drawer input {
  background: var(--drawer-bg, var(--surface));
  color: var(--drawer-text, var(--text));
}

body:not(.admin-body) .search-result,
body:not(.admin-body) .cart-drawer-item {
  border-bottom-color: var(--drawer-border, var(--border));
}

body:not(.admin-body) .search-drawer form:focus-within {
  border-color: var(--drawer-button-bg, var(--primary));
}

body:not(.admin-body) .search-drawer form button,
body:not(.admin-body) .cart-drawer .checkout-btn {
  background: var(--drawer-button-bg, var(--primary));
  color: var(--drawer-button-text, #fff);
  font-weight: 600;
}

body:not(.admin-body) .search-drawer form button:hover,
body:not(.admin-body) .cart-drawer .checkout-btn:hover {
  background: var(--drawer-button-hover, var(--primary-hover));
}

/* ---------- Flash / Toast ---------- */
body:not(.admin-body) .flash.success {
  background: #E7F7FC;
  color: var(--dark-teal);
  border-color: var(--aqua-light);
}

body:not(.admin-body) .flash.error {
  background: #FDF2F2;
  color: #9B3D3D;
  border-color: #F0C9C9;
}

body:not(.admin-body) .flash.warning {
  background: #EAF8FC;
  color: #0B4F6C;
  border-color: var(--champagne);
}

.toast-stack{
  position:fixed;
  top:18px;
  right:18px;
  z-index:2000;
  display:flex;
  flex-direction:column;
  gap:10px;
  width:min(340px,calc(100vw - 28px));
  pointer-events:none;
}
.toast{
  pointer-events:auto;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:12px;
  box-shadow:0 12px 30px rgba(22,60,68,.16);
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-size:13px;
  font-weight:600;
  line-height:1.4;
  animation:toast-in .28s ease;
}
.toast-success{background:#E7F7F8;border-color:#B7E4E8;color:var(--dark-teal)}
.toast-error{background:#FDF2F2;border-color:#F0C9C9;color:#9B3D3D}
.toast-warning{background:#FFF8EA;border-color:var(--champagne);color:#7A6230}
.toast-close{
  border:0;background:transparent;color:inherit;opacity:.55;
  font-size:18px;line-height:1;padding:0;cursor:pointer
}
.toast-close:hover{opacity:1}
.toast.is-hiding{animation:toast-out .25s ease forwards}
@keyframes toast-in{from{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:none}}
@keyframes toast-out{to{opacity:0;transform:translateY(-6px) scale(.98)}}
@media(max-width:760px){
  .toast-stack{top:12px;right:12px;left:12px;width:auto}
}

/* ---------- Hero ---------- */
body:not(.admin-body) .hero {
  background: linear-gradient(180deg, #0B4F6C 0%, #083D54 100%);
  overflow: hidden;
}

body:not(.admin-body) .hero-track {
  display: flex;
  align-items: stretch;
  transition: transform .55s ease;
}

body:not(.admin-body) .hero-slide {
  position: relative;
  min-width: 100%;
  flex: 0 0 100%;
  background: #0B4F6C;
}

body:not(.admin-body) .hero-slide img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center center;
}

body:not(.admin-body) .hero-dot {
  border-color: #fff;
}

body:not(.admin-body) .hero-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 1100px) {
  body:not(.admin-body) .hero-slide img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  body:not(.admin-body) .hero {
    background: #0B4F6C;
  }
  body:not(.admin-body) .hero-slide img {
    aspect-ratio: auto;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(70vh, 560px);
    object-fit: contain;
    object-position: center center;
  }
  body:not(.admin-body) .hero-dots {
    bottom: 12px;
  }
  body:not(.admin-body) .hero-dot {
    width: 8px;
    height: 8px;
    border-color: rgba(255,255,255,.85);
  }
}

/* ---------- Sections ---------- */
body:not(.admin-body) .section-kicker {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.18em;
}

body:not(.admin-body) .section h2,
body:not(.admin-body) .section-head h2,
body:not(.admin-body) .page-title,
body:not(.admin-body) .shop-hero h1,
body:not(.admin-body) .product-info h1,
body:not(.admin-body) .product-copy h3,
body:not(.admin-body) .empty-state h2,
body:not(.admin-body) .auth-box h1,
body:not(.admin-body) .summary-card h3,
body:not(.admin-body) .cart-item h3,
body:not(.admin-body) .newsletter-section h2,
body:not(.admin-body) .mega-menu h4,
body:not(.admin-body) .feature b,
body:not(.admin-body) .quick-grid h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}

body:not(.admin-body) .view-all {
  color: var(--dark-teal);
  border-bottom-color: var(--aqua);
  transition: color 0.2s ease, border-color 0.2s ease;
}

body:not(.admin-body) .view-all:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ---------- Category cards ---------- */
body:not(.admin-body) .category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 14px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body:not(.admin-body) .category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--primary);
}

body:not(.admin-body) .category-card img {
  border-radius: 50%;
  background: #F0FAFB;
  filter: none !important;
}

body:not(.admin-body) .category-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--dark-teal);
  position: relative;
  display: inline-block;
}

body:not(.admin-body) .category-card h3::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin: 8px auto 0;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body:not(.admin-body) .category-card:hover h3::after {
  opacity: 1;
}

/* ---------- Product cards ---------- */
body:not(.admin-body) .product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body:not(.admin-body) .product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--aqua);
}

body:not(.admin-body) .product-media {
  background: var(--surface);
  overflow: hidden;
}

body:not(.admin-body) .product-main-image,
body:not(.admin-body) .gallery-main img,
body:not(.admin-body) .gallery-thumb img,
body:not(.admin-body) .variant-thumb img,
body:not(.admin-body) .product-variant img,
body:not(.admin-body) .cart-item img,
body:not(.admin-body) .cart-drawer-item img,
body:not(.admin-body) .search-result img,
body:not(.admin-body) .quick-grid img {
  filter: none !important;
}

body:not(.admin-body) .product-main-image {
  background: #FAFCFC;
}

body:not(.admin-body) .badge-sale {
  background: var(--gold);
  color: var(--text);
  border-radius: 999px;
  font-weight: 600;
}

body:not(.admin-body) .badge-new {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
}

body:not(.admin-body) .icon-btn {
  background: var(--surface);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body:not(.admin-body) .icon-btn:hover,
body:not(.admin-body) .wishlist-btn.saved {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

body:not(.admin-body) .wishlist-btn.saved svg path {
  fill: currentColor;
}

body:not(.admin-body) .quick-add-bar {
  background: var(--primary);
  color: #fff;
  letter-spacing: 0.12em;
  font-weight: 600;
}

body:not(.admin-body) .quick-add-bar:hover {
  background: var(--primary-hover);
}

body:not(.admin-body) .product-copy {
  padding: 14px 14px 16px;
}

body:not(.admin-body) .product-brand {
  color: var(--muted-text);
}

body:not(.admin-body) .product-copy h3 a {
  color: var(--text);
}

body:not(.admin-body) .current-price {
  color: var(--dark-teal);
  font-weight: 600;
}

body:not(.admin-body) .compare-price {
  color: var(--muted-text);
  text-decoration: line-through;
}

/* Color swatches — preserve true product colors */
body:not(.admin-body) .variant-thumb {
  border: 1px solid rgba(32, 42, 45, 0.12);
  background: var(--surface);
  border-radius: 50%;
  padding: 2px;
}

body:not(.admin-body) .variant-thumb.active {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--dark-teal);
}

body:not(.admin-body) .variant-thumb img {
  border-radius: 50%;
}

body:not(.admin-body) .swatch-color {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(32, 42, 45, 0.12);
}

body:not(.admin-body) .swatch-color-lg {
  aspect-ratio: 1;
  border-radius: 10px;
}

body:not(.admin-body) .product-variant {
  border: 1px solid rgba(32, 42, 45, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

body:not(.admin-body) .product-variant.active {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--dark-teal);
}

/* ---------- Buttons ---------- */
body:not(.admin-body) .button-dark,
body:not(.admin-body) .add-to-cart,
body:not(.admin-body) .checkout-btn,
body:not(.admin-body) .auth-box button,
body:not(.admin-body) .coupon-row button {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

body:not(.admin-body) .button-dark:hover,
body:not(.admin-body) .add-to-cart:hover,
body:not(.admin-body) .checkout-btn:hover,
body:not(.admin-body) .auth-box button:hover,
body:not(.admin-body) .coupon-row button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

body:not(.admin-body) .button-light,
body:not(.admin-body) .button-outline {
  background: var(--surface);
  color: var(--dark-teal);
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  font-weight: 600;
}

body:not(.admin-body) .button-light:hover,
body:not(.admin-body) .button-outline:hover {
  background: var(--aqua-light);
  color: var(--dark-teal);
}

body:not(.admin-body) .button-gold {
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-weight: 600;
}

body:not(.admin-body) .add-to-cart[disabled] {
  background: #A8B5B8;
  border-color: #A8B5B8;
  color: #fff;
}

/* ---------- Promo / Features ---------- */
body:not(.admin-body) .promo-card {
  background: linear-gradient(145deg, #FFFFFF 0%, #EAF8FC 55%, #D7F3FC 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

body:not(.admin-body) .promo-card.promo-theme-gold {
  background: linear-gradient(145deg, #F3FBFE 0%, #DFF4FB 55%, #C8ECF8 100%);
  border-color: rgba(0, 174, 239, 0.35);
}

body:not(.admin-body) .promo-card span {
  color: var(--primary);
  font-weight: 600;
}

body:not(.admin-body) .promo-card.promo-theme-gold span {
  color: var(--dark-teal);
}

/* Promo card with a background image → light text for contrast */
body:not(.admin-body) .promo-card.promo-has-image,
body:not(.admin-body) .promo-card.promo-has-image.promo-theme-gold {
  color: #fff;
  border-color: transparent;
}

body:not(.admin-body) .promo-card.promo-has-image h3 {
  color: #fff;
}

body:not(.admin-body) .promo-card.promo-has-image span,
body:not(.admin-body) .promo-card.promo-has-image.promo-theme-gold span {
  color: #fff;
}

body:not(.admin-body) .features {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

body:not(.admin-body) .feature b {
  color: var(--dark-teal);
}

/* ---------- Brands marquee ---------- */
body:not(.admin-body) .brands-marquee-section {
  background: linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
}

body:not(.admin-body) .brand-marquee-item::after {
  background: var(--border);
}

body:not(.admin-body) .brand-marquee-name {
  color: var(--muted-text);
}

body:not(.admin-body) .brand-marquee-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #EAF8F9;
  border: 1px solid var(--border);
}

body:not(.admin-body) .brand-marquee-item img {
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  opacity: 1;
}

body:not(.admin-body) .brand-marquee-item:hover img {
  transform: scale(1.06);
}

@media (max-width: 760px) {
  body:not(.admin-body) .brand-marquee-logo {
    width: 60px;
    height: 60px;
  }
}

/* ---------- Shop ---------- */
body:not(.admin-body) .shop-hero {
  background: linear-gradient(180deg, #EAF8FC 0%, var(--background) 100%);
}

body:not(.admin-body) .filters,
body:not(.admin-body) .filter-group,
body:not(.admin-body) .shop-toolbar select,
body:not(.admin-body) .pagination a,
body:not(.admin-body) .pagination span {
  border-color: var(--border);
}

body:not(.admin-body) .pagination .active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

body:not(.admin-body) .filter-group a:hover,
body:not(.admin-body) .filter-group label:hover {
  color: var(--primary);
}

body:not(.admin-body) .shop-layout > section {
  min-width: 0;
  max-width: 100%;
}

body:not(.admin-body) .product-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body:not(.admin-body) .product-card {
  min-width: 0;
}

body:not(.admin-body) .product-copy h3 {
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body:not(.admin-body) .pagination {
  flex-wrap: wrap;
  max-width: 100%;
  row-gap: 8px;
  padding-inline: 4px;
}

body:not(.admin-body) .pagination a,
body:not(.admin-body) .pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

body:not(.admin-body) .pagination-ellipsis {
  border: 0;
  min-width: 24px;
  color: var(--muted-text);
}

@media (max-width: 1100px) {
  body:not(.admin-body) .shop-layout {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    gap: 18px;
  }

  body:not(.admin-body) .shop-toolbar {
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }

  body:not(.admin-body) .shop-toolbar > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  body:not(.admin-body) .shop-toolbar select {
    max-width: 100%;
  }

  body:not(.admin-body) .filters.show {
    display: block;
    margin-bottom: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
  }

  body:not(.admin-body) .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  html {
    overflow-x: clip;
  }

  body:not(.admin-body) {
    overflow-x: clip;
  }

  body:not(.admin-body) .shop-hero {
    padding: 34px 0 28px;
  }

  body:not(.admin-body) .shop-hero h1 {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  body:not(.admin-body) .shop-layout {
    padding: 22px 0 70px;
  }

  body:not(.admin-body) .product-grid {
    gap: 18px 10px;
  }

  body:not(.admin-body) .variant-thumbs {
    flex-wrap: wrap;
  }
}

/* ---------- Product detail ---------- */
body:not(.admin-body) .gallery-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

body:not(.admin-body) .gallery-thumb {
  border-radius: 12px;
  overflow: hidden;
}

body:not(.admin-body) .gallery-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(42, 168, 183, 0.2);
}

body:not(.admin-body) .product-info .brand {
  color: var(--primary);
  font-weight: 600;
}

body:not(.admin-body) .product-price {
  color: var(--dark-teal);
}

body:not(.admin-body) .product-rating {
  color: var(--gold);
}

body:not(.admin-body) .qty-control {
  border-color: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

body:not(.admin-body) .stock-status {
  color: var(--dark-teal);
  font-weight: 500;
}

/* ---------- Forms ---------- */
body:not(.admin-body) .field input,
body:not(.admin-body) .field select,
body:not(.admin-body) .field textarea,
body:not(.admin-body) .coupon-row input,
body:not(.admin-body) .filter-group input,
body:not(.admin-body) .filter-group select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body:not(.admin-body) .field input:focus,
body:not(.admin-body) .field select:focus,
body:not(.admin-body) .field textarea:focus,
body:not(.admin-body) .coupon-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 168, 183, 0.18);
  outline: none;
}

body:not(.admin-body) .payment-options label {
  border-radius: 12px;
  border-color: var(--border);
  transition: border-color 0.2s ease, background 0.2s ease;
}

body:not(.admin-body) .payment-options label:has(input:checked) {
  border-color: var(--primary);
  background: #E7F7FC;
}

body:not(.admin-body) .checkout-fulfillment label{
  display:flex;align-items:flex-start;gap:12px;padding:16px 18px;cursor:pointer
}
body:not(.admin-body) .checkout-fulfillment label input{margin-top:3px;flex:0 0 auto}
body:not(.admin-body) .checkout-fulfillment label span{display:grid;gap:4px}
body:not(.admin-body) .checkout-fulfillment label strong{font-size:15px;color:var(--dark-teal)}
body:not(.admin-body) .checkout-fulfillment label small{color:var(--muted-text);font-size:12px;line-height:1.4}
body:not(.admin-body) .checkout-delivery[hidden]{display:none !important}

body:not(.admin-body) .auth-box {
  background: var(--surface);
  border-color: var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Cart / Checkout ---------- */
body:not(.admin-body) .cart-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

body:not(.admin-body) .summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

body:not(.admin-body) .summary-line {
  border-bottom-color: var(--border);
}

body:not(.admin-body) .summary-line.total {
  color: var(--dark-teal);
}

body:not(.admin-body) .summary-line.total span:last-child,
body:not(.admin-body) #sumTotal {
  color: var(--dark-teal);
  font-weight: 700;
}

body:not(.admin-body) .coupon-applied b {
  color: var(--gold);
}

body:not(.admin-body) .remove-link {
  color: var(--danger);
}

body:not(.admin-body) .free-shipping-bar {
  background: #E7F0F5;
}

body:not(.admin-body) .free-shipping-bar span {
  background: linear-gradient(90deg, var(--primary), var(--gold));
}



body:not(.admin-body) .status.completed {
  background: #E7F7FC;
  color: var(--dark-teal);
}

body:not(.admin-body) .status.cancelled {
  background: #FDF2F2;
  color: #9B3D3D;
}

body:not(.admin-body) .status.pending,
body:not(.admin-body) .status.processing,
body:not(.admin-body) .status.shipped {
  background: #EAF8FC;
  color: #0B4F6C;
}

/* ---------- Newsletter ---------- */
body:not(.admin-body) .newsletter-section {
  background: linear-gradient(120deg, var(--newsletter-from, var(--primary)) 0%, var(--newsletter-to, var(--dark-teal)) 100%);
  color: #fff;
}

body:not(.admin-body) .newsletter-section span {
  color: var(--aqua-light);
}

body:not(.admin-body) .newsletter-section h2 {
  color: #fff;
}

body:not(.admin-body) .newsletter-section form {
  border-bottom-color: rgba(var(--aqua-light-rgb, 169, 227, 229), 0.45);
}

body:not(.admin-body) .newsletter-section input,
body:not(.admin-body) .newsletter-section button {
  color: #fff;
}

body:not(.admin-body) .newsletter-section input::placeholder {
  color: rgba(var(--aqua-light-rgb, 169, 227, 229), 0.8);
}

body:not(.admin-body) .newsletter-section button:hover {
  color: var(--gold);
}

/* ---------- Footer ---------- */
body:not(.admin-body) .footer {
  background: var(--footer-bg, var(--deep-teal));
  color: #fff;
}

body:not(.admin-body) .footer-grid h4 {
  color: #fff;
  letter-spacing: 0.16em;
}

body:not(.admin-body) .footer-grid a {
  color: var(--aqua-light);
  transition: color 0.2s ease;
}

body:not(.admin-body) .footer-grid a:hover {
  color: var(--gold);
}

body:not(.admin-body) .footer-grid p {
  color: var(--aqua-light);
}

body:not(.admin-body) .footer-logo .store-logo-img {
  max-height: 56px;
}

body:not(.admin-body) .footer-bottom {
  border-top: 1px solid rgba(var(--aqua-light-rgb, 169, 227, 229), 0.18);
  color: rgba(var(--aqua-light-rgb, 169, 227, 229), 0.75);
}

body:not(.admin-body) .socials a:hover {
  color: var(--aqua);
}

/* ---------- Floating WhatsApp contact ---------- */
body:not(.admin-body) .whatsapp-float {
  position: fixed;
  inset-inline-end: max(20px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 95;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--whatsapp-icon, #fff);
  background: var(--whatsapp-bg, #25D366);
  border: 2px solid var(--whatsapp-border, #fff);
  box-shadow: 0 10px 28px rgba(var(--whatsapp-bg-rgb, 37, 211, 102), .35);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-radius .2s ease;
  opacity: 1;
  visibility: visible;
  -webkit-tap-highlight-color: transparent;
}

body:not(.admin-body) .whatsapp-float.wa-shape-circle {
  border-radius: 50%;
}

body:not(.admin-body) .whatsapp-float.wa-shape-rounded {
  border-radius: 16px;
}

body:not(.admin-body) .whatsapp-float.wa-shape-square {
  border-radius: 8px;
}

body:not(.admin-body) .whatsapp-float.wa-shape-soft {
  width: 64px;
  height: 52px;
  border-radius: 999px;
}

body:not(.admin-body) .whatsapp-float.wa-shape-bubble {
  border-radius: 22px 22px 6px 22px;
}

html[dir="rtl"] body:not(.admin-body) .whatsapp-float.wa-shape-bubble {
  border-radius: 22px 22px 22px 6px;
}

body:not(.admin-body) .whatsapp-float:hover {
  color: var(--whatsapp-icon, #fff);
  background: var(--whatsapp-hover, #128C7E);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 32px rgba(var(--whatsapp-bg-rgb, 37, 211, 102), .42);
}

body:not(.admin-body) .whatsapp-float:focus-visible {
  outline: 3px solid var(--whatsapp-bg, #25D366);
  outline-offset: 3px;
}

body:not(.admin-body) .whatsapp-float svg {
  width: 31px;
  height: 31px;
  display: block;
  color: inherit;
  fill: currentColor;
}

body:not(.admin-body) .whatsapp-float-label {
  position: absolute;
  inset-inline-end: calc(100% + 11px);
  top: 50%;
  transform: translateY(-50%) translateX(5px);
  width: max-content;
  max-width: 220px;
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--whatsapp-label-bg, var(--deep-teal));
  color: var(--whatsapp-label-text, #fff);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

html[dir="rtl"] body:not(.admin-body) .whatsapp-float-label {
  transform: translateY(-50%) translateX(-5px);
}

body:not(.admin-body) .whatsapp-float:hover .whatsapp-float-label,
body:not(.admin-body) .whatsapp-float:focus-visible .whatsapp-float-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 600px) {
  body:not(.admin-body) .whatsapp-float {
    width: 56px;
    height: 56px;
    inset-inline-end: max(14px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  body:not(.admin-body) .whatsapp-float.wa-shape-soft {
    width: 60px;
    height: 50px;
  }
  body:not(.admin-body) .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  body:not(.admin-body) .whatsapp-float-label {
    display: none;
  }
}

/* ---------- Modal ---------- */
body:not(.admin-body) .modal {
  background: rgba(22, 60, 68, 0.5);
}

body:not(.admin-body) .modal-dialog {
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

body:not(.admin-body) .quick-option {
  border-radius: 10px;
}

body:not(.admin-body) .quick-option.active {
  border-color: var(--primary);
  background: #E7F7F8;
}

/* ---------- Utility sections matching GS light tech theme ---------- */
body:not(.admin-body) .section.bbs-surface {
  background: var(--surface);
}

body:not(.admin-body) .section.bbs-mist {
  background: #EAF8FC;
}

body:not(.admin-body) .section.bbs-sand {
  background: #F3F8FB;
}

body:not(.admin-body) .product-card,
body:not(.admin-body) .category-card {
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ---------- Responsive polish ---------- */
@media (max-width: 1100px) {
  body:not(.admin-body) .mobile-menu-toggle {
    display: inline-flex;
  }
  body:not(.admin-body) .header-main {
    height: 96px;
  }
  body:not(.admin-body) .brand-lockup {
    max-width: min(240px, 48vw);
  }
  body:not(.admin-body) .brand-logo {
    height: 72px;
    max-width: min(230px, 48vw);
  }
  body:not(.admin-body) .brand-mark {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
  body:not(.admin-body) .brand-title {
    font-size: 24px;
    letter-spacing: 0.18em;
  }
  body:not(.admin-body) .store-logo-img {
    max-height: 72px;
  }
}

@media (max-width: 760px) {
  body:not(.admin-body) .header-main {
    height: 78px;
    gap: 6px;
  }
  body:not(.admin-body) .brand-lockup {
    gap: 8px;
    max-width: min(170px, 46vw);
  }
  body:not(.admin-body) .brand-logo {
    height: 58px;
    max-width: min(160px, 46vw);
  }
  body:not(.admin-body) .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  body:not(.admin-body) .brand-lockup > .brand-title {
    font-size: 18px;
    letter-spacing: 0.14em;
  }
  body:not(.admin-body) .store-logo-img {
    max-height: 58px;
  }
  body:not(.admin-body) .product-card {
    border-radius: 14px;
  }
  body:not(.admin-body) .button-dark,
  body:not(.admin-body) .checkout-btn,
  body:not(.admin-body) .add-to-cart {
    min-height: 48px;
  }
  body:not(.admin-body) .icon-btn {
    width: 40px;
    height: 40px;
  }
  body:not(.admin-body) .cart-item {
    grid-template-columns: 80px 1fr;
  }
}

/* Hero overlay from admin banners */
body:not(.admin-body) .hero-slide{position:relative}
body:not(.admin-body) .hero-overlay-content{
  position:absolute;inset:auto 0 12% 0;padding:0 6vw;max-width:760px;
  color:#fff;text-shadow:0 2px 18px rgba(22,60,68,.35);z-index:2
}
body:not(.admin-body) .hero-overlay-content h2{
  font-family:var(--font-display);font-size:clamp(28px,4.5vw,52px);font-weight:700;
  margin:0 0 10px;color:#fff;line-height:1.1
}
body:not(.admin-body) .hero-overlay-content p{
  font-size:clamp(14px,1.6vw,18px);margin:0 0 18px;color:rgba(255,255,255,.92);max-width:520px
}
body:not(.admin-body) .hero-slide::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(22,60,68,.55) 0%,rgba(22,60,68,.15) 55%,transparent 100%);
  pointer-events:none;z-index:1
}
@media (max-width: 760px) {
  body:not(.admin-body) .hero-slide::after{
    background:linear-gradient(180deg,rgba(22,60,68,.08) 0%,rgba(22,60,68,.2) 45%,rgba(22,60,68,.72) 100%);
  }
  body:not(.admin-body) .hero-overlay-content{
    inset:auto 0 14% 0;
    padding:0 18px;
    max-width:100%;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  body:not(.admin-body) .hero-overlay-content h2{
    font-size:clamp(22px,6.5vw,32px);
    margin-bottom:8px;
  }
  body:not(.admin-body) .hero-overlay-content p{
    font-size:13px;
    margin:0 0 14px;
    max-width:32ch;
  }
  body:not(.admin-body) .hero-overlay-content .button-dark{
    min-height:42px;
    padding:10px 18px;
    font-size:11px;
  }
}
body:not(.admin-body) .cms-content a{color:var(--primary);text-decoration:underline}

/* ---------- Account page ---------- */
body:not(.admin-body) .account-page{padding:48px 0 100px;background:linear-gradient(180deg,#EAF8F9 0%,var(--background) 220px,var(--background) 100%)}
body:not(.admin-body) .account-hero{
  display:flex;justify-content:space-between;align-items:stretch;gap:24px;flex-wrap:wrap;
  padding:28px;margin-bottom:28px;background:var(--surface);border:1px solid var(--border);
  border-radius:22px;box-shadow:var(--shadow-soft)
}
body:not(.admin-body) .account-hero-main{display:flex;align-items:center;gap:18px;min-width:260px}
body:not(.admin-body) .account-avatar{
  width:72px;height:72px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(145deg,var(--primary),var(--dark-teal));color:#fff;
  font-weight:700;font-size:22px;letter-spacing:.06em;flex:0 0 auto;
  box-shadow:0 10px 24px rgba(0,174,239,.28)
}
body:not(.admin-body) .account-avatar-sm{width:46px;height:46px;font-size:15px}
body:not(.admin-body) .account-hello{margin:6px 0 8px;font-family:var(--font-display);font-size:clamp(28px,3vw,40px);color:var(--dark-teal);font-weight:700;line-height:1.1}
body:not(.admin-body) .account-hello-sub{margin:0;color:var(--muted-text);max-width:460px;font-size:14px;line-height:1.6}
body:not(.admin-body) .account-stats{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
body:not(.admin-body) .account-stat{
  min-width:120px;padding:16px 18px;border-radius:16px;background:#F3F8FB;border:1px solid var(--border)
}
body:not(.admin-body) .account-stat strong{display:block;font-size:18px;color:var(--dark-teal);font-weight:700;margin-bottom:4px}
body:not(.admin-body) .account-stat span{font-size:12px;color:var(--muted-text);font-weight:600;letter-spacing:.04em}
body:not(.admin-body) .account-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}
body:not(.admin-body) .account-side-card{
  background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:18px;
  box-shadow:var(--shadow-soft);position:sticky;top:18px
}
body:not(.admin-body) .account-side-user{display:flex;align-items:center;gap:12px;padding:8px 8px 16px;border-bottom:1px solid var(--border);margin-bottom:12px}
body:not(.admin-body) .account-side-user b{display:block;color:var(--dark-teal);font-size:15px}
body:not(.admin-body) .account-side-user small{color:var(--muted-text);font-size:12px}
body:not(.admin-body) .account-menu{display:grid;gap:4px}
body:not(.admin-body) .account-menu a{
  display:block;padding:12px 14px;border-radius:12px;font-size:14px;font-weight:600;color:var(--text);
  transition:background .18s ease,color .18s ease
}
body:not(.admin-body) .account-menu a:hover{background:#E7F7FC;color:var(--dark-teal)}
body:not(.admin-body) .account-menu a.active{background:var(--primary);color:#fff}
body:not(.admin-body) .account-menu-danger{color:#9B3D3D !important}
body:not(.admin-body) .account-menu-danger:hover{background:#FDF2F2 !important;color:#9B3D3D !important}
body:not(.admin-body) .account-panel{
  background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:26px;
  box-shadow:var(--shadow-soft)
}
body:not(.admin-body) .account-panel-head{margin-bottom:22px}
body:not(.admin-body) .account-panel-head h2{margin:6px 0 0;font-size:28px;color:var(--deep-teal);font-family:var(--font-display);font-weight:700}
body:not(.admin-body) .account-empty{text-align:center;padding:48px 20px}
body:not(.admin-body) .account-empty h3{margin:0 0 8px;font-size:24px;color:var(--deep-teal)}
body:not(.admin-body) .account-empty p{margin:0 0 18px;color:var(--muted-text)}
body:not(.admin-body) .account-orders{display:grid;gap:14px}
body:not(.admin-body) .account-order-card{
  display:block;text-decoration:none;color:inherit;cursor:pointer;
  border:1px solid var(--border);border-radius:16px;padding:18px;background:#FBFEFE;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease
}
body:not(.admin-body) .account-order-card:hover{border-color:var(--aqua);box-shadow:var(--shadow-soft);transform:translateY(-1px)}
body:not(.admin-body) .account-order-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
body:not(.admin-body) .account-order-label{display:block;font-size:11px;letter-spacing:.14em;color:var(--muted-text);font-weight:700;margin-bottom:4px}
body:not(.admin-body) .account-order-top h3{margin:0;font-size:18px;color:var(--deep-teal);font-weight:700}
body:not(.admin-body) .account-order-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
body:not(.admin-body) .account-order-meta span{display:block;font-size:11px;color:var(--muted-text);margin-bottom:4px;font-weight:600}
body:not(.admin-body) .account-order-meta b{font-size:14px;color:var(--text);font-weight:700}
body:not(.admin-body) .account-order-total{color:var(--dark-teal) !important}
body:not(.admin-body) .account-order-foot{
  margin-top:14px;padding-top:12px;border-top:1px solid var(--border);
  display:flex;justify-content:space-between;align-items:center;gap:10px
}
body:not(.admin-body) .account-order-foot span{font-size:12px;font-weight:700;letter-spacing:.08em;color:var(--dark-teal);text-transform:uppercase}
body:not(.admin-body) .account-order-foot em{font-style:normal;font-size:12px;color:var(--muted-text);font-weight:600}
body:not(.admin-body) .account-form .button-dark{min-width:180px}

body:not(.admin-body) .order-detail-page .order-detail-top{margin-bottom:24px}
body:not(.admin-body) .order-back{
  display:inline-block;margin-bottom:16px;font-size:13px;font-weight:700;color:var(--dark-teal);text-decoration:none
}
body:not(.admin-body) .order-back:hover{text-decoration:underline}
body:not(.admin-body) .order-detail-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap
}
body:not(.admin-body) .order-detail-head h1{
  margin:6px 0 8px;font-family:var(--font-display);font-size:clamp(28px,3vw,40px);
  color:var(--deep-teal);font-weight:700;line-height:1.1
}
body:not(.admin-body) .order-detail-sub{margin:0;color:var(--muted-text);font-size:14px}
body:not(.admin-body) .order-pending-note{
  margin:14px 0 0;padding:12px 14px;border-radius:12px;background:#EAF8F9;
  color:var(--dark-teal);font-size:13px;font-weight:600
}
body:not(.admin-body) .order-detail-layout{
  display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.9fr);gap:24px;align-items:start
}
body:not(.admin-body) .order-items{display:grid;gap:12px;margin-bottom:18px}
body:not(.admin-body) .order-item-row{
  display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:14px;align-items:center;
  padding:12px;border:1px solid var(--border);border-radius:14px;background:#FBFEFE
}
body:not(.admin-body) .order-item-row img{
  width:72px;height:72px;object-fit:cover;border-radius:10px;background:#f3f3f3
}
body:not(.admin-body) .order-item-info h3{margin:0 0 4px;font-size:15px;color:var(--deep-teal)}
body:not(.admin-body) .order-item-info p{margin:0 0 6px;font-size:13px;color:var(--muted-text)}
body:not(.admin-body) .order-item-info span{font-size:12px;color:var(--muted-text);font-weight:600}
body:not(.admin-body) .order-item-row > b{font-size:14px;color:var(--dark-teal);white-space:nowrap}
body:not(.admin-body) .order-totals{
  border-top:1px solid var(--border);padding-top:14px;display:grid;gap:10px
}
body:not(.admin-body) .order-totals .summary-line{
  display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--text)
}
body:not(.admin-body) .order-totals .summary-line.total{
  margin-top:4px;padding-top:10px;border-top:1px solid var(--border);
  font-size:16px;font-weight:700;color:var(--deep-teal)
}
body:not(.admin-body) .order-info-block{display:grid;gap:14px}
body:not(.admin-body) .order-info-block > div span{
  display:block;font-size:11px;letter-spacing:.06em;color:var(--muted-text);font-weight:700;margin-bottom:4px;text-transform:uppercase
}
body:not(.admin-body) .order-info-block > div b{font-size:14px;color:var(--text);font-weight:600;line-height:1.45}
body:not(.admin-body) .order-actions{
  display:grid;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid var(--border)
}
body:not(.admin-body) .order-actions .button-dark,
body:not(.admin-body) .order-actions .button-cancel,
body:not(.admin-body) .order-edit-actions .button-dark,
body:not(.admin-body) .order-edit-actions .button-outline{width:100%;text-align:center}
body:not(.admin-body) .button-cancel{
  display:inline-flex;align-items:center;justify-content:center;width:100%;
  min-height:46px;padding:12px 18px;border:1px solid #E2B4B4;border-radius:999px;
  background:#FFF8F8;color:#9B3D3D;font-weight:700;font-size:12px;letter-spacing:.1em;
  cursor:pointer;transition:background .18s ease,border-color .18s ease
}
body:not(.admin-body) .button-cancel:hover{background:#FDF2F2;border-color:#D28F8F}
body:not(.admin-body) .order-edit-actions{display:grid;gap:10px}
@media(max-width:980px){
  body:not(.admin-body) .account-layout{grid-template-columns:1fr}
  body:not(.admin-body) .account-side-card{position:static}
  body:not(.admin-body) .account-order-meta{grid-template-columns:repeat(2,1fr)}
  body:not(.admin-body) .order-detail-layout{grid-template-columns:1fr}
}
@media(max-width:760px){
  body:not(.admin-body) .account-hero{padding:20px}
  body:not(.admin-body) .account-stats{width:100%}
  body:not(.admin-body) .account-stat{flex:1;min-width:calc(50% - 12px)}
  body:not(.admin-body) .account-panel{padding:18px}
  body:not(.admin-body) .account-order-meta{grid-template-columns:1fr 1fr}
  body:not(.admin-body) .order-item-row{grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto}
  body:not(.admin-body) .order-item-row > b{grid-column:2}
}

body:not(.admin-body) .gallery-thumbs{
  max-height:min(75vh,760px);
  overflow-y:auto;
  scrollbar-width:thin;
}
@media(max-width:760px){
  body:not(.admin-body) .gallery-thumbs{
    max-height:none;
    overflow-x:auto;
    overflow-y:hidden;
  }
}