/* ============================================================
   AstroKamya™ — SHOP V3 MOBILE OPTIMIZATION
   mobile-shop-v3.css — 2026 Modern Mobile-First
   Target: All mobile devices ≤768px
   ============================================================ */

/* ══════════════════════════════════════════════════
   1. SHOP PAGE GLOBAL FIXES
   ══════════════════════════════════════════════════ */

/* Cosmic strip — scrollable on mobile */
@media (max-width: 768px) {
  .v3-cosmic-strip {
    font-size: 11px !important;
    padding: 8px 16px !important;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 8px !important;
  }
  .v3-cosmic-strip::-webkit-scrollbar { display: none; }
}

/* ══════════════════════════════════════════════════
   2. HERO SECTION — MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-hero {
    height: min(75vh, 520px) !important;
    min-height: 420px !important;
  }
  .v3-hero-content {
    align-items: flex-start;
    padding: 0 20px 40px !important;
    justify-content: flex-end;
  }
  .v3-hero-eyebrow {
    font-size: 9px !important;
    letter-spacing: 0.12em;
    margin-bottom: 10px !important;
  }
  .v3-hero-title {
    font-size: clamp(26px, 7vw, 36px) !important;
    line-height: 1.15 !important;
    margin-bottom: 14px !important;
  }
  .v3-hero-sub {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .v3-hero-cta {
    width: 100% !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
  }
  .v3-hero-meta {
    flex-wrap: wrap;
    gap: 10px !important;
  }
  .v3-hero-meta-item {
    font-size: 11px !important;
  }
  .v3-hero-scroll-hint {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════
   3. AESTHETIC CATEGORIES — TOUCH SCROLLABLE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-aesthetic-categories {
    padding: 24px 0 12px !important;
  }
  .v3-cat-row {
    gap: 24px !important;
    padding: 10px 20px 16px 20px !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .v3-cat-item {
    scroll-snap-align: start;
    gap: 8px !important;
  }
  .v3-cat-icon {
    width: 48px !important;
    height: 48px !important;
  }
  .v3-cat-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  .v3-cat-item span {
    font-size: 9px !important;
    letter-spacing: 0.1em;
  }
}

/* ══════════════════════════════════════════════════
   4. PRODUCT GRID — MOBILE CARDS
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  /* Product card — compact mobile */
  .v3-card {
    border-radius: 14px !important;
  }
  .v3-card-img-wrap {
    height: 170px !important;
  }
  .v3-card-img {
    height: 170px !important;
    object-fit: cover;
  }
  .v3-card-body {
    padding: 10px 10px 12px !important;
  }
  .v3-card-tags {
    font-size: 9px !important;
    letter-spacing: 0.05em;
    margin-bottom: 4px !important;
  }
  .v3-card-name {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
  }
  .v3-card-price-row {
    gap: 6px !important;
    margin-bottom: 2px !important;
  }
  .v3-card-price {
    font-size: 16px !important;
  }
  .v3-card-compare {
    font-size: 11px !important;
  }
  .v3-card-bnpl {
    font-size: 10px !important;
    margin-top: 1px !important;
  }
  .v3-card-social {
    font-size: 11px !important;
    margin-top: 4px !important;
    flex-wrap: wrap;
    gap: 3px !important;
  }
  .v3-card-urgency {
    font-size: 10px !important;
    margin-top: 4px !important;
  }
  .v3-card-shipping {
    font-size: 10px !important;
    margin-top: 3px !important;
  }
  .v3-card-add {
    padding: 10px 12px !important;
    font-size: 13px !important;
    margin-top: 8px !important;
    border-radius: 8px !important;
  }
  /* Wishlist button — bigger touch target on mobile */
  .v3-card-wish {
    width: 36px !important;
    height: 36px !important;
  }
  /* Quick view — hide on mobile to reduce clutter */
  .v3-card-quick {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .v3-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .v3-card-img-wrap {
    height: 145px !important;
  }
  .v3-card-img {
    height: 145px !important;
  }
  .v3-card-name {
    font-size: 12px !important;
  }
  .v3-card-price {
    font-size: 14px !important;
  }
}

