/* ========================================
   BOCHABERY BEAUTY - ULTRA LUXURY SHOP
   ======================================== */

/* ---------- SHOP LOADER ---------- */
#shop-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1A1018;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#shop-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.shop-loader-content {
    text-align: center;
    position: relative;
}

.shop-loader-ring {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(232, 200, 184, 0.08);
    border-top: 2px solid #E8C8B8;
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: shopSpin 1.2s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

@keyframes shopSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shop-loader-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
    animation: shopBounce 1.2s ease-in-out infinite;
}

@keyframes shopBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.shop-loader-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    letter-spacing: 6px;
    color: #F8F0F0;
    font-weight: 400;
}

.shop-loader-sub {
    font-size: 11px;
    color: rgba(232, 200, 184, 0.5);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 4px;
}

.shop-loader-bar {
    width: 200px;
    height: 1px;
    background: rgba(232, 200, 184, 0.08);
    margin: 20px auto 0;
    position: relative;
    overflow: hidden;
}

.shop-loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #E8C8B8, transparent);
    animation: shopLoadBar 1.8s ease-in-out infinite;
}

@keyframes shopLoadBar {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ---------- SHOP HERO ---------- */
.shop-hero {
    padding: 160px 40px 80px;
    background: linear-gradient(135deg, #1A1018 0%, #3A1F30 40%, #5A2A40 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(232, 200, 184, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 8s ease-in-out infinite;
}

.shop-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 200, 184, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 10s ease-in-out infinite reverse;
}

@keyframes heroGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

.shop-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.shop-hero-tag {
    display: inline-block;
    padding: 8px 28px;
    border: 1px solid rgba(232, 200, 184, 0.25);
    border-radius: 50px;
    color: #E8C8B8;
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: rgba(26, 16, 24, 0.3);
    backdrop-filter: blur(10px);
}

.shop-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 62px;
    font-weight: 400;
    color: #F8F0F0;
    line-height: 1.1;
    margin-bottom: 16px;
}

.shop-hero h1 span {
    background: linear-gradient(135deg, #E8C8B8, #F0DCD8, #E8C8B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.shop-hero p {
    font-size: 18px;
    color: rgba(248, 240, 240, 0.5);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- SHOP SECTION ---------- */
.shop-section {
    padding: 60px 40px 100px;
    background: #F8F0F0;
}

.shop-section .container {
    max-width: 1300px;
    margin: 0 auto;
}

/* ---------- FILTERS ---------- */
.shop-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    padding: 10px 30px;
    background: transparent;
    border: none;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #3A1F30;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    color: #C47A8A;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #E8C8B8, #D4A88A);
    color: #1A1018;
    box-shadow: 0 4px 20px rgba(232, 200, 184, 0.35);
    font-weight: 600;
}

/* ---------- PRODUCTS GRID ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* ---------- PRODUCT CARD ---------- */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(26, 16, 24, 0.04);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(40px);
    position: relative;
}

.product-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.product-card.revealed:nth-child(2) { transition-delay: 0.08s; }
.product-card.revealed:nth-child(3) { transition-delay: 0.16s; }
.product-card.revealed:nth-child(4) { transition-delay: 0.24s; }
.product-card.revealed:nth-child(5) { transition-delay: 0.08s; }
.product-card.revealed:nth-child(6) { transition-delay: 0.16s; }
.product-card.revealed:nth-child(7) { transition-delay: 0.24s; }
.product-card.revealed:nth-child(8) { transition-delay: 0.32s; }

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(26, 16, 24, 0.12);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #E8C8B8, #C47A8A, #E8C8B8);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #F8F0F0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-category {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 16px;
    background: rgba(26, 16, 24, 0.7);
    backdrop-filter: blur(10px);
    color: #F8F0F0;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-info {
    padding: 22px 24px 24px;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 400;
    color: #3A1F30;
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-info p {
    font-size: 13px;
    color: #C47A8A;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #1A1018;
}

.product-price span {
    font-size: 13px;
    font-weight: 300;
    color: #C47A8A;
    font-family: 'Montserrat', sans-serif;
}

.add-to-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #E8C8B8, #D4A88A);
    color: #1A1018;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(232, 200, 184, 0.25);
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s;
}

.add-to-cart:hover::before {
    left: 100%;
}

