/* Ecommerce Specific Styles - Consistent with Main Theme */
:root {
    --primary: #1a3a5f;
    --secondary: #d4af37;
    --accent: #2c5f2d;
    --light: #f8f9fa;
    --dark: #212529;
    --danger: #e74c3c;
    --success: #27ae60;
    --info: #3498db;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border-light: #e9ecef;
}

/* Common Components */
.products-header {
    background: #1a3a5f; /* IE fallback */
    background: linear-gradient(135deg, rgba(26, 58, 95, 0.85) 0%, rgba(13, 30, 47, 0.85) 100%), url('../images/food.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* IE fallback - fixed not well supported */
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin: 80px 0 50px;
    position: relative;
}

.products-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a3a5f; /* IE fallback for gradient */
    background: linear-gradient(45deg, #1a3a5f 0%, transparent 100%);
    opacity: 0.3;
    filter: alpha(opacity=30); /* IE8 */
}

.products-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.products-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    filter: alpha(opacity=90); /* IE8 */
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts - IE Fallback using Flexbox */
.products-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 40px 0;
    margin-left: -12.5px;
    margin-right: -12.5px;
}

.products-grid > * {
    width: calc(25% - 25px); /* IE fallback for grid */
    margin: 0 12.5px 25px;
    min-height: 0; /* IE fix */
}

.features-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-left: -20px;
    margin-right: -20px;
}

.features-grid > * {
    width: calc(33.333% - 40px); /* IE fallback for grid */
    margin: 0 20px 40px;
}

/* Card Components */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
}