/* ══════════════════════════════════════════════════
   5. INTENT FILTER PILLS — SCROLLABLE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #v3-intents {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    padding: 0 0 8px !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: flex-start !important;
  }
  #v3-intents::-webkit-scrollbar { display: none; }
  
  .v3-intent-pill {
    flex-shrink: 0 !important;
    scroll-snap-align: start;
    padding: 8px 16px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }
}

/* ══════════════════════════════════════════════════
   6. SECTION HEADERS — MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-section {
    padding: 40px 0 !important;
  }
  .v3-wrap {
    padding: 0 16px !important;
  }
  .v3-section-title {
    font-size: clamp(22px, 6vw, 32px) !important;
    margin-bottom: 10px !important;
  }
  .v3-section-sub {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  .v3-section-eyebrow {
    font-size: 9px !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
  }
}

/* ══════════════════════════════════════════════════
   7. LOOKBOOK — MOBILE STACK
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-lb-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    flex-direction: column !important;
    display: flex !important;
  }
  .v3-lb-row.v3-lb-row--reverse {
    flex-direction: column !important;
  }
  .v3-lb-img-wrap {
    height: 280px !important;
    border-radius: 16px !important;
    margin: 0 16px !important;
  }
  .v3-lb-editorial {
    padding: 28px 20px !important;
  }
  .v3-lb-title {
    font-size: clamp(22px, 6vw, 30px) !important;
  }
  .v3-lb-desc {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
  .v3-lb-cta {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ══════════════════════════════════════════════════
   8. BUNDLE GRID — MOBILE HORIZONTAL SCROLL
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-bundle-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .v3-bundle-card {
    border-radius: 14px !important;
  }
  .v3-bundle-imgs {
    height: 160px !important;
  }
  .v3-bundle-name {
    font-size: 16px !important;
  }
  .v3-bundle-add {
    width: 100% !important;
    padding: 12px !important;
    font-size: 14px !important;
  }
}

/* ══════════════════════════════════════════════════
   9. FEATURED STONE — MOBILE STACK
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-featured {
    flex-direction: column !important;
    gap: 24px !important;
    padding: 0 !important;
  }
  .v3-featured-img {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    border-radius: 16px !important;
  }
  .v3-featured-content {
    text-align: center !important;
  }
  .v3-featured-stone {
    font-size: clamp(20px, 5vw, 28px) !important;
  }
  .v3-featured-props {
    justify-content: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
  }
  .v3-featured-cta {
    width: 100% !important;
  }
}

/* ══════════════════════════════════════════════════
   10. STORY SPLIT — MOBILE STACK
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-story-split {
    flex-direction: column !important;
    gap: 24px !important;
  }
  .v3-story-img {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    border-radius: 16px !important;
  }
  .v3-story-quote {
    font-size: 15px !important;
  }
}

/* ══════════════════════════════════════════════════
   11. JOURNEY GRID — MOBILE STACK
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-journey-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .v3-journey-step {
    padding: 20px !important;
    border-radius: 14px !important;
  }
}

/* ══════════════════════════════════════════════════
   12. USP GRID — 2x2 ON MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-usp-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .v3-usp {
    padding: 16px 12px !important;
    border-radius: 12px !important;
  }
  .v3-usp-title {
    font-size: 13px !important;
  }
  .v3-usp-desc {
    font-size: 11px !important;
  }
}

/* ══════════════════════════════════════════════════
   13. TESTIMONIAL MARQUEE — FEWER ROWS ON MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-marquee-wrapper {
    gap: 12px !important;
  }
  /* Show only 2 rows on mobile */
  .v3-marquee-row:nth-child(3) {
    display: none !important;
  }
  .v3-review-pill {
    min-width: 240px !important;
    padding: 14px !important;
    border-radius: 12px !important;
  }
  .v3-review-pill p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
}

/* ══════════════════════════════════════════════════
   14. NEWSLETTER — MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-newsletter {
    padding: 48px 20px !important;
  }
  .v3-nl-form {
    flex-direction: column !important;
    gap: 10px !important;
    max-width: 100% !important;
  }
  .v3-nl-input {
    width: 100% !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
  }
  .v3-nl-btn {
    width: 100% !important;
    padding: 14px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
  }
}

/* ══════════════════════════════════════════════════
   15. PDP MODAL — MOBILE FULL SCREEN
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-pdp-modal {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    overflow-y: auto !important;
    padding: 16px !important;
  }
  .v3-pdp-close {
    top: 12px !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
  }
}

/* ══════════════════════════════════════════════════
   16. REELS — HORIZONTAL SNAP SCROLL
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-reels-scroll {
    gap: 10px !important;
    padding-left: 16px !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .v3-reels-scroll::-webkit-scrollbar { display: none; }
  
  .v3-reel-card {
    width: 160px !important;
    height: 280px !important;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 14px !important;
  }
  .v3-reel-username {
    font-size: 11px !important;
  }
}

/* ══════════════════════════════════════════════════
   17. CART DRAWER — MOBILE OPTIMIZED
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ak-cart-head {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 20px !important;
  }
  .ak-cart-scroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .ak-cart-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 12px 20px 20px !important;
    padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
  }
  .ak-cart-checkout {
    width: 100% !important;
    padding: 15px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    background: #2C2520 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer;
    letter-spacing: -0.01em;
  }
}

/* ══════════════════════════════════════════════════
   18. STICKY BOTTOM CTA — SAFE AREA
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #v3-sticky-cta {
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }
}

/* ══════════════════════════════════════════════════
   19. DIVIDERS — MOBILE SIZING
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v3-divider {
    margin: 0 !important;
  }
  .v3-liquid-divider {
    height: 40px !important;
  }
}

/* ══════════════════════════════════════════════════
   20. CHECKOUT NOTICE MODAL — MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  #ak-checkout-notice > div {
    padding: 28px 20px !important;
    border-radius: 16px !important;
  }
}

/* ══════════════════════════════════════════════════
   21. CART FAB — VISIBLE ABOVE STICKY CTA
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #v3-cart-fab {
    bottom: 80px !important;
  }
}
