/* ==========================================================================
   Store — Product cards, Cart drawer, Product modal, Bundle, Lifestyle strip
   ========================================================================== */

/* ============ TIENDA section ============ */
.tienda { padding-block: clamp(60px, 10vh, 120px); background: var(--fd-black-2); }

/* ============ Store grid ============ */
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 44px;
}

/* ============ Store product card ============ */
.store-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--fd-black-3);
  border: 1px solid var(--fd-line-soft);
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .4s;
  cursor: pointer;
  opacity: 0; transform: translateY(40px);
}
.store-card.is-visible { opacity: 1; transform: translateY(0); }
.store-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,.6);
}

.store-card__img-wrap {
  position: relative;
  aspect-ratio: 1/1.1;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1a20 0%, #0e0e12 100%);
}
.store-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out), opacity .5s;
}
.store-card__img-wrap .store-card__img--hover {
  position: absolute; inset: 0;
  opacity: 0;
}
.store-card:hover .store-card__img--hover { opacity: 1; }
.store-card:hover .store-card__img--default { opacity: 0; }

.store-card__flag {
  position: absolute; top: 16px; left: 16px;
  font-size: 28px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.5));
  z-index: 2;
}

.store-card__body {
  padding: 20px 22px 24px;
}
.store-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 4px;
}
.store-card__scent {
  font-size: 12px;
  color: var(--fd-ink-dim);
  font-family: var(--font-mono);
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.store-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.store-card__price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.store-card__add {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background: var(--fd-grad-warm);
  color: #1a0a02;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: transform .35s var(--ease-spring), box-shadow .35s;
  white-space: nowrap;
}
.store-card__add:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px -6px rgba(232,53,58,0.5);
}
.store-card__add svg { width: 16px; height: 16px; }

.store-card__added {
  position: absolute; inset: 0;
  background: rgba(10,10,12,.85);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease-out);
  z-index: 5;
  border-radius: var(--radius-lg);
}
.store-card__added.is-active { opacity: 1; pointer-events: auto; }
.store-card__added svg { width: 48px; height: 48px; stroke: var(--fd-green); }
.store-card__added span { font-weight: 700; font-size: 14px; color: var(--fd-ink); }

/* ============ Bundle card ============ */
.bundle-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  border: 1px solid var(--fd-line-soft);
  background: var(--fd-black-3);
}
.bundle-card__media {
  position: relative; overflow: hidden;
}
.bundle-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.bundle-card:hover .bundle-card__media img { transform: scale(1.06); }
.bundle-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--fd-black-3) 100%);
}
.bundle-card__content {
  padding: 40px 36px;
  display: flex; flex-direction: column;
  justify-content: center;
}
.bundle-card__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--fd-grad-vida);
  font-size: 12px; font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  width: fit-content;
}
.bundle-card__content h3 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 10px;
}
.bundle-card__content > p {
  font-size: 15px; color: var(--fd-ink-dim);
  margin-bottom: 20px; max-width: 40ch;
}
.bundle-card__price {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 24px;
}
.bundle-card__amount {
  font-size: 32px; font-weight: 800; letter-spacing: -0.02em;
}
.bundle-card__per {
  font-size: 14px; color: var(--fd-ink-dim);
}

/* Bundle selector */
.bundle-selector { margin-bottom: 20px; }
.bundle-selector__label {
  font-size: 13px; font-weight: 700; color: var(--fd-ink-dim);
  margin-bottom: 12px;
}
.bundle-selector__options {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.bundle-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--fd-black);
  border: 2px solid var(--fd-line);
  cursor: pointer;
  transition: all .25s var(--ease-out);
  font-size: 14px; font-weight: 700;
}
.bundle-opt:hover { border-color: var(--fd-ink-faint); }
.bundle-opt.is-selected {
  border-color: var(--fd-yellow);
  background: rgba(245,194,51,0.1);
}
.bundle-opt.is-disabled {
  opacity: .35; pointer-events: none;
}
.bundle-opt__flag { font-size: 20px; }

.bundle-add:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none !important;
}

