/* ═══════════════════════════════════════════════════════════ */
/* LIZ SECRETS — MOBILE OPTIMIZATION STYLESHEET              */
/* Covers: 320px, 360px, 390px, 430px, 480px, 640px, 768px  */
/* This file ONLY adds mobile styles — desktop unchanged.    */
/* ═══════════════════════════════════════════════════════════ */

/* ─── DESKTOP DEFAULTS (grid-template-columns moved from inline HTML) ─── */
/* These define the default desktop layout for all grids */
.duo-grid {
    grid-template-columns: 1fr 1fr;
}
.duo-showcase-grid {
    grid-template-columns: 1fr 1fr;
}
.clean-cards-grid {
    grid-template-columns: repeat(3, 1fr);
}
.ritual-cards-grid {
    grid-template-columns: 1fr 1fr;
}
.ritual-2col-grid {
    grid-template-columns: 1fr 1fr;
}
.reviews-grid {
    grid-template-columns: repeat(3, 1fr);
}
.actifs-grid-14 {
    grid-template-columns: repeat(4, 1fr);
}

/* ─── GLOBAL MOBILE OVERFLOW PROTECTION ─── */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    min-width: 0;
}

/* ─── SECTION VERTICAL SPACING REDUCTION ON MOBILE ─── */
@media (max-width: 768px) {
    .section {
        padding: clamp(48px, 8vw, 90px) 0 !important;
    }
    
    .container {
        padding: 0 clamp(16px, 4vw, 40px);
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* SECTION HEADER TYPOGRAPHY — Override inline styles        */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Override inline font-size: 3.2rem on h2 section titles */
    .section-title,
    h2.section-title,
    h2[style*="3.2rem"],
    h2[style*="font-size"] {
        font-size: clamp(1.75rem, 5vw, 2.6rem) !important;
        line-height: 1.2 !important;
    }
    
    /* Override inline font-size: 2.6rem italic subtitles */
    div[style*="2.6rem"],
    div[style*="font-size: 2.6rem"],
    .section-desc {
        font-size: clamp(1.4rem, 4vw, 2rem) !important;
        line-height: 1.3 !important;
    }
    
    .section-header {
        margin-bottom: clamp(32px, 5vw, 56px);
        padding: 0 4px;
    }
    
    .section-desc {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }
    
    .section-tag {
        font-size: 0.65rem;
        padding: 5px 16px;
    }
}

@media (max-width: 430px) {
    .section-title,
    h2.section-title,
    h2[style*="font-size"] {
        font-size: clamp(1.55rem, 6vw, 2rem) !important;
    }
    
    div[style*="2.6rem"],
    div[style*="font-size: 2.6rem"] {
        font-size: clamp(1.2rem, 5vw, 1.6rem) !important;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* NAVIGATION                                                */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .nav {
        padding: 10px 0;
    }
    
    .nav-inner {
        padding: 0 16px;
        gap: 8px;
    }
    
    /* Reduce logo size significantly on mobile */
    .nav-logo-img {
        height: 52px !important;
        max-height: 52px !important;
        width: auto !important;
    }
    
    /* Hide desktop CTA button in nav on mobile — use mobile menu CTA instead */
    .nav-cta {
        display: none !important;
    }
    
    /* Ensure hamburger has proper tap target */
    .nav-mobile-toggle {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile menu polish */
    .mobile-menu {
        padding-top: 80px;
        padding-left: 16px;
        padding-right: 16px;
        overflow-y: auto;
    }
    
    .mobile-menu-links {
        font-size: 1.5rem;
        gap: 24px;
    }
    
    /* CTA button inside mobile menu — prevent overflow */
    .mobile-cta {
        padding: 16px 32px !important;
        font-size: 0.9rem !important;
        white-space: nowrap;
        max-width: 280px;
        text-align: center;
    }
    
    /* Announcement bar */
    .announcement-bar {
        padding: 8px 12px;
        font-size: 0.7rem;
        letter-spacing: 0.06em;
    }
    
    .announcement-inner {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .nav-logo-img {
        height: 44px !important;
        max-height: 44px !important;
    }
    
    .nav-inner {
        padding: 0 12px;
    }
    
    .mobile-cta {
        padding: 14px 24px !important;
        font-size: 0.85rem !important;
    }
    
    .announcement-bar {
        padding: 6px 10px;
        font-size: 0.65rem;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* HERO SECTION                                              */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Reduce hero minimum height so it doesn't require massive scrolling */
    .hero {
        min-height: auto !important; align-items: start !important;
    }
    
    .hero-content {
        padding: 20px 24px 20px !important;
        text-align: center;
    }
    
    .hero-badge {
        font-size: 0.62rem;
        padding: 6px 14px;
        margin-bottom: 20px;
    }
    
    /* Dramatically reduce hero font sizes for mobile */
    .hero-title-line-1 {
        font-size: clamp(2rem, 7vw, 3rem) !important;
    }
    
    .hero-title-line-2 {
        font-size: clamp(2.4rem, 8.5vw, 3.5rem) !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.7;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 28px;
    }
    
    .hero-cta-group {
        gap: 12px;
        margin-bottom: 28px;
        justify-content: center;
    }
    
    /* Trust strip */
    .hero-trust {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .trust-item {
        font-size: 0.65rem;
        gap: 5px;
    }
}

@media (max-width: 430px) {
    .hero {
        min-height: auto !important; align-items: start !important;
    }
    
    .hero-content {
        padding: 10px 16px 16px !important;
    }
    
    .hero-title-line-1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
    }
    
    .hero-title-line-2 {
        font-size: clamp(2.1rem, 9vw, 2.8rem) !important;
    }
    
    .hero-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 24px;
    }
    
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta-group .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-badge {
        font-size: 0.58rem;
        padding: 5px 12px;
    }
}

@media (max-width: 360px) {
    .hero-content {
        padding: 10px 12px 16px !important;
    }
    
    .hero-title-line-1 {
        font-size: 1.7rem !important;
    }
    
    .hero-title-line-2 {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.82rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* BUTTONS                                                   */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .btn {
        padding: 15px 32px;
        font-size: 0.82rem;
    }
    
    .btn-large {
        padding: 16px 36px;
        font-size: 0.85rem;
    }
}

@media (max-width: 430px) {
    .btn {
        padding: 14px 24px;
        font-size: 0.8rem;
    }
    
    .btn-large {
        padding: 15px 28px;
        font-size: 0.82rem;
    }
}

@media (max-width: 360px) {
    .btn {
        padding: 13px 20px;
        font-size: 0.78rem;
        gap: 6px;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* PRODUCT CARDS (DUO SECTION)                              */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* ── Collapse Amber/After Glow cards to single column ── */
    .duo-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* ── Collapse Summer Duo showcase to single column ── */
    .duo-showcase-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .duo-showcase-img-wrap {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
    
    .duo-showcase-content {
        padding: 0;
    }
    
    /* ── Duo pricing box: stack vertically on mobile ── */
    .duo-pricing-box {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 16px 20px !important;
    }
    
    /* Duo price font size reduction */
    .product-price-duo {
        font-size: 2rem !important;
    }
    
    /* Savings badge full width on mobile */
    .product-savings-duo {
        font-size: 0.72rem !important;
        padding: 6px 12px !important;
    }
    
    /* ── Ritual 2-col cards → 1 col ── */
    .ritual-cards-grid,
    .ritual-2col-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* ── Clean beauty 3-col → 2 col ── */
    .clean-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .clean-card {
        padding: 28px 20px !important;
    }
    
    /* ── Reviews 3-col → 1 col ── */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .review-card {
        padding: 24px 20px;
        min-width: auto !important;
    }
    
    /* ── Actifs grid 4-col → 2 col ── */
    .actifs-grid-14 {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    /* Product card image height cap */
    .product-card-img {
        height: 280px !important;
        object-fit: contain !important;
    }
    
    .product-card-content {
        padding: 24px 20px !important;
    }
    
    .product-card-name {
        font-size: 1.8rem !important;
    }
    
    .product-card-tagline {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }
    
    /* Duo showcase — pricing box */
    div[style*="justify-content:space-between"][style*="align-items:center"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    /* Trust badges row below CTA — wrap on mobile */
    div[style*="display:flex"][style*="gap:20px"][style*="font-size:0.82rem"] {
        flex-wrap: wrap !important;
        gap: 10px !important;
        font-size: 0.78rem !important;
    }
    
    /* Duo product price display */
    span.product-price-duo {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 480px) {
    .clean-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .clean-card {
        padding: 24px 18px !important;
    }
    
    /* Actifs ingredient cards → compact horizontal chip layout */
    .actifs-grid-14 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Make each ingredient card horizontal: icon left, text right */
    .actifs-solaires-section .actifs-grid-14 > div,
    .actifs-grid-14 > div {
        display: grid !important;
        grid-template-columns: 36px 1fr !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        text-align: left !important;
        padding: 10px 8px !important;
        border-radius: 10px !important;
        gap: 2px 8px !important;
    }
    
    /* Icon wrapper */
    .actifs-grid-14 > div > div:first-child {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 0.9rem !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }
    
    /* Title */
    .actifs-grid-14 > div > h3 {
        grid-column: 2 !important;
        grid-row: 1 !important;
        font-size: 0.75rem !important;
        margin: 0 !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }
    
    /* Description */
    .actifs-grid-14 > div > p {
        grid-column: 2 !important;
        grid-row: 2 !important;
        font-size: 0.65rem !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        color: var(--charcoal-soft);
    }
    
    /* Card padding inside product sections */
    .duo-showcase-content {
        padding: 0 4px;
    }
}

@media (max-width: 430px) {
    .duo-grid {
        gap: 20px;
    }
    
    .product-card-content {
        padding: 20px 16px !important;
    }
    
    .product-card-name {
        font-size: 1.6rem !important;
    }
    
    .product-card-img {
        height: 240px !important;
    }
    
    /* Product card price row */
    .product-card-price-row {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    /* Ritual card padding reduction */
    div.ritual-cards-grid > div {
        padding: 24px 20px !important;
    }
}

@media (max-width: 380px) {
    .actifs-grid-14 {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .product-card-img {
        height: 200px !important;
    }
}

@media (max-width: 360px) {
    .product-card-content {
        padding: 16px 14px !important;
    }
    
    .product-card-name {
        font-size: 1.4rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* RITUAL SECTION                                           */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .ritual-steps {
        gap: 0;
    }
    
    .ritual-step {
        gap: 20px;
        padding: 24px 0;
    }
    
    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
    
    .step-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 430px) {
    .ritual-step {
        gap: 14px;
        padding: 20px 0;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    
    .step-title {
        font-size: 1.15rem;
    }
    
    .step-content {
        padding-top: 4px;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* SCIENCE / INGREDIENTS SECTION                            */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .formulation-card {
        padding: 24px 20px;
    }
    
    .formulation-header {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .philosophy-text {
        font-size: 1rem !important;
        line-height: 1.8;
    }
    
    .science-philosophy-inner {
        padding-left: 20px;
    }
}

@media (max-width: 430px) {
    .formulation-card {
        padding: 20px 16px;
    }
    
    .ingredient-col {
        padding: 20px 16px !important;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* PROMISE / GUARANTEES GRID                                */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .promise-grid {
        gap: 14px;
    }
    
    .promise-card {
        padding: 20px 16px;
    }
}

@media (max-width: 430px) {
    .promise-grid {
        gap: 12px;
    }
    
    .promise-card {
        padding: 18px 14px;
    }
    
    .promise-card h3 {
        font-size: 0.85rem;
    }
    
    .promise-card p {
        font-size: 0.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* STORY / TIMELINE SECTION                                 */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .story-timeline {
        gap: 24px;
    }
    
    .story-milestone {
        gap: 18px;
    }
    
    .milestone-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    /* Timeline vertical line adjustment */
    .story-timeline::before {
        left: 22px;
    }
}

@media (max-width: 430px) {
    .story-milestone {
        gap: 14px;
    }
    
    .milestone-icon {
        width: 38px !important;
        height: 38px !important;
    }
    
    .story-timeline::before {
        left: 19px;
    }
    
    .milestone-text h4 {
        font-size: 0.9rem;
    }
    
    .milestone-text p {
        font-size: 0.82rem;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* REVIEWS / TESTIMONIALS SECTION                           */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Override inline reviews grid */
    .reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .review-card {
        padding: 24px 20px;
        min-width: auto !important;
    }
    
    .reviews-track {
        gap: 16px;
    }
}

@media (max-width: 430px) {
    .review-card {
        padding: 20px 16px;
    }
    
    .review-text {
        font-size: 0.9rem;
    }
    
    .reviewer-name {
        font-size: 0.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* QUALITY / TRUST BADGES GRID                              */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* 6-column quality grid → 3-col on mobile */
    .quality-standards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px;
    }
    
    .quality-card {
        padding: 16px 12px;
    }
    
    .quality-icon {
        width: 40px;
        height: 40px;
    }
    
    .quality-name {
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .quality-standards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px;
    }
    
    .quality-card {
        padding: 12px 8px;
    }
    
    .quality-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .quality-name {
        font-size: 0.65rem;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* ORDER / CTA SECTION                                      */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .order-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .order-visual {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .order-title {
        font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
        text-align: center;
    }
    
    .order-content {
        text-align: center;
    }
    
    .order-pricing {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .order-guarantees {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    
    .guarantee-item {
        font-size: 0.75rem;
    }
}

@media (max-width: 430px) {
    .order-includes {
        gap: 8px;
        margin-bottom: 24px;
    }
    
    .order-include-item {
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* SPOTLIGHT / SPF PRODUCTS                                 */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .spotlight-title {
        font-size: 1.8rem !important;
    }
    
    .spotlight-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    
    .spotlight-checklist {
        grid-template-columns: 1fr !important;
    }
    
    /* SPF product rows */
    .solaire-product-row {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    
    .solaire-product-img-wrap {
        max-width: 260px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .spotlight-title {
        font-size: 1.5rem !important;
    }
    
    /* Shop grid → 1-col */
    .shop-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Results grid → 1-col */
    .results-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .solaire-benefits-list {
        max-width: 100% !important;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* NEWSLETTER SECTION                                       */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .newsletter-section {
        padding: 48px 0;
    }
    
    .newsletter-inner {
        gap: 24px;
    }
    
    .newsletter-form {
        width: 100%;
        flex-shrink: 1 !important;
    }
}

@media (max-width: 430px) {
    .newsletter-input {
        padding: 13px 14px;
        font-size: 0.85rem;
    }
    
    .newsletter-btn {
        padding: 13px 18px;
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* FOOTER                                                   */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    footer, .footer {
        padding: 48px 0 24px;
    }
    
    .footer-grid {
        gap: 24px;
    }
    
    .footer-logo-img {
        height: 60px !important;
    }
    
    .footer-desc {
        font-size: 0.85rem;
    }
    
    .footer-links-col h4 {
        font-size: 0.7rem;
    }
    
    .footer-links-col li a {
        font-size: 0.85rem;
    }
}

@media (max-width: 430px) {
    .footer-grid {
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        font-size: 0.75rem;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* CHECKOUT PAGE MOBILE OVERRIDES                           */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .checkout-logo-img {
        height: 52px !important;
    }
    
    .checkout-main {
        padding: 24px 0 60px;
    }
    
    .checkout-secure span {
        display: none;
    }
    
    .checkout-steps {
        gap: 0;
        padding: 12px;
    }
    
    .form-section {
        padding: 24px 20px;
    }
    
    .form-section-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 430px) {
    .checkout-nav-inner {
        padding: 0 12px;
    }
    
    .checkout-logo-img {
        height: 44px !important;
    }
    
    .checkout-back {
        font-size: 0.75rem;
    }
    
    .form-section {
        padding: 20px 16px;
        margin-bottom: 16px;
    }
    
    .form-input,
    .form-select {
        padding: 12px 14px;
        font-size: 0.88rem;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
    
    /* Cart items in checkout */
    .cart-item {
        gap: 12px;
    }
    
    .cart-item-img {
        width: 52px;
        height: 52px;
    }
    
    .cart-item-name {
        font-size: 0.9rem;
    }
    
    .cart-item-price {
        font-size: 0.85rem;
    }
    
    /* Summary card */
    .summary-card {
        padding: 20px 16px;
    }
    
    .summary-title {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .checkout-nav-inner {
        padding: 0 10px;
    }
    
    .form-section {
        padding: 16px 12px;
    }
    
    .summary-card {
        padding: 16px 12px;
    }
    
    .checkout-container {
        padding: 0 12px;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* SUITABILITY QUIZ / SKIN TYPE BAR                         */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 430px) {
    .suitability-bar {
        gap: 8px;
    }
    
    .suitability-item {
        padding: 10px 12px;
        font-size: 0.78rem;
    }
    
    .suitability-item svg {
        display: none;
    }
}

/* (Grid overrides handled in PRODUCT CARDS section above) */

/* ═══════════════════════════════════════════════════════════ */
/* LEGAL PAGES (CGV, FAQ, etc.)                             */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .legal-content {
        padding: 80px 16px 40px;
    }
    
    .legal-title {
        font-size: 1.8rem !important;
    }
    
    .legal-section h2 {
        font-size: 1.1rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* WHATSAPP FLOAT BUTTON — Don't obscure content on small    */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 430px) {
    .whatsapp-float {
        bottom: 16px;
        left: 16px;
        width: 48px;
        height: 48px;
    }
    
    /* Ensure no expand on mobile (touch has no hover) */
    .whatsapp-float:hover {
        width: 48px;
        border-radius: 50%;
        padding: 0;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* MARQUEE — Scale down on mobile                           */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 430px) {
    .marquee-section {
        padding: 12px 0;
    }
    
    .marquee-item {
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }
    
    .marquee-content {
        gap: 32px;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* CART PANEL (if visible on mobile)                        */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    #cart-panel,
    .cart-sidebar {
        width: 100vw !important;
        max-width: 100vw !important;
        right: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* IMAGE PROTECTION — no stretch                            */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Hero background image scales correctly */
    .hero {
        background-size: cover;
        background-position: center top;
    }
    
    /* Prevent ritual image from overflowing */
    .ritual-image {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .ritual-img {
        width: 100%;
        border-radius: var(--radius-md);
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* 🚀 ANTIGRAVITY COMPLETE MOBILE RESPONSIVENESS OVERRIDES       */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* General text line-height safety */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.25 !important;
        margin-bottom: 0.4em !important;
    }
    
    p {
        line-height: 1.6 !important;
    }

    /* General Section Padding override to prevent empty blank space */
    .section {
        padding: 48px 0 !important;
    }
    
    .section-header {
        margin-bottom: 32px !important;
        padding: 0 16px !important;
    }

    /* Problem 14: Rebuilt Hero section badges as premium glassmorphic row */
    .hero-trust {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 auto !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .trust-item {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 100px !important;
        padding: 6px 14px !important;
        color: var(--white) !important;
        font-size: 0.72rem !important;
        font-family: var(--font-accent) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }

    .trust-divider {
        display: none !important;
    }

    /* Problem 3: Prevent K-Beauty card badge overlap */
    .ritual-card-kr {
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        padding-top: 56px !important;
    }
    
    .ritual-card-kr .ritual-badge {
        position: absolute !important;
        top: 20px !important;
        left: 20px !important;
        right: auto !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    /* Prevent K-Beauty card badge overlap on even smaller screens */
    .ritual-card-kr {
        padding-top: 20px !important;
    }
    
    .ritual-card-kr .ritual-badge {
        position: static !important;
        margin-bottom: 12px !important;
        align-self: flex-start !important;
    }

    /* Problem 5: CTA button text wrapping and padding safety */
    .btn, .btn-primary, .btn-secondary, .btn-large, #duo-order-btn, .btn-gold-main {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 16px !important;
        font-size: 0.85rem !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        gap: 6px !important;
        white-space: normal !important; /* Allow wrapping instead of overlap */
        word-wrap: break-word !important;
        line-height: 1.3 !important;
        border-radius: var(--radius-lg) !important;
    }
    
    /* Problem 6: Gift & Advantage option selections */
    .duo-gift-selection-box {
        padding: 16px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .duo-gift-selection-box label {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 12px !important;
        font-size: 0.85rem !important;
    }
    
    .duo-gift-selection-box input[type="radio"] {
        margin-top: 2px !important;
    }

    /* Problem 7: Rebuilt solar active ingredients as elegant compact list chips */
    .actifs-grid-14 {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .actifs-grid-14 > div {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        padding: 12px 16px !important;
        gap: 14px !important;
        border-radius: var(--radius-lg) !important;
        border: 1px solid rgba(229, 123, 140, 0.15) !important;
    }
    
    .actifs-grid-14.green-grid > div {
        border: 1px solid rgba(200, 169, 110, 0.15) !important;
    }
    
    .actifs-grid-14 > div > div:first-child {
        margin: 0 !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
        flex-shrink: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .actifs-grid-14 > div > h3 {
        margin: 0 0 2px 0 !important;
        font-size: 0.92rem !important;
        text-align: left !important;
        font-weight: 600 !important;
    }
    
    .actifs-grid-14 > div > p {
        font-size: 0.78rem !important;
        text-align: left !important;
        margin: 0 !important;
    }

    /* Problem 4: Product cards readability and spacing */
    .product-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: var(--radius-lg) !important;
    }
    
    .product-card-content {
        padding: 24px 16px !important;
    }
    
    .product-card-content h3 {
        font-size: 1.8rem !important;
    }

    /* Problem 8: Grid collapse overrides */
    .duo-grid, 
    .duo-showcase-grid,
    .clean-cards-grid,
    .ritual-cards-grid,
    .ritual-2col-grid,
    .reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Checkout payment trust badges */
    .guarantee-trust-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding-top: 16px !important;
    }
}

@media (max-width: 360px) {
    /* Extreme small screen size (iPhone SE) overrides */
    .btn, .btn-large, #duo-order-btn, .btn-gold-main {
        font-size: 0.8rem !important;
        padding: 12px 10px !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .hero-title-line-1 {
        font-size: 1.6rem !important;
    }
    
    .hero-title-line-2 {
        font-size: 1.8rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* CHECKOUT STEP 1: PRODUCT SELECTION GRID (Mobile)          */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .product-select-box {
        display: grid !important;
        grid-template-columns: 80px 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 8px 16px !important;
        padding: 16px 14px !important;
        align-items: start !important;
    }
    
    .select-img {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 3 !important;
        width: 80px !important;
        height: 80px !important;
        margin: 0 !important;
    }
    
    .select-details {
        grid-column: 2 / 3 !important;
        grid-row: 1 / 2 !important;
        margin: 0 !important;
    }
    
    .select-name {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 4px !important;
    }
    
    .select-tag {
        font-size: 0.65rem !important;
        margin-bottom: 6px !important;
    }
    
    .select-desc {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    .select-price-col {
        grid-column: 2 / 3 !important;
        grid-row: 2 / 3 !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 4px !important;
    }
    
    .select-price {
        font-size: 1.15rem !important;
    }
    
    /* Make the radio button hit box easier */
    .radio-circle {
        width: 24px !important;
        height: 24px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 430px) {
    .product-select-box {
        grid-template-columns: 70px 1fr !important;
        gap: 8px 12px !important;
        padding: 14px 12px !important;
    }
    
    .select-img {
        width: 70px !important;
        height: 70px !important;
    }
    
    .select-name {
        font-size: 1.15rem !important;
    }
    
    .select-price {
        font-size: 1.1rem !important;
    }
}


/* ═══════════════════════════════════════════════════════════ */
/* CHECKOUT CART ITEMS OVERLAP FIX ("Votre Sélection")       */

/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Make the cart item wrap instead of strictly one row */
    .summary-prod-item {
        flex-wrap: wrap !important;
        position: relative !important;
        align-items: flex-start !important;
        padding-bottom: 20px !important;
    }
    
    /* The info column takes up the remaining space next to the image */
    .summary-prod-item > div:nth-child(2) {
        flex: 1 1 calc(100% - 92px) !important; /* 75px img + 16px gap */
        min-width: 0 !important; /* prevent overflow */
    }
    
    /* The right column (price & delete) moves to a new full-width row */
    .summary-prod-item > div:last-child {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 12px !important;
        padding-top: 12px !important;
        border-top: 1px dashed rgba(0,0,0,0.06) !important;
    }
    
    /* Title and description text wrapping */
    .summary-prod-info h4 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .summary-prod-info p {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}


/* ═══════════════════════════════════════════════════════════ */
/* NEW ELEMENTS — HOMEPAGE PRODUCT CARDS (static grid)       */
/* Added for: Amber Glow, After Glow, SPF 50+, SPF 70+       */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Grid: 2 cols on tablet */
    #landing-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 0 4px;
    }

    /* Card: tighten inner padding */
    #landing-products-grid .product-card > div:last-child {
        padding: 20px 16px !important;
    }

    /* Product name inside static cards */
    #landing-products-grid h3[style*="font-size"] {
        font-size: 1.3rem !important;
    }

    /* Tagline description */
    #landing-products-grid p[style*="0.88rem"] {
        font-size: 0.8rem !important;
        line-height: 1.45 !important;
    }

    /* Price */
    #landing-products-grid div[id^="price-"] {
        font-size: 1.2rem !important;
        margin-top: 12px !important;
        padding-top: 12px !important;
    }

    /* Button row: stack vertically on tablet */
    #landing-products-grid div[style*="grid-template-columns:1.2fr 0.8fr"] {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

@media (max-width: 480px) {
    /* Single column below 480px */
    #landing-products-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Image zone: constrain height */
    #landing-products-grid div[style*="padding-top:100%"] {
        padding-top: 75% !important;
    }

    /* Card name */
    #landing-products-grid h3[style*="font-size"] {
        font-size: 1.5rem !important;
    }

    /* Button row: two equal columns restored on single-col layout */
    #landing-products-grid div[style*="grid-template-columns:1.2fr 0.8fr"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    /* Ensure "Ajouter" & "Découvrir" buttons are big enough */
    #landing-products-grid .btn,
    #landing-products-grid a[href*="product.html"] {
        padding: 13px 10px !important;
        font-size: 0.75rem !important;
        min-height: 44px !important;
    }
}

@media (max-width: 360px) {
    #landing-products-grid h3[style*="font-size"] {
        font-size: 1.3rem !important;
    }
    #landing-products-grid div[id^="price-"] {
        font-size: 1.1rem !important;
    }
}


/* ═══════════════════════════════════════════════════════════ */
/* DUO SIGNATURE FEATURED CARD — dark horizontal card        */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    /* Switch to vertical stacking earlier than 768 */
    #card-duo {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }

    #card-duo > div:first-child {
        padding: 32px !important;
        min-height: 240px;
    }

    #card-duo img {
        max-width: 200px !important;
        height: 180px !important;
    }

    #card-duo > div:last-child {
        padding: 32px 28px !important;
    }

    #card-duo h3[style*="2.4rem"] {
        font-size: 1.8rem !important;
    }

    #card-duo div[style*="1.6rem"] {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 768px) {
    #card-duo {
        margin: 28px 4px 0 !important;
        border-radius: 18px !important;
    }

    #card-duo > div:first-child {
        padding: 24px !important;
        min-height: 200px;
    }

    #card-duo > div:last-child {
        padding: 24px 20px !important;
    }

    /* Price row: stack */
    #card-duo div[style*="align-items:center"][style*="gap:20px"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    /* Buttons: full width */
    #card-duo div[style*="gap:12px"] {
        flex-direction: column !important;
        width: 100% !important;
    }

    #card-duo button,
    #card-duo a[href*="product.html"] {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 14px 20px !important;
        font-size: 0.82rem !important;
    }

    /* Badges wrap */
    #card-duo div[style*="flex-wrap:wrap"] {
        gap: 8px !important;
    }

    #card-duo div[style*="flex-wrap:wrap"] span {
        font-size: 0.65rem !important;
        padding: 3px 10px !important;
    }
}

@media (max-width: 430px) {
    #card-duo > div:first-child {
        min-height: 160px;
    }

    #card-duo img {
        max-width: 150px !important;
        height: 140px !important;
    }

    #card-duo h3[style*="font-size"] {
        font-size: 1.5rem !important;
    }

    #card-duo span[style*="2rem"] {
        font-size: 1.6rem !important;
    }
}


/* ═══════════════════════════════════════════════════════════ */
/* PRODUCT DETAIL PAGE (product.html)                        */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .product-detail-container {
        margin: 130px auto 60px !important;
        padding: 0 20px !important;
    }

    .detail-row {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .detail-image-box {
        padding: 28px !important;
        border-radius: 16px !important;
    }

    .detail-img {
        max-height: 320px !important;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        margin: 110px auto 48px !important;
        padding: 0 16px !important;
    }

    .back-link {
        font-size: 0.85rem !important;
        margin-bottom: 20px !important;
    }

    .detail-row {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .detail-image-box {
        padding: 24px !important;
    }

    .detail-img {
        max-height: 280px !important;
    }

    /* Product title */
    .detail-title {
        font-size: 2rem !important;
    }

    /* Price display */
    .detail-price {
        font-size: 1.5rem !important;
    }

    /* Description */
    .detail-desc {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }

    /* Quantity selector — bigger tap targets */
    .qty-btn {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.2rem !important;
    }

    .qty-value {
        width: 48px !important;
        font-size: 1.05rem !important;
    }

    /* Action buttons: stack on mobile */
    .actions-row {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .btn-add-cart {
        width: 100% !important;
        padding: 16px !important;
        font-size: 0.9rem !important;
        min-height: 52px !important;
    }

    .btn-favorite {
        width: 100% !important;
        height: 52px !important;
        border-radius: 10px !important;
        font-size: 1.6rem !important;
    }

    /* Tabs header — scrollable, bigger tap area */
    .tabs-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 24px !important;
        padding-bottom: 4px !important;
        margin-bottom: 30px !important;
        border-bottom: 1px solid rgba(0,0,0,0.06) !important;
        width: 100% !important;
    }

    .tabs-header::-webkit-scrollbar {
        display: none !important;
    }

    .tab-btn {
        flex: 0 0 auto !important;
        display: inline-block !important;
        font-size: 0.75rem !important;
        letter-spacing: 0.08em !important;
        padding: 12px 10px 16px !important;
        min-height: 44px !important;
        white-space: nowrap !important;
        position: relative !important;
    }

    /* Tab content section */
    .tab-section {
        margin-top: 40px !important;
        padding-top: 40px !important;
    }

    /* Tab panel text */
    .tab-content-panel {
        font-size: 0.92rem !important;
        line-height: 1.7 !important;
    }

    /* Product detail benefits/actifs list items */
    .tab-content-panel p,
    .tab-content-panel li {
        font-size: 0.9rem !important;
        line-height: 1.7 !important;
    }
}

@media (max-width: 480px) {
    .detail-title {
        font-size: 1.75rem !important;
    }

    .detail-tagline {
        font-size: 0.7rem !important;
    }

    .detail-volume {
        font-size: 0.85rem !important;
    }

    .detail-price {
        font-size: 1.35rem !important;
    }

    .tab-btn {
        font-size: 0.68rem !important;
        letter-spacing: 0.06em !important;
    }

    .tabs-header {
        gap: 16px !important;
    }
}

@media (max-width: 430px) {
    .product-detail-container {
        margin-top: 90px !important;
        padding: 0 12px !important;
    }

    .detail-image-box {
        padding: 16px !important;
    }

    .detail-img {
        max-height: 220px !important;
    }

    .detail-title {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
    }

    .detail-price {
        font-size: 1.25rem !important;
    }

    .btn-add-cart {
        font-size: 0.85rem !important;
        padding: 14px !important;
    }
}

@media (max-width: 360px) {
    .detail-title {
        font-size: 1.45rem !important;
    }

    .tab-btn {
        font-size: 0.62rem !important;
    }

    .tabs-header {
        gap: 12px !important;
    }

    .btn-add-cart {
        font-size: 0.8rem !important;
        padding: 13px !important;
    }
}


/* ═══════════════════════════════════════════════════════════ */
/* CHECKOUT PAGE — full responsive polish                    */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Main checkout layout: always single col on mobile */
    .checkout-layout,
    div[style*="grid-template-columns"][style*="1.2fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Order summary card: move above form on mobile */
    .checkout-summary {
        order: -1;
    }

    /* Form group grid: single column */
    .form-group-row {
        grid-template-columns: 1fr !important;
    }

    /* Confirm button */
    #confirm-order-btn,
    button[id$="confirm"],
    .btn-confirm-order {
        width: 100% !important;
        padding: 18px !important;
        font-size: 0.92rem !important;
        min-height: 56px !important;
    }

    /* Cart items in checkout sidebar */
    .cart-item {
        padding: 12px 0 !important;
        gap: 14px !important;
    }

    .cart-item-img {
        width: 56px !important;
        height: 56px !important;
        border-radius: 8px !important;
    }

    /* Order total row */
    .order-total-row {
        font-size: 1rem !important;
        padding: 14px 0 !important;
    }
}

@media (max-width: 430px) {
    /* Step indicators: compact */
    .checkout-steps .step-label {
        display: none !important;
    }

    /* Form inputs: bigger touch targets */
    .form-input,
    .form-select,
    textarea.form-input {
        min-height: 48px !important;
        font-size: 16px !important; /* Prevent iOS zoom */
        padding: 12px 14px !important;
    }

    .form-label {
        font-size: 0.78rem !important;
    }

    /* Promo code area */
    .promo-row {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .promo-row input,
    .promo-row button {
        width: 100% !important;
    }
}


/* ═══════════════════════════════════════════════════════════ */
/* WHATSAPP FLOAT BUTTON — refined position                  */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Move to bottom-right, slightly smaller */
    #whatsapp-float-btn,
    .whatsapp-float {
        bottom: 20px !important;
        right: 16px !important;
        left: auto !important;
        width: 52px !important;
        height: 52px !important;
        font-size: 26px !important;
    }

    /* No hover expand on touch devices */
    #whatsapp-float-btn:hover,
    .whatsapp-float:hover {
        width: 52px !important;
        border-radius: 50% !important;
    }
}

@media (max-width: 430px) {
    #whatsapp-float-btn,
    .whatsapp-float {
        bottom: 16px !important;
        right: 12px !important;
        width: 48px !important;
        height: 48px !important;
    }
}


/* ═══════════════════════════════════════════════════════════ */
/* FAVORITES DRAWER — full screen on mobile                  */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    #favorites-drawer {
        max-width: 100vw !important;
        width: 100vw !important;
    }

    #favorites-drawer-list {
        padding: 16px !important;
    }
}


/* ═══════════════════════════════════════════════════════════ */
/* CONFIRMATION PAGE (order success)                         */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .confirmation-container,
    #confirmation-section {
        padding: 24px 16px !important;
        margin: 100px auto 40px !important;
    }

    .order-number-display {
        font-size: 1.1rem !important;
    }

    /* WhatsApp confirm button */
    #whatsapp-confirm-btn,
    a[href*="wa.me"].btn {
        width: 100% !important;
        padding: 16px !important;
        font-size: 0.9rem !important;
        justify-content: center !important;
    }
}


/* ═══════════════════════════════════════════════════════════ */
/* GLOBAL TOUCH IMPROVEMENTS                                 */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* All interactive elements: minimum 44px tap target (Apple HIG) */
    button,
    a,
    input[type="button"],
    input[type="submit"],
    .btn,
    .tab-btn,
    .qty-btn,
    .nav-mobile-toggle {
        min-height: 44px;
    }

    /* Prevent text resizing on orientation change (iOS) */
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* Smooth scroll momentum on iOS */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Input font size >= 16px to prevent iOS zoom */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ─── ORDER CONFIRMATION MOBILE OPTIMIZATION ─── */
@media (max-width: 600px) {
    .info-cards-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 12px !important;
    }
    .info-card-item {
        padding: 10px 8px !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    .info-card-item.full-width {
        grid-column: 1 / -1 !important;
    }
    .info-card-item p {
        font-size: 0.85rem !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
}

/* ─── CART FLOAT BUTTON MOBILE OPTIMIZATION ─── */
@media (max-width: 768px) {
    .cart-float {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        bottom: 24px !important;
        left: 20px !important;
        right: auto !important;
        width: 58px !important;
        height: 58px !important;
        background: linear-gradient(135deg, #1e1815 0%, #2d2420 100%) !important;
        border: 1.5px solid #c8a96e !important;
        border-radius: 50% !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
        z-index: 99999 !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .cart-float svg {
        width: 24px !important;
        height: 24px !important;
        stroke: #c8a96e !important;
        display: block !important;
    }
    .cart-float-badge {
        position: absolute !important;
        top: -4px !important;
        right: -4px !important;
        background: #d93838 !important;
        color: #ffffff !important;
        font-size: 0.75rem !important;
        font-weight: 800 !important;
        min-width: 22px !important;
        height: 22px !important;
        border-radius: 11px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 4px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
        border: 2px solid #ffffff !important;
        z-index: 100000 !important;
    }
}

@media (max-width: 430px) {
    .cart-float {
        bottom: 20px !important;
        left: 16px !important;
        width: 54px !important;
        height: 54px !important;
    }
    .cart-float svg {
        width: 22px !important;
        height: 22px !important;
    }
}






