/* =============================================================
   CparraStudio — Shop: Productos + Carrito + Quick View
   Carga DESPUÉS de animations.css, ANTES de enroll.css
   ============================================================= */

/* ========================= NAV ACTIONS WRAPPER ========================= */

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

@media (max-width: 720px) {
  .nav-actions { gap: var(--s-2); }
  .nav-actions .nav-cta {
    padding: 10px 16px;
    font-size: 11px;
    min-height: 40px;
  }
  .cart-btn { width: 40px; height: 40px; }
  .cart-btn svg { width: 20px; height: 20px; }
}

@media (max-width: 380px) {
  .nav-actions .nav-cta { padding: 8px 12px; }
}

/* ========================= CART ICON IN NAVBAR ========================= */

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--ink);
  transition: all var(--t-fast) var(--ease-soft);
  margin-right: var(--s-2);
}

.cart-btn:hover {
  background: var(--champagne);
  transform: scale(1.06);
}

.cart-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--terracotta);
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  border: 2px solid var(--cream);
  transform: scale(0);
  transition: transform 200ms var(--ease-soft);
}

.navbar.scrolled .cart-count { border-color: rgba(250, 245, 238, 0.94); }

.cart-count.visible { transform: scale(1); }

.cart-count.bump {
  animation: cart-bump 540ms var(--ease-soft);
}

@keyframes cart-bump {
  0% { transform: scale(1); }
  30% { transform: scale(1.5); background: var(--gold); }
  60% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.cart-btn.bump {
  animation: cart-icon-bump 460ms var(--ease-soft);
}

@keyframes cart-icon-bump {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.18) rotate(-8deg); }
  70% { transform: scale(0.95) rotate(4deg); }
}

/* ========================= PRODUCT CARDS ========================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}

.product-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t-med) var(--ease-soft);
  border: 1px solid var(--hairline);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.product-image {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--champagne);
  cursor: pointer;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-soft);
}

.product-card:hover .product-image img { transform: scale(1.06); }

.product-image .product-badge {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  background: var(--ink);
  color: var(--cream);
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
}

.product-image .product-badge.bestseller { background: var(--terracotta); }
.product-image .product-badge.new { background: var(--gold); color: var(--mocha); }

.product-quick-view {
  position: absolute;
  bottom: var(--s-3);
  left: 50%;
  transform: translate(-50%, 30px);
  background: rgba(250, 245, 238, 0.95);
  backdrop-filter: blur(8px);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--r-full);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: all var(--t-med) var(--ease-soft);
  white-space: nowrap;
  z-index: 2;
}

.product-card:hover .product-quick-view {
  transform: translate(-50%, 0);
  opacity: 1;
}

.product-body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}

.product-category {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}

.product-name {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.product-tagline {
  font-size: var(--fs-13, 0.82rem);
  color: var(--ink-soft);
  line-height: 1.45;
  flex: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-3);
  margin-top: var(--s-2);
  border-top: 1px solid var(--hairline);
  gap: var(--s-3);
}

.product-price {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: 500;
  color: var(--terracotta-deep);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.product-price small {
  font-size: var(--fs-14);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-faded);
  text-decoration: line-through;
}

.add-to-cart-btn {
  background: var(--ink);
  color: var(--cream);
  padding: 11px 18px;
  border-radius: var(--r-full);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--t-fast) var(--ease-soft);
  position: relative;
  overflow: hidden;
  min-width: 110px;
  justify-content: center;
}

.add-to-cart-btn:hover {
  background: var(--terracotta);
  transform: translateY(-2px);
}

.add-to-cart-btn.added {
  background: var(--gold-deep);
  color: var(--cream);
  pointer-events: none;
}

.add-to-cart-btn.added .label-add { display: none; }
.add-to-cart-btn .label-added { display: none; }
.add-to-cart-btn.added .label-added { display: inline-flex; align-items: center; gap: 6px; }

/* ========================= QUICK VIEW MODAL ========================= */

.qv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 42, 32, 0.65);
  backdrop-filter: blur(8px);
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease-soft);
}

