/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 167, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 0, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.mobile-menu-toggle .fa-bars {
    display: block;
}

.mobile-menu-toggle .fa-times {
    display: none;
}

.mobile-menu-toggle.active .fa-bars {
    display: none;
}

.mobile-menu-toggle.active .fa-times {
    display: block;
}

.header-top {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: rotate(-3deg);
}

/* Legacy H1 support */
.logo h1 {
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: bold;
}

.search-bar {
    flex: 1;
    max-width: 500px;
}

.search-bar form {
    display: flex;
    position: relative;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.search-bar button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background: linear-gradient(135deg, #ffa700 0%, #ff0000 100%);
    transform: translateY(-1px);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-actions a:hover {
    color: #ff0000;
    transform: translateY(-1px);
}

.cart-link {
    position: relative;
}

.cart-count {
    background: #ff0000;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.search-bar button:hover {
    background: linear-gradient(135deg, #ffa700 0%, #ff0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.header-actions a:hover {
    background: #f8f9fa;
}

.cart-link {
    position: relative;
}

.cart-count {
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -5px;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

/* Navigation */
.main-nav {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
    position: relative;
    display: block;
}

.nav-menu a:hover {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.05);
    transform: translateY(-1px);
}

.nav-menu a.active {
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* Hero Section with Carousel */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.7) 0%, rgba(255, 167, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 3;
    pointer-events: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 30px;
}

.carousel-btn.next {
    right: 30px;
}

.carousel-btn i {
    font-size: 1.2rem;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn.prev {
        left: 15px;
    }
    
    .carousel-btn.next {
        right: 15px;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-btn i {
        font-size: 1rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffa700 0%, #ff0000 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-outline {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.btn-outline:hover {
    background: #e74c3c;
    color: white;
}

/* Product Detail Page */
.product-detail {
    padding: 40px 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.breadcrumb {
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ff0000;
}

.breadcrumb span {
    color: #2c3e50;
    font-weight: 600;
}

.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 30px 30px;
}

/* Product Images Section */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
    border: 1px solid #e9ecef;
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.main-image-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.main-image-container::after {
    content: '🔍 Click to zoom';
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.main-image-container:hover::after {
    opacity: 1;
}

.main-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image-container:hover .main-image img {
    transform: scale(1.02);
}

.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    backdrop-filter: blur(5px);
    pointer-events: auto;
}

.zoom-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    pointer-events: auto;
}

.zoom-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.image-zoom-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none; /* Prevent image from capturing clicks */
}

.image-thumbnails {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail:hover {
    border-color: #ff0000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.25);
}

.thumbnail.active {
    border-color: #ff0000;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

.thumbnail.active::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff0000;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

/* Product Details Section */
.product-details {
    padding: 20px 0;
}

.product-details h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.seller-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff0000;
}

.seller-info p {
    margin: 0;
    color: #6c757d;
}

.seller-info strong {
    color: #2c3e50;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating .fas {
    color: #ddd;
    font-size: 16px;
}

.rating .fas.filled {
    color: #f39c12;
}

.rating-text {
    font-weight: 600;
    color: #2c3e50;
    margin-left: 8px;
}

.review-count {
    color: #6c757d;
    font-size: 0.9rem;
}

.price-section {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff9e6 100%);
    border-radius: 12px;
    border: 1px solid #ffe6e6;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}

.add-to-cart-btn,
.buy-now-btn {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    color: white;
}

.buy-now-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.add-to-cart-btn:hover:not(:disabled),
.buy-now-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.add-to-cart-btn:disabled,
.buy-now-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.original-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: #6c757d;
    margin-bottom: 10px;
}

.discount {
    display: inline-block;
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.stock-info {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.in-stock {
    color: #28a745;
    font-weight: 600;
}

.out-of-stock {
    color: #dc3545;
    font-weight: 600;
}

.color-selection {
    margin-bottom: 25px;
}

.color-selection h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.color-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.color-option:hover {
    border-color: #ff0000;
    background: #fff5f5;
}

.color-option.selected {
    border-color: #ff0000;
    background: #fff5f5;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.color-option:hover .color-swatch {
    transform: scale(1.1);
}

.color-name {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
}

.color-stock {
    font-size: 0.8rem;
    color: #6c757d;
}

.product-description {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff0000;
}

.product-description h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.product-description p {
    line-height: 1.6;
    color: #6c757d;
}



.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    margin-left: 0;
    align-self: flex-start;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    margin-left: 0;
    align-self: flex-start;
}

.quantity-selector label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 80px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    padding: 12px 16px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #6c757d;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #e9ecef;
    color: #ff0000;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#quantity {
    width: 60px;
    padding: 12px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.add-to-cart-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    color: white;
    white-space: nowrap;
    min-width: 140px;
}

.add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.add-to-cart-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive Design for Product Detail */
@media (max-width: 768px) {
    .product-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px 20px;
    }
    
    .main-image-container {
        height: 350px;
    }
    
    .product-details h1 {
        font-size: 1.5rem;
    }
    
    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .add-to-cart-btn {
        width: 100%;
        min-width: auto;
    }
    
    .image-thumbnails {
        justify-content: center;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .color-options {
        justify-content: center;
    }
    

}

@media (max-width: 480px) {
    .main-image-container {
        height: 300px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-details h1 {
        font-size: 1.3rem;
    }
    
    .current-price {
        font-size: 1.8rem;
    }
}

/* Product Grid */
.featured-products {
    padding: 60px 0;
    background: #ffffff;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #ff0000;
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-image .no-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    border: 2px dashed #dee2e6;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-bottom: 0;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.seller {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.rating {
    margin-bottom: 0;
}

.rating .fas {
    color: #ddd;
    font-size: 14px;
}

.rating .fas.filled {
    color: #f39c12;
}

.rating span {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-left: 5px;
}

.price {
    margin-bottom: 0;
    margin-top: 0px;
}

.current-price {
    font-size: 1.1rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.original-price {
    text-decoration: line-through;
    color: #7f8c8d;
    margin-left: 10px;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    flex-wrap: nowrap;
}

.product-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Categories */
.categories {
    padding: 60px 0;
    background: #f8f9fa;
}

.categories h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.category-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: #ff0000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.category-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Category Page Styles */
.category-header {
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.category-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-info h1 i {
    font-size: 2rem;
}

.category-info p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.product-count {
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.no-products i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-products h3 {
    color: #666;
    margin-bottom: 10px;
}

.no-products p {
    color: #888;
    margin-bottom: 20px;
}

/* Active Navigation Link */
.nav-menu a.active {
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    border-top: 1px solid #34495e;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #bdc3c7;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

/* Cart Page */
.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Admin Dashboard */
.admin-sidebar {
    background: #2c3e50;
    color: white;
    width: 250px;
    min-height: 100vh;
    padding: 20px 0;
    border-right: 1px solid #34495e;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.admin-sidebar h2 {
    padding: 0 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-menu {
    list-style: none;
}

.admin-menu li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background: #34495e;
}

.admin-content {
    flex: 1;
    padding: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-card h3 {
    font-size: 2rem;
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-card p {
    color: #7f8c8d;
    font-weight: 600;
}

/* Tables */
.table-container {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

tr:hover {
    background: #f8f9fa;
}

/* Additional Modern Effects */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.product-card:hover {
    animation: float 3s ease-in-out infinite;
}

.category-card:hover {
    animation: float 3s ease-in-out infinite;
}

/* Improved Text Readability */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
}

p {
    color: #d3c5c5;
    line-height: 1.6;
}

/* Better Menu Styling */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
    position: relative;
    display: block;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.05);
    transform: translateY(-1px);
}

.nav-menu a.active {
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* Improved Button Styling */
.btn {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Better Form Styling */
.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
    outline: none;
}

/* Glass morphism effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.1);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ffa700 0%, #ff0000 100%);
}

/* Floating Mini Cart */
.floating-mini-cart {
    position: fixed;
    top: 80px;
    right: -400px;
    width: 380px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e9ecef;
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.floating-mini-cart.show {
    right: 20px;
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.mini-cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.mini-cart-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mini-cart-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.mini-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    max-height: 400px;
}

.mini-cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f1f3f4;
    align-items: center;
}

.mini-cart-item:last-child {
    border-bottom: none;
}

.mini-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.mini-cart-item-details {
    flex: 1;
}

.mini-cart-item-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.mini-cart-item-price {
    color: #ff0000;
    font-weight: 600;
    font-size: 0.9rem;
}

.mini-cart-item-qty {
    color: #6c757d;
    font-size: 0.8rem;
}

.mini-cart-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.mini-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.total-amount {
    color: #ff0000;
    font-size: 1.2rem;
}

.mini-cart-actions {
    display: flex;
    gap: 10px;
}

.mini-cart-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.mini-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.mini-cart-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #e9ecef;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 15px;
}

.notification-content span {
    flex: 1;
    font-weight: 500;
}

.notification-content button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-content button:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-success .notification-content {
    color: #155724;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-error .notification-content {
    color: #721c24;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-info .notification-content {
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-top .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    /* Logo responsive sizing */
    .logo-img {
        height: 40px;
        max-width: 180px;
    }
    
    .search-bar {
        max-width: 100%;
        order: 2;
    }
    
    .header-actions {
        order: 3;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .main-nav .container {
        justify-content: space-between;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 80px 0 20px 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-radius: 0;
        display: block;
        width: 100%;
        font-size: 16px;
        font-weight: 500;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 0, 0, 0.1);
        transform: none;
        color: #ff0000;
    }
    
    .nav-menu a.active {
        background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
        color: white;
    }
    
    /* Overlay for mobile menu */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-sidebar {
        width: 100%;
        min-height: auto;
    }
    
    .admin-content {
        padding: 20px;
    }
    
    .floating-mini-cart {
        width: 90vw;
        right: -90vw;
    }
    
    .floating-mini-cart.show {
        right: 5vw;
    }
    
    .action-buttons {
        min-width: auto;
        width: 100%;
    }
    
    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-actions .btn {
        padding: 6px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Logo extra small screen sizing */
    .logo-img {
        height: 35px;
        max-width: 150px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-actions {
        flex-direction: row;
        gap: 6px;
    }
    
    .product-actions .btn {
        padding: 5px 6px;
        font-size: 10px;
    }
}

/* Checkout Page Styles */
.checkout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-bottom: 50px;
}

.checkout-left {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.shipping-form {
    padding: 30px;
}

.shipping-form h2 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 1.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

.checkout-right {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.payment-section {
    padding: 30px;
}

.payment-section h2 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 1.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

.order-summary-section {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.order-summary-section h2 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 1.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

.order-summary-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #ff0000;
    background: #fff5f5;
}

.payment-method input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.payment-method label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.payment-method i {
    margin-right: 10px;
    font-size: 18px;
    color: #ff0000;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
}

.checkbox-label a {
    color: #ff0000;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

.cart-items {
    display: grid;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.item-image {
    width: 80px;
    height: 80px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.item-details h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.item-details .item-price {
    color: #ff0000;
    font-weight: 600;
    margin: 5px 0;
}

.item-details .item-quantity {
    color: #6c757d;
    font-size: 14px;
    margin: 5px 0;
}

.item-total {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.order-totals {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.total-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.total-row.total {
    font-weight: 700;
    font-size: 18px;
    color: #ff0000;
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
    margin-top: 15px;
}

.security-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e8;
    border-radius: 8px;
    border: 1px solid #c3e6c3;
}

.security-info i {
    color: #28a745;
    font-size: 20px;
}

.security-info p {
    margin: 0;
    color: #155724;
    font-size: 14px;
}

/* Responsive Design for Checkout */
@media (max-width: 1024px) {
    /* Logo tablet sizing */
    .logo-img {
        height: 45px;
        max-width: 190px;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .order-summary-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .checkout-container {
        padding: 15px;
    }
    
    .shipping-form,
    .payment-section,
    .order-summary-section {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .item-image {
        width: 100%;
        height: 200px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
}

/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: -400px !important;
    width: 400px !important;
    height: 100vh !important;
    background: white !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1) !important;
    z-index: 10000 !important;
    transition: right 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.cart-sidebar.active {
    right: 0 !important;
}

.cart-sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.cart-sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-sidebar-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-sidebar-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-sidebar-item .item-details {
    flex: 1;
}

.cart-sidebar-item h4 {
    font-size: 0.95rem;
    margin: 0 0 5px 0;
    color: #333;
}

.cart-sidebar-item .item-price {
    font-size: 0.85rem;
    color: #666;
    margin: 3px 0;
}

.cart-sidebar-item .item-total {
    font-size: 1rem;
    font-weight: 600;
    color: #ff0000;
    margin: 5px 0 0 0;
}

.cart-sidebar-item .remove-item {
    position: absolute;
    top: 15px;
    right: 0;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-sidebar-item .remove-item:hover {
    background: #dc3545;
    color: white;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.empty-cart p {
    font-size: 1.1rem;
}

.cart-sidebar-footer {
    padding: 20px;
    border-top: 2px solid #eee;
    background: #f8f9fa;
}

.cart-sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.cart-sidebar-total span:last-child {
    color: #ff0000;
}

.cart-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-sidebar-actions .btn {
    width: 100%;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cart-sidebar-actions .btn-primary {
    background: linear-gradient(135deg, #ff0000 0%, #ffa700 100%);
    color: white;
    border: none;
}

.cart-sidebar-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.cart-sidebar-actions .btn-secondary {
    background: white;
    color: #666;
    border: 2px solid #ddd;
}

.cart-sidebar-actions .btn-secondary:hover {
    border-color: #ff0000;
    color: #ff0000;
}

.cart-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    display: none !important;
}

.cart-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Cart count animation */
.cart-count {
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100% !important;
        right: -100% !important;
    }
    
    .cart-sidebar.active {
        right: 0 !important;
    }
}

