* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Luxury Color Palette (Monochrome) */
    --primary-color: #111111;
    --secondary-color: #444444;
    --dark-color: #000000;
    --light-color: #ffffff;
    --text-color: #333333;
    --border-color: #eaeaea;
    --success-color: #27ae60;
    --primary-rgb: 17, 17, 17;
    --surface-color: rgba(255, 255, 255, 0.98);
    
    /* Modern Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(255, 51, 102, 0.3);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f1f5f9;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.login-btn,
.admin-btn,
.orders-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(255, 51, 102, 0.2);
}

.orders-btn {
    background: var(--dark-color);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.2);
}

.login-btn:hover,
.admin-btn:hover,
.orders-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.cart-icon:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #111111, #2a2a2a, #000000);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 120px 20px;
    text-align: center;
    margin-bottom: 60px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-content p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.btn-primary {
    display: inline-block;
    padding: 16px 42px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all var(--transition-smooth);
    box-shadow: none;
    animation: fadeInUp 1s 0.4s both;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid var(--primary-color);
    cursor: pointer;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    transition: opacity var(--transition-smooth);
    opacity: 0;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: none;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* Category Filter */
.category-filter {
    padding: 30px 0;
    background: var(--light-color);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Wrapper for category buttons (excluding "All Products") */
.filter-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

/* Mobile: "All Products" on top, others in row below */
@media (max-width: 768px) {
    .filter-buttons {
        flex-direction: column;
        gap: 12px;
    }

    /* "All Products" button - full width on top */
    .filter-btn[data-category="all"] {
        width: 100%;
        max-width: 300px;
        padding: 12px 25px;
        font-size: 1rem;
        margin-bottom: 5px;
    }

    /* Wrapper for other category buttons - in one row */
    .filter-buttons-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    /* Other category buttons - in one row below "All Products" */
    .filter-buttons-wrapper .filter-btn {
        flex: 1;
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

.filter-btn {
    padding: 12px 28px;
    border: none;
    background: white;
    color: var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 15px -5px rgba(255, 51, 102, 0.4);
}

/* Products Section */
.products-section {
    padding: 60px 0;
    min-height: 60vh;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.products-grid {
    column-count: 4;
    column-gap: 24px;
    display: block;
    padding-bottom: 50px;
}

@media (max-width: 1024px) {
    .products-grid {
        column-count: 3;
    }
}

/* Mobile: 2 columns (2 products visible per scroll) */
@media (max-width: 768px) {
    .products-grid {
        column-count: 2;
        column-gap: 12px;
    }
    .product-card {
        min-height: unset;
    }
}

/* Very small screens: Keep 2 columns but smaller gap */
@media (max-width: 480px) {
    .products-grid {
        column-count: 2;
        column-gap: 8px;
    }
    .product-card {
        min-height: unset;
    }
}

.product-card {
    background: white;
    border-radius: 0; /* Premium flat look */
    overflow: hidden; 
    box-shadow: none; 
    transition: transform var(--transition-smooth), opacity 0.5s ease-out;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    break-inside: avoid;
    margin-bottom: 24px;
}

.product-card:hover {
    box-shadow: none;
    border-color: var(--primary-color);
}

.product-image-container {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    position: relative;
    background: #f5f5f5;
    height: auto !important;
    max-height: none !important;
}


.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f44336;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.sold-out-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card.sold-out {
    opacity: 0.7;
    position: relative;
}

.product-card.sold-out::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

/* Diagonal SOLD overlay from top-left to bottom-right */
.product-card.sold-out::before {
    content: 'SOLD';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: rgba(255, 0, 0, 0.8);
    background: linear-gradient(to bottom right,
            rgba(255, 0, 0, 0.3) 0%,
            rgba(255, 0, 0, 0.15) 50%,
            rgba(255, 0, 0, 0.3) 100%);
    transform: rotate(-45deg);
    transform-origin: center;
    z-index: 5;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 8px;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.8);
}

.add-to-cart.disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.add-to-cart.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.product-image-container img.product-img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    display: block;
    object-fit: contain !important;
    transition: opacity 0.5s ease;
}

/* Removed hover transform to keep it "zoomed out" */

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.no-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

.no-image-placeholder p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.product-image span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

/* Skeleton Loading Shimmer - Premium Edition */
.img-lazy-pending {
    position: relative;
    background: #f0f2f5 !important;
    overflow: hidden;
    min-height: 250px; /* Ensure skeleton has height before image loads */
}

@media (max-width: 768px) {
    .img-lazy-pending {
        min-height: 180px;
    }
}

.img-lazy-pending::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.4) 30%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.4) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: premium-shimmer 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes premium-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.loading-image {
    position: relative;
}

