@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --bg:           #FDFCFB;
  --surface:      #FFFFFF;
  --primary:      #1C2B3A;
  --accent:       #2A8A8A;
  --accent-hover: #1E6B6B;
  --accent-light: #EBF5F5;
  --teal:         #3D8B85;
  --teal-dark:    #2A6360;
  --teal-light:   #EAF4F3;
  --muted:        #8D8D8D;
  --border:       #E8DDD5;
  --error:        #C0392B;
  --error-bg:     #FEF0EE;
  --success:      #27AE60;
  --success-bg:   #EAF7EF;
  --font-head:    'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --shadow-xs:    0 1px 4px rgba(0,0,0,.06);
  --shadow-sm:    0 2px 10px rgba(0,0,0,.08);
  --shadow-md:    0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.16);
  --r:            12px;
  --r-sm:         6px;
  --r-pill:       999px;
}

/* ─── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font-body); background: var(--bg); color: var(--primary); line-height: 1.6; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── HEADER ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: 1480px; margin: 0 auto;
  padding: 0 32px; height: 70px;
  display: flex; align-items: center; gap: 36px;
}

.site-logo {
  font-family: var(--font-head);
  font-size: 28px; font-weight: 700;
  color: var(--teal-dark); letter-spacing: -.5px;
  flex-shrink: 0; white-space: nowrap;
}
.site-logo span { color: var(--accent); }

.site-nav {
  display: flex; gap: 28px;
}
.site-nav a {
  font-size: 14px; font-weight: 500;
  color: var(--primary); opacity: .75;
  letter-spacing: .2px;
  transition: opacity .2s, color .2s;
  position: relative;
}
.site-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--teal);
  transform: scaleX(0); transition: transform .25s;
}
.site-nav a:hover { opacity: 1; color: var(--teal); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-spacer { flex: 1; }

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

.hdr-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%; border: none;
  background: transparent; color: var(--primary);
  cursor: pointer; transition: background .2s;
  text-decoration: none;
}
.hdr-btn:hover { background: var(--accent-light); }
.hdr-btn svg { width: 21px; height: 21px; stroke-width: 1.8; }

.cart-badge {
  position: absolute; top: 3px; right: 3px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; border: 2px solid #fff;
  transition: transform .2s;
}
.cart-badge[data-count="0"] { display: none; }

.cart-party-anim { animation: cartParty 1s ease forwards; }
@keyframes cartParty {
  0%   { transform: scale(1)    rotate(0);      }
  18%  { transform: scale(1.55) rotate(-16deg); }
  36%  { transform: scale(1.25) rotate(13deg);  }
  52%  { transform: scale(1.42) rotate(-9deg);  }
  66%  { transform: scale(1.15) rotate(5deg);   }
  78%  { transform: scale(1.28) rotate(-3deg);  }
  90%  { transform: scale(1.06) rotate(1deg);   }
  100% { transform: scale(1)    rotate(0);      }
}

.hdr-login-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r-pill);
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; transition: background .2s;
  text-decoration: none; white-space: nowrap;
}
.hdr-login-btn:hover { background: var(--teal-dark); }
.hdr-login-btn svg { width: 16px; height: 16px; }

/* ─── FLASH TOASTS ────────────────────────────────────── */
.toast-stack {
  position: fixed; top: 82px; right: 24px; z-index: 500;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 360px; width: calc(100% - 48px);
}
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--success);
  animation: toastIn .3s ease forwards;
}
.toast.error { border-left-color: var(--error); }
.toast-icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast-msg { font-size: 14px; line-height: 1.4; flex: 1; }
.toast-close {
  flex-shrink: 0; margin-left: 4px; margin-top: -2px;
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--muted); padding: 0 2px;
  line-height: 1;
}
.toast-close:hover { color: var(--error); }
@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ─── FLY-TO-CART DOT ─────────────────────────────────── */
.fly-dot {
  position: fixed; width: 52px; height: 52px;
  border-radius: 50%; background: var(--accent);
  background-size: cover; background-position: center;
  z-index: 9999; pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: top 1.2s cubic-bezier(.2,1,.3,1),
              left 1.2s cubic-bezier(.2,1,.3,1),
              width 1.1s, height 1.1s, opacity 1s,
              border-radius 1.1s;
}

