:root {
    --primary-color: #232F3E;
    /* Amazon Dark Navy */
    --primary-hover: #131A22;
    --primary-light: #37475A;
    --accent-color: #FA8900;
    /* Amazon Orange Action */
    --accent-hover: #E37C00;
    --secondary-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #d0021b;
    --dark-bg: #131A22;
    --light-bg: #E3E6E6;
    /* Light Gray Background */
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #565959;
    --border-radius: 4px;
    --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 4px 8px 0 rgba(0, 0, 0, 0.2);

    /* Bootstrap Overrides */
    --bs-primary: #232F3E;
    --bs-primary-rgb: 35, 47, 62;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

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

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

body {
    font-family: 'Outfit', 'Cairo', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
}

/* Navbar */
.navbar-custom {
    background: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: #ffffff !important;
    transition: color 0.2s, opacity 0.2s;
    opacity: 0.9;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    opacity: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    border-radius: 0 0 50px 50px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://img.freepik.com/free-vector/white-abstract-background_23-2148810113.jpg');
    opacity: 0.1;
    background-size: cover;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Premium Product Card */
.product-card {
    background: var(--card-bg);
    border: none;
    border-radius: 20px !important;
    /* Increased for premium look */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.premium-img-container {
    position: relative;
    overflow: hidden;
    background: #fdfdfd;
    /* Subtle off-white for better product contrast */
    border-radius: 20px 20px 0 0;
}

.premium-img-container img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .premium-img-container img {
    transform: scale(1.08);
    /* Sophisticated zoom */
}

/* Glassmorphism Badge */
.glass-badge {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #111 !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 5px 12px;
}

.glass-badge-danger {
    background: rgba(220, 53, 69, 0.15) !important;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545 !important;
}

.price-tag {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.35rem;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-premium:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-amazon {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-hover);
    color: #111;
    font-weight: 700;
    border-radius: 99px;
    /* Pill shape */
    transition: all 0.2s ease;
}

.btn-amazon:hover {
    background-color: var(--accent-hover);
    color: black;
    transform: scale(1.02);
}

/* Checkout & Cart */
.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Animation Utilities for Hero */
.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end {
    transform: translateX(0);
}

/* Ensure glassmorphism works in all contexts */
@supports not (backdrop-filter: blur(12px)) {
    .hero-glass-card {
        background: rgba(255, 255, 255, 0.95) !important;
    }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Navbar Toggle Icon */
.navbar-toggler {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background 0.3s;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Mobile Styles (max-width: 767px) */
@media (max-width: 767.98px) {
    /* Navbar Mobile */
    .navbar-custom {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-collapse {
        background: var(--primary-hover);
        margin: 0.75rem -0.75rem -0.5rem;
        padding: 1rem;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-nav {
        align-items: flex-start !important;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: background 0.2s;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .btn {
        width: 100%;
        margin: 0.25rem 0 !important;
        text-align: center;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 60px 0;
        border-radius: 0 0 30px 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    /* Product Cards Mobile */
    .product-card {
        border-radius: 15px !important;
    }
    
    .premium-img-container {
        height: 180px !important;
    }
    
    .price-tag {
        font-size: 1.1rem;
    }
    
    /* Cart Page Mobile */
    .cart-item {
        padding: 1rem !important;
    }
    
    .cart-item .row {
        gap: 0.5rem !important;
    }
    
    /* Checkout Mobile */
    .cart-summary {
        padding: 1.25rem;
    }
    
    /* General Mobile Adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    /* Buttons Mobile */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-premium {
        padding: 0.6rem 1.25rem;
    }
}

/* Tablet Styles (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .product-card {
        border-radius: 16px !important;
    }
    
    .premium-img-container {
        height: 200px !important;
    }
}

/* Small Mobile (max-width: 575px) */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 40px 0;
        border-radius: 0 0 20px 20px;
    }
    
    .product-card .card-body {
        padding: 0.75rem !important;
    }
    
    .price-tag {
        font-size: 1rem;
    }
    
    .btn-amazon {
        padding: 0.35rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Hide text on very small screens */
    .btn-amazon span {
        display: none;
    }
    
    .item-subtotal {
        font-size: 0.9rem !important;
    }
}

/* Large Screens (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* Print Styles */
@media print {
    .navbar-custom,
    .btn,
    .navbar-toggler {
        display: none !important;
    }
}