.product-card::before,
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #1a3a5f; /* IE fallback for gradient */
    background: linear-gradient(90deg, #1a3a5f, #d4af37);
    -webkit-transform: scaleX(0);
    -ms-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.product-card:hover::before,
.feature-card:hover::before {
    -webkit-transform: scaleX(1);
    -ms-transform: scaleX(1);
    transform: scaleX(1);
}

.product-card:hover {
    -webkit-transform: translateY(-8px);
    -ms-transform: translateY(-8px);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    -webkit-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Image Components */
.product-image-container {
    position: relative;
    overflow: hidden;
    background: #f8f9fa; /* IE fallback for gradient */
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 200px;
    -o-object-fit: contain;
    object-fit: contain;
    padding: 20px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    background: transparent;
}

.product-card:hover .product-image {
    -webkit-transform: scale(1.08);
    -ms-transform: scale(1.08);
    transform: scale(1.08);
}

/* Image optimization with IE fallbacks */
.product-image[src*=".jpg"],
.product-image[src*=".jpeg"],
.product-image[src*=".webp"] {
    -o-object-fit: cover;
    object-fit: cover;
    height: 180px;
}

.product-image[src*=".png"],
.product-image[src*=".svg"],
.product-image[src*=".gif"] {
    -o-object-fit: contain;
    object-fit: contain;
    height: 200px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    opacity: 0;
    filter: alpha(opacity=0); /* IE8 */
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-image-container:hover .image-overlay {
    opacity: 1;
    filter: alpha(opacity=100); /* IE8 */
}

.image-overlay i {
    color: white;
    font-size: 2rem;
    background: rgba(26, 58, 95, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transform: scale(0.8);
    -ms-transform: scale(0.8);
    transform: scale(0.8);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.product-image-container:hover .image-overlay i {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

/* Content Sections */
.product-info {
    padding: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 200px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #212529; /* IE fallback for var(--dark) */
    line-height: 1.3;
}

.product-description {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    overflow: hidden;
    display: block; /* IE fallback for line-clamp */
    max-height: 2.8em; /* IE fallback */
    line-height: 1.4;
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #666;
}

/* Modern browsers line-clamp */
@supports (-webkit-line-clamp: 2) or (line-clamp: 2) {
    .product-description {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        max-height: none;
    }
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a3a5f; /* IE fallback for var(--primary) */
    margin-bottom: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.product-price::before {
    content: '₵';
    font-size: 1.1rem;
    opacity: 0.8;
    filter: alpha(opacity=80); /* IE8 */
    margin-right: 4px; /* IE fallback for gap */
}

.product-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: #888;
}

.product-weight {
    background: #f8f9fa; /* IE fallback for var(--light) */
    padding: 3px 10px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.75rem;
}

.product-rating {
    color: #d4af37; /* IE fallback for var(--secondary) */
    font-size: 0.9rem;
}

/* Button Components */
.btn,
.add-to-cart,
.checkout-btn,
.clear-cart-btn,
.quantity-btn,
.delete-item,
.search-btn,
.clear-search-btn,
.clear-filters-btn,
.category-btn {
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: #1a3a5f; /* IE fallback for gradient */
    background: linear-gradient(135deg, #1a3a5f, #0d1a2f);
    color: white;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.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.2), transparent);
    -webkit-transition: left 0.5s;
    transition: left 0.5s;
}

.add-to-cart:hover::before {
    left: 100%;
}

.add-to-cart:hover {
    background: #d4af37; /* IE fallback for gradient */
    background: linear-gradient(135deg, #d4af37, #e6c130);
    color: #1a3a5f; /* IE fallback for var(--primary) */
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Enhanced Features Section */
.ecommerce-features {
    background: #f8f9fa; /* IE fallback for gradient */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.ecommerce-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #1a3a5f; /* IE fallback for gradient */
    background: linear-gradient(90deg, #1a3a5f, #d4af37);
}

.ecommerce-features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #212529; /* IE fallback for var(--dark) */
    position: relative;
}

.ecommerce-features h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #1a3a5f; /* IE fallback for gradient */
    background: linear-gradient(90deg, #1a3a5f, #d4af37);
    border-radius: 2px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #1a3a5f; /* IE fallback for gradient */
    background: linear-gradient(135deg, #1a3a5f, #0d1a2f);
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    -webkit-transform: scale(1.1) rotate(5deg);
    -ms-transform: scale(1.1) rotate(5deg);
    transform: scale(1.1) rotate(5deg);
    background: #d4af37; /* IE fallback for gradient */
    background: linear-gradient(135deg, #d4af37, #e6c130);
}

.feature-icon i {
    font-size: 2.5rem;
    color: white;
}

.feature-card:hover .feature-icon i {
    color: #1a3a5f; /* IE fallback for var(--primary) */
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #212529; /* IE fallback for var(--dark) */
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Category Navigation */
.category-navigation {
    background: white;
    padding: 25px 0;
    border-bottom: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.categories {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 0;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 5px;
}

.categories::-webkit-scrollbar {
    height: 6px;
}

.categories::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.categories::-webkit-scrollbar-thumb {
    background: #1a3a5f; /* IE fallback for var(--primary) */
    border-radius: 3px;
}

/* IE scrollbar fallback */
.categories {
    scrollbar-width: thin;
    scrollbar-color: #1a3a5f #f0f0f0;
}

.category-btn {
    padding: 12px 20px;
    background: white;
    border: 2px solid #e9ecef; /* IE fallback for var(--border-light) */
    border-radius: 25px;
    font-weight: 600;
    color: #666;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    white-space: nowrap;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    min-width: -webkit-max-content;
    min-width: -moz-max-content;
    min-width: max-content;
    margin-right: 12px; /* IE fallback for gap */
}

.category-btn:last-child {
    margin-right: 0;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 58, 95, 0.1), transparent);
    -webkit-transition: left 0.5s;
    transition: left 0.5s;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn.active,
.category-btn:hover {
    background: #1a3a5f; /* IE fallback for gradient */
    background: linear-gradient(135deg, #1a3a5f, #0d1a2f);
    color: white;
    border-color: #1a3a5f; /* IE fallback for var(--primary) */
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 58, 95, 0.3);
}

/* Search Section */
.search-section {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
}

.search-bar {
    max-width: 500px;
    margin: 0 auto 20px;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.search-bar input {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 15px 55px 15px 20px;
    border: 2px solid #e9ecef; /* IE fallback for var(--border-light) */
    border-radius: 25px;
    font-size: 1rem;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.search-bar input:focus {
    outline: none;
    border-color: #1a3a5f; /* IE fallback for var(--primary) */
    box-shadow: 0 6px 20px rgba(26, 58, 95, 0.2);
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.search-btn {
    position: absolute;
    right: 45px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    background: #1a3a5f; /* IE fallback for gradient */
    background: linear-gradient(135deg, #1a3a5f, #0d1a2f);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.search-btn:hover {
    background: #d4af37; /* IE fallback for gradient */
    background: linear-gradient(135deg, #d4af37, #e6c130);
    -webkit-transform: translateY(-50%) scale(1.1);
    -ms-transform: translateY(-50%) scale(1.1);
    transform: translateY(-50%) scale(1.1);
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    background: #e74c3c; /* IE fallback for var(--danger) */
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.clear-search-btn:hover {
    background: #c0392b;
    -webkit-transform: translateY(-50%) scale(1.1);
    -ms-transform: translateY(-50%) scale(1.1);
    transform: translateY(-50%) scale(1.1);
}

.search-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-top: 15px;
    padding: 12px 20px;
    background: #f8f9fa; /* IE fallback for gradient */
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border-left: 4px solid #1a3a5f; /* IE fallback for var(--primary) */
    max-width: 500px;
    margin: 15px auto 0;
}

.search-results-text {
    font-weight: 600;
    color: #212529; /* IE fallback for var(--dark) */
    font-size: 0.9rem;
}

.clear-filters-btn {
    background: #e74c3c; /* IE fallback for var(--danger) */
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.clear-filters-btn:hover {
    background: #c0392b;
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
}

/* Cart System */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    -webkit-transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 0;
    overflow-y: auto;
    border-left: 4px solid #1a3a5f; /* IE fallback for var(--primary) */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #f8f9fa;
    background: #1a3a5f; /* IE fallback for gradient */
    background: linear-gradient(135deg, #1a3a5f, #0d1a2f);
    color: white;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-cart {
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 1.8rem;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.close-cart:hover {
    background: rgba(255,255,255,0.3);
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.cart-items {
    padding: 20px 30px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d; /* IE fallback for var(--text-muted) */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%;
}

.empty-cart i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.3;
    filter: alpha(opacity=30); /* IE8 */
    color: #1a3a5f; /* IE fallback for var(--primary) */
}

.empty-cart p {
    margin: 5px 0;
    font-size: 1rem;
}

.empty-cart p:first-of-type {
    font-weight: 600;
    color: #212529; /* IE fallback for var(--dark) */
    font-size: 1.2rem;
}

.cart-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border: 1px solid #f5f5f5;
}

.cart-item:hover {
    background: #f8f9fa;
    border-color: #e9ecef; /* IE fallback for var(--border-light) */
    -webkit-transform: translateX(5px);
    -ms-transform: translateX(5px);
    transform: translateX(5px);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    -o-object-fit: contain;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f9fa; /* IE fallback for var(--light) */
    padding: 6px;
    border: 2px solid #f0f0f0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-right: 12px; /* IE fallback for gap */
}

.cart-item-details {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #212529; /* IE fallback for var(--dark) */
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: #6c757d; /* IE fallback for var(--text-muted) */
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.cart-item-total {
    font-weight: 700;
    color: #1a3a5f; /* IE fallback for var(--primary) */
    font-size: 0.9rem;
}

.cart-item-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.quantity-btn {
    background: #f8f9fa; /* IE fallback for var(--light) */
    border: 1px solid #dee2e6;
    padding: 5px 8px;
    border-radius: 6px;
    color: #212529; /* IE fallback for var(--dark) */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    font-size: 0.8rem;
    margin-right: 6px; /* IE fallback for gap */
}

.quantity-btn:last-child {
    margin-right: 0;
}

.quantity-btn:hover {
    background: #e9ecef;
    border-color: #1a3a5f; /* IE fallback for var(--primary) */
    color: #1a3a5f; /* IE fallback for var(--primary) */
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.delete-item {
    background: #e74c3c; /* IE fallback for var(--danger) */
    color: white;
    padding: 5px 8px;
    border-radius: 6px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    font-size: 0.8rem;
    margin-left: 6px; /* IE fallback for gap */
}

.delete-item:hover {
    background: #c0392b;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
}

.cart-summary {
    border-top: 2px solid #eee;
    padding: 25px 30px;
    background: #f8f9fa;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.cart-total {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #212529; /* IE fallback for var(--dark) */
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: #d4af37; /* IE fallback for gradient */
    background: linear-gradient(135deg, #d4af37, #e6c130);
    color: #1a3a5f; /* IE fallback for var(--primary) */
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.checkout-btn:hover {
    background: #e6c130; /* IE fallback for gradient */
    background: linear-gradient(135deg, #e6c130, #d4af37);
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.clear-cart-btn {
    background: #e74c3c; /* IE fallback for var(--danger) */
    color: white;
    padding: 12px 20px;
    width: 100%;
    font-weight: 600;
    font-size: 0.9rem;
}

.clear-cart-btn:hover {
    background: #c0392b;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.cart-icon {
    position: fixed;
    top: 100px;
    right: 30px;
    background: #1a3a5f; /* IE fallback for gradient */
    background: linear-gradient(135deg, #1a3a5f, #0d1a2f);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 8px 25px rgba(26, 58, 95, 0.3);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border: 3px solid white;
}

.cart-icon:hover {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    background: #d4af37; /* IE fallback for gradient */
    background: linear-gradient(135deg, #d4af37, #e6c130);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d4af37; /* IE fallback for gradient */
    background: linear-gradient(135deg, #d4af37, #e6c130);
    color: #1a3a5f; /* IE fallback for var(--primary) */
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid white;
}

/* Enhanced Category Sections */
.category-section {
    padding: 80px 0;
    position: relative;
}

.category-section:nth-child(even) {
    background: #f8f9fa; /* IE fallback for gradient */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.category-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 50px;
    text-align: left;
}

.category-icon {
    width: 100px;
    height: 100px;
    background: #1a3a5f; /* IE fallback for gradient */
    background: linear-gradient(135deg, #1a3a5f, #0d1a2f);
    border-radius: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(26, 58, 95, 0.3);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    margin-right: 30px; /* IE fallback for gap */
}

.category-icon:hover {
    -webkit-transform: scale(1.05) rotate(5deg);
    -ms-transform: scale(1.05) rotate(5deg);
    transform: scale(1.05) rotate(5deg);
    background: #d4af37; /* IE fallback for gradient */
    background: linear-gradient(135deg, #d4af37, #e6c130);
}

.category-icon i {
    font-size: 3rem;
    color: white;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.category-icon:hover i {
    color: #1a3a5f; /* IE fallback for var(--primary) */
}

.category-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #212529; /* IE fallback for var(--dark) */
    /* Remove gradient text for IE compatibility */
    color: #1a3a5f;
}

/* Gradient text for modern browsers */
@supports (background-clip: text) or (-webkit-background-clip: text) {
    .category-title h2 {
        background: linear-gradient(135deg, #1a3a5f, #d4af37);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: #1a3a5f; /* Fallback */
    }
}

.category-title p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.5;
    max-width: 600px;
}

/* Category-specific styles */
#palm-oil-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: transparent; /* IE fallback for radial-gradient */
    pointer-events: none;
}

#peanut-butter-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: transparent; /* IE fallback for radial-gradient */
    pointer-events: none;
}

#natural-honey-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: transparent; /* IE fallback for radial-gradient */
    pointer-events: none;
}

/* Modern browsers radial gradients */
@supports (background: radial-gradient(circle, red, blue)) {
    #palm-oil-section::before {
        background: radial-gradient(circle, rgba(26, 58, 95, 0.1) 0%, transparent 70%);
    }
    
    #peanut-butter-section::before {
        background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    }
    
    #natural-honey-section::before {
        background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    }
}

/* Category-specific image backgrounds */
#palm-oil-section .product-image {
    background: #e3f2fd; /* IE fallback for gradient */
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

#peanut-butter-section .product-image {
    background: #fff3e0; /* IE fallback for gradient */
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

#natural-honey-section .product-image {
    background: #fffde7; /* IE fallback for gradient */
    background: linear-gradient(135deg, #fffde7, #fff9c4);
}

#crispy-gari-section .product-image,
#gari-coconut-section .product-image,
#gari-cinnamon-section .product-image,
#gari-turmeric-section .product-image,
#gari-ginger-section .product-image,
#gari-garlic-section .product-image,
#gari-beetroot-section .product-image {
    background: #f3e5f5; /* IE fallback for gradient */
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
}

/* Notifications */
.notification,
.checkout-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1001;
    -webkit-animation: slideInRight 0.5s ease;
    animation: slideInRight 0.5s ease;
    color: white;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    font-weight: 600;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    max-width: 380px;
    border-left: 4px solid rgba(255,255,255,0.3);
    font-size: 0.95rem;
}

.notification.success,
.checkout-notification.success {
    background: #27ae60; /* IE fallback for gradient */
    background: linear-gradient(135deg, #27ae60, #229954);
}

.notification.error,
.checkout-notification.error {
    background: #e74c3c; /* IE fallback for gradient */
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.notification.info,
.checkout-notification.info {
    background: #3498db; /* IE fallback for gradient */
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.notification.warning {
    background: #f39c12; /* IE fallback for gradient */
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

@-webkit-keyframes slideInRight {
    from {
        -webkit-transform: translateX(100px);
        transform: translateX(100px);
        opacity: 0;
        filter: alpha(opacity=0);
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
        filter: alpha(opacity=100);
    }
}

@keyframes slideInRight {
    from {
        -webkit-transform: translateX(100px);
        transform: translateX(100px);
        opacity: 0;
        filter: alpha(opacity=0);
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
        filter: alpha(opacity=100);
    }
}

/* Image fallbacks and loading */
.product-image:not([src]),
.product-image[src=""],
.product-image[src*="undefined"],
.product-image[src*="null"] {
    background: #f8f9fa !important; /* IE fallback for gradient */
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.product-image:not([src])::after,
.product-image[src=""]::after,
.product-image[src*="undefined"]::after,
.product-image[src*="null"]::after {
    content: "📷 Image";
    color: #999;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-image.loading {
    background: #f0f0f0; /* IE fallback for gradient */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    -webkit-animation: loading 1.5s infinite;
    animation: loading 1.5s infinite;
}

@-webkit-keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-animation: fadeIn 0.3s ease-in-out;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    -webkit-animation: slideUp 0.3s ease-out;
    animation: slideUp 0.3s ease-out;
    border: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
}

.modal-content img {
    width: 100%;
    height: 400px;
    -o-object-fit: contain;
    object-fit: contain;
    background: #f8f9fa; /* IE fallback for var(--light) */
}

.close-modal,
.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #333;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1003;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.close-modal:hover,
.close:hover {
    background: white;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.image-info {
    padding: 20px;
    text-align: center;
    background: white;
}

.image-info h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.4rem;
}

.image-info p {
    margin: 0;
    color: #1a3a5f; /* IE fallback for var(--primary) */
    font-size: 1.2rem;
    font-weight: 600;
}

/* Checkout System */
.checkout {
    padding: 40px 0;
    background: #f8fafc; /* IE fallback for gradient */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.checkout-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.checkout-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin-right: 40px; /* IE fallback for gap */
}

.order-summary {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
    width: 400px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.checkout-form h3 {
    color: #2c3e50; /* IE fallback for var(--text-dark) */
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.checkout-form h3:not(:first-child) {
    margin-top: 35px;
    padding-top: 35px;
    border-top: 2px solid #e9ecef; /* IE fallback for var(--border-light) */
}

.form-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-left: -10px;
    margin-right: -10px;
}

.form-row > * {
    width: 50%;
    padding: 0 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-weight: 600;
    color: #2c3e50; /* IE fallback for var(--text-dark) */
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-label i {
    color: #1a3a5f; /* IE fallback for var(--primary) */
    width: 16px;
    margin-right: 10px; /* IE fallback for gap */
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef; /* IE fallback for var(--border-light) */
    border-radius: 12px;
    font-size: 1rem;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    background: #f8f9fa; /* IE fallback for var(--light) */
}

.form-control:focus {
    outline: none;
    border-color: #1a3a5f; /* IE fallback for var(--primary) */
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 58, 95, 0.1);
}

.form-control.error {
    border-color: #e74c3c; /* IE fallback for var(--danger) */
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Payment Methods */
.payment-methods {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin: 25px 0;
}

.payment-method {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 20px;
    border: 2px solid #e9ecef; /* IE fallback for var(--border-light) */
    border-radius: 12px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 15px; /* IE fallback for gap */
}

.payment-method:last-child {
    margin-bottom: 0;
}

.payment-method:hover {
    border-color: #1a3a5f; /* IE fallback for var(--primary) */
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 58, 95, 0.1);
}

.payment-method input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    margin-right: 15px; /* IE fallback for gap */
}

.payment-method label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-weight: 600;
    color: #2c3e50; /* IE fallback for var(--text-dark) */
    cursor: pointer;
    margin: 0;
    font-size: 1.1rem;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.payment-method i {
    font-size: 1.3rem;
    color: #1a3a5f; /* IE fallback for var(--primary) */
    width: 20px;
    margin-right: 12px; /* IE fallback for gap */
}

.payment-method input[type="radio"]:checked + label {
    color: #1a3a5f; /* IE fallback for var(--primary) */
}

.payment-instructions {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa; /* IE fallback for var(--light) */
    border-radius: 12px;
    border-left: 4px solid #1a3a5f; /* IE fallback for var(--primary) */
}

.momo-networks, .card-networks {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-top: 15px;
}

.network-badge {
    background: #1a3a5f; /* IE fallback for var(--primary) */
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 10px; /* IE fallback for gap */
}

.network-badge:last-child {
    margin-right: 0;
}

.card-networks i {
    font-size: 1.8rem;
    color: #666;
    margin-right: 10px;
}

/* Order Summary */
.order-summary h3 {
    color: #2c3e50; /* IE fallback for var(--text-dark) */
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid #e9ecef; /* IE fallback for var(--border-light) */
    padding-bottom: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.order-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 25px;
}

.order-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 15px;
    border: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
    border-radius: 12px;
    margin-bottom: 12px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.order-item:hover {
    border-color: #1a3a5f; /* IE fallback for var(--primary) */
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 95, 0.1);
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    background: #f8f9fa; /* IE fallback for var(--light) */
    border: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
    margin-right: 15px; /* IE fallback for gap */
}

.order-item-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.order-item-details {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    color: #2c3e50; /* IE fallback for var(--text-dark) */
    display: block;
    margin-bottom: 5px;
}

.order-item-quantity {
    font-size: 0.875rem;
    color: #6c757d; /* IE fallback for var(--text-muted) */
}

.order-item-price {
    font-weight: 700;
    color: #1a3a5f; /* IE fallback for var(--primary) */
    font-size: 1.1rem;
}

.order-totals {
    border-top: 2px solid #e9ecef; /* IE fallback for var(--border-light) */
    padding-top: 20px;
}

.total-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 10px 0;
    color: #2c3e50; /* IE fallback for var(--text-dark) */
}

.total-row.grand-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a3a5f; /* IE fallback for var(--primary) */
    border-top: 2px solid #e9ecef; /* IE fallback for var(--border-light) */
    margin-top: 10px;
    padding-top: 15px;
}

/* Field Errors */
.field-error {
    color: #e74c3c; /* IE fallback for var(--danger) */
    font-size: 0.875rem;
    margin-top: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

/* Empty Cart */
.empty-cart-message {
    text-align: center;
    padding: 40px;
    color: #6c757d; /* IE fallback for var(--text-muted) */
}

.empty-cart-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
    filter: alpha(opacity=50); /* IE8 */
    color: #1a3a5f; /* IE fallback for var(--primary) */
}

/* MoMo Payment Instructions */
.momo-payment-instructions {
    text-align: center;
}

.momo-icon {
    font-size: 3.5rem;
    color: #ff6b00;
    margin-bottom: 20px;
}

.payment-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a3a5f; /* IE fallback for var(--primary) */
    margin: 20px 0;
    /* Remove gradient text for IE */
    color: #1a3a5f;
}

/* Gradient text for modern browsers */
@supports (background-clip: text) or (-webkit-background-clip: text) {
    .payment-amount {
        background: linear-gradient(135deg, #1a3a5f 0%, #d4af37 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: #1a3a5f; /* Fallback */
    }
}

.payment-details {
    background: #f8f9fa; /* IE fallback for var(--light) */
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    text-align: left;
    border: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
}

.detail-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-item span:first-child {
    font-weight: 600;
    color: #2c3e50; /* IE fallback for var(--text-dark) */
}

.detail-item span:last-child {
    font-weight: 700;
    color: #1a3a5f; /* IE fallback for var(--primary) */
}

.payment-steps {
    margin: 30px 0;
}

.step {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa; /* IE fallback for var(--light) */
    border-radius: 10px;
    border-left: 4px solid #1a3a5f; /* IE fallback for var(--primary) */
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.step:hover {
    -webkit-transform: translateX(5px);
    -ms-transform: translateX(5px);
    transform: translateX(5px);
    background: rgba(26, 58, 95, 0.05);
}

.step i {
    color: #1a3a5f; /* IE fallback for var(--primary) */
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    margin-right: 15px; /* IE fallback for gap */
}

.step span {
    font-weight: 500;
    color: #2c3e50; /* IE fallback for var(--text-dark) */
}

.payment-status {
    margin: 25px 0;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.status-waiting {
    color: #f39c12;
}

.status-success {
    color: #27ae60;
}

.status-failed {
    color: #e74c3c;
}

.status-timeout {
    color: #f39c12;
}

.status-waiting .spinner,
.status-success i,
.status-failed i,
.status-timeout i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.status-waiting .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f39c12;
    border-radius: 50%;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

/* Button Styles */
.btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary {
    background: #1a3a5f; /* IE fallback for gradient */
    background: linear-gradient(135deg, #1a3a5f 0%, #0d1a2f 100%);
    color: white;
}

.btn-primary:hover {
    background: #d4af37; /* IE fallback for gradient */
    background: linear-gradient(135deg, #d4af37 0%, #e6c130 100%);
    color: #1a3a5f; /* IE fallback for var(--primary) */
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Button Spinner */
.button-spinner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.button-spinner .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    margin-right: 10px; /* IE fallback for gap */
}

/* Processing Overlay */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 999;
}

.processing-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 450px;
    border: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
}

.processing-content h3 {
    color: #2c3e50; /* IE fallback for var(--text-dark) */
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.processing-content p {
    color: #6c757d; /* IE fallback for var(--text-muted) */
    margin-bottom: 0;
    line-height: 1.5;
}

.processing-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a3a5f; /* IE fallback for var(--primary) */
    border-radius: 50%;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

/* Order Confirmation */
.order-confirmation {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 0;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px;
    background: #f8fafc; /* IE fallback for gradient */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    border-left: 5px solid #27ae60; /* IE fallback for var(--success) */
    border: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
}

.confirmation-header i {
    font-size: 5rem;
    color: #27ae60; /* IE fallback for var(--success) */
    margin-bottom: 25px;
    -webkit-animation: bounceIn 1s ease-out;
    animation: bounceIn 1s ease-out;
}

@-webkit-keyframes bounceIn {
    0% { -webkit-transform: scale(0.3); transform: scale(0.3); opacity: 0; filter: alpha(opacity=0); }
    50% { -webkit-transform: scale(1.05); transform: scale(1.05); }
    70% { -webkit-transform: scale(0.9); transform: scale(0.9); }
    100% { -webkit-transform: scale(1); transform: scale(1); opacity: 1; filter: alpha(opacity=100); }
}

@keyframes bounceIn {
    0% { -webkit-transform: scale(0.3); transform: scale(0.3); opacity: 0; filter: alpha(opacity=0); }
    50% { -webkit-transform: scale(1.05); transform: scale(1.05); }
    70% { -webkit-transform: scale(0.9); transform: scale(0.9); }
    100% { -webkit-transform: scale(1); transform: scale(1); opacity: 1; filter: alpha(opacity=100); }
}

.confirmation-header h1 {
    color: #2c3e50; /* IE fallback for var(--text-dark) */
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 800;
}

.confirmation-subtitle {
    font-size: 1.3rem;
    color: #6c757d; /* IE fallback for var(--text-muted) */
    font-weight: 500;
}

.confirmation-details {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -12.5px 50px;
}

.order-summary-card,
.customer-info-card,
.payment-info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    width: calc(33.333% - 25px);
    margin: 0 12.5px 25px;
}

.order-summary-card:hover,
.customer-info-card:hover,
.payment-info-card:hover {
    -webkit-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.order-summary-card {
    border-left: 5px solid #3498db;
}

.customer-info-card {
    border-left: 5px solid #9b59b6;
}

.payment-info-card {
    border-left: 5px solid #27ae60;
}

.confirmation-details h3 {
    color: #2c3e50; /* IE fallback for var(--text-dark) */
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    border-bottom: 2px solid #e9ecef; /* IE fallback for var(--border-light) */
    padding-bottom: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.confirmation-details p {
    margin-bottom: 12px;
    color: #2c3e50; /* IE fallback for var(--text-dark) */
    line-height: 1.5;
}

.confirmation-details strong {
    color: #1a3a5f; /* IE fallback for var(--primary) */
}

.confirmation-actions {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
}

.action-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 30px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.action-buttons > * {
    margin: 0 10px 10px;
}

.confirmation-note {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #27ae60;
    text-align: left;
}

.confirmation-note p {
    margin: 0;
    color: #2d5016;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-weight: 500;
}

.confirmation-note i {
    color: #27ae60;
    font-size: 1.2rem;
    margin-right: 10px; /* IE fallback for gap */
}

.support-info {
    text-align: center;
    padding: 30px;
    background: #f8fafc; /* IE fallback for gradient */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    border: 1px solid #e9ecef; /* IE fallback for var(--border-light) */
}

.support-info h4 {
    color: #2c3e50; /* IE fallback for var(--text-dark) */
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.support-info > p {
    color: #6c757d; /* IE fallback for var(--text-muted) */
    margin-bottom: 20px;
}

.support-contacts {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 15px;
    margin-left: -15px;
    margin-right: -15px;
}

.support-contacts span {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: #2c3e50; /* IE fallback for var(--text-dark) */
    font-weight: 500;
    margin: 0 15px 10px;
}

.support-contacts i {
    color: #1a3a5f; /* IE fallback for var(--primary) */
    margin-right: 8px; /* IE fallback for gap */
}

/* Animations */
@-webkit-keyframes fadeIn {
    from { opacity: 0; filter: alpha(opacity=0); }
    to { opacity: 1; filter: alpha(opacity=100); }
}

@keyframes fadeIn {
    from { opacity: 0; filter: alpha(opacity=0); }
    to { opacity: 1; filter: alpha(opacity=100); }
}

@-webkit-keyframes slideUp {
    from { 
        opacity: 0;
        filter: alpha(opacity=0);
        -webkit-transform: translateY(50px);
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        filter: alpha(opacity=100);
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        filter: alpha(opacity=0);
        -webkit-transform: translateY(50px);
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        filter: alpha(opacity=100);
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@-webkit-keyframes modalSlideIn {
    from { -webkit-transform: translateY(-50px); transform: translateY(-50px); opacity: 0; filter: alpha(opacity=0); }
    to { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; filter: alpha(opacity=100); }
}

@keyframes modalSlideIn {
    from { -webkit-transform: translateY(-50px); transform: translateY(-50px); opacity: 0; filter: alpha(opacity=0); }
    to { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; filter: alpha(opacity=100); }
}

/* Focus states for accessibility */
.category-btn:focus,
.add-to-cart:focus,
.checkout-btn:focus,
.clear-cart-btn:focus,
.quantity-btn:focus,
.delete-item:focus,
.search-btn:focus,
.clear-search-btn:focus,
.clear-filters-btn:focus,
.search-bar input:focus,
.form-control:focus {
    outline: 2px solid #1a3a5f; /* IE fallback for var(--primary) */
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .cart-icon,
    .category-navigation,
    .search-section,
    .ecommerce-features {
        display: none;
    }
    
    .products-header {
        background: none;
        color: black;
        margin-top: 0;
        padding: 40px 0;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .categories {
        gap: 10px;
    }
    
    .category-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .products-grid > * {
        width: calc(33.333% - 25px);
    }
    
    .features-grid > * {
        width: calc(50% - 40px);
    }
    
    .confirmation-details > * {
        width: calc(50% - 25px);
    }
}

@media (max-width: 992px) {
    .category-navigation {
        top: 80px;
    }
    
    .categories {
        gap: 8px;
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .category-header {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .category-icon {
        width: 80px;
        height: 80px;
        margin-right: 0;
    }
    
    .category-icon i {
        font-size: 2.5rem;
    }
    
    .category-title h2 {
        font-size: 2rem;
    }
    
    .cart-sidebar {
        width: 380px;
    }
    
    .products-grid > * {
        width: calc(50% - 25px);
    }
    
    .checkout-container {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .checkout-form {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .order-summary {
        width: 100%;
    }
    
    .confirmation-details > * {
        width: calc(100% - 25px);
    }
}

@media (max-width: 768px) {
    .products-header {
        padding: 100px 0 60px;
        background-attachment: scroll;
    }
    
    .products-header h1 {
        font-size: 2.5rem;
    }
    
    .category-section {
        padding: 60px 0;
    }
    
    .categories {
        gap: 6px;
        padding: 8px 3px;
    }
    
    .category-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    
    .category-title h2 {
        font-size: 1.8rem;
    }
    
    .category-title p {
        font-size: 1.1rem;
    }
    
    .products-grid > * {
        width: calc(100% - 25px);
    }
    
    .product-image {
        height: 180px;
        padding: 15px;
    }
    
    .product-info {
        padding: 15px;
        min-height: 180px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-header {
        padding: 20px 25px;
    }
    
    .cart-items {
        padding: 15px 25px;
    }
    
    .cart-summary {
        padding: 20px 25px;
    }
    
    .cart-item {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }
    
    .cart-item-image {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .cart-item-actions {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    
    .notification,
    .checkout-notification {
        right: 15px;
        left: 15px;
        max-width: none;
        padding: 15px 20px;
    }
    
    .search-bar {
        margin: 0 15px 20px;
    }
    
    .search-info {
        margin: 15px 15px 0;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
    }
    
    .features-grid > * {
        width: calc(100% - 40px);
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .cart-icon {
        width: 60px;
        height: 60px;
        top: 90px;
        right: 20px;
    }
    
    .checkout-form {
        padding: 30px 25px;
    }
    
    .form-row {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
    }
    
    .form-row > * {
        width: 100%;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .form-row > *:last-child {
        margin-bottom: 0;
    }
    
    .order-summary {
        padding: 25px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .confirmation-details {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .action-buttons {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
    
    .action-buttons > * {
        margin: 0 0 10px;
        width: 100%;
        max-width: 250px;
    }
    
    .action-buttons > *:last-child {
        margin-bottom: 0;
    }
    
    .support-contacts {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .payment-method label {
        font-size: 1rem;
    }
    
    .modal-content img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .category-navigation {
        padding: 20px 0;
    }
    
    .categories {
        gap: 4px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .category-title h2 {
        font-size: 1.6rem;
    }
    
    .category-title p {
        font-size: 1rem;
    }
    
    .products-grid > * {
        width: calc(100% - 25px);
    }
    
    .product-image {
        height: 160px;
        padding: 12px;
    }
    
    .product-info {
        min-height: 170px;
        padding: 12px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .image-overlay i {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .cart-header h3 {
        font-size: 1.3rem;
    }
    
    .cart-total {
        font-size: 1.1rem;
    }
    
    .checkout-btn,
    .clear-cart-btn {
        padding: 14px;
        font-size: 0.9rem;
    }
    
    .search-bar input {
        padding: 12px 45px 12px 15px;
    }
    
    .search-btn {
        width: 35px;
        height: 35px;
        right: 40px;
    }
    
    .clear-search-btn {
        width: 28px;
        height: 28px;
        right: 6px;
        font-size: 0.7rem;
    }
    
    .products-header h1 {
        font-size: 2rem;
    }
    
    .products-header p {
        font-size: 1.1rem;
    }
    
    .checkout-form {
        padding: 25px 20px;
    }
    
    .order-summary {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header,
    .modal-footer {
        padding: 20px;
    }
    
    .payment-amount {
        font-size: 2rem;
    }
    
    .confirmation-header {
        padding: 30px 20px;
    }
    
    .confirmation-header h1 {
        font-size: 2rem;
    }
    
    .confirmation-actions {
        padding: 30px 20px;
    }
    
    .confirmation-details h3 {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* IE-specific fixes */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE 10+ specific styles */
    .products-header {
        background: #1a3a5f;
    }
    
    /* Fix for flexbox issues in IE */
    .products-grid,
    .features-grid,
    .confirmation-details {
        display: block;
    }
    
    .products-grid > *,
    .features-grid > *,
    .confirmation-details > * {
        display: inline-block;
        vertical-align: top;
        margin-right: 20px;
        margin-bottom: 20px;
    }
    
    /* Clear CSS variables for IE */
    .product-card {
        border-color: #e9ecef !important;
    }
    
    .add-to-cart {
        background: #1a3a5f !important;
    }
    
    .category-btn.active,
    .category-btn:hover {
        background: #1a3a5f !important;
    }
    
    /* Fix for sticky positioning in IE */
    .category-navigation {
        position: relative;
        top: auto;
    }
    
    /* Improve text rendering in IE */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Additional IE8-9 fixes using conditional comments */
/* These would be added in HTML, but documented here for reference */
/*
<!--[if lte IE 9]>
<link rel="stylesheet" type="text/css" href="ie-fixes.css">
<![endif]-->
*/

/* IE11 specific fixes */
_:-ms-fullscreen, :root .product-card { 
    min-height: 400px; /* Ensure consistent height in IE11 */
}

_:-ms-fullscreen, :root .products-grid > * { 
    margin-bottom: 25px; /* Ensure proper spacing */
}