/* ============================================================
   sylvara CHARMS — mobile.css  v2.0  (FIXED)
   Homepage + shared responsive styles
   NOTE: Global nav/footer responsive lives in style.css.
         This file handles page-specific layout breakpoints only.
   ============================================================ */

/* ══════════════════════════════════════════════════
   HOMEPAGE — index.css components
   ══════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .hp-coll-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .hp-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .hp-coll-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hp-why-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-about-grid {
    gap: 48px;
  }
}

@media (max-width: 900px) {
  /* Hero */
  .hp-hero {
    min-height: 90vh;
    padding: 80px var(--side-pad) 120px;
  }
  .hp-hero-h1 {
    font-size: 56px;
  }
  .hp-hero-badges {
    gap: 16px;
    bottom: 24px;
  }
  .hp-hero-badge {
    font-size: 10px;
  }

  /* Collections — 2 columns on tablet */
  .hp-coll-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-coll-card {
    padding: 22px 24px;
    gap: 14px;
  }

  /* Product grids */
  .hp-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .hp-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Best sellers carousel — native scroll on mobile */
  .hp-carousel-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hp-carousel-wrap::-webkit-scrollbar {
    display: none;
  }
  .hp-carousel-track {
    transform: none !important;
  }
  /* Carousel items: native scroll on mobile */
  .hp-carousel-track .hp-carousel-item {
    min-width: 200px;
    width: 200px;
    flex-shrink: 0;
  }

  /* Stats */
  .hp-stats-row {
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hp-stat {
    padding: 24px 32px;
  }
  .hp-stat-div {
    display: none;
  }

  /* About */
  .hp-about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hp-about-visual {
    display: none;
  }

  /* Testimonials */
  .hp-testi-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Budget */
  .hp-budget-row {
    gap: 10px;
  }
  .hp-budget-btn {
    font-size: 12px;
    padding: 10px 20px;
  }

  /* Why */
  .hp-why-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Section headers */
  .hp-sec-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hp-section-header {
    flex-direction: column;
  }

  /* Section padding */
  .hp-sec {
    padding: 56px 0;
  }
  .hp-collections {
    padding: 56px 0;
  }
  .hp-stats {
    padding: 40px 0;
  }
  .hp-about-strip {
    padding: 56px 0;
  }
  .hp-testi {
    padding: 56px 0;
  }
  .hp-nl {
    padding: 56px 0;
  }
}

@media (max-width: 600px) {
  /* Hero */
  .hp-hero {
    padding: 60px var(--side-pad) 100px;
    min-height: 80vh;
  }
  .hp-hero-h1 {
    font-size: 42px;
  }
  .hp-hero-desc {
    font-size: 14px;
  }
  .hp-hero-btns {
    flex-direction: column;
    gap: 12px;
  }
  .hp-hero-cta,
  .hp-hero-ghost {
    text-align: center;
    justify-content: center;
    width: 100%;
  }
  .hp-hero-badges {
    gap: 12px;
    flex-wrap: wrap;
  }

  /* Collections — 2 columns on mobile (6 rows of 2) */
  .hp-coll-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-coll-card {
    padding: 16px 14px;
    gap: 10px;
    flex-direction: row;
    align-items: center;
  }
  .hp-coll-num {
    font-size: 18px;
    min-width: 28px;
  }
  .hp-coll-info h3 {
    font-size: 13px;
  }
  .hp-coll-info p {
    font-size: 10px;
  }
  .hp-coll-arrow {
    font-size: 14px;
  }

  /* Grids */
  .hp-grid-4,
  .hp-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Titles */
  .hp-title-center {
    font-size: 28px;
  }
  .hp-title-left {
    font-size: 26px;
  }
  .hp-premium-title {
    font-size: 34px;
  }
  .hp-nl-h2 {
    font-size: 22px;
  }

  /* Why cards */
  .hp-why-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Stats */
  .hp-stat {
    padding: 16px 20px;
  }
  .hp-stat-num {
    font-size: 36px;
  }

  /* Newsletter */
  .hp-nl-row {
    flex-direction: column;
  }
  .hp-nl-btn {
    padding: 14px;
  }
}