.loading-image::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(var(--primary-rgb, 255, 51, 102), 0.1);
    border-top: 2px solid var(--primary-color, #ff3366);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10;
}

/* Ensure product info is above shimmer */
.product-info-overlay {
    z-index: 10 !important;
}

.product-info {
    padding: 16px;
    background: white;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.product-category {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: var(--secondary-color);
}

/* Shopping Cart */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cart-header h2 {
    color: var(--dark-color);
    font-size: 1.4rem;
    font-weight: 700;
}

.close-cart {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--dark-color);
    transition: all 0.3s;
}

.close-cart:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* Cart Tabs - Pill Design */
.cart-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: 50px;
    gap: 0;
    position: relative;
    width: fit-content;
}

.cart-tab {
    background: none;
    border: none;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.cart-tab i {
    font-size: 0.85rem;
}

.cart-tab.active {
    color: white;
    background: var(--primary-color);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.cart-tab:not(.active):hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--primary-color);
}

.one-route-info {
    margin: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    animation: fadeIn 0.5s ease-out;
}

/* Order History Card Design */
.order-sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.order-sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.order-id-badge {
    font-family: monospace;
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
}

.order-status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.status-paid { background: #ecfdf5; color: #10b981; }
.status-processing { background: #fffbeb; color: #f59e0b; }
.status-delivered { background: #eff6ff; color: #3b82f6; }
.status-pending { background: #f1f5f9; color: #64748b; }

.order-card-body {
    margin-bottom: 12px;
}

.order-summary-text {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.order-price-total {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1rem;
}

.btn-view-receipt {
    background: var(--dark-color);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-items-mini {
    margin: 12px 0;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.mini-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mini-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.mini-item-img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: #f8f9fa;
    flex-shrink: 0;
}

.mini-item-name {
    font-weight: 500;
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.mini-item-qty {
    background: #e2e8f0;
    color: #475569;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}

.btn-view-receipt:hover {
    background: var(--primary-color);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-color);
    margin-bottom: 4px;
    line-height: 1.2;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    background: #f8f9fa;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 20px;
}

.qty-btn {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: color 0.2s;
}

.qty-btn:hover {
    color: var(--primary-color);
}

.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #999;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: #fff5f5;
    color: #ff4444;
}

.cart-footer {
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
}

.cart-total {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--dark-color);
}

.cart-total strong {
    font-weight: 800;
}

.cart-total span {
    color: var(--primary-color);
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.2);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 51, 102, 0.3);
    filter: brightness(1.1);
}

.btn-checkout:active {
    transform: translateY(0);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

/* About Section */
.about-section {
    padding: 60px 0;
    background: var(--light-color);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Payment Section */
.payment-section {
    padding: 60px 0;
    background: var(--light-color);
}

.payment-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.payment-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.till-card-green {
    background: #25D366 !important;
    color: white;
}

.till-card-green i {
    color: white !important;
}

.till-card-green h3 {
    color: white !important;
}

.till-card-green .payment-desc {
    color: rgba(255, 255, 255, 0.9) !important;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.payment-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.payment-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.payment-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.till-card-green .payment-number {
    color: white !important;
}

.till-card-green .buy-goods-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.till-card-green .till-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: white;
}

.payment-desc {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.whatsapp-link:hover {
    color: #128C7E;
    text-decoration: underline;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.contact-link:hover {
    color: var(--dark-color);
    text-decoration: underline;
    transform: translateX(3px);
}

.contact-item small {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item p {
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.payment-modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.receipt-modal-content {
    max-width: 500px;
}

.modal-content {
    padding: 0;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--dark-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 20px;
}

/* Scrollable modal body for product form */
.modal-body[style*="overflow-y"] {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.modal-body[style*="overflow-y"]::-webkit-scrollbar {
    width: 8px;
}

.modal-body[style*="overflow-y"]::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.modal-body[style*="overflow-y"]::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.modal-body[style*="overflow-y"]::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.modal-overlay.show {
    display: block;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-secondary {
    padding: 12px 24px;
    background: #999;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #777;
}

/* Admin Panel */
.admin-panel {
    position: fixed;
    right: -600px;
    top: 0;
    width: 600px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.admin-panel.open {
    right: 0;
}

.admin-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
}

.admin-header h2 {
    margin: 0;
}

.close-admin {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    transition: opacity 0.3s;
}

.close-admin:hover {
    opacity: 0.8;
}

.admin-content {
    flex: 1;
    padding: 20px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.admin-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s;
    margin-bottom: -2px;
}

.admin-tab:hover {
    color: var(--primary-color);
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    background: var(--success-color);
    color: white;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 5px;
}

.btn-add {
    padding: 12px 24px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    background: #45a049;
}

.admin-search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.admin-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-products-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-product-item {
    background: var(--light-color);
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-product-info {
    flex: 1;
}

.admin-product-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.admin-product-details {
    font-size: 0.9rem;
    color: #666;
}

.admin-product-actions {
    display: flex;
    gap: 10px;
}

.btn-edit,
.btn-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-edit {
    background: var(--primary-color);
    color: white;
}

.btn-edit:hover {
    background: var(--secondary-color);
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #d32f2f;
}

/* File Upload Button */
.file-upload-label {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.file-upload-label:hover {
    background: var(--secondary-color);
}

.file-upload-label i {
    margin-right: 8px;
}

/* Payment Modal Styles */
.order-summary {
    background: var(--light-color);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.order-summary h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.order-items {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item-img {
    width: 45px;
    height: 45px;
    max-width: 45px;
    max-height: 45px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
    background: #f8f9fa;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.05);
}

.order-item-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item:last-child {
    border-bottom: none;
}

.order-total {
    padding-top: 15px;
    border-top: 2px solid var(--primary-color);
    font-size: 1.2rem;
    text-align: right;
}

.payment-instructions {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.payment-instructions h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.payment-method-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: rgba(233, 30, 99, 0.05);
}

.payment-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked+.payment-option-content {
    color: var(--primary-color);
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.payment-option-content i {
    font-size: 2rem;
    color: var(--primary-color);
}

.payment-option-content strong {
    display: block;
    margin-bottom: 5px;
}

.payment-option-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.till-option-green {
    background: #25D366 !important;
    border-color: #25D366 !important;
    color: white;
}

.till-option-green:hover {
    background: #20b858 !important;
    border-color: #20b858 !important;
}

.till-option-green .payment-option-content {
    color: white;
}

.till-option-green .payment-option-content i {
    color: white !important;
}

.till-option-green .payment-option-content strong {
    color: white !important;
}

.till-option-green .payment-option-content p {
    color: white !important;
}

/* Delivery Options */
.delivery-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    margin-bottom: 10px;
}

.delivery-option:hover {
    border-color: var(--primary-color);
    background: #fff5f8;
    transform: translateX(5px);
}

.delivery-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.delivery-option input[type="radio"]:checked~div {
    color: var(--primary-color);
}

.delivery-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: #fff5f8;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
}

.delivery-option:has(input[type="radio"]:checked) strong {
    color: var(--primary-color);
}

.till-option-green .buy-goods-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.till-option-green .till-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: white;
}

.payment-steps {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.payment-steps p {
    margin-bottom: 10px;
    font-weight: 500;
}

.payment-steps ol {
    margin-left: 20px;
    padding-left: 10px;
}

.payment-steps li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Receipt Modal Styles */
.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-message h3 {
    margin: 15px 0;
    color: var(--dark-color);
}

.success-message p {
    color: #666;
    margin-bottom: 20px;
}

.receipt-actions {
    margin-top: 20px;
}

.receipt-actions .btn-secondary {
    background: #25D366;
    color: white;
    border: none;
}

.receipt-actions .btn-secondary:hover {
    background: #128C7E;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

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

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 300px;
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Category Filter - Mobile Layout */
    .category-filter {
        padding: 20px 0;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    /* "All Products" button on top row - full width */
    .filter-btn[data-category="all"] {
        width: 100%;
        max-width: 300px;
        padding: 12px 25px;
        font-size: 1rem;
        margin-bottom: 5px;
    }

    /* Wrapper for other category buttons - in one row */
    .filter-buttons-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    /* Other category buttons - in one row below "All Products" */
    .filter-buttons-wrapper .filter-btn {
        flex: 1;
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* Smaller product images on mobile */
    .product-image-container {
        height: auto;
    }

    .product-image-container img.product-img {
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    .no-image-placeholder i {
        font-size: 2rem;
        /* Reduced from 3rem */
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 1rem;
        /* Slightly smaller */
    }

    .product-price {
        font-size: 1.2rem;
        /* Slightly smaller */
    }

    .add-to-cart {
        padding: 10px;
        font-size: 0.9rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .contact-info {
        flex-direction: column;
        gap: 30px;
    }

    .footer .container {
        flex-direction: column;
    }

    .admin-panel {
        width: 100%;
        right: -100%;
    }

    .login-btn,
    .admin-btn,
    .orders-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    @media (max-width: 480px) {
        .login-btn span,
        .orders-btn span,
        .admin-btn span {
            display: none;
        }

        .login-btn,
        .orders-btn,
        .admin-btn {
            padding: 8px;
            width: 38px;
            height: 38px;
            justify-content: center;
            border-radius: 50%;
        }

        .login-btn i,
        .orders-btn i,
        .admin-btn i {
            margin: 0;
            font-size: 1.1rem;
        }

        .nav-icons {
            gap: 0.8rem;
        }
    }

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

    .payment-info {
        flex-direction: column;
    }

    .payment-card {
        min-width: auto;
        width: 100%;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {

    .hero {
        min-height: 250px;
        padding: 40px 20px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    /* Even smaller product images */
    .product-image-container {
        height: auto;
    }

    .product-image-container img.product-img {
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    .no-image-placeholder i {
        font-size: 1.5rem;
    }

    /* Ensure 2 products per row even on very small screens */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    /* Category filter adjustments for very small screens */
    .filter-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .filter-btn[data-category="all"] {
        max-width: 100%;
    }
}/* Product Details Modal - Premium Split View */
#productDetailsModal {
    z-index: 3000;
    max-width: none !important;
    width: auto !important;
}

.product-details-content {
    max-width: 820px;
    width: 94vw;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: white;
    max-height: 88vh; /* Smaller for iPhone — avoids browser chrome overlap */
}

.close-modal-overlap {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 100;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--dark-color);
}

.close-modal-overlap:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 460px;       /* Fixed px — avoids iOS vh unpredictability */
    max-height: 80vh;    /* Safety cap for very small screens */
    overflow: hidden;
}

.product-details-image-side {
    background: linear-gradient(145deg, #f8f9fa, #eef0f2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.product-details-image-side img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.product-details-info-side {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.details-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.details-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 6px;
    line-height: 1.25;
}

.details-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.details-section {
    margin-bottom: 14px;
}

.details-section h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-section h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f1f5f9;
}

.details-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.details-size-btn {
    padding: 7px 14px;
    border: 2px solid #e8ecf0;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: #64748b;
}

.details-size-btn:hover:not(.sold-out) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 51, 102, 0.05);
}

.details-size-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 3px 10px rgba(255, 51, 102, 0.25);
}

.details-size-btn.sold-out {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f8fafc;
}

.details-footer {
    margin-top: auto;
    padding-top: 12px;
}

/* Modal Overlays for new modals */
#productDetailsOverlay {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2999;
}

/* Responsive — stack vertically on phones */
@media (max-width: 600px) {
    .product-details-content {
        width: 96vw;
        max-height: 92vh;
        overflow-y: auto;
        border-radius: 14px;
    }

    .product-details-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .product-details-image-side {
        height: 52vw;
        min-height: 200px;
        max-height: 260px;
        padding: 10px;
    }

    .product-details-info-side {
        padding: 16px 14px;
    }

    .details-title {
        font-size: 1.1rem;
    }

    .details-price {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .details-footer button {
        padding: 14px !important;
        font-size: 1rem !important;
    }
}

/* Admin Order Details Modal Styles */
.admin-order-modal-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.admin-order-modal-section h3 {
    margin-top: 0;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-order-detail-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.admin-order-detail-label {
    width: 130px;
    color: #64748b;
    font-weight: 500;
}

.admin-order-detail-value {
    flex: 1;
    color: var(--dark-color);
    font-weight: 600;
}

.admin-order-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
}

.admin-order-item-img {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.admin-order-item-info {
    flex: 1;
}

.admin-order-item-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.admin-order-item-meta {
    font-size: 0.85rem;
    color: #64748b;
}

.admin-order-item-price {
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

.admin-order-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 2px dashed #e2e8f0;
    margin-top: 15px;
}

.admin-order-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #64748b;
}

.admin-order-summary-row.total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #e2e8f0;
}

/* Skeleton Loader */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.skeleton-card {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    margin: 0 5px;
}

.skeleton-title { width: 70%; margin-top: 5px; }
.skeleton-price { width: 40%; margin-bottom: 10px; }
