﻿/* ============================================================
   FILE 5: 05-mobile-responsive.css
   Mobile Responsive CSS
   Project: Gentlwish.com — Taoist Talismans & Spiritual Wellness
   ============================================================ */

/* ========================================
   TABLET (768px - 1024px)
   ======================================== */

@media screen and (max-width: 1024px) {
  :root {
    --hero-headline-size: 42px;
    --category-title-size: 36px;
    --product-page-title-size: 32px;
    --blog-title-size: 36px;
    --section-spacing: 48px;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .woocommerce div.product .summary {
    padding: 0;
  }

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
  }

  .gentlwish-category-banner {
    height: 380px;
  }

  .gentlwish-hero .hero-headline {
    font-size: 42px;
  }

  .gentlwish-section-title {
    font-size: 30px;
  }

  .gentlwish-related-articles .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   MOBILE (max-width: 767px)
   ======================================== */

@media screen and (max-width: 767px) {
  :root {
    --hero-headline-size: 32px;
    --category-title-size: 28px;
    --product-page-title-size: 26px;
    --product-page-price-size: 24px;
    --blog-title-size: 28px;
    --section-spacing-mobile: 40px;
    --content-padding: 20px;
  }

  body {
    padding: 0 var(--content-padding-mobile);
  }

  /* ========================================
     HEADER (Mobile)
     ======================================== */

  .gentlwish-header .header-menu {
    display: none;
  }

  .gentlwish-mobile-menu-toggle {
    display: block;
  }

  /* ========================================
     SLIDE-IN DRAWER MENU
     ======================================== */

  .gentlwish-mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--color-bg-card);
    z-index: 9999;
    overflow-y: auto;
    padding: 24px;
    transition: right var(--transition-base);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  }

  .gentlwish-mobile-drawer.open {
    right: 0;
  }

  .gentlwish-mobile-drawer .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
  }

  .gentlwish-mobile-drawer .drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text);
    cursor: pointer;
    padding: 8px;
  }

  .gentlwish-mobile-drawer .drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .gentlwish-mobile-drawer .drawer-menu li {
    border-bottom: 1px solid var(--color-border-light);
  }

  .gentlwish-mobile-drawer .drawer-menu li a {
    display: block;
    padding: 16px 0;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: var(--font-weight-body-500);
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .gentlwish-mobile-drawer .drawer-menu li a:hover {
    color: var(--color-primary);
  }

  /* Drawer Overlay */
  .gentlwish-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .gentlwish-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* ========================================
     HERO (Mobile)
     ======================================== */

  .gentlwish-hero {
    padding: 48px 0;
  }

  .gentlwish-hero .hero-headline {
    font-size: var(--hero-headline-size);
  }

  .gentlwish-hero .hero-subheadline {
    font-size: 16px;
  }

  .gentlwish-hero .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .gentlwish-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* ========================================
     PRODUCT GRID (Mobile)
     ======================================== */

  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    padding: 0;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    padding: 0 10px;
  }

  .woocommerce ul.products li.product .price {
    font-size: 14px;
    padding: 0 10px;
  }

  .woocommerce ul.products li.product .button {
    width: calc(100% - 20px);
    margin: auto 10px 10px !important;
    padding: 10px 16px !important;
    font-size: 13px;
  }

  /* ========================================
     CATEGORY PAGE (Mobile)
     ======================================== */

  .gentlwish-category-banner {
    height: 300px;
  }

  .gentlwish-category-banner .banner-title {
    font-size: var(--category-title-size);
  }

  .gentlwish-category-banner .banner-description {
    font-size: 16px;
  }

  .gentlwish-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* ========================================
     PRODUCT PAGE (Mobile)
     ======================================== */

  .woocommerce div.product .product_title {
    font-size: var(--product-page-title-size);
  }

  .woocommerce div.product p.price {
    font-size: var(--product-page-price-size);
  }

  .woocommerce div.product form.cart {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce div.product form.cart .quantity {
    width: 100%;
  }

  .woocommerce div.product form.cart .quantity .qty {
    width: 100%;
  }

  .woocommerce div.product form.cart .button.single_add_to_cart_button {
    width: 100%;
    padding: 0 24px;
  }

  .gentlwish-trust-section {
    flex-direction: column;
    gap: 12px;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    overflow-x: auto;
    gap: 0;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 12px 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  .gentlwish-faq-block {
    padding: 20px;
  }

  /* ========================================
     BLOG (Mobile)
     ======================================== */

  .gentlwish-blog-article .blog-title {
    font-size: var(--blog-title-size);
  }

  .gentlwish-blog-article .blog-content h2 {
    font-size: 24px;
  }

  .gentlwish-blog-article .blog-content h3 {
    font-size: 20px;
  }

  .gentlwish-related-articles .related-grid {
    grid-template-columns: 1fr;
  }

  .gentlwish-blog-archive .archive-posts {
    grid-template-columns: 1fr;
  }

  .gentlwish-blog-archive .archive-header h1 {
    font-size: 32px;
  }

  /* ========================================
     SECTION SPACING (Mobile)
     ======================================== */

  .gentlwish-section {
    padding: var(--section-spacing-mobile) 0;
  }

  .gentlwish-section-title {
    font-size: 26px;
  }

  .gentlwish-section-subtitle {
    font-size: 15px;
  }

  .gentlwish-featured-products {
    padding: var(--section-spacing-mobile) 0;
  }

  .gentlwish-usp-section {
    padding: var(--section-spacing-mobile) 0;
  }

  .gentlwish-usp-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gentlwish-newsletter {
    padding: var(--section-spacing-mobile) 0;
  }

  .gentlwish-newsletter .newsletter-form {
    flex-direction: column;
  }

  .gentlwish-newsletter .newsletter-form button {
    width: 100%;
  }

  /* ========================================
     CART (Mobile)
     ======================================== */

  .woocommerce table.cart {
    display: block;
  }

  .woocommerce table.cart thead {
    display: none;
  }

  .woocommerce table.cart tbody,
  .woocommerce table.cart tr,
  .woocommerce table.cart td {
    display: block;
  }

  .woocommerce table.cart tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border-light);
  }

  .woocommerce table.cart td {
    padding: 6px 0;
    border: none;
  }

  .woocommerce .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce .cart .button {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
  }

  /* ========================================
     CHECKOUT (Mobile)
     ======================================== */

  .woocommerce-checkout .woocommerce .col2-set {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce-checkout .woocommerce .col2-set .col-1,
  .woocommerce-checkout .woocommerce .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce-checkout .woocommerce #order_review_heading,
  .woocommerce-checkout .woocommerce #order_review {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce-checkout .woocommerce .place-order .button {
    height: 52px;
    font-size: 15px;
  }

  /* ========================================
     CATEGORY ACCENT COLORS (Mobile indicators)
     ======================================== */

  .gentlwish-category-card .category-name {
    font-size: 16px;
  }

  .gentlwish-category-card .category-count {
    font-size: 13px;
  }

  .gentlwish-category-card img {
    height: 140px;
  }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
   ======================================== */

@media screen and (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .gentlwish-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gentlwish-hero .hero-headline {
    font-size: 28px;
  }

  .gentlwish-category-banner {
    height: 240px;
  }

  .gentlwish-category-banner .banner-title {
    font-size: 24px;
  }

  .woocommerce div.product .product_title {
    font-size: 22px;
  }

  .gentlwish-btn {
    padding: 14px 24px;
    font-size: 15px;
  }
}
