/* ==========================================================================
   MANIKAYA.COM - RESPONSIVE STYLES (MOBILE-FIRST LUXURY POLISH)
   Guarantees perfect layout across Desktop, Tablet, and Mobile
   ========================================================================== */

/* --------------------------------------------------------------------------
   TABLET LANDSCAPE & MEDIUM DESKTOPS (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    /* Hero Section */
    .hero-title { font-size: 3.2rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-container-grid { gap: 2.5rem; }
    .hero-pedestal-aura { max-width: 380px; }

    /* Trust Bar: 3 Columns on Tablet */
    .trust-bar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .trust-item:nth-child(3) {
        border-right: none;
    }

    /* Intention Grid: 2 Columns on Tablet */
    .intention-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Category Grid: STRICT 3 COLUMNS ON TABLET */
    .category-fixed-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    /* Featured Products Grid: 3 Columns on Tablet */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    /* Benefits Section */
    .benefits-split-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 2.5rem;
    }
    .benefits-lifestyle-img {
        height: 440px;
    }

    /* Why Choose & Testimonials: 2 Columns */
    .why-choose-grid,
    .testimonials-lux-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Transformation Banner Stats */
    .trans-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Video Showcase, Brand Story Timeline & Instagram: Tablet */
    .video-showcase-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .story-timeline-flow {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    /* Footer: 2 Columns on Tablet */
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .shop-container { grid-template-columns: 220px 1fr; gap: 1.5rem; }
}