/* ============ Lifestyle strip ============ */
.lifestyle-strip {
  overflow: hidden;
  padding-block: 4px;
  background: var(--fd-black);
}
.lifestyle-strip__track {
  display: flex;
  gap: 4px;
  animation: lifestyle-scroll 40s linear infinite;
  width: max-content;
}
.lifestyle-strip__track img {
  height: 320px;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
@keyframes lifestyle-scroll {
  to { transform: translateX(-50%); }
}

/* ============ Cart toggle (nav) ============ */
.cart-toggle {
  position: relative;
  background: none;
  border: 1px solid var(--fd-line);
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fd-ink);
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s var(--ease-spring);
}
.cart-toggle:hover {
  border-color: var(--fd-yellow);
  background: rgba(245,194,51,0.06);
  transform: scale(1.08);
}
.cart-toggle__count {
  position: absolute; top: -4px; right: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--fd-red);
  color: #fff;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0);
  transition: opacity .3s, transform .3s var(--ease-spring);
}
.cart-toggle__count.has-items {
  opacity: 1; transform: scale(1);
}

/* ============ Cart overlay ============ */
.cart-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }

/* ============ Cart drawer ============ */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 90vw);
  z-index: 910;
  background: var(--fd-black-2);
  border-left: 1px solid var(--fd-line-soft);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .45s var(--ease-out);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--fd-line-soft);
}
.cart-drawer__header h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
}
.cart-drawer__close {
  background: none; border: none; color: var(--fd-ink-dim);
  cursor: pointer; padding: 4px;
  transition: color .3s;
}
.cart-drawer__close:hover { color: var(--fd-ink); }

.cart-drawer__body {
  flex: 1; overflow-y: auto; padding: 20px 24px;
}

.cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  padding-top: 60px;
  text-align: center;
  color: var(--fd-ink-dim);
}

/* Cart items */
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--fd-line-soft);
}
.cart-item__img {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--fd-black-3);
}
.cart-item__info { display: flex; flex-direction: column; gap: 4px; }
.cart-item__name { font-weight: 700; font-size: 15px; }
.cart-item__meta { font-size: 12px; color: var(--fd-ink-dim); font-family: var(--font-mono); }
.cart-item__actions {
  display: flex; align-items: center; gap: 10px;
}
.cart-item__qty {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--fd-line); border-radius: 10px;
  overflow: hidden;
}
.cart-item__qty button {
  width: 30px; height: 30px;
  background: var(--fd-black-3);
  border: none; color: var(--fd-ink);
  cursor: pointer; font-size: 14px; font-weight: 700;
  transition: background .2s;
}
.cart-item__qty button:hover { background: var(--fd-black); }
.cart-item__qty span {
  width: 28px; text-align: center;
  font-size: 13px; font-weight: 700;
}
.cart-item__price {
  font-weight: 800; font-size: 15px;
  white-space: nowrap;
  min-width: 60px; text-align: right;
}
.cart-item__remove {
  background: none; border: none;
  color: var(--fd-ink-faint);
  cursor: pointer; padding: 4px;
  font-size: 18px;
  transition: color .2s;
}
.cart-item__remove:hover { color: var(--fd-red); }

/* Cart footer */
.cart-drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid var(--fd-line-soft);
  background: var(--fd-black);
}
.cart-subtotal {
  display: flex; justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.cart-subtotal span { font-size: 15px; color: var(--fd-ink-dim); }
.cart-subtotal strong { font-size: 22px; letter-spacing: -0.02em; }
.cart-shipping {
  font-size: 12px; color: var(--fd-ink-faint);
  margin-bottom: 16px;
}
.cart-checkout { margin-bottom: 10px; }
.cart-continue {
  display: block; text-align: center;
  font-size: 13px; color: var(--fd-ink-dim);
  transition: color .3s;
}
.cart-continue:hover { color: var(--fd-yellow); }

/* ============ Product detail modal ============ */
.product-modal-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.product-modal-overlay.is-open { opacity: 1; visibility: visible; }

.product-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 810;
  width: min(960px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--fd-black-2);
  border: 1px solid var(--fd-line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), visibility .4s;
}
.product-modal.is-open {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.product-modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  background: rgba(10,10,12,.6); backdrop-filter: blur(8px);
  border: 1px solid var(--fd-line);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fd-ink);
  cursor: pointer;
  transition: background .3s;
}
.product-modal__close:hover { background: rgba(10,10,12,.9); }

.product-modal__gallery {
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.product-modal__main-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--fd-black-3);
}
.product-modal__main-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .3s;
}
.product-modal__thumbs {
  display: flex; gap: 8px;
}
.product-modal__thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .3s;
  flex-shrink: 0;
}
.product-modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-modal__thumb.is-active,
.product-modal__thumb:hover {
  border-color: var(--fd-yellow);
}