.qv-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.qv-modal {
  background: var(--cream);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  transform: scale(0.96) translateY(20px);
  transition: transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(201, 166, 106, 0.3);
}

.qv-overlay.open .qv-modal { transform: scale(1) translateY(0); }

.qv-close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(250, 245, 238, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-20);
  color: var(--ink);
  z-index: 5;
  transition: all var(--t-fast) var(--ease-soft);
  border: 1px solid var(--hairline);
}

.qv-close:hover { background: var(--ink); color: var(--cream); transform: rotate(90deg); }

.qv-image {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--champagne);
}

.qv-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qv-body {
  padding: var(--s-7) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.qv-body .product-category { margin-bottom: 0; }

.qv-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.qv-body .qv-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-18);
  color: var(--terracotta-deep);
  font-weight: 300;
}

.qv-body .qv-description {
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: var(--fs-15, 0.95rem);
}

.qv-benefits {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.qv-benefits li {
  padding-left: 28px;
  position: relative;
  font-size: var(--fs-14);
  color: var(--ink);
  line-height: 1.5;
}

.qv-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.qv-shades {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-2);
}

.qv-shade {
  padding: 8px 14px;
  border: 1.5px solid var(--hairline-strong);
  border-radius: var(--r-full);
  font-size: var(--fs-12);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-soft);
}

.qv-shade:hover { border-color: var(--terracotta); color: var(--terracotta-deep); }
.qv-shade.selected { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.qv-footer {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline);
  margin-top: auto;
}

.qv-price {
  font-family: var(--font-display);
  font-size: var(--fs-32);
  font-weight: 500;
  color: var(--terracotta-deep);
}

.qv-add-btn {
  flex: 1;
  background: var(--terracotta);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: var(--r-full);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--t-fast) var(--ease-soft);
  box-shadow: var(--shadow-warm);
}

.qv-add-btn:hover {
  background: var(--terracotta-deep);
  transform: translateY(-2px);
}

.qv-add-btn.added { background: var(--gold-deep); pointer-events: none; }
.qv-add-btn.added .label-add { display: none; }
.qv-add-btn .label-added { display: none; }
.qv-add-btn.added .label-added { display: inline-flex; align-items: center; gap: 6px; }

/* ========================= CART DRAWER ========================= */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 42, 32, 0.55);
  backdrop-filter: blur(6px);
  z-index: 970;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease-soft);
}

.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 100vw);
  height: 100vh;
  background: var(--cream);
  z-index: 971;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -20px 0 50px rgba(58, 42, 32, 0.18);
}

.cart-overlay.open .cart-drawer { transform: translateX(0); }

.cart-header {
  padding: var(--s-6) var(--s-6) var(--s-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
  position: relative;
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: var(--fs-32);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cart-header .cart-count-label {
  font-size: var(--fs-13, 0.82rem);
  color: var(--ink-soft);
  margin-top: 2px;
}

.cart-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-20);
  color: var(--ink);
  transition: all var(--t-fast) var(--ease-soft);
}

.cart-close:hover { background: var(--ink); color: var(--cream); transform: rotate(90deg); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-4) var(--s-6);
  -webkit-overflow-scrolling: touch;
}

.cart-empty {
  text-align: center;
  padding: var(--s-7) var(--s-4);
}

.cart-empty .icon {
  font-size: 56px;
  margin-bottom: var(--s-4);
  display: block;
  filter: grayscale(0.4);
  opacity: 0.6;
}

.cart-empty h4 {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: 500;
  margin-bottom: var(--s-2);
}

.cart-empty p {
  color: var(--ink-soft);
  font-size: var(--fs-14);
  margin-bottom: var(--s-5);
  line-height: 1.5;
}

.cart-empty-suggestions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.cart-suggestion {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--s-3);
  transition: all var(--t-fast) var(--ease-soft);
}

.cart-suggestion:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
}

.cart-suggestion img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.cart-suggestion .name {
  font-family: var(--font-display);
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: 1.2;
}

.cart-suggestion .price {
  font-size: var(--fs-12);
  color: var(--terracotta-deep);
  font-weight: 600;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: var(--s-4);
  align-items: flex-start;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--hairline);
  animation: cart-item-in 360ms var(--ease-soft);
}