/* ─── CAROUSEL ────────────────────────────────────────── */
.hero-carousel {
  position: relative; height: 580px; overflow: hidden;
  background: var(--primary);
}
.carousel-track {
  display: flex; height: 100%;
  transition: transform .75s cubic-bezier(.77,0,.175,1);
}
.carousel-slide {
  min-width: 100%; height: 100%; position: relative;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.carousel-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(28,43,58,.82) 0%, rgba(28,43,58,.5) 55%, rgba(28,43,58,.15) 100%);
}
.slide-content {
  position: relative; z-index: 1;
  max-width: 1480px; margin: 0 auto;
  padding: 0 80px; color: #fff;
  max-width: 680px; margin-left: calc((100% - 1480px)/2 + 80px);
}
@media (max-width: 1480px) { .slide-content { margin-left: 80px; } }

.slide-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 22px;
}
.slide-title {
  font-family: var(--font-head);
  font-size: clamp(38px,5.5vw,72px);
  font-weight: 600; line-height: 1.05;
  margin-bottom: 18px;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.slide-desc {
  font-size: 17px; opacity: .9;
  max-width: 480px; margin-bottom: 36px;
  line-height: 1.65;
}
.slide-price-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.slide-price-now  { font-size: 32px; font-weight: 700; }
.slide-price-was  { font-size: 18px; opacity: .65; text-decoration: line-through; }
.slide-discount-badge {
  background: #E74C3C; color: #fff;
  padding: 4px 12px; border-radius: 4px;
  font-size: 13px; font-weight: 700;
}
.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.carousel-prev, .carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 50px; height: 50px;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.carousel-prev:hover, .carousel-next:hover {
  background: rgba(255,255,255,.3); border-color: #fff;
}
.carousel-prev { left: 28px; }
.carousel-next { right: 28px; }
.carousel-prev svg, .carousel-next svg { width: 20px; height: 20px; }

.carousel-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.45); border: none; cursor: pointer;
  transition: width .3s, background .3s;
}
.carousel-dot.active { width: 28px; background: #fff; }

/* ─── ANNOUNCEMENT BAR ────────────────────────────────── */
.announce-bar {
  background: var(--primary); color: #fff;
  text-align: center; padding: 9px 20px;
  font-size: 13px; font-weight: 500; letter-spacing: .3px;
}
.announce-bar a { color: var(--accent); font-weight: 700; }

/* ─── CATEGORIES BAR ──────────────────────────────────── */
.cat-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 70px; z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.cat-bar-inner {
  max-width: 1480px; margin: 0 auto;
  padding: 10px 32px;
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
}
.cat-bar-inner::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  padding: 7px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: #fff;
  font-size: 13px; font-weight: 500; color: var(--primary);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  display: inline-block;
  transition: all .18s; font-family: var(--font-body);
}
.cat-pill:hover  { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }
.cat-pill.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ── Category hero ──────────────────────────────────── */
.cat-hero { background: linear-gradient(135deg, var(--teal-dark, #175d5c) 0%, var(--teal, #267f7d) 100%); color: #fff; padding: 48px 32px 40px; }
.cat-hero-inner { max-width: 1480px; margin: 0 auto; }
.cat-breadcrumb { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: rgba(255,255,255,.75); text-decoration: none; margin-bottom: 16px; transition: color .15s; }
.cat-breadcrumb:hover { color: #fff; }
.cat-hero h1 { font-size: 36px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.3px; }
.cat-hero p { font-size: 15px; color: rgba(255,255,255,.8); margin: 0; }
@media (max-width: 600px) { .cat-hero { padding: 32px 20px 28px; } .cat-hero h1 { font-size: 26px; } }

/* ── Catalog search bar ─────────────────────────────── */
.catalog-search-bar { margin: 20px 0 4px; }
.catalog-search-wrap {
  position: relative; display: flex; align-items: center;
}
.catalog-search-wrap svg {
  position: absolute; left: 14px; color: var(--muted); pointer-events: none;
}
#cat-search {
  width: 100%; padding: 12px 16px 12px 44px;
  font-size: 15px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); background: #fff;
  font-family: var(--font-body); color: var(--primary);
  transition: border-color .18s, box-shadow .18s;
}
#cat-search:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(38,127,125,.12);
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; letter-spacing: .3px;
  cursor: pointer; border: 2px solid transparent;
  transition: all .22s; text-decoration: none; white-space: nowrap;
}
.btn-accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  transform: translateY(-1px); box-shadow: 0 6px 22px rgba(196,149,106,.42);
}
.btn-outline-white {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15); border-color: #fff;
}
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--teal-dark); border-color: var(--teal-dark);
  transform: translateY(-1px);
}
.btn-teal {
  background: var(--teal); color: #fff; border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-dark); border-color: var(--teal-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--primary); border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); background: var(--bg); }
.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }
.btn svg { width: 17px; height: 17px; }