.add-to-cart:hover {
    background: linear-gradient(135deg, #C47A8A, #B06878);
    color: #FFFFFF;
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(196, 122, 138, 0.35);
}

.add-to-cart .cart-icon {
    font-size: 18px;
    font-weight: 300;
    transition: transform 0.3s;
}

.add-to-cart:hover .cart-icon {
    transform: rotate(90deg);
}

/* ---------- NO PRODUCTS ---------- */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    font-size: 18px;
    color: #C47A8A;
}

/* ---------- CART SIDEBAR ---------- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -480px;
    width: 440px;
    max-width: 92vw;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    padding: 28px 24px;
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(26, 16, 24, 0.04);
}

.cart-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 400;
    color: #1A1018;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header h3 span {
    font-size: 14px;
    color: #C47A8A;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.cart-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #C47A8A;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close:hover {
    background: #F8F0F0;
    color: #1A1018;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.cart-items::-webkit-scrollbar {
    width: 4px;
}

.cart-items::-webkit-scrollbar-track {
    background: #F8F0F0;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #E8C8B8;
    border-radius: 10px;
}

.cart-empty {
    text-align: center;
    color: #C47A8A;
    font-size: 15px;
    padding: 60px 0;
}

.cart-empty::before {
    content: '🛍️';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(26, 16, 24, 0.04);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 400;
    color: #3A1F30;
    margin-bottom: 2px;
}

.cart-item-info > span {
    font-size: 15px;
    color: #C47A8A;
    font-weight: 600;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(26, 16, 24, 0.06);
    border-radius: 50%;
    background: #F8F0F0;
    color: #3A1F30;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-qty button:hover {
    background: #E8C8B8;
    border-color: #E8C8B8;
    color: #1A1018;
}

.cart-item-qty span {
    font-size: 14px;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

.cart-remove {
    background: none !important;
    border: none !important;
    color: #ccc !important;
    font-size: 12px !important;
    margin-left: 4px;
}

.cart-remove:hover {
    color: #e74c3c !important;
    background: none !important;
}

.cart-footer {
    padding-top: 20px;
    border-top: 2px solid rgba(26, 16, 24, 0.04);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: #3A1F30;
    margin-bottom: 16px;
}

.cart-total span:last-child {
    color: #C47A8A;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.35);
}

/* ---------- ACTIVE NAV LINK ---------- */
.nav-link.active {
    color: #E8C8B8 !important;
}

.nav-link.active::after {
    width: 100% !important;
}

/* ---------- CART COUNT BADGE ---------- */
#cartCount {
    display: inline-block;
    background: linear-gradient(135deg, #C47A8A, #B06878);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    padding: 1px 8px;
    margin-left: 4px;
    min-width: 22px;
    text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .shop-hero h1 {
        font-size: 44px;
    }
    .shop-hero {
        padding: 130px 30px 60px;
    }
}

@media (max-width: 768px) {
    .shop-hero {
        padding: 110px 20px 50px;
    }
    .shop-hero h1 {
        font-size: 34px;
    }
    .shop-hero p {
        font-size: 15px;
    }
    .shop-section {
        padding: 40px 16px 60px;
    }
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .shop-filters {
        border-radius: 30px;
        padding: 8px;
        gap: 6px;
        max-width: 100%;
    }
    .filter-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
    .product-image {
        height: 180px;
    }
    .product-info {
        padding: 16px 16px 18px;
    }
    .product-info h3 {
        font-size: 16px;
    }
    .product-price {
        font-size: 18px;
    }
    .add-to-cart {
        padding: 8px 16px;
        font-size: 11px;
    }
    .cart-sidebar {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }
    .cart-sidebar.open {
        right: 0;
    }
    .shop-hero-tag {
        font-size: 10px;
        padding: 6px 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .shop-hero h1 {
        font-size: 28px;
    }
    .product-image {
        height: 150px;
    }
    .product-info {
        padding: 12px 12px 14px;
    }
    .product-info h3 {
        font-size: 14px;
    }
    .product-info p {
        font-size: 11px;
        margin-bottom: 10px;
    }
    .product-price {
        font-size: 15px;
    }
    .add-to-cart {
        padding: 6px 12px;
        font-size: 10px;
    }
    .add-to-cart .cart-icon {
        font-size: 14px;
    }
    .filter-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
    .shop-filters {
        gap: 4px;
        padding: 6px;
    }
    .shop-hero {
        padding: 90px 16px 40px;
    }
    .cart-header h3 {
        font-size: 20px;
    }
}
/* ---------- MOBILE ICONS (Home & Cart) ---------- */
.mobile-icons {
    display: none;
    align-items: center;
    gap: 16px;
}

.mobile-home,
.mobile-cart {
    color: #F8F0F0;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-home:hover,
.mobile-cart:hover {
    color: #E8C8B8;
}

.mobile-cart {
    cursor: pointer;
}

#mobileCartCount {
    position: absolute;
    top: -6px;
    right: -8px;
    background: linear-gradient(135deg, #C47A8A, #B06878);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ---------- RESPONSIVE: Show mobile icons on small screens ---------- */
@media (max-width: 768px) {
    .mobile-icons {
        display: flex !important;
    }
    
    /* Hide the cart count in nav on mobile since we have it in mobile icons */
    #cartCount {
        display: none;
    }
}

/* ---------- RESPONSIVE: Hide mobile icons on desktop ---------- */
@media (min-width: 769px) {
    #mobileCartCount {
        display: none;
    }
}
/* ---------- STOCK INDICATORS ---------- */
.product-stock {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
}

.product-stock.in-stock {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.08);
}