@keyframes cart-item-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.cart-item.removing {
  animation: cart-item-out 320ms var(--ease-soft) forwards;
}

@keyframes cart-item-out {
  to { opacity: 0; transform: translateX(40px); height: 0; padding: 0; margin: 0; border: 0; }
}

.cart-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--r-md);
}

.cart-item .info {
  min-width: 0;
}

.cart-item .name {
  font-family: var(--font-display);
  font-size: var(--fs-18);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 2px;
}

.cart-item .variant {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: var(--s-2);
}

.cart-item .qty-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  background: var(--champagne);
  border-radius: var(--r-full);
  overflow: hidden;
}

.cart-qty button {
  width: 30px;
  height: 30px;
  background: transparent;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast) var(--ease-soft);
}

.cart-qty button:hover { background: var(--terracotta); color: var(--cream); }

.cart-qty .qty-val {
  min-width: 28px;
  text-align: center;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink);
  padding: 0 4px;
  transition: transform 220ms var(--ease-soft);
}

.cart-qty .qty-val.bump {
  animation: qty-bump 380ms var(--ease-soft);
}

@keyframes qty-bump {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.3); color: var(--terracotta); }
}

.cart-item-remove {
  font-size: 11px;
  color: var(--ink-faded);
  letter-spacing: 0.08em;
  text-decoration: underline;
  transition: color var(--t-fast) var(--ease-soft);
}

.cart-item-remove:hover { color: var(--terracotta-deep); }

.cart-item .price-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-2);
}

.cart-item .item-price {
  font-family: var(--font-display);
  font-size: var(--fs-18);
  font-weight: 500;
  color: var(--terracotta-deep);
  transition: transform 220ms var(--ease-soft);
}

.cart-item .item-price.bump {
  animation: qty-bump 380ms var(--ease-soft);
}

.cart-footer {
  border-top: 2px solid var(--hairline);
  padding: var(--s-5) var(--s-6) var(--s-6);
  background: var(--surface);
  flex-shrink: 0;
}

.cart-perks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--s-4);
  font-size: var(--fs-12);
  color: var(--ink-soft);
}

.cart-perks .perk {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.cart-perks .perk::before {
  content: "✓";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--mocha);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--s-3) 0;
  font-size: var(--fs-14);
  color: var(--ink-soft);
}

.cart-summary.total {
  font-family: var(--font-display);
  font-size: var(--fs-32);
  color: var(--ink);
  font-weight: 500;
  margin-top: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--hairline);
}

.cart-summary.total .lbl {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.cart-checkout-btn {
  width: 100%;
  margin-top: var(--s-4);
}

/* ========================= TOAST ENHANCED ========================= */

.shop-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--cream);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  z-index: 9990;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 400ms cubic-bezier(0.22, 0.61, 0.36, 1);
  max-width: 320px;
}

.shop-toast.show { transform: translateX(0); }

.shop-toast img {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  object-fit: cover;
}

.shop-toast .toast-text { flex: 1; min-width: 0; }
.shop-toast .toast-text .ok-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.shop-toast .toast-text .name {
  font-size: var(--fs-13, 0.82rem);
  line-height: 1.3;
  font-weight: 600;
}

/* ========================= FILTER BAR ========================= */

.shop-filters {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-7);
}

/* ========================= BUNDLES ========================= */

.bundles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}

.bundle-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 280px;
  transition: all var(--t-med) var(--ease-soft);
}

.bundle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.bundle-card.featured {
  background: linear-gradient(135deg, var(--mocha) 0%, var(--terracotta-deep) 100%);
  color: var(--cream);
  border-color: var(--gold);
}

.bundle-image {
  aspect-ratio: auto;
  overflow: hidden;
  position: relative;
}

.bundle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bundle-body {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-3);
}

.bundle-card.featured .bundle-body .savings-tag {
  background: var(--gold);
  color: var(--mocha);
}

.savings-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--terracotta);
  color: var(--cream);
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  align-self: flex-start;
}

.bundle-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-32);
  font-weight: 500;
  line-height: 1.1;
}