@media (max-width: 400px) {
  .hp-hero-h1 {
    font-size: 36px;
  }
  .hp-hero-badges {
    display: none;
  }
  .hp-grid-4,
  .hp-grid-3 {
    gap: 8px;
  }

  /* Collections — stay 2 cols on very small screens, shrink padding */
  .hp-coll-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-coll-card {
    padding: 12px 10px;
    gap: 8px;
  }
  .hp-coll-num {
    font-size: 15px;
    min-width: 22px;
  }
  .hp-coll-info h3 {
    font-size: 11px;
  }
  .hp-coll-info p {
    display: none;
  }
  .hp-coll-arrow {
    display: none;
  }
}

/* ══════════════════════════════════════════════════
   SHARED PAGE-LEVEL RESPONSIVE
   (pages that load mobile.css but not pages.css)
   ══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .page-hero {
    padding: 48px 20px 40px;
  }
  .page-section {
    padding: 48px 20px;
  }
  .section-title {
    font-size: 30px;
    margin-bottom: 32px;
  }
  .nav-right {
    gap: 14px;
  }
  .nav-icons {
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .page-hero h1 {
    font-size: clamp(28px, 8vw, 48px);
  }
  .page-section {
    padding: 36px 16px;
  }
  .section-title {
    font-size: 26px;
  }
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }
  .btn-primary,
  .btn-ghost {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  .faq-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .faq-tab {
    flex-shrink: 0;
  }
  .values-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stat-item {
    min-width: 50%;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 36px 16px 32px;
  }
  .contact-form-card {
    padding: 20px 16px;
  }
  .form-2col {
    grid-template-columns: 1fr;
  }
  .stat-item {
    min-width: 100%;
    border-right: none !important;
  }
}

/* ══════════════════════════════════════════════════
   PRODUCT PAGE — responsive
   ══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .product-gallery {
    max-width: 480px;
    margin: 0 auto;
  }
  .product-gallery-main {
    aspect-ratio: 1;
  }
  .thumb-strip {
    gap: 8px;
  }
  .product-info {
    padding: 0 !important;
  }
}

@media (max-width: 600px) {
  .product-layout {
    padding: 20px 16px !important;
  }
  .product-title {
    font-size: 26px !important;
  }
  .size-btn {
    padding: 8px 12px !important;
    font-size: 11px !important;
  }
  .qty-row,
  .product-actions {
    flex-direction: column;
    gap: 10px;
  }
  .product-actions .btn-primary,
  .product-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════
   CART PAGE — responsive
   ══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .cart-summary-col {
    position: static !important;
  }
}

@media (max-width: 600px) {
  .cart-item {
    flex-direction: row;
    gap: 12px;
  }
  .cart-item-img {
    width: 70px !important;
    height: 90px !important;
    flex-shrink: 0;
  }
  .cart-item-details {
    flex: 1;
  }
  .cart-item-name {
    font-size: 13px !important;
  }
  .cart-item-controls {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ══════════════════════════════════════════════════
   SHIPPING PAGE — responsive
   ══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .shipping-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .shipping-summary-col {
    order: -1;
  }
  .form-2col {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .shipping-layout {
    padding: 20px 16px !important;
  }
  .payment-options {
    flex-direction: column;
    gap: 10px;
  }
  .pay-opt {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════
   ANNOUNCE BAR — show on desktop only, hidden mobile
   ══════════════════════════════════════════════════ */
@media (min-width: 901px) {
  .announce-bar {
    display: block;
  }
}

/* ══════════════════════════════════════════════════
   GENERAL utility fixes for all pages
   ══════════════════════════════════════════════════ */

/* Prevent any section from overflowing horizontally */
@media (max-width: 600px) {
  .hp-sec,
  .hp-collections,
  .hp-premium,
  .hp-budget,
  .hp-testi,
  .hp-nl,
  .hp-stats,
  .hp-about-strip {
    overflow-x: hidden;
  }

  /* section padding tighten */
  .hp-sec {
    padding: 40px 0;
  }

  /* Section header stack */
  .hp-sec-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
  }

  /* Arrows row on mobile — align right */
  .hp-arrows {
    align-self: flex-end;
  }

  /* Scroll hint dots */
  .hp-scroll-hint {
    margin-top: 14px;
  }

  /* Budget pills wrap nicely */
  .hp-budget-row {
    gap: 8px;
    padding: 0 4px;
  }
  .hp-budget-btn {
    font-size: 11px;
    padding: 9px 14px;
  }
}