.product-stock.out-of-stock {
    color: #c62828;
    background: rgba(198, 40, 40, 0.08);
}

.product-stock-badge {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: #c62828;
    color: #ffffff;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
}

.add-to-cart.disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.add-to-cart.disabled:hover {
    background: #ccc !important;
    color: #666 !important;
    transform: none !important;
    box-shadow: none !important;
}

.add-to-cart.disabled::before {
    display: none;
}
/* ---------- PAYMENT MODAL ---------- */
.payment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.payment-overlay.active {
    opacity: 1;
    visibility: visible;
}

.payment-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background: #ffffff;
    z-index: 9999;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.payment-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(26, 16, 24, 0.04);
}

.payment-modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: #1A1018;
}

.payment-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.payment-close:hover {
    color: #1A1018;
}

.payment-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.payment-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 600;
    padding: 16px 20px;
    background: #F8F0F0;
    border-radius: 12px;
    margin-bottom: 24px;
}

.payment-total span:last-child {
    color: #C47A8A;
    font-family: 'Playfair Display', serif;
}

.payment-methods {
    margin-bottom: 20px;
}

.payment-methods h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 2px solid rgba(26, 16, 24, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 8px;
}

.payment-method:hover {
    border-color: #E8C8B8;
    background: rgba(232, 200, 184, 0.04);
}

.payment-method.selected {
    border-color: #C47A8A;
    background: rgba(196, 122, 138, 0.06);
}

.payment-method-icon {
    font-size: 28px;
}

.payment-method-info {
    flex: 1;
}

.payment-method-info h5 {
    font-size: 15px;
    font-weight: 600;
    color: #1A1018;
}

.payment-method-info p {
    font-size: 12px;
    color: #999;
}

.payment-method-radio {
    font-size: 18px;
    color: #ccc;
}

.payment-method.selected .payment-method-radio {
    color: #C47A8A;
}

/* Payment Details */
.payment-details {
    margin-top: 16px;
}

.payment-detail-content {
    padding: 20px;
    background: #F8F0F0;
    border-radius: 12px;
}

.payment-instructions h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    color: #1A1018;
    margin-bottom: 12px;
}

.payment-instructions ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.payment-instructions ol li {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.payment-instructions ol li strong {
    color: #1A1018;
}

.bank-details {
    background: #ffffff;
    padding: 16px;
    border-radius: 10px;
    margin: 12px 0;
}

.bank-details p {
    font-size: 14px;
    color: #555;
    padding: 4px 0;
}

.bank-details strong {
    color: #1A1018;
}

.payment-confirm-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-confirm-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.payment-confirm-btn.paypal-btn {
    background: linear-gradient(135deg, #0070ba, #003087);
}

.payment-confirm-btn.paypal-btn:hover {
    box-shadow: 0 8px 30px rgba(0, 112, 186, 0.3);
}

.payment-note {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
    text-align: center;
}

.payment-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(26, 16, 24, 0.04);
    display: flex;
    justify-content: flex-end;
}

.payment-cancel-btn {
    padding: 10px 30px;
    background: transparent;
    color: #999;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-cancel-btn:hover {
    border-color: #C47A8A;
    color: #C47A8A;
}

@media (max-width: 480px) {
    .payment-modal {
        width: 95%;
        max-height: 95vh;
    }
    .payment-modal-body {
        padding: 16px;
    }
    .payment-method {
        padding: 12px 14px;
    }
    .payment-instructions ol li {
        font-size: 13px;
    }
}
/* ---------- M-PESA STK PUSH ---------- */
.mpesa-input-group {
    margin-bottom: 16px;
}

.mpesa-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A1018;
    margin-bottom: 6px;
}