/* --------------------------------------------------------------------------
   TABLET PORTRAIT & LARGE SMARTPHONES (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px; /* Offset for sticky bottom nav */
    }

    .main-nav { display: none; }
    .header-search-bar { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-bottom-bar { display: flex; }

    .header-inner { height: 64px; }
    .logo-text { font-size: 1.4rem; }
    .logo-sub { font-size: 0.52rem; }

    .section { padding: 3.5rem 0; }
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 0.95rem; }

    /* Top Announcement Bar on Mobile */
    .announcement-quick-links { display: none; }
    .announcement-slide { justify-content: center; }

    /* Hero Section Stacking */
    .hero-section {
        padding: 3.5rem 0 4.5rem;
        text-align: center;
    }
    .hero-container-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-eyebrow {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-title {
        font-size: 2.4rem;
        line-height: 1.15;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .hero-cta-group {
        justify-content: center;
        margin-bottom: 2.5rem;
    }
    .hero-cta-group .btn {
        width: 100%;
    }
    .hero-glass-trust-card {
        margin: 0 auto 1.5rem;
        text-align: center;
    }
    .glass-trust-header, .glass-trust-badges {
        justify-content: center;
    }
    .hero-social-proof {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    .hero-pedestal-aura {
        max-width: 320px;
        margin: 0 auto;
    }
    .calligraphy-script-note {
        font-size: 2rem;
        top: -15px;
        right: 0;
    }
    .tag-blessed {
        display: none;
    }
    .tag-energy {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
    }

    /* Trust Bar: 2 Columns on Mobile */
    .trust-bar-section {
        padding: 1.5rem 0;
    }
    .trust-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .trust-item {
        border-right: none;
        padding-right: 0;
    }
    .trust-item .trust-icon-box {
        width: 36px;
        height: 36px;
    }
    .trust-heading {
        font-size: 0.8rem;
    }
    .trust-sub {
        font-size: 0.7rem;
    }

    /* Intention Grid: 2 Columns on Mobile */
    .intention-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .intention-card {
        padding: 1.75rem 1.5rem;
    }

    /* Category Grid: STRICT 2 COLUMNS ON MOBILE */
    .category-fixed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .cat-card-tag {
        font-size: 0.62rem;
        padding: 0.2rem 0.5rem;
    }
    .cat-card-details {
        padding: 0.85rem 0.75rem;
    }
    .cat-card-title {
        font-size: 0.9rem;
    }
    .cat-card-count {
        font-size: 0.72rem;
    }

    /* Featured Products Grid: 2 Columns on Mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .product-info-wrap {
        padding: 0.85rem;
    }
    .product-card-title {
        font-size: 0.92rem;
    }
    .product-benefit-text {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .price-current {
        font-size: 1.05rem;
    }
    .price-compare {
        font-size: 0.78rem;
    }
    .price-savings {
        display: none;
    }
    .btn-luxury-cart {
        padding: 0.6rem 0.75rem;
        font-size: 0.82rem;
    }

    /* Benefits Section Stacking */
    .benefits-split-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .benefits-lifestyle-img {
        height: 320px;
    }
    .benefits-main-title {
        font-size: 2.2rem;
    }
    .story-timeline-flow {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Video Showcase on Mobile */
    .video-showcase-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Why Choose Manikaya: 1 Column Stack */
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .why-card {
        padding: 1.5rem;
    }

    /* Testimonials: 1 Column */
    .testimonials-lux-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .testimonial-lux-card {
        padding: 1.5rem;
    }

    /* Transformation Section */
    .transformation-banner {
        padding: 2.5rem 1.5rem;
    }
    .trans-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    .stat-number {
        font-size: 2.1rem;
    }
    .trans-matrix-wrap {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .matrix-divider {
        display: none;
    }

    /* Blog Grid: 1 Column */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Instagram Grid: 2 Columns on Mobile */
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Newsletter Section Stacking */
    .newsletter-lux-section {
        padding: 4rem 0;
    }
    .newsletter-inner-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    .newsletter-lux-title {
        font-size: 2.2rem;
    }
    .newsletter-vip-code {
        width: 100%;
        justify-content: center;
    }
    .newsletter-input-group {
        flex-direction: column;
    }
    .btn-newsletter-submit {
        width: 100%;
    }

    /* Footer on Mobile */
    .site-footer {
        padding-top: 3.5rem;
    }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    /* Floating WhatsApp Button on Mobile */
    .floating-whatsapp-widget {
        bottom: 72px; /* Clears sticky mobile bottom nav bar (58px) */
        right: 15px;
    }
    .wa-label-sub {
        display: none;
    }
    .wa-float-link {
        padding: 4px 12px 4px 4px;
    }
    .wa-icon-pulse {
        width: 40px;
        height: 40px;
    }
    .wa-icon-pulse svg {
        width: 22px;
        height: 22px;
    }
    .wa-label-title {
        font-size: 0.75rem;
    }

    /* Quick View Dialog on Mobile */
    .qv-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .quick-view-modal-body {
        padding: 1.5rem;
    }

    /* Mobile Sticky Add To Cart Bar */
    .mobile-sticky-atc {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(6, 35, 25, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid rgba(212, 175, 55, 0.45);
        box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.35);
        z-index: 1060;
        padding: 8px 14px;
        padding-bottom: max(8px, env(safe-area-inset-bottom));
        transform: translateY(115%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
        will-change: transform;
    }

    .mobile-sticky-atc.visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-sticky-atc-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        max-width: 600px;
        margin: 0 auto;
    }

    .mobile-sticky-product {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        flex: 1;
    }

    .mobile-sticky-thumb {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        object-fit: cover;
        border: 1px solid rgba(212, 175, 55, 0.35);
        background: #09261c;
        flex-shrink: 0;
    }

    .mobile-sticky-meta {
        min-width: 0;
        flex: 1;
    }

    .mobile-sticky-title {
        color: #f4e8c1;
        font-size: 0.82rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.25;
    }

    .mobile-sticky-pricing {
        display: flex;
        align-items: baseline;
        gap: 5px;
        margin-top: 2px;
    }

    .mobile-sticky-price {
        color: #6ee7b7;
        font-size: 0.95rem;
        font-weight: 700;
        font-family: 'Outfit', sans-serif;
    }

    .mobile-sticky-compare {
        color: rgba(244, 232, 193, 0.5);
        font-size: 0.75rem;
        text-decoration: line-through;
    }

    .mobile-sticky-spec {
        display: inline-block;
        background: rgba(212, 175, 55, 0.15);
        color: #d4af37;
        border: 1px solid rgba(212, 175, 55, 0.3);
        border-radius: 4px;
        padding: 0 4px;
        font-size: 0.68rem;
        font-weight: 600;
    }

    .mobile-sticky-action {
        flex-shrink: 0;
    }

    .mobile-sticky-btn {
        background: linear-gradient(135deg, #d4af37 0%, #b89028 100%);
        color: #062319 !important;
        font-weight: 700;
        font-size: 0.82rem;
        padding: 10px 16px;
        border-radius: 8px;
        border: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 3px 12px rgba(212, 175, 55, 0.3);
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .mobile-sticky-btn:active {
        transform: scale(0.96);
    }

    /* Shift WhatsApp Floating widget up when Sticky ATC bar is visible */
    body.has-sticky-atc .floating-whatsapp-widget {
        bottom: 84px !important;
        transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* --------------------------------------------------------------------------
   SMALL MOBILE PHONES (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .category-fixed-grid {
        gap: 0.75rem;
    }
    .products-grid {
        gap: 0.75rem;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .wa-label-pill {
        display: none; /* Icon-only floating circle on smallest devices */
    }
    .wa-float-link {
        padding: 0;
        border-radius: 50%;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    /* Compact Mobile Sticky ATC on smaller mobile screens */
    .mobile-sticky-atc {
        padding: 6px 10px;
        padding-bottom: max(6px, env(safe-area-inset-bottom));
    }
    .mobile-sticky-thumb {
        width: 38px;
        height: 38px;
    }
    .mobile-sticky-title {
        max-width: 120px;
        font-size: 0.75rem;
    }
    .mobile-sticky-price {
        font-size: 0.88rem;
    }
    .mobile-sticky-btn {
        padding: 8px 12px;
        font-size: 0.78rem;
    }

    /* Small Mobile Policy & Guide Adjustments */
    .steps-flow {
        grid-template-columns: 1fr !important;
    }
    .policy-summary-card {
        padding: 1.25rem !important;
    }
    .policy-meta {
        flex-direction: column;
        gap: 0.2rem !important;
    }
    .policy-meta .sep {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   TABLET & MOBILE POLICY LAYOUT ADJUSTMENTS (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .policy-summary-card {
        padding: 1.5rem;
        margin-bottom: 2.5rem;
    }
    .summary-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    .summary-icon {
        font-size: 2.2rem;
    }
    .policy-grid-2 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .steps-flow {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .cleansing-methods-grid,
    .pillars-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .policy-section h2 {
        font-size: 1.45rem;
    }
    .policy-callout {
        padding: 1.1rem 1.25rem;
    }
    .courier-badges-row {
        gap: 0.5rem;
    }
    .courier-pill {
        font-size: 0.82rem;
        padding: 0.45rem 1rem;
    }

    /* Footer Mobile Stacking */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .footer-col.brand-col {
        grid-column: span 1;
    }
}

/* --------------------------------------------------------------------------
   TABLET FOOTER ADJUSTMENTS (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    .footer-col.brand-col {
        grid-column: span 2;
    }
}

/* --------------------------------------------------------------------------
   CART & CHECKOUT MOBILE RESPONSIVENESS (<= 768px)
   Enforces 1-Column Stacking, Order Alignment, Mobile Cards, & Zero Overflow
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .cart-page-container,
    .checkout-container {
        padding-top: 1.5rem;
        padding-bottom: 4rem;
        padding-left: 14px;
        padding-right: 14px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* Cart Layout Grid: Single Column Stack */
    .cart-layout-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Cart Items Table FIRST */
    .cart-items-table-wrap {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Cart Summary & Coupon BELOW */
    .cart-summary-col {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Transform Cart Table into Native Mobile Touch Cards */
    .cart-table {
        display: block !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .cart-table thead {
        display: none !important; /* Hide multi-column desktop headers */
    }

    .cart-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        width: 100% !important;
    }

    .cart-table tr {
        display: flex !important;
        flex-direction: column !important;
        background: var(--bg-surface) !important;
        border: 1px solid var(--border-subtle) !important;
        border-radius: var(--radius-md) !important;
        padding: 1.25rem !important;
        position: relative !important;
        gap: 0.75rem !important;
        box-shadow: var(--shadow-subtle) !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .cart-table td {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 !important;
        border: none !important;
        font-size: 0.9rem !important;
    }

    .cart-table td.product-col {
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding-bottom: 0.85rem !important;
        border-bottom: 1px dashed var(--border-subtle) !important;
        padding-right: 36px !important; /* Reserve space for absolute remove icon */
    }

    .cart-table td.product-col .cart-item-img {
        width: 60px !important;
        height: 60px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    .cart-table td.product-col .cart-item-title {
        font-size: 0.95rem !important;
        line-height: 1.35 !important;
        display: block !important;
        font-weight: 600 !important;
    }

    /* Position remove button absolute in top-right corner of card */
    .cart-table tr td.remove-col {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        padding: 0 !important;
    }

    .cart-table tr td.remove-col .btn-remove-link {
        width: 28px !important;
        height: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(198, 40, 40, 0.1) !important;
        color: #C62828 !important;
        border-radius: 50% !important;
        text-decoration: none !important;
        font-size: 0.9rem !important;
        line-height: 1 !important;
        transition: background 0.2s ease !important;
    }

    .cart-table tr td.remove-col .btn-remove-link:hover {
        background: rgba(198, 40, 40, 0.2) !important;
    }

    /* Micro-labels for card fields */
    .cart-table td[data-label]::before {
        content: attr(data-label) ":" !important;
        font-weight: 600 !important;
        color: var(--text-muted) !important;
        font-size: 0.82rem !important;
    }

    .cart-table td[data-label="Subtotal"] strong {
        color: var(--gold-dark) !important;
        font-size: 1.05rem !important;
    }

    .cart-table-actions {
        margin-top: 1.25rem !important;
        text-align: center !important;
    }

    .cart-table-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Checkout Layout Grid: Single Column Stack */
    .checkout-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Checkout Form FIRST */
    .checkout-form-col {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Order Summary BELOW Form */
    .checkout-summary-col {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .sticky-summary {
        position: static !important;
        top: auto !important;
    }

    .checkout-card .card-body {
        padding: 1.25rem !important;
    }

    .checkout-card .card-header {
        padding: 0.85rem 1.25rem !important;
    }

    .checkout-card .card-header h3 {
        font-size: 1.1rem !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .payment-method-card {
        padding: 0.85rem 1rem !important;
        gap: 0.75rem !important;
    }

    .payment-method-card .method-info strong {
        font-size: 0.88rem !important;
    }

    .payment-method-card .method-info span {
        font-size: 0.75rem !important;
        line-height: 1.35 !important;
    }

    .payment-method-card .method-icon {
        font-size: 1.25rem !important;
    }

    .coupon-form {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .coupon-form .btn {
        width: 100% !important;
    }
}

/* Extra-Narrow Phones (320px - 375px) */
@media (max-width: 480px) {
    .cart-page-container,
    .checkout-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .summary-card {
        padding: 1.25rem 1rem !important;
    }

    .checkout-card .card-body {
        padding: 1rem 0.85rem !important;
    }

    .checkout-card .card-header {
        padding: 0.75rem 0.85rem !important;
    }

    .checkout-mini-item {
        gap: 0.65rem !important;
    }

    .mini-thumb-wrap {
        width: 44px !important;
        height: 44px !important;
    }

    .mini-info h4 {
        font-size: 0.82rem !important;
    }

    .mini-price {
        font-size: 0.88rem !important;
    }

    .total-line {
        font-size: 1.05rem !important;
    }

    .total-highlight {
        font-size: 1.15rem !important;
    }
}

