/* ==========================================
   🚀 МАРКЕТИНГОВІ ПОКРАЩЕННЯ ДЛЯ МОБІЛЬНИХ
   Ultra Modern 2026 - Conversion Optimized
   ========================================== */

/* ============================================
   🍔 HAMBURGER MENU - Mobile Navigation
   ============================================ */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary, #1d1d1f);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hamburger-line:nth-child(1) { margin-bottom: 6px; }
.hamburger-line:nth-child(3) { margin-top: 6px; }

/* Hamburger to X animation */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Body lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   👤 AUTH LINK - Navigation Authentication
   ============================================ */

.nav-auth {
    margin-left: 8px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    min-height: 44px;
}

.login-link {
    background: transparent;
    color: var(--text-primary, #1d1d1f) !important;
    border: 2px solid var(--accent-color, #FDB5DD);
}

.login-link:hover {
    background: rgba(253, 181, 221, 0.1);
}

.register-link {
    background: linear-gradient(135deg, var(--accent-color, #FDB5DD) 0%, var(--accent-hover, #EF95C7) 100%);
    color: white !important;
}

.register-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 181, 221, 0.4);
}

.auth-icon {
    font-size: 14px;
}

.profile-link {
    background: #f3f4f6;
}

.profile-link:hover {
    background: #e5e7eb;
}

.auth-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.auth-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.auth-name {
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cart icon styling */
.cart-icon {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .cart-icon {
        display: inline;
        margin-right: 6px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 90px 24px 40px;
        gap: 0;
        z-index: 1001;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        padding: 18px 0;
        font-size: 17px;
        font-weight: 500;
        color: var(--text-primary, #1d1d1f);
        width: 100%;
        transition: color 0.2s ease;
    }

    .nav-menu a:hover,
    .nav-menu a:active {
        color: var(--accent-color, #FDB5DD);
    }

    .nav-menu a.nav-active {
        color: var(--accent-color, #FDB5DD);
        font-weight: 700;
    }

    .nav-menu a.nav-active::after {
        display: none;
    }

    .cart-link {
        background: linear-gradient(135deg, var(--accent-color, #FDB5DD) 0%, #F4A5D1 100%);
        color: white !important;
        border-radius: 14px;
        padding: 16px 20px !important;
        margin-top: 20px;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(253, 181, 221, 0.3);
    }

    .cart-link .cart-count {
        background: white;
        color: var(--accent-color, #FDB5DD);
    }

    /* Mobile Auth Link */
    .nav-auth {
        margin-left: 0;
        margin-top: 16px;
        border-bottom: none !important;
        width: 100%;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .auth-link {
        justify-content: center;
        padding: 14px 20px;
        border-radius: 12px;
        width: 100%;
        font-size: 15px;
    }

    .login-link {
        background: #f5f5f7;
        color: var(--text-primary, #1d1d1f) !important;
        border: none;
    }

    .login-link:active {
        background: #e5e7eb;
    }

    .register-link {
        background: linear-gradient(135deg, var(--accent-color, #FDB5DD) 0%, #F4A5D1 100%);
        box-shadow: 0 4px 12px rgba(253, 181, 221, 0.25);
    }

    .register-link:active {
        opacity: 0.9;
    }

    .auth-name {
        max-width: none;
    }

    .auth-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* Premium navbar styling */
    .navbar {
        padding: 12px 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
    }

    .logo a {
        font-size: 22px;
        font-weight: 700;
    }
}

/* 📱 STICKY BUY BUTTON - Завжди видно на мобільних */
.mobile-sticky-buy {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 20%, rgba(255,255,255,0.98) 100%);
    backdrop-filter: blur(20px);
    padding: 15px 20px 25px;
    z-index: 999;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-sticky-buy.show {
    transform: translateY(0);
}

.mobile-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: linear-gradient(135deg, #FDB5DD 0%, #EF95C7 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    padding: 20px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 30px rgba(253, 181, 221, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.mobile-sticky-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.mobile-sticky-btn:active::before {
    left: 100%;
}

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

/* 💎 URGENT BADGES - Терміновість */
.urgent-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: pulse-glow 2s infinite;
    margin-bottom: 15px;
}

.urgent-badge::before {
    content: '🔥';
    animation: shake 0.8s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 107, 0.6);
    }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* 🏷️ DISCOUNT BADGE - Знижка */
.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(197, 34, 34, 0.28);
    z-index: 10;
    transform: rotate(3deg);
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounce-in {
    0% {
        transform: scale(0) rotate(3deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(3deg);
    }
    100% {
        transform: scale(1) rotate(3deg);
        opacity: 1;
    }
}

/* ⭐ TRUST BADGES - Соціальні докази */
.trust-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0;
    justify-content: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(253, 181, 221, 0.1);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    border: 1.5px solid rgba(253, 181, 221, 0.2);
}

.trust-badge-icon {
    font-size: 18px;
}

/* 🎯 CALL-TO-ACTION ENHANCEMENTS */
.cta-section-mobile {
    background: linear-gradient(135deg, #ffeef0 0%, #ffe5e8 100%);
    padding: 40px 20px;
    border-radius: 24px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.cta-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #FDB5DD 0%, #E985B7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-button-mega {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FDB5DD 0%, #EF95C7 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(253, 181, 221, 0.4);
    transition: all 0.3s ease;
}

.cta-button-mega:active {
    transform: translateY(2px);
    box-shadow: 0 5px 15px rgba(253, 181, 221, 0.3);
}

/* 💰 PRICE WITH SAVINGS */
.price-section-enhanced {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.price-current {
    font-size: 32px;
    font-weight: 800;
    color: #1d1d1f;
}

.price-old {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.price-save {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

/* 📊 SOCIAL PROOF - Купують зараз */
.live-buyers {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(76, 175, 80, 0.1);
    padding: 15px 20px;
    border-radius: 16px;
    margin: 20px 0;
    border-left: 4px solid #4CAF50;
}

.live-pulse {
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.live-text {
    font-size: 14px;
    font-weight: 600;
    color: #4CAF50;
}

/* 🎁 GIFT WITH PURCHASE */
.gift-banner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    padding: 15px 20px;
    border-radius: 16px;
    margin: 25px 0;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    animation: gentle-float 3s ease-in-out infinite;
}

.gift-banner::before {
    content: '🎁 ';
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 📱 MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    /* БІЛЬШІ кнопки для легкого натискання */
    .btn-primary-2026,
    .cta-button,
    .add-to-cart-btn {
        min-height: 56px;
        padding: 16px 32px;
        font-size: 17px;
        font-weight: 700;
        border-radius: 14px;
        width: 100%;
        max-width: 100%;
    }

    /* Збільшені відступи для комфорту */
    .product-card {
        padding: 20px;
    }

    .product-info {
        padding: 24px;
    }

    /* Покращена читабельність */
    .product-name,
    .category-name {
        font-size: 20px;
        line-height: 1.4;
    }

    .product-price {
        font-size: 28px;
        font-weight: 800;
    }

    /* Зручніші категорії */
    .category-card {
        padding: 32px;
        min-height: 160px;
    }

    .category-icon {
        font-size: 56px;
        margin-bottom: 16px;
    }
}

@media (max-width: 640px) {
    /* Ще більші кнопки на маленьких екранах */
    .btn-primary-2026,
    .cta-button,
    .add-to-cart-btn {
        min-height: 60px;
        padding: 18px 36px;
        font-size: 18px;
    }

    /* Простір для натискання пальцем */
    .nav-menu a {
        padding: 12px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Покращені карточки */
    .product-card {
        border-radius: 20px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 480px) {
    /* Максимально зручно на найменших екранах */
    .container,
    .container-2026 {
        padding: 0 16px;
    }

    .hero-actions {
        width: 100%;
    }

    .btn-primary-2026 {
        width: 100%;
        justify-content: center;
    }

    /* Великі тач-цілі */
    .category-card,
    .product-card {
        transition: transform 0.2s ease;
    }

    .category-card:active,
    .product-card:active {
        transform: scale(0.98);
    }
}

/* 🌟 FLOATING ACTION BUTTON */
.fab-buy {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FDB5DD 0%, #EF95C7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(253, 181, 221, 0.5);
    z-index: 998;
    cursor: pointer;
    animation: float-bounce 3s ease-in-out infinite;
    border: 3px solid white;
}

.fab-buy::after {
    content: '🛒';
    font-size: 24px;
}

@keyframes float-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 🎉 SUCCESS ANIMATIONS */
@keyframes success-scale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.add-success {
    animation: success-scale 0.3s ease;
}

/* 📢 ANNOUNCEMENT BAR */
.announcement-bar {
    background: linear-gradient(135deg, #FDB5DD 0%, #EF95C7 100%);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.announcement-bar-has {
    padding-top: 48px;
}

/* 🔥 LIMITED TIME OFFERS */
.limited-offer {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.countdown {
    font-size: 32px;
    font-weight: 800;
    margin: 15px 0;
    font-family: monospace;
}

.countdown-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: -5px;
}

/* ============================================================
   📱 COMPREHENSIVE MOBILE FIXES — She Shine 2026
   ============================================================ */

/* ── Глобальні фікси ─────────────────────────────────────── */
* {
    -webkit-tap-highlight-color: rgba(253, 181, 221, 0.15);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Safe area insets для iPhone з чубчиком */
.navbar {
    padding-top: env(safe-area-inset-top, 0);
}

/* Toast notification — краще на мобільних */
.notification-toast {
    position: fixed;
    top: auto;
    bottom: 90px;
    right: 16px;
    left: 16px;
    transform: translateY(20px);
    opacity: 0;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 9999;
    background: white;
    font-weight: 600;
}
.notification-toast.show {
    transform: translateY(0);
    opacity: 1;
}
.notification-success { border-left: 4px solid #34c759; color: #1a7a33; }
.notification-error   { border-left: 4px solid #ff3b30; color: #c0392b; }
.notification-warning { border-left: 4px solid #ff9500; color: #b45309; }

@media (min-width: 769px) {
    /* Desktop — повертаємо оригінальну позицію */
    .notification-toast {
        top: 100px;
        bottom: auto;
        left: auto;
        right: 20px;
        transform: translateX(120px);
    }
    .notification-toast.show {
        transform: translateX(0);
    }
}

/* ── Кошик (cart.html) ───────────────────────────────────── */

/* Quantity +/- controls */
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 300;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.qty-btn:hover   { background: var(--bg-light); }
.qty-btn:active  { background: rgba(253, 181, 221,0.15); }

.qty-control .quantity-input {
    width: 52px;
    border: none;
    border-left: 1px solid rgba(0,0,0,0.08);
    border-right: 1px solid rgba(0,0,0,0.08);
    border-radius: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    height: 40px;
    -moz-appearance: textfield;
}
.qty-control .quantity-input::-webkit-outer-spin-button,
.qty-control .quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-control .quantity-input:focus { outline: none; border-color: var(--accent-color, #FDB5DD); }
.qty-control .quantity-input:focus-visible { box-shadow: 0 0 0 3px rgba(253, 181, 221,0.22); }

/* Sticky cart checkout bar */
.cart-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 30px rgba(0,0,0,0.1);
    z-index: 200;
}

.cart-sticky-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-sticky-total {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-sticky-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.cart-sticky-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.cart-sticky-btn {
    flex-shrink: 0;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #F4A5D1 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(253, 181, 221,0.35);
    transition: all 0.25s ease;
}

.cart-sticky-btn:active { transform: scale(0.97); opacity: 0.95; }

@media (max-width: 968px) {
    .cart-sticky-bar { display: block; }

    .cart-page {
        padding-top: 80px;
        padding-bottom: 100px;
    }

    .cart-page h1 {
        font-size: 28px;
        margin-bottom: 24px;
        letter-spacing: -0.5px;
    }

    .cart-item {
        padding: 16px;
        gap: 14px;
        grid-template-columns: 80px 1fr;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        border: none;
    }

    .item-image {
        width: 80px;
        height: 80px;
        border-radius: 12px;
    }

    .item-details h3 {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .item-brand, .item-volume {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .item-price {
        font-size: 16px;
        font-weight: 700;
    }

    .item-quantity,
    .item-total {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .total-price {
        font-size: 18px;
        font-weight: 800;
        margin-bottom: 0;
    }

    .remove-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    /* Ховаємо основний cart-summary на мобільних — є sticky bar */
    .cart-summary {
        display: none;
    }

    .continue-shopping {
        display: block;
        text-align: center;
        margin-top: 16px;
        color: var(--accent-color);
        text-decoration: none;
        font-size: 15px;
        padding: 12px;
    }
}

/* ── Каталог — мобільні фільтри ──────────────────────────── */

/* Кнопка "Фільтри" на мобільних */
.mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mobile-filter-btn:active { transform: scale(0.97); }
.mobile-filter-btn .filter-icon { font-size: 16px; }
.mobile-filter-btn .filter-count {
    background: var(--accent-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Filter drawer overlay */
.filter-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    z-index: 300;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Filter drawer itself */
.filters-sidebar.drawer-mode {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100dvh;
    z-index: 301;
    border-radius: 0 24px 24px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 60px rgba(0,0,0,0.2);
    padding-top: 60px;
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

.filters-sidebar.drawer-mode.open {
    left: 0;
}

.filter-drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.06);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease;
}

.filter-drawer-close:hover { background: rgba(0,0,0,0.12); }

.filter-drawer-header {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    align-items: center;
    padding: 0 20px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: white;
}

@media (max-width: 968px) {
    .mobile-filter-btn  { display: none; }
    .filter-drawer-overlay { display: block; pointer-events: none; }

    /* Filter drawer — накриває поверх усього */
    .filters-sidebar {
        display: flex !important; /* скасовуємо display:none */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 300px;
        height: 100dvh;
        background: white;
        z-index: 301;
        border-radius: 0 24px 24px 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 60px rgba(0,0,0,0.2);
        padding: 64px 24px 32px;
    }

    .filters-sidebar.open {
        left: 0;
    }

    .filter-drawer-header {
        display: flex;
    }

    /* Catalog header line — показуємо фільтри + сортування поруч */
    .catalog-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        margin-bottom: 20px;
    }

    .results-count {
        flex: 1;
        font-size: 12px;
        min-width: 0;
    }

    .sort-select {
        width: auto;
        min-width: 130px;
        flex-shrink: 0;
    }

    .catalog-container {
        grid-template-columns: 1fr;
    }
}

/* ── Checkout ─────────────────────────────────────────────── */

/* Sticky order total для мобільних */
.checkout-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 30px rgba(0,0,0,0.1);
    z-index: 200;
}

.checkout-sticky-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.checkout-sticky-total {
    flex: 1;
}

.checkout-sticky-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.checkout-sticky-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.checkout-sticky-submit {
    flex-shrink: 0;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #F4A5D1 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(253, 181, 221,0.35);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.checkout-sticky-submit:active { transform: scale(0.97); }

@media (max-width: 968px) {
    .checkout-sticky-bar { display: block; }

    .checkout-page {
        padding-top: 80px;
        padding-bottom: 100px;
        background: #f8f8f8;
    }

    .checkout-page h1 {
        font-size: 26px;
        margin-bottom: 28px;
        letter-spacing: -0.5px;
    }

    .checkout-details {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .form-section {
        margin-bottom: 32px;
    }

    .form-section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    /* Ховаємо static order-summary — є sticky bar */
    .order-summary {
        border-radius: 16px;
        padding: 24px 20px;
        /* Залишаємо видимим для детального перегляду */
    }

    .order-summary h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .summary-total {
        font-size: 18px;
        padding: 16px 0;
    }

    /* Ховаємо submit в order-summary — він тепер у sticky bar */
    .order-summary .submit-order-btn {
        display: none;
    }

    .order-summary .terms-text {
        text-align: center;
        margin-top: 0;
    }

    /* Форма — повна ширина полів */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* запобігає zoom на iOS */
        padding: 14px;
    }
}

/* ── Product Detail — активація sticky кнопки ────────────── */

@media (max-width: 968px) {
    .product-detail-page {
        padding-top: 80px;
        padding-bottom: 120px;
    }

    .breadcrumb {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .product-detail-container {
        gap: 20px;
    }

    .main-image {
        border-radius: 20px;
    }

    .product-details h1 {
        font-size: 24px;
        line-height: 1.25;
    }

    .price-section {
        padding: 20px 0;
        margin-bottom: 24px;
    }

    .new-price, .single-price {
        font-size: 30px;
    }

    /* Volume options — адаптивно */
    .volume-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .volume-label {
        padding: 14px 12px;
        gap: 6px;
    }

    .volume-size {
        font-size: 15px;
    }

    .volume-price {
        font-size: 18px;
    }

    .quantity-selector {
        gap: 16px;
        margin-bottom: 16px;
    }

    /* Mobile sticky buy — покращений */
    .mobile-sticky-buy {
        display: block;
        padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-sticky-buy .sticky-price-value {
        font-size: 22px;
    }

    .mobile-sticky-buy .sticky-btn {
        padding: 16px;
        border-radius: 14px;
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .volume-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-notes h3,
    .product-description h3 {
        font-size: 18px;
    }
}

/* ── Auth pages ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .auth-page,
    .login-page,
    .register-page {
        padding: 90px 16px 40px;
    }

    .auth-form-container {
        padding: 28px 20px;
        border-radius: 20px;
    }
}

/* ── Загальні touch-friendly покращення ──────────────────── */
@media (max-width: 968px) {
    /* Мінімальний розмір touch-target — 44px (WCAG) */
    .filter-list a,
    .pagination-btn,
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Скасовуємо hover-transform ефекти (нема hover на mobile) */
    .product-card:hover {
        transform: none;
    }

    .cta-button:hover,
    .checkout-btn:hover,
    .submit-order-btn:hover {
        transform: none;
    }

    /* Активний стан замість hover */
    .product-card:active         { transform: scale(0.99); transition: transform 0.1s ease; }
    .cta-button:active           { opacity: 0.9; transform: scale(0.98); }
    .checkout-btn:active         { opacity: 0.9; transform: scale(0.98); }
    .submit-order-btn:active     { opacity: 0.9; transform: scale(0.98); }
    .add-to-cart-btn:active      { opacity: 0.9; transform: scale(0.98); }
}

/* ── Дрібні загальні поліпшення ──────────────────────────── */
/* Запобігає zoom при фокусі на input (iOS) */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Кращий вигляд select на iOS */
    select {
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        padding-right: 36px;
    }
}

/* Зупиняємо зайві анімації floating для перформансу на мобільних */
@media (max-width: 768px) {
    .perfume-bottle {
        animation: none !important;
    }

    .sparkle {
        animation: none !important;
        opacity: 0.6;
    }
}

/* ============================================================
   📱 MOBILE BOTTOM NAVIGATION — She Shine 2026
   App-style tab bar (replaces hamburger at ≤768px)
   ============================================================ */

.mobile-bottom-nav {
    display: none; /* hidden on desktop */
}

@media (max-width: 768px) {

    /* ── Show bottom nav ──────────────────────────────────── */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(253, 181, 221, 0.2);
        justify-content: space-around;
        padding: 6px 0;
        padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
        z-index: 500;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.07);
    }

    .mob-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        padding: 6px 4px;
        color: #aaa;
        text-decoration: none;
        transition: color 0.2s ease, background 0.2s ease;
        position: relative;
        min-width: 0;
        gap: 4px;
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
        outline: none;
    }

    .mob-nav-item:focus-visible {
        outline: 2px solid var(--accent-color, #FDB5DD);
        outline-offset: 2px;
    }

    .mob-nav-item:active {
        background: rgba(253, 181, 221, 0.1);
    }

    .mob-nav-item.active {
        color: var(--accent-color, #FDB5DD);
    }

    .mob-nav-icon {
        width: 24px;
        height: 24px;
        stroke-width: 1.8;
        flex-shrink: 0;
        transition: stroke-width 0.2s ease;
    }

    .mob-nav-item.active .mob-nav-icon {
        stroke-width: 2.2;
    }

    .mob-nav-label {
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.01em;
        white-space: nowrap;
        line-height: 1;
    }

    .mob-nav-item.active .mob-nav-label {
        font-weight: 700;
    }

    /* Cart icon wrapper for badge positioning */
    .mob-nav-cart-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mob-nav-badge {
        position: absolute;
        top: -6px;
        right: -8px;
        min-width: 16px;
        height: 16px;
        background: linear-gradient(135deg, var(--accent-color, #FDB5DD) 0%, #EF95C7 100%);
        color: white;
        border-radius: 8px;
        font-size: 9px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border: 2px solid white;
        box-shadow: 0 2px 6px rgba(253, 181, 221, 0.4);
    }

    /* ── Hide hamburger & drawer — bottom nav takes over ─── */
    .mobile-menu-btn {
        display: none !important;
    }

    .nav-menu {
        display: none !important;
    }

    .mobile-overlay {
        display: none !important;
    }

    /* ── Top navbar: logo and essential actions ───────────── */
    .nav-container {
        justify-content: space-between;
        padding: 0 20px;
        height: 56px;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-header-action {
        position: relative;
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
        text-decoration: none;
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-header-action:active {
        background: rgba(253, 181, 221, 0.16);
        transform: scale(0.94);
    }

    .mobile-header-action:focus-visible {
        outline: 3px solid rgba(253, 181, 221, 0.55);
        outline-offset: 2px;
    }

    .mobile-header-action svg {
        width: 21px;
        height: 21px;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-header-cart-badge {
        position: absolute;
        top: 1px;
        right: 0;
        min-width: 17px;
        height: 17px;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border: 2px solid #fff;
        border-radius: 999px;
        background: var(--accent-color);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
    }

    /* ── Body padding for bottom nav ─────────────────────── */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    /* ── Sticky bars: lifted above bottom nav ────────────── */
    /* Remove the env() bottom-padding since bottom position already accounts for it */
    .cart-sticky-bar {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        padding-bottom: 12px;
        border-radius: 16px 16px 0 0;
        margin: 0 6px;
        border: 1px solid rgba(253, 181, 221, 0.15);
        z-index: 300;
    }

    .checkout-sticky-bar {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        padding-bottom: 12px;
        border-radius: 16px 16px 0 0;
        margin: 0 6px;
        border: 1px solid rgba(253, 181, 221, 0.15);
        z-index: 300;
    }

    .mobile-sticky-buy {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        padding-bottom: 12px;
        z-index: 300;
    }

    /* ── Toast notification — під навбаром зверху ─────────── */
    .notification-toast {
        top: 70px !important;
        bottom: auto !important;
        right: 12px !important;
        left: 12px !important;
        transform: none !important;
        font-size: 14px;
        padding: 14px 18px;
        border-radius: 14px;
        text-align: center;
    }

    /* ── Page padding-bottom: account for bottom nav + sticky bars ── */
    /* Cart page: bottom nav (64px) + sticky bar (~65px) */
    .cart-page {
        padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    }

    /* Checkout page: bottom nav (64px) + sticky bar (~65px) */
    .checkout-page {
        padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    }

    /* Product detail: bottom nav (64px) + sticky buy (~90px) */
    .product-detail-page {
        padding-bottom: calc(175px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   🏷️ MOBILE CATEGORY CHIPS — She Shine 2026
   Horizontal scrollable filter chips for catalog + home
   ============================================================ */

.mobile-category-chips {
    display: none;
}

@media (max-width: 768px) {
    /* Compact filter rail; the home page owns the full category list. */
    .mobile-category-chips {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline proximity;
        scrollbar-width: none;
        padding: 2px 0 8px;
        margin-bottom: 16px;
    }

    .mobile-category-chips::-webkit-scrollbar {
        display: none;
    }

    .category-chip {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 18px 12px 14px;
        background: white;
        border: 1.5px solid rgba(253, 181, 221, 0.18);
        border-radius: 18px;
        text-align: center;
        text-decoration: none;
        flex: 0 0 116px;
        min-height: 96px;
        scroll-snap-align: start;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        -webkit-tap-highlight-color: transparent;
        white-space: normal;
    }

    .category-chip:active {
        transform: scale(0.95);
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    }

    .chip-emoji {
        font-size: 30px;
        line-height: 1;
        display: block;
    }

    .chip-name {
        font-size: 13px;
        font-weight: 600;
        color: #1d1d1f;
        line-height: 1.2;
        display: block;
    }

    .chip-count {
        font-size: 11px;
        color: #aaa;
        display: block;
    }

    .category-chip.active {
        background: linear-gradient(135deg, var(--accent-color, #FDB5DD) 0%, #EF95C7 100%);
        border-color: transparent;
        box-shadow: 0 6px 20px rgba(253, 181, 221, 0.35);
    }

    .category-chip.active .chip-name,
    .category-chip.active .chip-count {
        color: white;
    }
}

/* ============================================================
   📱 MOBILE WEB v2 — She Shine Mini App Style
   Replaces legacy styles at ≤768px with miniapp design language
   ============================================================ */

@media (max-width: 768px) {

    .trust-ticker__item {
        padding: 0 24px;
        font-size: 11px;
        letter-spacing: 0.035em;
    }

    .trust-ticker__item::before {
        margin-right: 16px;
        font-size: 9px;
    }

    /* ── Soft pink page background (matches miniapp --bg-pink-light) */
    body {
        background-color: #fdf8f9;
    }

    /* ── Compact navbar — glass, logo only, gradient brand text ── */
    .navbar {
        height: 56px;
        background: rgba(255, 255, 255, 0.92) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(253, 181, 221, 0.15);
        box-shadow: none;
    }

    .navbar.navbar-scrolled {
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 1px 12px rgba(253, 181, 221, 0.12);
    }

    .logo a {
        min-height: 44px;
    }

    .site-wordmark {
        font-size: 38px;
    }

    /* ── Container edges match miniapp 16px ───────────────────── */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* ── Bottom nav — active dot indicator ────────────────────── */
    .mob-nav-item.active::after {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 3px;
        background: var(--accent-color, #FDB5DD);
        border-radius: 0 0 3px 3px;
    }

    /* ─────────────────────────────────────────────────────────────
       CATALOG PAGE
    ─────────────────────────────────────────────────────────────── */

    .catalog-page {
        padding-top: 68px;
        padding-bottom: 180px;
        background: #fff;
    }

    .page-header {
        text-align: left;
        margin-bottom: 12px;
        padding-top: 6px;
    }

    .page-header h1 {
        font-size: 22px;
        font-weight: 700;
        letter-spacing: -0.3px;
    }

    /* Category grid — tighter spacing in v2 layout */
    .mobile-category-chips {
        margin: 0 0 14px;
        gap: 10px;
    }

    /* Catalog controls stay available on phones: brand filters and sorting
       must not disappear behind the compact category rail. */
    .catalog-header {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
        padding: 0;
    }

    .mobile-filter-btn {
        display: inline-flex !important;
        min-height: 44px;
    }

    .sort-form {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .sort-select {
        display: block !important;
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    .results-count {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 12px;
        color: #999;
    }

    /* 2-column grid, zero outer padding */
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 0;
    }

    .catalog-content,
    .catalog-container {
        width: 100%;
        min-width: 0;
    }

    /* ── Product card — blends into the white catalog surface ─── */
    .product-card {
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
        backdrop-filter: none;
        overflow: visible !important;
        padding: 0 !important;
        display: block !important;
        position: relative !important;
    }

    .product-card:active {
        transform: scale(0.97) !important;
    }

    /* Clip внутрішній контент, але НЕ кнопку */
    .product-card > a {
        display: block;
        overflow: visible;
        border-radius: 0;
    }

    /* ── Product image — clean white background + contain ─────── */
    .product-image {
        height: 165px !important;
        width: 100% !important;
        background: #fff !important;
        padding: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        min-width: unset !important;
        min-height: unset !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }

    .product-real-photo {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        border-radius: 0 !important;
    }

    .product-placeholder {
        min-height: 120px;
        border-radius: 0;
    }

    /* Badge compact */
    .badge {
        top: 8px;
        right: 8px;
        left: auto !important;
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 8px;
    }

    /* ── Product info — clean, minimal ────────────────────────── */
    .product-info {
        padding: 10px 10px 0 !important;
        display: block !important;
        flex-direction: unset !important;
        justify-content: unset !important;
    }

    .product-info h3 {
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        margin-bottom: 3px !important;
    }

    .product-brand {
        font-size: 11px !important;
        color: #9a9a9a !important;
        margin-bottom: 5px !important;
    }

    .product-price-single {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
        line-height: 1.2 !important;
    }

    .price-new {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
    }

    .price-old {
        font-size: 11px !important;
    }

    /* Hide clutter */
    .product-volume,
    .stock-status {
        display: none !important;
    }

    /* ── Quick add button — ЗАВЖДИ видима, в потоці ────────────── */
    .quick-add-btn {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: all !important;
        position: relative !important;
        z-index: 5 !important;
        margin: 8px 10px 10px !important;
        width: calc(100% - 20px) !important;
        padding: 11px 12px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 50px !important;
        gap: 5px !important;
        box-shadow: 0 4px 14px rgba(253, 181, 221, 0.3) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        left: auto !important;
        bottom: auto !important;
        right: auto !important;
        min-width: unset !important;
    }

    .catalog-cart-control {
        margin-top: 12px !important;
    }

    .quick-add-btn:active {
        transform: scale(0.95) !important;
        box-shadow: 0 2px 8px rgba(253, 181, 221, 0.2) !important;
    }

    .quick-add-btn .btn-icon {
        font-size: 14px;
    }

    .product-detail-container,
    .product-gallery,
    .product-details,
    .main-image {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .product-detail-photo {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    /* ─────────────────────────────────────────────────────────────
       CART PAGE — miniapp layout
    ─────────────────────────────────────────────────────────────── */

    .cart-page {
        padding-top: 68px;
        background: transparent;
    }

    .cart-page > .container > h1 {
        font-size: 22px;
        font-weight: 700;
        letter-spacing: -0.3px;
        margin-bottom: 14px;
        text-align: left;
    }

    /* Cart items list — no extra gaps */
    .cart-items {
        gap: 10px;
    }

    /* ── Cart item — 3-column grid layout (matches miniapp) ───── */
    /*
       [img 80px] [details 1fr         ] [price+remove 60px]
       [img 80px] [qty controls        ] [price+remove 60px]
    */
    .cart-item {
        display: grid !important;
        grid-template-columns: 80px 1fr 60px !important;
        grid-template-rows: auto auto !important;
        column-gap: 12px !important;
        row-gap: 8px !important;
        padding: 14px !important;
        background: white;
        border-radius: 16px;
        margin-bottom: 0;
        box-shadow: 0 8px 24px rgba(212, 122, 170, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.62);
        backdrop-filter: blur(10px);
        align-items: start;
    }

    /* ── Item image — col 1, spans both rows ──────────────────── */
    .item-image {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        width: 80px !important;
        height: 80px !important;
        border-radius: 12px;
        background: linear-gradient(180deg, #fdf2f4 0%, #ffffff 100%);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: center !important;
    }

    .item-image img {
        width: 100%;
        height: 100%;
        object-fit: contain !important;
        padding: 6px;
        border-radius: 0;
    }

    .item-placeholder {
        font-size: 28px;
        opacity: 0.5;
    }

    /* ── Item details — col 2, row 1 ──────────────────────────── */
    .item-details {
        grid-column: 2 !important;
        grid-row: 1 !important;
        min-width: 0;
    }

    .item-details h3 {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .item-brand {
        font-size: 11px;
        color: #9a9a9a;
        margin-bottom: 2px;
    }

    .item-volume {
        font-size: 11px;
        color: #9a9a9a;
        margin-bottom: 4px;
    }

    .item-price {
        font-size: 14px;
        font-weight: 700;
        color: #EF95C7;
    }

    /* ── Quantity controls — col 2, row 2 ─────────────────────── */
    .item-quantity {
        grid-column: 2 !important;
        grid-row: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .qty-control {
        border-radius: 10px;
        border: 1.5px solid rgba(253, 181, 221, 0.25);
        background: #fdf8f9;
    }

    .qty-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .qty-control .quantity-input {
        width: 36px;
        height: 34px;
        font-size: 14px;
        font-weight: 600;
    }

    /* ── Item total + remove — col 3, spans both rows ─────────── */
    .item-total {
        grid-column: 3 !important;
        grid-row: 1 / 3 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        align-self: stretch !important;
        min-width: 56px;
        text-align: right;
    }

    .total-price {
        font-size: 13px;
        font-weight: 600;
        color: #1a1a1a;
        white-space: nowrap;
        margin-bottom: 0;
    }

    .remove-btn {
        width: 32px;
        height: 32px;
        background: rgba(239, 68, 68, 0.1);
        border-radius: 8px;
        font-size: 16px;
        color: #ef4444;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: none;
        line-height: 1;
    }

    .remove-btn:active {
        background: #ef4444;
        color: white;
    }

    /* ── Cart summary — clean white card ───────────────────────── */
    .cart-summary {
        position: static !important;
        top: unset !important;
        background: white;
        border-radius: 16px;
        padding: 18px;
        margin-top: 8px;
        box-shadow: 0 2px 10px rgba(253, 181, 221, 0.07);
        border: 1px solid rgba(253, 181, 221, 0.08);
    }

    .cart-summary h3 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 12px;
    }

    .summary-row {
        font-size: 13px;
        padding: 8px 0;
        color: #6b6b6b;
    }

    .summary-total {
        font-size: 18px;
        padding: 12px 0;
    }

    /* Checkout button hidden in summary — use sticky bar instead */
    .cart-summary .checkout-btn,
    .cart-summary .continue-shopping {
        display: none;
    }

    /* ── Empty cart — miniapp centered state ───────────────────── */
    .empty-cart {
        padding: 60px 20px;
        text-align: center;
    }

    .empty-icon {
        font-size: 80px;
        margin-bottom: 20px;
        opacity: 1;
    }

    .empty-cart h2 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .empty-cart p {
        font-size: 15px;
        color: #6b6b6b;
        margin-bottom: 24px;
    }

    /* ─────────────────────────────────────────────────────────────
       HOME PAGE — miniapp-style section titles
    ─────────────────────────────────────────────────────────────── */

    /* Compact hero on home — less vertical space */
    .hero-section,
    .hero-2026 {
        min-height: auto;
        padding: 20px 0 24px;
    }

}