.bundle-card .bundle-includes {
  font-size: var(--fs-14);
  opacity: 0.85;
  line-height: 1.5;
}

.bundle-card.featured .bundle-includes { color: rgba(250, 245, 238, 0.85); }

.bundle-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.bundle-card .bundle-price {
  font-family: var(--font-display);
  font-size: var(--fs-40);
  font-weight: 500;
}

.bundle-card .bundle-original {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  opacity: 0.5;
  text-decoration: line-through;
}

/* ========================= BRAND STORY ========================= */

.brand-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}

.brand-story-image {
  position: relative;
}

.brand-story-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r-lg);
}

.brand-story-image .signature {
  position: absolute;
  bottom: var(--s-5);
  right: -20px;
  font-family: var(--font-script);
  font-size: 64px;
  color: var(--cream);
  line-height: 0.7;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  z-index: 2;
}

/* ========================= TRUST BADGES ========================= */

.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  padding: var(--s-6);
  background: var(--surface);
  border-radius: var(--r-lg);
  text-align: center;
  border: 1px solid var(--hairline);
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.trust-badge .icon {
  font-size: var(--fs-32);
  margin-bottom: var(--s-1);
}

.trust-badge .lbl {
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.trust-badge .sub {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.3;
}

/* ========================= FLY-TO-CART ANIMATION ========================= */

.fly-clone {
  position: fixed;
  pointer-events: none;
  z-index: 9995;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.5, -0.5, 0.5, 1.5), opacity 800ms ease-in;
  opacity: 1;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 20px rgba(184, 98, 63, 0.3);
}

.fly-clone.flying { opacity: 0; }

/* ========================= RESPONSIVE ========================= */

@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .qv-modal { grid-template-columns: 1fr; max-width: 520px; }
  .qv-image { aspect-ratio: 16/10; }
  .bundles { grid-template-columns: 1fr; }
  .bundle-card { grid-template-columns: 1fr; }
  .bundle-image { aspect-ratio: 16/9; }
  .brand-story { grid-template-columns: 1fr; gap: var(--s-5); }
  .trust-badges { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Tablet (max-width: 768px) ===== */
@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .product-body { padding: var(--s-4); gap: var(--s-2); }
  .product-name { font-size: var(--fs-16); }
  .product-tagline { font-size: 12px; line-height: 1.4; }
  .product-meta { flex-direction: column; align-items: stretch; gap: var(--s-2); }
  .product-price { font-size: var(--fs-20); }
  .add-to-cart-btn { width: 100%; min-width: 0; padding: 12px; font-size: 11px; min-height: 44px; }
  .product-quick-view { display: none; }
  .product-image .product-badge { font-size: 9px; padding: 4px 10px; }

  /* Cart drawer as bottom sheet */
  .cart-drawer {
    width: 100%;
    height: 92vh;
    top: auto;
    bottom: 0;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(105%);
  }
  .cart-overlay.open .cart-drawer { transform: translateY(0); }
  .cart-drawer::before {
    content: "";
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 4px;
    border-radius: var(--r-full);
    background: var(--hairline-strong);
    z-index: 6;
  }
  .cart-header { padding-top: var(--s-7); }
  .cart-header h3 { font-size: var(--fs-24); }
  .cart-body { padding: var(--s-4); }
  .cart-item { grid-template-columns: 60px 1fr auto; gap: var(--s-3); }
  .cart-item img { width: 60px; height: 60px; }
  .cart-item .name { font-size: var(--fs-16); }
  .cart-item .item-price { font-size: var(--fs-16); }
  .cart-footer { padding: var(--s-4); }
  .cart-summary.total { font-size: var(--fs-24); }
  .cart-checkout-btn { min-height: 52px; font-size: var(--fs-14); }

  /* Quick view as bottom sheet */
  .qv-overlay { align-items: flex-end; padding: 0; }
  .qv-modal {
    max-height: 96vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(100%);
  }
  .qv-overlay.open .qv-modal { transform: translateY(0); }
  .qv-image { aspect-ratio: 16/12; }
  .qv-body { padding: var(--s-5); }
  .qv-body h2 { font-size: var(--fs-24); }
  .qv-price { font-size: var(--fs-24); }
  .qv-add-btn { padding: 12px 18px; font-size: var(--fs-12); min-height: 44px; }
  .qv-close { width: 36px; height: 36px; top: 12px; right: 12px; }

  /* Toast */
  .shop-toast { bottom: 16px; right: 16px; left: 16px; max-width: none; }

  /* Trust badges */
  .trust-badges { grid-template-columns: 1fr 1fr; padding: var(--s-4); gap: var(--s-3); }
  .trust-badge .icon { font-size: var(--fs-24); }
  .trust-badge .lbl { font-size: 11px; }
  .trust-badge .sub { font-size: 10px; }

  /* Brand story */
  .brand-story-image .signature { font-size: 40px; right: -10px; bottom: var(--s-3); }

  /* Nav actions */
  .nav-actions { gap: var(--s-2); }
  .nav-actions .nav-cta { padding: 10px 14px; font-size: 11px; min-height: 40px; }
  .cart-btn { width: 40px; height: 40px; }
  .cart-btn svg { width: 20px; height: 20px; }

  /* Bundles */
  .bundle-card h3 { font-size: var(--fs-24); }
  .bundle-card .bundle-price { font-size: var(--fs-32); }
  .bundle-body { padding: var(--s-5); }

  /* Empty cart suggestions */
  .cart-empty-suggestions { grid-template-columns: 1fr 1fr; gap: var(--s-2); }

  /* Filters */
  .shop-filters { gap: var(--s-2); margin-bottom: var(--s-5); }
}