/* ─── SECTION WRAPPER ─────────────────────────────────── */
.section-wrap {
  max-width: 1480px; margin: 0 auto; padding: 64px 32px;
}
.section-head {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 16px;
  margin-bottom: 40px;
}
.section-title {
  font-family: var(--font-head);
  font-size: 38px; font-weight: 600; line-height: 1.1;
}
.section-sub { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ─── FEATURES BAR ────────────────────────────────────── */
.features-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-inner {
  max-width: 1480px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: repeat(4,1fr);
}
.feature-item {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 20px;
  border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--teal);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-title { font-size: 14px; font-weight: 600; }
.feature-desc  { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ─── PRODUCT GRID ────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 22px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .3s, transform .3s;
  position: relative; cursor: pointer;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.product-img-wrap {
  position: relative; height: 230px; overflow: hidden;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  box-sizing: border-box;
  transition: transform .35s ease;
  padding: 14px;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

.product-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 2;
}
.badge {
  display: inline-block; padding: 3px 9px;
  border-radius: 4px; font-size: 10px;
  font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
}
.badge-new  { background: var(--teal);   color: #fff; }
.badge-sale { background: #E74C3C;       color: #fff; }

.product-hover-actions {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(8px);
  transition: opacity .3s, transform .3s;
  z-index: 2;
}
.product-card:hover .product-hover-actions {
  opacity: 1; transform: translateX(0);
}
.p-action-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); cursor: pointer; color: var(--primary);
  transition: background .2s, color .2s;
}
.p-action-btn:hover { background: var(--accent); color: #fff; }
.p-action-btn svg { width: 15px; height: 15px; }

.product-info { padding: 14px 16px 16px; }
.product-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 5px;
}
.product-name {
  font-size: 14px; font-weight: 600; color: var(--primary);
  margin-bottom: 6px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-desc {
  font-size: 12px; color: var(--muted); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.5;
}
.product-price { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.p-price-now  { font-size: 17px; font-weight: 700; color: var(--teal-dark); }
.p-price-was  { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.p-price-pct  {
  font-size: 11px; font-weight: 700; color: #E74C3C;
  background: #FEF0EE; padding: 2px 6px; border-radius: 3px;
}
.p-stock-out  { font-size: 12px; color: var(--error); font-weight: 600; }

.add-cart-form { display: flex; gap: 7px; align-items: center; }
.qty-input {
  width: 52px; min-height: 36px; padding: 5px 6px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: 14px; text-align: center; background: var(--bg);
  outline: none; transition: border-color .2s;
}
.qty-input:focus { border-color: var(--teal); }
.add-cart-btn {
  flex: 1; min-height: 36px; padding: 7px 10px;
  background: var(--primary); color: #fff; border: none;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .2s;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.add-cart-btn:hover { background: var(--teal-dark); }
.add-cart-btn.adding { opacity: .7; pointer-events: none; }
.add-cart-btn svg { width: 14px; height: 14px; }

/* ─── HIGHLIGHT STRIP ─────────────────────────────────── */
.highlight-strip {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--primary) 100%);
  padding: 56px 32px; text-align: center; color: #fff;
}
.highlight-strip h2 { font-family: var(--font-head); font-size: 42px; font-weight: 600; margin-bottom: 14px; }
.highlight-strip p  { font-size: 17px; opacity: .85; margin-bottom: 32px; }

/* ─── FORM ELEMENTS ───────────────────────────────────── */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--primary); }
.form-input, .form-select, .form-textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 15px;
  background: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61,139,133,.12);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ─── CARD ────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-xs);
}
.card-title { font-family: var(--font-head); font-size: 22px; font-weight: 600; margin-bottom: 20px; }

