/*
 * Structural CSS shared by every skin (Classic / Modern / Vibrant /
 * Sunset). Only layout, spacing, and sizing live here — every color
 * comes from the active skin's --aap-* custom properties, so this
 * file never needs to change when a new skin is added. Enqueued
 * before the skin's own frontend-{slug}.css, which loads after and
 * can override anything here (e.g. the hero background).
 */

/* Outline button variant (used next to the primary "Buy" button style) */
.aap-btn-outline { background: transparent; border: 2px solid var(--aap-dark-2); color: var(--aap-dark-2) !important; }
.aap-btn-outline:hover { background: var(--aap-dark-2); color: #ffffff !important; }

/* Eyebrow label */
.aap-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--aap-primary); background: rgba(var(--aap-primary-rgb), .1); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* Hero */
.aap-hero-v2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 56px 20px; border-radius: var(--aap-radius); margin: 16px 0; }
.aap-hero-v2--no-stack { grid-template-columns: 1fr; text-align: center; }
.aap-hero-v2-copy h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 0 0 12px; color: var(--aap-dark-2); }
.aap-hero-v2-tagline { font-size: 18px; color: var(--aap-muted); margin: 0 0 24px; max-width: 460px; }
.aap-hero-v2--no-stack .aap-hero-v2-tagline { margin-left: auto; margin-right: auto; }
.aap-hero-v2-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.aap-hero-v2--no-stack .aap-hero-v2-cta { justify-content: center; }
.aap-hero-v2-disclosure { font-size: 12px; color: var(--aap-muted); max-width: 420px; margin: 0; }
.aap-hero-v2--no-stack .aap-hero-v2-disclosure { margin-left: auto; margin-right: auto; }
.aap-hero-v2 .aap-hero-logo { max-height: 56px; margin-bottom: 14px; }

.aap-hero-v2-stack { position: relative; height: 340px; }
.aap-hero-stack-item {
  position: absolute; width: 180px; background: var(--aap-card-bg); border-radius: var(--aap-radius);
  box-shadow: 0 20px 40px rgba(0,0,0,.14); padding: 14px; text-align: center; transition: transform .2s ease, z-index 0s;
}
.aap-hero-stack-item img { width: 100%; aspect-ratio: 1/1; object-fit: contain; margin: 0 0 8px; }
.aap-hero-stack-item:hover { transform: translateY(-6px) rotate(0deg) !important; z-index: 5; }
.aap-hero-stack-item-0 { top: 0; right: 50px; transform: rotate(-4deg); z-index: 3; }
.aap-hero-stack-item-1 { top: 66px; right: 180px; transform: rotate(3deg); z-index: 2; }
.aap-hero-stack-item-2 { top: 124px; right: 10px; transform: rotate(6deg); z-index: 1; }
.aap-hero-stack-save {
  position: absolute; top: 10px; left: 10px; background: var(--aap-primary); color: #ffffff; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px;
}
.aap-hero-stack-price { display: block; font-weight: 700; color: var(--aap-dark-2); font-size: 14px; }

@media (max-width: 900px) {
  .aap-hero-v2 { grid-template-columns: 1fr; text-align: center; padding: 40px 20px; }
  .aap-hero-v2-tagline, .aap-hero-v2-disclosure { margin-left: auto; margin-right: auto; }
  .aap-hero-v2-cta { justify-content: center; }
  .aap-hero-v2-stack { height: auto; position: static; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .aap-hero-stack-item { position: static; transform: none !important; width: 110px; }
}

/* Category rail */
.aap-cat-rail-wrap { padding: 34px 0 8px; }
.aap-cat-rail { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 12px; }
.aap-cat-card { flex: 0 0 auto; width: 110px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.aap-cat-card img {
  width: 74px; height: 74px; object-fit: cover; border-radius: 50%; border: 3px solid var(--aap-border); transition: border-color .15s ease;
}
.aap-cat-card:hover img, .aap-cat-card:hover .aap-cat-card-fallback { border-color: var(--aap-primary); }
.aap-cat-card-fallback {
  width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(var(--aap-primary-rgb), .12); color: var(--aap-primary); font-size: 24px; font-weight: 700; border: 3px solid transparent;
}
.aap-cat-card-name { font-size: 13px; font-weight: 600; color: var(--aap-text); line-height: 1.2; }

/* Tinted section background */
.aap-section-tint { background: rgba(var(--aap-primary-rgb), .05); border-radius: var(--aap-radius); padding: 30px 24px; }

/* Trust strip */
.aap-trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 44px 0; }
.aap-trust-item { text-align: center; padding: 0 14px; }
.aap-trust-icon { font-size: 30px; margin-bottom: 10px; }
.aap-trust-item h3 { font-size: 16px; margin: 0 0 6px; color: var(--aap-dark-2); }
.aap-trust-item p { font-size: 14px; color: var(--aap-muted); margin: 0; line-height: 1.5; }

@media (max-width: 700px) {
  .aap-trust-strip { grid-template-columns: 1fr; gap: 28px; }
}

/* Newsletter band */
.aap-newsletter-band { background: var(--aap-dark-2); color: #ffffff; border-radius: var(--aap-radius); padding: 44px 30px; text-align: center; margin: 20px 0 40px; }
.aap-newsletter-band h2 { color: #ffffff; margin: 0 0 8px; font-size: 24px; }
.aap-newsletter-band p { color: rgba(255,255,255,.75); margin: 0 0 22px; }
.aap-newsletter-band .aap-subscribe-form { justify-content: center; max-width: 420px; margin: 0 auto; }

/* Product image gallery strip (single product page) — shared across
   every skin; only the accent color (var(--aap-primary)) changes. */
.aap-product-gallery-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; justify-content: center; }
.aap-gallery-thumb-frontend {
  width: 60px; height: 60px; object-fit: cover; border-radius: 6px; border: 2px solid var(--aap-border);
  cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.aap-gallery-thumb-frontend:hover { border-color: var(--aap-primary); }
.aap-gallery-thumb-frontend.is-active { border-color: var(--aap-primary); box-shadow: 0 0 0 2px rgba(var(--aap-primary-rgb), .25); }

/* Product detail media column (single product page) — stacks the main
   image above the gallery thumbnail strip. Must be flex-direction:
   column, not the flex default of row, or the thumbnail strip gets
   squeezed into a narrow sidebar next to the main image instead of
   sitting below it. */
.aap-product-detail-media {
  background: var(--aap-card-bg); border: 1px solid var(--aap-border); border-radius: var(--aap-radius);
  padding: 20px; display: flex; flex-direction: column; align-items: center;
}