.product-modal__info {
  padding: 40px 32px 40px 16px;
  display: flex; flex-direction: column;
  justify-content: center;
}
.product-modal__flag { font-size: 40px; margin-bottom: 8px; }
.product-modal__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.5vw, 44px);
  margin-bottom: 6px;
}
.product-modal__scent {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .04em;
  color: var(--fd-yellow);
  margin-bottom: 16px;
}
.product-modal__desc {
  font-size: 15px; color: var(--fd-ink-dim);
  margin-bottom: 24px; max-width: 40ch; line-height: 1.6;
}
.product-modal__dims {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--fd-ink-faint);
  letter-spacing: .04em;
  margin-bottom: 16px;
}

/* Scent picker */
.product-modal__scent-picker {
  margin-bottom: 20px;
}
.product-modal__scent-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--fd-ink-dim);
  margin-bottom: 10px;
}
.scent-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.scent-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--fd-black);
  border: 2px solid var(--fd-line);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--fd-ink-dim);
  transition: all .25s var(--ease-out);
}
.scent-opt:hover {
  border-color: var(--fd-ink-faint);
  color: var(--fd-ink);
}
.scent-opt.is-active {
  border-color: var(--fd-yellow);
  background: rgba(245,194,51,.1);
  color: var(--fd-yellow);
}
.scent-opt__icon { font-size: 16px; }
.scent-opt__name { white-space: nowrap; }
.scent-desc {
  font-size: 12px;
  color: var(--fd-ink-faint);
  font-style: italic;
  min-height: 18px;
}

.product-modal__price {
  font-size: 30px; font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

/* Quantity selector */
.product-modal__qty {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--fd-line);
  border-radius: 14px;
  width: fit-content;
  overflow: hidden;
}
.qty-btn {
  width: 44px; height: 44px;
  background: var(--fd-black-3);
  border: none; color: var(--fd-ink);
  cursor: pointer;
  font-size: 18px; font-weight: 700;
  transition: background .2s;
}
.qty-btn:hover { background: var(--fd-black); }
.qty-value {
  width: 48px; text-align: center;
  font-size: 16px; font-weight: 800;
}

.product-modal__add { margin-bottom: 14px; }
.product-modal__amazon {
  font-size: 13px;
  color: var(--fd-ink-faint);
  text-align: center;
  transition: color .3s;
}
.product-modal__amazon:hover { color: var(--fd-yellow); }

/* ============ Notice bar ============ */
.notice-bar {
  background: var(--fd-black);
  border-bottom: 1px solid var(--fd-line-soft);
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  color: var(--fd-ink-dim);
}
.notice-bar strong {
  color: var(--fd-yellow);
  font-weight: 700;
}

/* ============ Language switcher ============ */
.lang-switcher {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 950;
}
.lang-switcher__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fd-black-2);
  border: 1px solid var(--fd-line);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: transform .3s var(--ease-spring), border-color .3s, box-shadow .3s;
}
.lang-switcher__btn:hover {
  transform: scale(1.1);
  border-color: var(--fd-yellow);
  box-shadow: 0 8px 28px rgba(0,0,0,.6);
}
.lang-switcher__menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  min-width: 160px;
  background: var(--fd-black-2);
  border: 1px solid var(--fd-line);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 12px 36px rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s, visibility .25s, transform .25s var(--ease-out);
}
.lang-switcher__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switcher__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--fd-ink-dim);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-switcher__opt:hover {
  background: rgba(255,255,255,.06);
  color: var(--fd-ink);
}
.lang-switcher__opt.is-active {
  background: rgba(245,194,51,.1);
  color: var(--fd-yellow);
}

/* ============ Responsive overrides for store ============ */
@media (max-width: 1100px) {
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .bundle-card { grid-template-columns: 1fr; min-height: auto; }
  .bundle-card__media { aspect-ratio: 16/9; }
  .product-modal { grid-template-columns: 1fr; max-height: 90vh; }
  .product-modal__gallery { aspect-ratio: auto; }
  .product-modal__info { padding: 24px 28px 32px; }
}

@media (max-width: 640px) {
  .store-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .bundle-card__content { padding: 24px 20px; }
  .bundle-selector__options { gap: 8px; }
  .bundle-opt { padding: 8px 12px; font-size: 13px; }
  .lifestyle-strip__track img { height: 220px; }
  .cart-drawer { width: 100vw; }
  .product-modal { width: 96vw; }
  .product-modal__info { padding: 20px; }
}