/* ─── LOGIN PAGE ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
}
.auth-visual {
  position: relative; overflow: hidden;
  background: var(--primary);
}
.auth-visual-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .3;
}
.auth-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(42,99,96,.9), rgba(28,43,58,.9));
}
.auth-visual-content {
  position: relative; z-index: 1; color: #fff;
  padding: 60px; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-logo { font-family: var(--font-head); font-size: 38px; font-weight: 700; margin-bottom: 24px; }
.auth-logo span { color: var(--accent); }
.auth-tagline { font-size: 18px; opacity: .85; line-height: 1.6; max-width: 340px; margin-bottom: 40px; }
.auth-bullets { display: flex; flex-direction: column; gap: 16px; }
.auth-bullet { display: flex; align-items: center; gap: 12px; font-size: 15px; opacity: .85; }
.auth-bullet svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

.auth-form-side {
  display: flex; align-items: center; justify-content: center;
  padding: 48px; background: var(--bg);
}
.auth-form-wrap { width: 100%; max-width: 440px; }
.auth-form-title { font-family: var(--font-head); font-size: 32px; font-weight: 600; margin-bottom: 8px; }
.auth-form-sub   { color: var(--muted); font-size: 15px; margin-bottom: 32px; }

.auth-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 28px; }
.auth-tab {
  padding: 10px 20px; font-size: 15px; font-weight: 600;
  color: var(--muted); cursor: pointer;
  border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all .2s;
}
.auth-tab.active { color: var(--teal); border-bottom-color: var(--teal); }

.auth-panel { display: none; }
.auth-panel.active { display: flex; flex-direction: column; gap: 16px; }

.google-signin-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 20px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); font-size: 15px; font-weight: 500;
  color: var(--primary); cursor: pointer;
  box-shadow: var(--shadow-xs); transition: all .2s;
}
.google-signin-btn:hover { box-shadow: var(--shadow-sm); border-color: #4285F4; }
.google-logo { width: 20px; height: 20px; }

.or-divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--muted); font-size: 13px;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ─── CART PAGE ───────────────────────────────────────── */
.cart-page-wrap {
  max-width: 1200px; margin: 0 auto; padding: 48px 32px;
}
.cart-page-grid {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 28px; align-items: start;
}
.cart-page-title {
  font-family: var(--font-head); font-size: 36px; font-weight: 600;
  margin-bottom: 28px;
}
.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto;
  gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 84px; height: 84px; object-fit: cover;
  border-radius: var(--r-sm); background: var(--accent-light);
}
.cart-item-name  { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.cart-item-meta  { font-size: 13px; color: var(--muted); }
.cart-item-price { font-size: 17px; font-weight: 700; color: var(--teal-dark); }
.cart-item-remove {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px; border-radius: 4px;
  transition: color .2s, background .2s;
  display: flex; align-items: center;
}
.cart-item-remove:hover { color: var(--error); background: var(--error-bg); }
.cart-item-remove svg { width: 18px; height: 18px; }

.cart-qty-row {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
}
.qty-btn {
  width: 28px; height: 28px; border-radius: 6px; border: 1.5px solid var(--border);
  background: var(--bg); cursor: pointer; font-size: 16px; line-height: 1;
  color: var(--text); display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.qty-btn:hover:not(:disabled) { background: var(--accent-light); border-color: var(--accent); }
.qty-btn:disabled { opacity: .35; cursor: default; }
.qty-val {
  min-width: 24px; text-align: center; font-weight: 600; font-size: 15px;
}

.summary-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.summary-line:last-of-type { border-bottom: none; }
.summary-line.total {
  padding-top: 16px; font-size: 19px; font-weight: 700;
  border-top: 2px solid var(--border); border-bottom: none; margin-top: 4px;
}
.summary-label { color: var(--muted); }
.summary-value { font-weight: 600; }

.coupon-form { display: flex; gap: 8px; margin-bottom: 20px; }
.coupon-form .form-input { min-height: 42px; font-size: 14px; }

.address-select-wrap { margin: 20px 0; }
.address-option {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); margin-bottom: 10px; cursor: pointer;
  transition: border-color .2s;
}
.address-option:has(input:checked) { border-color: var(--teal); background: var(--teal-light); }
.address-option input { margin-top: 3px; accent-color: var(--teal); }
.addr-name { font-weight: 600; font-size: 14px; }
.addr-line { font-size: 13px; color: var(--muted); }

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer { background: var(--primary); color: rgba(255,255,255,.75); margin-top: 80px; }
.footer-top {
  max-width: 1480px; margin: 0 auto; padding: 64px 32px 48px;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand-name { font-family: var(--font-head); font-size: 30px; color: #fff; margin-bottom: 14px; }
.footer-brand-name span { color: var(--accent); }
.footer-tagline { font-size: 14px; line-height: 1.7; max-width: 260px; }
.footer-col h5 {
  color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col li a { font-size: 14px; transition: color .2s, opacity .2s; }
.footer-col li a:hover { color: #fff; opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  max-width: 1480px; margin: 0 auto; padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; opacity: .55;
}

/* ─── BACKWARD COMPAT (admin.php uses old class names) ── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
}
.brand { font-size: 22px; font-weight: 700; color: var(--teal-dark); font-family: var(--font-head); }
.topbar nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.topbar nav a { opacity: .75; transition: opacity .2s; }
.topbar nav a:hover { opacity: 1; color: var(--teal); }
main { max-width: 1180px; margin: 0 auto; padding: 24px; }
.two-col  { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-title p { color: var(--muted); }
.stack  { display: grid; gap: 10px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
.compact button, .compact label, .compact input[name=referencias] { grid-column: 1/-1; }
.card input:not([type=checkbox]):not([type=radio]):not([type=number][style]),
.card select,
.card textarea {
  width: 100%; min-height: 42px; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font: inherit; background: white; outline: none;
  transition: border-color .2s;
}
.card input:focus, .card select:focus, .card textarea:focus { border-color: var(--teal); }
.card textarea { min-height: 96px; resize: vertical; }
.card button:not([class]) {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 42px; padding: 10px 14px;
  border: 1.5px solid var(--teal); border-radius: var(--r-sm);
  color: white; background: var(--teal); cursor: pointer; font-weight: 700;
  font-family: inherit;
}
.button {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 42px; padding: 10px 18px;
  border: 1.5px solid var(--teal); border-radius: var(--r-sm);
  color: white; background: var(--teal); cursor: pointer; font-weight: 700;
  transition: background .2s;
}
.button.ghost { color: var(--teal-dark); background: white; }
.button.wide  { width: 100%; margin-top: 14px; }
.flash { margin: 10px 0; padding: 12px 14px; border-radius: 8px; background: var(--success-bg); border: 1px solid #b7ddcc; font-size: 14px; }
.flash.error  { background: var(--error-bg); border-color: #e6b7c0; }
.hero {
  min-height: 320px; display: grid;
  grid-template-columns: 1fr 220px;
  align-items: center; gap: 28px; padding: 52px;
  color: white;
  background: linear-gradient(90deg,rgba(23,93,92,.9),rgba(38,127,125,.68)),
              url('https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?auto=format&fit=crop&w=1600&q=80') center/cover;
}
.hero h1 { margin: 0; font-size: 48px; letter-spacing: -.5px; }
.hero p  { max-width: 560px; line-height: 1.55; opacity: .9; }
.hero-panel {
  display: grid; place-items: center; min-height: 160px;
  border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12);
}
.hero-panel strong { font-size: 52px; }
.admin-hero { min-height: 240px; }
.eyebrow { text-transform: uppercase; letter-spacing: .5px; font-size: 12px; font-weight: 700; }
.muted { color: var(--muted); }
.auth-only { max-width: 460px; margin: 80px auto; }
.price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.price span { font-size: 22px; font-weight: 700; color: var(--teal-dark); }
.price del  { font-size: 14px; color: var(--muted); }
.price b    { color: #E74C3C; font-size: 13px; }

/* ─── ADMIN PAGE (unchanged layout) ──────────────────── */
.admin-topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.94);
}
.admin-topbar .brand { font-size: 22px; font-weight: 700; color: var(--teal-dark); font-family: var(--font-head); }
.admin-topbar nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.admin-main { max-width: 1180px; margin: 0 auto; padding: 24px; }
.admin-section { margin: 28px 0; }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.old-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.old-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.old-stack  { display: grid; gap: 10px; }
.old-inline { display: flex; gap: 8px; align-items: center; }
.old-input, .old-select, .old-textarea {
  width: 100%; min-height: 42px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 6px;
  font: inherit; background: white;
}
.old-textarea { min-height: 96px; resize: vertical; }
.old-btn {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 42px; padding: 10px 14px;
  border: 1px solid var(--teal); border-radius: 6px;
  color: white; background: var(--teal); cursor: pointer; font-weight: 700;
}
.old-btn.ghost { color: var(--teal-dark); background: white; }
.old-btn.wide  { width: 100%; margin-top: 14px; }
.flash-old { margin: 10px 0; padding: 12px 14px; border-radius: 6px; background: #e7f5ef; border: 1px solid #b7ddcc; }
.flash-old.error { background: #fff0f2; border-color: #e6b7c0; }
.hero-admin { min-height: 240px; display:grid; grid-template-columns:1fr 220px; align-items:center; gap:28px; padding:52px; color:white; background:linear-gradient(90deg,rgba(23,93,92,.9),rgba(38,127,125,.68)),url('https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?auto=format&fit=crop&w=1600&q=80') center/cover; }
.hero-admin h1 { margin:0; font-size:38px; }
.hero-panel { display:grid; place-items:center; min-height:140px; border:1px solid rgba(255,255,255,.4); background:rgba(255,255,255,.12); }
.hero-panel strong { font-size:44px; }
.auth-only { max-width:460px; margin:80px auto; }
.eyebrow { text-transform:uppercase; font-size:12px; font-weight:700; }
.muted { color:var(--muted); }
table { width:100%; border-collapse:collapse; font-size:14px; }
th,td { padding:10px; border-bottom:1px solid var(--border); text-align:left; vertical-align:top; }
th { color:var(--muted); font-weight:700; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1380px) {
  .products-grid { grid-template-columns: repeat(4,1fr); }
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
}
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3,1fr); }
  .features-inner { grid-template-columns: repeat(2,1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-carousel { height: 460px; }
  .slide-content { padding: 0 40px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .cart-page-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .products-grid .product-img-wrap { height: 190px; }
  .site-nav { display: none; }
  .header-inner { padding: 0 16px; gap: 16px; }
  .hero-carousel { height: 380px; }
  .slide-content { padding: 0 24px; }
  .slide-title { font-size: 30px; }
  .section-wrap { padding: 40px 16px; }
  .features-inner { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-item:last-child { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cart-page-wrap { padding: 28px 16px; }
  .admin-two-col, .admin-grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-admin { grid-template-columns:1fr; padding:32px 22px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .product-info { padding: 10px 12px 12px; }
  .hero-carousel { height: 320px; }
  .carousel-prev, .carousel-next { width: 38px; height: 38px; }
  .hdr-login-btn span { display: none; }
}
