/* ============================================= */
/* CSS Variables & Base Styles */
/* ============================================= */
:root {
    --primary-color: #ff7e21;
    --secondary-color: #3385d6;
    --accent-color: #FFD700;
    --dark-color: #1A1A1A;
    --light-color: #f5eee8;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --font-primary: 'Poppins', sans-serif;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e05d00;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #002244;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 1rem;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #3385d6;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff7e21;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============================================= */
/* Loader Styles */
/* ============================================= */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
    animation: loader-failsafe 5s forwards;
}

.loader-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes loader-failsafe {
    0%, 90% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

.loader {
    text-align: center;
}

.amadeals-logo-spin {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff8c00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================= */
/* Header & Navigation */
/* ============================================= */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Add padding to main to account for fixed header */
main {
    padding-top: 70px;
    flex: 1 0 auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo-text span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    font-weight: 500;
    color: var(--dark-color);
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-icons {
    display: flex;
    margin-right: 20px;
}

.header-icons a {
    margin-left: 15px;
    font-size: 1.2rem;
    color: var(--dark-color);
    position: relative;
}

.header-icons a:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================= */
/* Hero Section */
/* ============================================= */
.hero-section {
    height: 100vh;
    min-height: 700px;
    background: #f5eee8;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-left: 5%;
    padding-top: 20px;
    margin-top: 0;
}

.hero-content {
    width: 50%;
    padding-left: 5%;
    padding-right: 50px;
    z-index: 2;
    box-sizing: border-box;
    position: relative;
}

/* Modern Impact Typography Treatment */
.hero-content h1 {
    font-family: 'Impact', 'Haettenschweiler', 'Franklin Gothic Bold', sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 0.9;
    margin-bottom: 1.8rem;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    max-width: 90%;
}

.hero-content h1 .amadeals {
    display: block;
    font-size: 2.5em;
    letter-spacing: 2.5px;
    margin-bottom: -0.15em;
    
    /* Enhanced Chrome Metallic Gradient */
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #66B3FF 15%,
        #3385d6 30%,
        #003366 45%,
        #3385d6 60%,
        #99D6FF 75%,
        #FFFFFF 90%,
        #3385d6 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    
    /* Optimized blue for maximum emboss effect visibility */
    color: #3385d6;
    text-shadow: 
        /* Base shadow for depth */
        0px 0px 1px rgba(0, 102, 204, 0.8),
        0px 0px 3px rgba(255, 255, 255, 0.6),
        
        /* Strong light emboss effect */
        -1px -1px 0px rgba(255, 255, 255, 0.98),
        1px 1px 0px rgba(0, 0, 0, 0.6),
        
        /* Enhanced chrome shine highlights */
        -2px -2px 2px rgba(255, 255, 255, 0.95),
        2px 2px 2px rgba(0, 0, 0, 0.5),
        
        /* Additional glossy reflections */
        0px 0px 10px rgba(255, 255, 255, 0.8),
        -3px -3px 4px rgba(255, 255, 255, 0.7),
        3px 3px 4px rgba(0, 0, 0, 0.4),
        
        /* Chrome reflection spots */
        -4px -4px 8px rgba(255, 255, 255, 0.5),
        4px 4px 8px rgba(0, 0, 0, 0.3),
        
        /* Intense center highlight for chrome gloss */
        0px 0px 15px rgba(255, 255, 255, 0.9),
        -1px -1px 12px rgba(255, 255, 255, 0.6),
        1px 1px 12px rgba(0, 0, 0, 0.2),
        
        /* Final chrome polish */
        0px 0px 20px rgba(255, 255, 255, 0.4);
    
    /* Add subtle animation for reflective quality */
    animation: chrome-shimmer 3s ease-in-out infinite alternate;
}

@keyframes chrome-shimmer {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

.hero-content h1 .international {
    display: block;
    font-size: 0.65em;
    letter-spacing: 30px;
    word-spacing: -2px;
    margin-top: 0.7em;
    padding-left: 0.2em;
    
    /* Original orange color with enhanced glossy effect */
    color: #ff7e21;
    text-shadow: 
        /* Base shadow for depth */
        0px 0px 2px rgba(255, 107, 0, 0.9),
        /* Strong light emboss effect */
        -1px -1px 0px rgba(255, 255, 255, 0.8),
        1px 1px 0px rgba(0, 0, 0, 0.35),
        /* Enhanced metallic shine highlights */
        -2px -2px 3px rgba(255, 255, 255, 0.7),
        2px 2px 3px rgba(0, 0, 0, 0.25),
        /* Additional glossy shine */
        0px 0px 6px rgba(255, 255, 255, 0.5),
        -3px -3px 4px rgba(255, 255, 255, 0.4),
        3px 3px 4px rgba(0, 0, 0, 0.2),
        /* Extra glossy reflection spots */
        -3px -3px 5px rgba(255, 255, 255, 0.3),
        3px 3px 5px rgba(0, 0, 0, 0.15),
        /* Center highlight for extra gloss */
        0px 0px 10px rgba(255, 255, 255, 0.4);
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 90%;
}

.search-bar {
    display: flex;
    margin-bottom: 30px;
    max-width: 600px;
    width: 90%;
}

.search-bar input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--primary-color);
}

.search-bar button {
    padding: 0 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background-color: #e05d00;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Hero Slider Styles with Zoom Effect */
.hero-slider {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomInOut 15s infinite alternate;
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-image-container {
    text-align: center;
    margin-bottom: 30px;
}

.hero-welcome-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    border-radius: 8px;
}

/* ============================================= */
/* Shop Top Brands Section */
/* ============================================= */
.brands-section {
    padding: 60px 0;
    background-color: #fff;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.brand-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    padding: 20px;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.brand-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.brand-logo img {
    max-height: 70px;
    max-width: 150px;
    object-fit: contain;
}

.brand-name {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.brand-products {
    color: #777;
    font-size: 0.9rem;
}

/* ============================================= */
/* Products Section */
/* ============================================= */
.products-section {
    padding: 80px 0;
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Modern Category Filter Styles */
.product-categories {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 0;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.categories-scroll {
    display: flex;
    overflow-x: auto;
    padding: 5px 15px;
    scrollbar-width: thin;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    flex: 0 0 auto;
    padding: 10px 20px;
    margin: 0 8px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: #495057;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.category-btn:hover {
    border-color: #ff8c00;
    color: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,140,0,0.15);
}

.category-btn.active {
    background: #ff8c00;
    border-color: #ff8c00;
    color: white;
    box-shadow: 0 4px 12px rgba(255,140,0,0.25);
}

/* Products Filter Container */
.products-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box form {
    display: flex;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #ff8c00;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,140,0,0.1);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #ff8c00;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #e67e00;
    transform: scale(1.05);
}

.sort-filter {
    flex: 0 0 auto;
}

.sort-select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.sort-select:focus {
    border-color: #ff8c00;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,140,0,0.1);
}

/* Category slider styles */
.category-slider {
    display: flex;
    overflow-x: auto;
    padding: 15px 10px;
    scrollbar-width: thin;
    -ms-overflow-style: none;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.category-slider::-webkit-scrollbar {
    height: 6px;
}

.category-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.category-item {
    flex: 0 0 auto;
    text-align: center;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 80px;
}

.category-item.active {
    background: #ff8c00;
    color: white;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.category-name {
    font-size: 12px;
    font-weight: 500;
}

/* REDUCED GAP BETWEEN CARDS */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 15px;
    align-items: stretch;
}

.product-card {
    background: transparent;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 450px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* FIXED IMAGE FRAME - UPDATED TO PREVENT LAYOUT SHIFTS */
.product-image {
    height: 420px;
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    cursor: pointer;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* FIXED PRODUCT BADGE - ORANGE STYLE */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    min-height: 25px; /* Added fixed height */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    line-height: 1;
    box-sizing: border-box; /* Ensures padding is included in height calculation */
}

/* Alternative approach using height instead of min-height */
.product-badge.height-fixed {
    height: 25px;
    min-height: auto;
}

/* ============================================= */
/* QUICK VIEW BUTTON STYLING - IMPROVED */
/* ============================================= */

/* Product image container needs relative positioning */
.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Product card overlay styling */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    width: 100%;
    pointer-events: none;
}

.product-card:hover .product-overlay {
    opacity: 1;
    pointer-events: auto;
}

.overlay-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80%;
}

/* Quick View button styling */
.quick-view-btn {
    background: #fff;
    color: #333;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-size: 12px;
    pointer-events: auto;
}

.quick-view-btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Add to Cart button in overlay */
.add-to-cart-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-size: 12px;
    pointer-events: auto;
}

.add-to-cart-btn:hover {
    background: #e05e00;
    transform: translateY(-2px);
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
    border-radius: 0 0 10px 10px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #3385d6;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
}

.product-description {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.product-price {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.current-price {
    font-size: 16px !important;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 13px !important;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background: #ff7e21;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.modal-discount {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6a00 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    display: inline-block;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    width: 100%;
    font-size: 11px;
}

.stock-status {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stock-status.in-stock {
    background: #e8f5e8;
    color: #2e7d32;
}

.stock-status.out-of-stock {
    background: #ffebee;
    color: #d32f2f;
}

.product-category {
    font-size: 10px;
    color: #666;
    background: transparent !important;
    padding: 3px 8px;
    border-radius: 12px;
}

/* Pagination Styles */
.products-pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px;
    padding: 0 20px;
}

.pagination-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    background: white;
    color: var(--dark-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 13px;
}

.pagination-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================= */
/* Quick View Modal */
/* ============================================= */
.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 40px auto;
    max-width: 1000px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: none;
}

.modal-product-details {
    display: flex;
    flex-wrap: wrap;
}

.modal-product-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    background: #f8f9fa;
}

.main-image-container {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.image-zoom-lens {
    position: absolute;
    border: 1px solid #d4d4d4;
    width: 100px;
    height: 100px;
    display: none;
    pointer-events: none;
}

.image-zoom-result {
    position: absolute;
    top: 0;
    left: 100%;
    width: 300px;
    height: 300px;
    border: 1px solid #d4d4d4;
    background: white;
    display: none;
    overflow: hidden;
    z-index: 10;
}

.image-zoom-result img {
    max-width: none;
    max-height: none;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #eee;
    overflow-x: auto;
}

.thumbnail {
    width: 60px;
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: #3385d6;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-product-info {
    flex: 1;
    min-width: 300px;
    padding: 30px;
}

.modal-product-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.modal-product-price {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.modal-current-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff7e21;
}

.modal-original-price {
    font-size: 18px;
    color: #95a5a6;
    text-decoration: line-through;
}

.modal-discount {
    background: #ff7e21;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
}

.modal-product-specs {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.spec-item {
    display: flex;
    margin-bottom: 8px;
}

.spec-label {
    font-weight: 600;
    min-width: 100px;
    color: #7f8c8d;
}

.spec-value {
    color: #2c3e50;
}

.modal-product-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.description-collapse {
    max-height: 70px;
    overflow: hidden;
    position: relative;
}

.description-collapse.expanded {
    max-height: none;
}

.read-more-btn {
    background: none;
    border: none;
    color: #3498db;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 35px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.quantity-btn:hover {
    background: #e9ecef;
}

#modalQuantity {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.modal-add-to-cart {
    flex: 1;
    background: #ff7e21;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.modal-add-to-cart:hover {
    background: #ff7e21;
}

/* Add View Details button to modal */
.modal-view-details {
    background: #3385d6;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
    height: 40px;
}

.modal-view-details:hover {
    background: #3385d6;
}

/* ============================================= */
/* Amazon Section */
/* ============================================= */
.amazon-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.amazon-search {
    display: flex;
    max-width: 800px;
    margin: 0 auto 50px;
}

#amazon-search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

#amazon-search-input:focus {
    border-color: var(--primary-color);
}

#amazon-search-btn {
    padding: 0 25px;
    background-color: #FF9900;
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

#amazon-search-btn:hover {
    background-color: #e68a00;
}

.amazon-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.amazon-product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.amazon-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.amazon-product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.amazon-product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.amazon-product-card:hover .amazon-product-image img {
    transform: scale(1.1);
}

.amazon-product-info {
    padding: 20px;
}

.amazon-product-title {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.amazon-product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.amazon-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    color: var(--accent-color);
    margin-right: 5px;
}

.reviews {
    font-size: 0.8rem;
    color: #777;
}

.amazon-add-to-cart {
    width: 100%;
    padding: 10px;
    background-color: #FF9900;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.amazon-add-to-cart:hover {
    background-color: #e68a00;
}

.amazon-info {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-top: 50px;
}

.amazon-info h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step p {
    font-size: 0.9rem;
    color: #555;
}

/* ============================================= */
/* Why Choose Us Section */
/* ============================================= */
.why-us-section {
    padding: 80px 0;
    background-color: white;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 40px 30px;
    border-radius: 10px;
    background-color: #f9f9f9;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    background-color: var(--secondary-color);
    transform: rotateY(180deg);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature p {
    color: #666;
    font-size: 0.95rem;
}

/* ============================================= */
/* Testimonials Section */
/* ============================================= */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.testimonial-slider {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 60px;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial {
    min-width: 100%;
    padding: 30px;
    box-sizing: border-box;
}

.testimonial-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-content:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 5rem;
    color: var(--primary-color, #3498db);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 4px solid var(--primary-color, #3498db);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.author-title {
    color: var(--primary-color, #3498db);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.rating {
    color: #FFD700;
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.testimonial-dots {
    display: flex;
    gap: 12px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--primary-color, #3498db);
    transform: scale(1.3);
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.testimonial-nav:hover {
    background: var(--primary-color, #3498db);
    color: white;
}

.testimonial-nav.prev {
    left: 0;
}

.testimonial-nav.next {
    right: 0;
}

/* ============================================= */
/* Blog Section */
/* ============================================= */
.blog-section {
    padding: 80px 0;
    background: #ffffff;
}

.blog-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.2;
}

.date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.date-month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.4;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

.blog-stats {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 0.9rem;
}

.blog-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-cta {
    text-align: center;
}

/* ============================================= */
/* Contact Section */
/* ============================================= */
.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    max-width: 100%;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
    min-width: 20px;
}

.info-item p {
    margin: 0;
    line-height: 1.6;
    word-break: break-word;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Map container */
.map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#map {
    height: 100%;
    width: 100%;
}

/* ============================================= */
/* Footer */
/* ============================================= */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 70px 0 0;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-about p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links h3,
.footer-contact h3,
.footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1rem;
    margin-top: 3px;
}

.contact-item p {
    color: #ccc;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
}

.newsletter-form button {
    padding: 0 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #e05d00;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Payment Methods */
.footer-payment-methods {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-payment-methods h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.payment-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.payment-logo img {
    width: 50px;
    height: 30px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.payment-logo img:hover {
    transform: scale(1.1);
}

.payment-logo span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #aaa;
    font-size: 0.8rem;
}

/* ============================================= */
/* Deal of the Day Section */
/* ============================================= */
.deal-of-the-day-section.compact {
    width: 95%;
    max-width: 1200px;
    height: auto;
    min-height: 230px;
    overflow: hidden;
    position: relative;
    margin: 60px auto 40px auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: #fff;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deal-of-the-day-section.compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.deal-of-the-day-section.compact .deal-header {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: linear-gradient(135deg, #ff7e21 0%, #FF922B 100%);
    min-height: 35px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.2);
}

.deal-of-the-day-section.compact .deal-badge {
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.deal-of-the-day-section.compact .deal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #FFF;
    flex-grow: 1;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.3px;
}

.deal-of-the-day-section.compact .countdown-timer {
    font-size: 12px;
    color: #ffffff;
    font-weight: 700;
    background: transparent !important;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    letter-spacing: 0.5px;
}

.countdown-part {
    background: rgba(0, 0, 0, 0.2);
    padding: 3px 6px;
    border-radius: 4px;
    margin: 0 2px;
    min-width: 24px;
    text-align: center;
    font-weight: 800;
}

.deal-of-the-day-section.compact .deal-slider {
    display: flex;
    height: auto;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.deal-of-the-day-section.compact .deal-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.deal-of-the-day-section.compact .deal-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    z-index: 2;
}

.deal-of-the-day-section.compact .deal-slide.exit {
    opacity: 0;
    transform: translateX(-30px);
}

.deal-of-the-day-section.compact .deal-product {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: 100%;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.deal-of-the-day-section.compact .deal-image {
    width: 300px;
    height: 100%;
    flex-shrink: 0;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 0 12px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.deal-of-the-day-section.compact .deal-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,107,0,0.05) 0%, rgba(255,146,43,0.05) 100%);
    z-index: 1;
}

.deal-of-the-day-section.compact .deal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.deal-of-the-day-section.compact .deal-image:hover img {
    transform: scale(1.05);
}

.deal-of-the-day-section.compact .deal-info {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #e8e1dc;
    border-radius: 0 0 12px 0;
    position: relative;
    padding-bottom: 80px;
}

.deal-of-the-day-section.compact .deal-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23ff7e21" stroke-width="0.5" stroke-dasharray="5,5" opacity="0.1"/></svg>');
    z-index: 0;
}

/* FIXED: Title styles to prevent cutoff */
.deal-of-the-day-section.compact .deal-info h4 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #28a745;
    line-height: 1.4;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    animation: colorPulse 5s infinite alternate;
    position: relative;
    z-index: 1;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    max-height: none;
    min-height: auto;
}

@keyframes colorPulse {
    0% { color: #28a745; }
    50% { color: #20c997; }
   100% { color: #198754; }
}

/* FIXED: Description styles */
.deal-of-the-day-section.compact .deal-description {
    display: block;
    text-align: center;
    margin: 8px 0 15px 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    animation: fadeIn 1s ease-out;
    position: relative;
    z-index: 1;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    max-height: none;
}

/* UPDATED: Pricing section with better spacing */
.deal-of-the-day-section.compact .deal-pricing {
    display: flex;
    align-items: center;
    margin: 5px 0 15px 0;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out;
    gap: 10px;
    position: relative;
    z-index: 1;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.deal-of-the-day-section.compact .current-price {
    font-size: 36px;
    font-weight: 900;
    color: #dc3545;
    text-shadow: 0px 2px 3px rgba(0,0,0,0.2);
    position: relative;
}

.deal-of-the-day-section.compact .current-price::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #dc3545, transparent);
    animation: priceUnderline 3s infinite;
}

@keyframes priceUnderline {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.deal-of-the-day-section.compact .original-price {
    font-size: 28px;
    font-weight: 700;
    color: #6c757d;
    text-decoration: line-through;
    position: relative;
}

/* UPDATED: Save badge positioned slightly to the right */
.deal-of-the-day-section.compact .save-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    animation: bounce 2s infinite;
    margin-left: 15px;
    margin-right: 5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

.deal-of-the-day-section.compact .deal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    justify-content: center;
    animation: fadeIn 1s ease-out 0.3s both;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.deal-of-the-day-section.compact .deal-features span {
    font-size: 11px;
    color: #6c757d;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.deal-of-the-day-section.compact .deal-features span:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

.deal-of-the-day-section.compact .deal-features i {
    margin-right: 4px;
    font-size: 10px;
    color: #ff7e21;
}

/* UPDATED: Add to Cart button - Centered positioning */
.deal-of-the-day-section.compact .deal-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 25px;
    font-size: 14px;
    background: linear-gradient(135deg, #ff7e21 0%, #FF922B 100%);
    border: none;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.3);
    z-index: 10;
    letter-spacing: 0.5px;
    min-width: 140px;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

.deal-of-the-day-section.compact .deal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s ease;
}

.deal-of-the-day-section.compact .deal-btn:hover {
    background: linear-gradient(135deg, #e65c00 0%, #f57c00 100%);
    transform: translateY(-3px) translateX(-50%);
    box-shadow: 0 6px 12px rgba(255, 107, 0, 0.4);
}

.deal-of-the-day-section.compact .deal-btn:hover::before {
    left: 100%;
}

.deal-of-the-day-section.compact .deal-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.deal-of-the-day-section.compact .deal-prev,
.deal-of-the-day-section.compact .deal-next {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7e21 0%, #FF922B 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 1;
    visibility: visible;
}

.deal-of-the-day-section.compact .deal-prev:hover,
.deal-of-the-day-section.compact .deal-next:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.deal-of-the-day-section.compact .deal-dots {
    display: flex;
    gap: 6px;
}

.deal-of-the-day-section.compact .deal-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #adb5bd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deal-of-the-day-section.compact .deal-dots .dot.active {
    background: #ff7e21;
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(255, 107, 0, 0.5);
}

.deal-of-the-day-section.compact .deal-dots .dot:hover {
    background: #FF922B;
    transform: scale(1.1);
}

/* Flash sale animation */
@keyframes flashSale {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 107, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.8); }
}

.flash-sale {
    animation: flashSale 2s infinite;
}

/* Image fallback styling */
.image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    border-radius: 8px;
    color: #868e96;
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

/* ============================================= */
/* WhatsApp Button Styles */
/* ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.whatsapp-float i {
    font-size: 28px;
}

.whatsapp-tooltip {
    position: absolute;
    left: 70px;
    bottom: 15px;
    background: rgba(37, 211, 102, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
/* ============================================= */
/* Quick Cart */
/* ============================================= */
.quick-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.quick-cart.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-cart {
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--danger-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantity-value {
    margin: 0 10px;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    color: #999;
    font-size: 0.8rem;
    margin-top: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.remove-item:hover {
    color: var(--danger-color);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* ============================================= */
/* Back to Top */
/* ============================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}



/* ============================================= */
/* Responsive Styles */
/* ============================================= */
@media (max-width: 992px) {
    .hero-content {
        width: 60%;
    }
    
    .hero-slider {
        width: 40%;
    }
    
    nav ul li {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding-left: 0;
        height: auto;
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .hero-content {
        width: 100%;
        padding: 40px 20px 20px;
        text-align: center;
    }
    
    .hero-content h1 {
        margin: 0 auto 1.8rem;
    }
    
    .search-bar {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Only hide hero slider in hero section, not in modals */
    .hero-section .hero-slider {
        display: none;
    }
    
    /* Alternative approach if above doesn't work: */
    /* .hero-slider:not(.modal-slider) {
        display: none;
    } */
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .header-icons {
        margin-right: 10px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Responsive adjustments for mobile only */
    .hero-content h1 {
        max-width: 95%;
        margin-bottom: 1.5rem;
        font-size: 2.8rem;
    }
    
    .hero-content h1 .welcome {
        font-size: 1.1em;
        letter-spacing: 1.2px;
        padding-left: 0.8em;
    }
    
   .hero-content h1 .amadeals {
        font-size: 1.8em;
        letter-spacing: 1.5px;
           /* Enhanced Chrome Metallic Gradient */
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #66B3FF 15%,
        #3385d6 30%,
        #003366 45%,
        #3385d6 60%,
        #99D6FF 75%,
        #FFFFFF 90%,
        #3385d6 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    
    /* Optimized blue for maximum emboss effect visibility */
    color: #3385d6;
    text-shadow: 
        /* Base shadow for depth */
        0px 0px 1px rgba(0, 102, 204, 0.8),
        0px 0px 3px rgba(255, 255, 255, 0.6),
        
        /* Strong light emboss effect */
        -1px -1px 0px rgba(255, 255, 255, 0.98),
        1px 1px 0px rgba(0, 0, 0, 0.6),
        
        /* Enhanced chrome shine highlights */
        -2px -2px 2px rgba(255, 255, 255, 0.95),
        2px 2px 2px rgba(0, 0, 0, 0.5),
        
        /* Additional glossy reflections */
        0px 0px 10px rgba(255, 255, 255, 0.8),
        -3px -3px 4px rgba(255, 255, 255, 0.7),
        3px 3px 4px rgba(0, 0, 0, 0.4),
        
        /* Chrome reflection spots */
        -4px -4px 8px rgba(255, 255, 255, 0.5),
        4px 4px 8px rgba(0, 0, 0, 0.3),
        
        /* Intense center highlight for chrome gloss */
        0px 0px 15px rgba(255, 255, 255, 0.9),
        -1px -1px 12px rgba(255, 255, 255, 0.6),
        1px 1px 12px rgba(0, 0, 0, 0.2),
        
        /* Final chrome polish */
        0px 0px 20px rgba(255, 255, 255, 0.4);
    
    /* Add subtle animation for reflective quality */
    animation: chrome-shimmer 3s ease-in-out infinite alternate;
}

@keyframes chrome-shimmer {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}
            
   .hero-content h1 .international {
        font-size: 0.55em;
        letter-spacing: 12px;
        word-spacing: -2px;
        margin-top: 0.5em;
        padding-left: 0.4em;
        color: #ff7e21;
        text-shadow: 
            0px 0px 1px rgba(255, 107, 0, 0.9),
            -0.8px -0.8px 0px rgba(255, 255, 255, 0.8),
            0.8px 0.8px 0px rgba(0, 0, 0, 0.3),
            -1.5px -1.5px 2px rgba(255, 255, 255, 0.7),
            1.5px 1.5px 2px rgba(0, 0, 0, 0.2),
            0px 0px 3px rgba(255, 255, 255, 0.5),
            -2px -2px 2.5px rgba(255, 255, 255, 0.4),
            2px 2px 2.5px rgba(0, 0, 0, 0.15),
            -2px -2px 3px rgba(255, 255, 255, 0.3),
            2px 2px 3px rgba(0, 0, 0, 0.1),
            0px 0px 5px rgba(255, 255, 255, 0.4);
    }
            
    .search-container {
        width: 95%;
    }

    /* Center alignment for mobile */
    .hero-content h1,
    .hero-content .subtitle,
    .search-container,
    .hero-buttons {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .modal-product-details {
        flex-direction: column;
    }
    
    .main-image-container {
        height: 300px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .brand-logo {
        height: 80px;
    }
    
    .brand-logo img {
        max-height: 50px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .header-icons a {
        margin-left: 10px;
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content {
        padding: 2rem 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h1 .welcome {
        font-size: 1em;
        letter-spacing: 0.8px;
        padding-left: 0.5em;
    }
    
    .hero-content h1 .amadeals {
        font-size: 1.8em;
        letter-spacing: 1.5px;
    }
    
    .hero-content h1 .international {
        font-size: 0.55em;
        letter-spacing: 12px;
        margin-top: 0.5em;
        padding-left: 0.4em;
    }
    
    .hero-content .subtitle {
        max-width: 95%;
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        text-align: center;
    }

    /* Center alignment for mobile */
    .hero-content h1,
    .hero-content .subtitle,
    .search-container,
    .hero-buttons {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

/* Prevent scrolling when popup is active */
body.popup-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}
/* EMERGENCY LAYOUT FIX - Ensures proper section stacking */
.testimonials-section,
.blog-section,
.contact-section,
.amazon-section,
.why-us-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Ensure proper stacking */
main > section {
    position: relative;
    z-index: 2;
}

/* Fix any floating elements */
.deal-of-the-day-section.compact {
    clear: both;
    position: relative;
    z-index: 3;
}

/* Ensure all sections use proper container */
.products-section .container,
.amazon-section .container,
.why-us-section .container,
.testimonials-section .container,
.blog-section .container,
.contact-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}