/* ==========================================================================
   SHOP — AmberNord
   Scope: .shop-page-container and children.
   Tokens: --color-gold --color-bg --color-text --color-border-gold
   --color-surface --nav-height --font-serif --font-sans
   --container-pad --t-fast --t-slow
   ========================================================================== */

/* --------------------------------------------------------------------------
   ROOT — page entry offset accounts for fixed nav height.
   -------------------------------------------------------------------------- */

.shop-page-container {
  padding: calc(var(--nav-height) + 60px) 0 120px;
  position: relative;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   ENTRANCE — smooth reveal animation for the full page container.
   -------------------------------------------------------------------------- */

@keyframes shopReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.shop-page-container {
  animation: shopReveal 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* --------------------------------------------------------------------------
   SCROLL REVEAL — elements animate in on viewport entry via IntersectionObserver.
   -------------------------------------------------------------------------- */

.page-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.page-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   REDUCED MOTION — disables all animations for users who prefer it.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .page-reveal,
  .shop-page-container {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   SKIP LINK — keyboard shortcut that jumps focus past navigation.
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-gold);
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 9999;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   FOCUS — visible gold outline for keyboard navigation on all interactive elements.
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   SUBPAGE HEADER — centered eyebrow + h1 block above main content.
   -------------------------------------------------------------------------- */

.subpage-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
  padding: 0 var(--container-pad);
}

.subpage-subtitle {
  display: inline-block;
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(237, 163, 35, 0.4);
  padding-bottom: 10px;
}

.subpage-header h1 {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.subpage-header h1 span {
  font-style: italic;
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   SECTION WRAPPER — constrains grid width and provides consistent gutter.
   -------------------------------------------------------------------------- */

.shop-section {
  max-width: 1400px;
  padding: 0 var(--container-pad);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   SR-ONLY HEADING — visually hidden h2 provides accessible section label.
   -------------------------------------------------------------------------- */

.shop-section__sr-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   GRID — three-column product layout that collapses at tablet and mobile.
   -------------------------------------------------------------------------- */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: stretch;
}

@media (max-width: 991px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --------------------------------------------------------------------------
   CARD — glass-morphism product card with hover lift and border glow.
   -------------------------------------------------------------------------- */

.shop-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--t-slow), border-color var(--t-slow), box-shadow var(--t-slow);
}

.shop-card:hover {
  transform: translateY(-8px);
  border-color: rgba(237, 163, 35, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(237, 163, 35, 0.15);
}

/* --------------------------------------------------------------------------
   CONTENT LINK — block anchor wraps gallery and body, enabling full-card click.
   -------------------------------------------------------------------------- */

.shop-card__content-link {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-decoration: none;
  color: inherit;
}

/* --------------------------------------------------------------------------
   GALLERY — image container with clip for the hover zoom effect.
   -------------------------------------------------------------------------- */

.shop-card__gallery {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.shop-card__image-wrap {
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform var(--t-slow);
}

.shop-card:hover .shop-card__image-wrap {
  transform: scale(1.08);
}

.shop-card__image-wrap img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

/* --------------------------------------------------------------------------
   BADGES — absolute-positioned overlays on the card gallery area.
   -------------------------------------------------------------------------- */

.shop-card__badge {
  position: absolute;
  z-index: 10;
  font-family: var(--font-sans);
  text-transform: uppercase;
  border-radius: 4px;
}

@keyframes pulseGold {
  0%   { box-shadow: 0 4px 10px rgba(237, 163, 35, 0.3); }
  50%  { box-shadow: 0 4px 20px rgba(237, 163, 35, 0.6); }
  100% { box-shadow: 0 4px 10px rgba(237, 163, 35, 0.3); }
}

.shop-card__badge--bestseller {
  top: 12%;
  right: 5%;
  background: linear-gradient(135deg, var(--color-gold), #d98f1a);
  color: #000;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  transform: rotate(4deg);
  animation: pulseGold 2.5s infinite ease-in-out;
}

.shop-card__badge--voucher {
  top: 5%;
  left: 5%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 8px 14px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(237, 163, 35, 0.2);
}

.shop-card__badge-line1 {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 3px;
  color: var(--color-gold);
}

.shop-card__badge-line2 {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   CARD BODY — flexible text column that fills remaining card height.
   -------------------------------------------------------------------------- */

.shop-card__body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.shop-card__title {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.1;
  color: var(--color-text);
  margin: 0 0 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color var(--t-fast);
}

.shop-card:hover .shop-card__title {
  color: var(--color-gold);
}

.shop-card__quantity {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-gold);
  font-weight: 500;
  margin: 0 0 12px;
}

.shop-card__price {
  font-family: var(--font-sans);
  font-size: 19px;
  color: var(--color-text);
  font-weight: 800;
  margin: 0 0 12px;
}

.shop-card__subtitle {
  font-family: var(--font-sans);
  color: var(--color-gold);
  font-size: 14px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 16px;
}

.shop-card__desc {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: #dcdcdc;
  line-height: 1.6;
  font-weight: 300;
  margin: 0 0 22px;
}

.shop-card__desc strong {
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   SCIENCE BOX — gold-bordered benefit list that brightens on card hover.
   -------------------------------------------------------------------------- */

.shop-card__science {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--color-gold);
  padding: 16px;
  margin: 0 0 25px;
  transition: background var(--t-fast);
}

.shop-card:hover .shop-card__science {
  background: rgba(237, 163, 35, 0.05);
}

.shop-card__science-heading {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-gold);
  margin: 0 0 12px;
}

.shop-card__science-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-card__science-item {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #cccccc;
  margin: 0 0 10px;
  display: flex;
  align-items: flex-start;
}

.shop-card__science-item:last-child {
  margin-bottom: 0;
}

.shop-card__science-item strong {
  color: var(--color-text);
}

.shop-card__bullet {
  color: var(--color-gold);
  margin-right: 10px;
  font-size: 14px;
  line-height: 1.2;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   ACTION AREA — purchase CTAs pinned to the bottom of each card.
   -------------------------------------------------------------------------- */

.shop-card__action {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   BUTTON PRIMARY — bordered gold CTA with shimmer sweep on hover.
   -------------------------------------------------------------------------- */

.shop-card__btn-primary {
  display: block;
  width: 100%;
  background: #050505;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  text-align: center;
  padding: 15px 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 12px;
  border-radius: 4px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: background var(--t-slow), color var(--t-slow), box-shadow var(--t-slow);
}

.shop-card__btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(237, 163, 35, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: left var(--t-slow);
}

.shop-card__btn-primary:hover::after {
  left: 150%;
}

.shop-card__btn-primary:hover {
  background: var(--color-gold);
  color: #000;
  box-shadow: 0 8px 20px rgba(237, 163, 35, 0.3);
}

/* --------------------------------------------------------------------------
   BUTTON SUBSCRIPTION — two-tone Abo CTA with discount label strip.
   -------------------------------------------------------------------------- */

.shop-card__btn-abo {
  display: block;
  width: 100%;
  border: 1px solid var(--color-gold);
  border-radius: 4px;
  text-decoration: none;
  overflow: hidden;
  margin-bottom: 15px;
  box-sizing: border-box;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.shop-card__btn-abo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(237, 163, 35, 0.3);
}

.shop-card__abo-top {
  background-color: var(--color-gold);
  color: #000;
  text-align: center;
  padding: 9px 10px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.shop-card__abo-bottom {
  background-color: #050505;
  padding: 14px 15px;
  display: flex;
  align-items: center;
}

.shop-card__abo-price-wrap {
  display: flex;
  flex-direction: column;
}

.shop-card__abo-price {
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
}

.shop-card__abo-subtext {
  color: #888;
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.shop-card__abo-guarantee {
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: auto;
  text-align: right;
}

/* --------------------------------------------------------------------------
   SHIPPING INFO — bottom-of-card delivery note with gold highlight span.
   -------------------------------------------------------------------------- */

.shop-card__shipping {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #999;
  line-height: 1.4;
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0;
}

.shop-card__shipping-highlight {
  color: var(--color-gold);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   TABLET — two-column grid with tighter text hierarchy.
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .shop-card__title {
    font-size: 20px;
  }

  .shop-card__quantity {
    font-size: 13px;
  }

  .shop-card__price {
    font-size: 16px;
  }

  .shop-card__desc {
    font-size: 13px;
  }

  .shop-card__science-item {
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   MOBILE — single-column layout with generous image height for impact.
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .shop-page-container {
    padding-bottom: 80px;
  }

  .shop-card {
    padding: 20px 16px;
  }

  .shop-card__image-wrap {
    height: 160px;
  }

  .shop-card__image-wrap img {
    max-height: 140px;
  }

  .shop-card__title {
    font-size: 24px;
  }

  .shop-card__abo-bottom {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
  }

  .shop-card__abo-guarantee {
    margin-left: 0;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   WILL-CHANGE — applied during entrance animation, removed on animationend.
   -------------------------------------------------------------------------- */

.shop-page-container.animating {
  will-change: opacity, transform;
}