.mpesa-phone-input {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid rgba(26, 16, 24, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.mpesa-phone-input:focus-within {
    border-color: #C47A8A;
}

.mpesa-country-code {
    padding: 12px 12px 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1A1018;
    background: #F8F0F0;
    border-right: 1px solid rgba(26, 16, 24, 0.06);
}

.mpesa-phone-input input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    color: #1A1018;
    background: transparent;
}

.mpesa-phone-input input::placeholder {
    color: #bbb;
}

.mpesa-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.mpesa-push-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.mpesa-push-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.mpesa-push-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.mpesa-status {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #F8F0F0;
}

.mpesa-status-loading {
    text-align: center;
}

.mpesa-status-loading .spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(196, 122, 138, 0.1);
    border-top: 3px solid #C47A8A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mpesa-status-loading p {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.mpesa-status-success {
    text-align: center;
}

.mpesa-status-success .success-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.mpesa-status-success p {
    color: #2e7d32;
    font-size: 15px;
    font-weight: 600;
}

.mpesa-status-failed {
    text-align: center;
}

.mpesa-status-failed .failed-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.mpesa-status-failed p {
    color: #c62828;
    font-size: 14px;
}
/* ---------- PAYMENT MODAL ---------- */
.payment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.payment-overlay.active {
    opacity: 1;
    visibility: visible;
}

.payment-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    background: #ffffff;
    z-index: 9999;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.payment-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(26, 16, 24, 0.04);
}

.payment-modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: #1A1018;
}

.payment-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.payment-close:hover {
    color: #1A1018;
}

.payment-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.payment-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 600;
    padding: 16px 20px;
    background: #F8F0F0;
    border-radius: 12px;
    margin-bottom: 24px;
}

.payment-total span:last-child {
    color: #C47A8A;
    font-family: 'Playfair Display', serif;
}

.payment-methods h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 2px solid rgba(26, 16, 24, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 8px;
}

.payment-method:hover {
    border-color: #E8C8B8;
    background: rgba(232, 200, 184, 0.04);
}

.payment-method.selected {
    border-color: #C47A8A;
    background: rgba(196, 122, 138, 0.06);
}

.payment-method-icon {
    font-size: 28px;
}

.payment-method-info {
    flex: 1;
}

.payment-method-info h5 {
    font-size: 15px;
    font-weight: 600;
    color: #1A1018;
}

.payment-method-info p {
    font-size: 12px;
    color: #999;
}

.payment-method-radio {
    font-size: 18px;
    color: #ccc;
}

.payment-method.selected .payment-method-radio {
    color: #C47A8A;
}

/* Payment Details */
.payment-details {
    margin-top: 16px;
}

.payment-detail-content {
    padding: 20px;
    background: #F8F0F0;
    border-radius: 12px;
}

.payment-instructions h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    color: #1A1018;
    margin-bottom: 12px;
}

/* ---------- M-PESA STK PUSH ---------- */
.mpesa-input-group {
    margin-bottom: 16px;
}

.mpesa-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A1018;
    margin-bottom: 6px;
}

.mpesa-phone-input {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid rgba(26, 16, 24, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.mpesa-phone-input:focus-within {
    border-color: #C47A8A;
}

.mpesa-country-code {
    padding: 12px 12px 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1A1018;
    background: #F8F0F0;
    border-right: 1px solid rgba(26, 16, 24, 0.06);
}

.mpesa-phone-input input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    color: #1A1018;
    background: transparent;
}

.mpesa-phone-input input::placeholder {
    color: #bbb;
}

.mpesa-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.payment-confirm-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-confirm-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.payment-confirm-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.payment-confirm-btn.card-btn {
    background: linear-gradient(135deg, #0070ba, #003087);
}

.payment-confirm-btn.card-btn:hover {
    box-shadow: 0 8px 30px rgba(0, 112, 186, 0.3);
}

.mpesa-status {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
}

.mpesa-status-loading {
    text-align: center;
}

.mpesa-status-loading .spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(196, 122, 138, 0.1);
    border-top: 3px solid #C47A8A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mpesa-status-loading p {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.mpesa-status-success {
    text-align: center;
}

.mpesa-status-success .success-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.mpesa-status-success p {
    color: #2e7d32;
    font-size: 15px;
    font-weight: 600;
}

.mpesa-status-failed {
    text-align: center;
}

.mpesa-status-failed .failed-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.mpesa-status-failed p {
    color: #c62828;
    font-size: 14px;
}

.card-logos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.card-logos span {
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid rgba(26, 16, 24, 0.06);
    border-radius: 8px;
    font-size: 13px;
    color: #555;
}

.payment-note {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
    text-align: center;
}

.payment-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(26, 16, 24, 0.04);
    display: flex;
    justify-content: flex-end;
}