/* ===== Small phones (max-width: 480px) ===== */
@media (max-width: 480px) {
  .products-grid { gap: var(--s-2); }
  .product-body { padding: var(--s-3); }
  .product-name { font-size: var(--fs-14); }
  .product-price { font-size: var(--fs-18); }
  .product-image { aspect-ratio: 4/3; }
  .product-category { font-size: 9px; }
  .add-to-cart-btn { padding: 10px; font-size: 10px; min-height: 44px; }

  /* Cart */
  .cart-header { padding: var(--s-5) var(--s-4); padding-top: var(--s-7); }
  .cart-header h3 { font-size: var(--fs-20); }
  .cart-item { grid-template-columns: 50px 1fr auto; gap: var(--s-2); }
  .cart-item img { width: 50px; height: 50px; }
  .cart-item .name { font-size: var(--fs-14); }
  .cart-item .item-price { font-size: var(--fs-14); }
  .cart-qty button { width: 28px; height: 28px; }
  .cart-summary.total { font-size: var(--fs-20); }

  /* Quick view */
  .qv-body { padding: var(--s-4); }
  .qv-body h2 { font-size: var(--fs-20); }
  .qv-price { font-size: var(--fs-20); }
  .qv-add-btn { padding: 10px 14px; font-size: 11px; }
  .qv-benefits li { font-size: var(--fs-12); padding-left: 24px; }
  .qv-shade { padding: 6px 10px; font-size: 11px; }

  /* Toast */
  .shop-toast { padding: var(--s-2) var(--s-3); }
  .shop-toast img { width: 36px; height: 36px; }
  .shop-toast .toast-text .name { font-size: 12px; }

  /* Trust badges */
  .trust-badges { gap: var(--s-2); padding: var(--s-3); }

  /* Bundles */
  .bundle-body { padding: var(--s-4); }
  .bundle-card h3 { font-size: var(--fs-20); }
  .bundle-card .bundle-price { font-size: var(--fs-24); }
  .bundle-card .bundle-includes { font-size: var(--fs-13, 0.82rem); }

  /* Brand story */
  .brand-story-image .signature { font-size: 32px; right: -4px; }

  /* Nav actions */
  .nav-actions .nav-cta { padding: 8px 12px; font-size: 10px; }
  .cart-btn { width: 36px; height: 36px; }
  .cart-btn svg { width: 18px; height: 18px; }
}

/* ===== Ultra-small phones (max-width: 400px) ===== */
@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .product-image { aspect-ratio: 4/3; }
  .cart-empty-suggestions { grid-template-columns: 1fr; }
}