.payment-cancel-btn {
    padding: 10px 30px;
    background: transparent;
    color: #999;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-cancel-btn:hover {
    border-color: #C47A8A;
    color: #C47A8A;
}

@media (max-width: 480px) {
    .payment-modal {
        width: 95%;
        max-height: 95vh;
    }
    .payment-modal-body {
        padding: 16px;
    }
    .payment-method {
        padding: 12px 14px;
    }
}
/* ---------- ORDER TRACKING ---------- */
.track-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.track-overlay.active {
    opacity: 1;
    visibility: visible;
}

.track-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    background: #ffffff;
    z-index: 9999;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.track-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.track-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(26, 16, 24, 0.04);
}

.track-modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: #1A1018;
}

.track-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.track-close:hover {
    color: #1A1018;
}

.track-modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.track-input-group {
    display: flex;
    gap: 10px;
}

.track-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(26, 16, 24, 0.08);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s;
    outline: none;
}

.track-input:focus {
    border-color: #C47A8A;
}

.track-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #E8C8B8, #D4A88A);
    color: #1A1018;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.track-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(232, 200, 184, 0.3);
}

.track-result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: #F8F0F0;
}

.track-error {
    text-align: center;
    padding: 16px;
}

.track-error span {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.track-error p {
    color: #c62828;
    font-size: 14px;
}

.track-success {
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.track-status {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.track-status.confirmed {
    background: rgba(46, 125, 50, 0.08);
    color: #2e7d32;
}

.track-status.processing {
    background: rgba(255, 152, 0, 0.08);
    color: #e65100;
}

.track-status.shipped {
    background: rgba(33, 150, 243, 0.08);
    color: #0d47a1;
}

.track-status.delivered {
    background: rgba(46, 125, 50, 0.08);
    color: #2e7d32;
}

.track-status.pending {
    background: rgba(255, 152, 0, 0.08);
    color: #e65100;
}

.track-details {
    margin-bottom: 16px;
}

.track-details p {
    font-size: 14px;
    color: #555;
    padding: 4px 0;
}

.track-details strong {
    color: #1A1018;
}

.track-items {
    margin: 12px 0;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 10px;
}

.track-items h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1A1018;
    margin-bottom: 8px;
}

.track-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid rgba(26, 16, 24, 0.04);
}

.track-item:last-child {
    border-bottom: none;
}

.track-total {
    text-align: right;
    font-size: 16px;
    color: #1A1018;
    padding: 8px 0;
}

.track-total strong {
    font-family: 'Playfair Display', serif;
    color: #C47A8A;
}

/* Timeline */
.track-timeline {
    margin: 16px 0;
    padding: 16px;
    background: #ffffff;
    border-radius: 10px;
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.timeline-step.active {
    opacity: 1;
}

.timeline-step span:first-child {
    width: 24px;
    height: 24px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
    transition: all 0.3s;
}

.timeline-step.active span:first-child {
    background: #C47A8A;
    color: #fff;
}

.timeline-step span:last-child {
    font-size: 13px;
    color: #555;
}

.timeline-step.active span:last-child {
    color: #1A1018;
    font-weight: 500;
}

/* Track WhatsApp */
.track-whatsapp {
    margin-top: 12px;
}

.track-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.track-whatsapp-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.track-help {
    text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
    .track-modal {
        width: 95%;
        max-height: 95vh;
    }
    .track-modal-body {
        padding: 16px;
    }
    .track-input-group {
        flex-direction: column;
    }
    .track-btn {
        width: 100%;
        justify-content: center;
    }
}
