/* Homepage Specific Styles */

/* Hero Banner - New Puppy or Kitten */
.hero-banner-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-banner-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="wave" x="0" y="0" width="100" height="20" patternUnits="userSpaceOnUse"><path d="M0,10 Q25,0 50,10 T100,10 V20 H0 Z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23wave)"/></svg>') repeat-x;
    opacity: 0.3;
}

.hero-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text-section {
    flex: 1;
    max-width: 500px;
    color: white;
}

.hero-main-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn-kitten,
.hero-btn-puppy {
    background: white;
    color: #10b981;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-btn-kitten:hover,
.hero-btn-puppy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: #059669;
}

.hero-images {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.hero-image-left,
.hero-image-right {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.hero-image-left:hover,
.hero-image-right:hover {
    transform: scale(1.05);
}

.hero-image-left img,
.hero-image-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Top Categories Navigation */
.top-categories-nav {
    background: #f8fafc;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.categories-carousel {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.categories-wrapper {
    flex: 1;
    overflow: hidden;
}

.categories-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
}

.categories-track .category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-width: 100px;
    flex-shrink: 0;
}

.categories-track .category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    color: #10b981;
}

.categories-track .category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.categories-track .category-item:hover .category-icon {
    background: #10b981;
    color: white;
}

.categories-track .category-name {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.carousel-nav {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.carousel-nav:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* Homepage Layout */
.homepage-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.homepage-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.homepage-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive margins for homepage-main */
@media (min-width: 1400px) {
    .homepage-main {
        padding: 0 20px;
    }
}

@media (min-width: 1600px) {
    .homepage-main {
        padding: 0 30px;
    }
}

/* Categories Widget */
.categories-widget {
    background: white;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 30px;
}

.categories-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #1f2937;
    border-bottom: 1px solid white !important; /* White separator */
    border-radius: 0 !important; /* No rounded corners */
}

.categories-icon {
    font-size: 1.2rem;
    color: white !important; /* White icon */
}

.categories-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list .category-item {
    margin-bottom: 8px;
}

.category-list .category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #d1d5db;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-list .category-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.category-list .category-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Banner Wellness */
.hero-banner-wellness {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.hero-banner-wellness::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.3;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    color: white;
    max-width: 500px;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.4;
}

.hero-btn {
    background: #f59e0b;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.hero-image {
    width: 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
}

/* Horizontal Categories Slider */
.horizontal-categories-slider {
    background: #f8fafc;
    padding: 15px 0;
    margin: 40px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.horizontal-categories-slider .categories-carousel {
    display: flex;
    align-items: center;
    gap: 15px;
}

.horizontal-categories-slider .categories-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin-top: 0;
    padding: 0 18px;
    display: flex;
    align-items: center;
}

.horizontal-categories-slider .categories-track {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
    padding: 0;
}

.horizontal-categories-slider .category-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: var(--category-pill-bg, white) !important;
    border: var(--category-pill-border, none) !important;
    border-radius: 20px !important; /* More rounded corners */
    text-decoration: none !important;
    color: var(--category-pill-text, #374151) !important;
    transition: all 0.3s ease !important;
    /* Make each tile wider than tall and fixed so 4 fit */
    width: calc((100% - 3 * 16px) / 4) !important;
    aspect-ratio: 1.5 / 1 !important; /* wider aspect ratio - less tall */
    min-width: 160px !important; /* ensure reasonable size on wide screens */
    max-width: 240px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0 !important; /* Prevent items from shrinking */
    padding: 20px 16px !important;
    box-sizing: border-box !important; /* Include padding in width calculation */
    margin-bottom: 0 !important; /* Override any margin-bottom from main.css */
}

.horizontal-categories-slider .category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
    background: var(--category-pill-bg-hover, var(--category-pill-bg, white)) !important;
    color: var(--category-pill-text, #7c3aed) !important;
}

.horizontal-categories-slider .category-icon {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important; /* Prevent icon from shrinking */
    background: var(--category-pill-icon-bg, rgba(255,255,255,0.3)) !important;
    border-radius: 14px !important;
    padding: 10px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    color: inherit !important;
}

.horizontal-categories-slider .category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.horizontal-categories-slider .icon-placeholder {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6b7280;
}

.horizontal-categories-slider .category-name {
    font-size: 15px !important;
    font-weight: 500 !important;
    text-align: center !important;
    line-height: 1.0 !important; /* Minimal line height */
    margin: 0 !important; /* Remove any default margins */
    padding: 0 !important; /* Remove all padding */
    padding-bottom: -20px !important; /* More aggressive negative bottom padding */
    flex-shrink: 0 !important; /* Prevent text from shrinking */
    height: auto !important; /* Remove any height constraints */
    display: block !important; /* Ensure proper display */
    color: inherit !important;
}

/* More specific override for conflicting rules */
.horizontal-categories-slider .category-item .category-name {
    line-height: 1.0 !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: -20px !important; /* More aggressive negative bottom padding */
    height: auto !important;
    color: inherit !important;
}

.horizontal-categories-slider .carousel-nav {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.horizontal-categories-slider .carousel-nav:hover {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.new-arrivals-section .section-title,
.best-seller-section .section-title {
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.section-nav {
    display: flex;
    gap: 10px;
}

.nav-arrow {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.nav-arrow:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* Products Carousel */
.products-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card,
.product-card-deal {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover,
.product-card-deal:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper img,
.product-card-deal:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 14px;
    left: -6px;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    padding: 6px 16px 6px 18px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.25);
    z-index: 2;
}

.sale-badge::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
}

.sale-badge::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    border-width: 6px 6px 0 0;
    border-style: solid;
    border-color: #b91c1c transparent transparent transparent;
}

.product-actions-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-actions-overlay,
.product-card-deal:hover .product-actions-overlay {
    opacity: 1;
}

.action-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #6b7280;
}

.action-btn:hover {
    background: #10b981;
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-title a {
    color: #1f2937;
    text-decoration: none;
}

.product-title a:hover {
    color: #10b981;
}

.product-rating {
    margin-bottom: 10px;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star {
    color: #fbbf24;
    font-size: 0.9rem;
}

.star:not(.filled) {
    color: #d1d5db;
}

.rating-count {
    margin-left: 5px;
    font-size: 0.8rem;
    color: #6b7280;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.product-price > * {
    display: block;
}

.product-price .amount {
    display: block;
}

.product-price del {
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.95rem;
}

.product-price ins {
    color: #5b21b6;
    background: rgba(124, 58, 237, 0.12);
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    line-height: 1;
}

.product-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.product-actions .button,
.product-actions .add_to_cart_button {
    min-width: 70%;
    text-align: center;
}

/* Promotional Banners */
.promotional-banners {
    margin-bottom: 40px;
}

.banner-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.promo-banner {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    color: white;
    transition: transform 0.3s ease;
}

.promo-banner:hover {
    transform: translateY(-5px);
}

.dog-supplies-banner {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

.best-seller-banner {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
}

.banner-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.banner-btn {
    background: white;
    color: #374151;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.banner-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.banner-image {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sale-badge-large {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.sale-text {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
}

.sale-percent {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-images {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image-left,
    .hero-image-right {
        width: 150px;
        height: 150px;
    }
    
    .homepage-layout {
        flex-direction: column;
    }
    
    .homepage-sidebar {
        width: 100%;
        order: 2;
    }
    
    .homepage-main {
        order: 1;
    }
    
    .banner-row {
        grid-template-columns: 1fr;
    }
    
    .products-carousel {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .categories-track {
        gap: 15px;
    }
    
    .categories-track .category-item {
        width: calc((100% - 3 * 12px) / 4);
        min-width: 140px;
        aspect-ratio: 1.2 / 1;
        padding: 10px 12px;
    }
}

/* Homepage Layout Enhancements */
.homepage-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.homepage-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-8);
    padding: var(--spacing-8) 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Enhanced Sidebar */
.homepage-sidebar {
    background: transparent;
    border: none;
    padding: 0 !important;
    height: 400px;
    position: static;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    width: 240px;
}

.categories-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-8);
    padding-bottom: var(--spacing-6);
    border-bottom: 1px solid white !important; /* White separator */
    border-radius: 0 !important; /* No rounded corners */
}

.categories-icon {
    font-size: var(--font-size-xl);
    color: white !important; /* White icon */
}

.categories-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

.category-item {
    margin-bottom: var(--spacing-3);
}

.category-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    padding: var(--spacing-4);
    border-radius: var(--radius-xl);
    color: white;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left var(--transition-slow);
}

.category-link:hover::before {
    left: 100%;
}

.category-link:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.category-link:hover .category-icon {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.category-name {
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all var(--transition-normal);
}

.category-link:hover .category-name {
    transform: translateX(4px);
}

/* Enhanced Hero Section */
.hero-banner {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-16);
    margin-bottom: var(--spacing-12);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-16);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: white;
}

.hero-tagline {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-3);
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-6);
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-10);
    opacity: 0.9;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-5) var(--spacing-10);
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: var(--font-size-lg);
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-xl);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #b45309 100%);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.4);
    color: white;
}

.hero-image {
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-slow);
}

.hero-image:hover img {
    transform: scale(1.02) rotate(1deg);
}

.hero-dots {
    position: absolute;
    bottom: var(--spacing-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-3);
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.dot.active {
    background-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Enhanced Brands Section */
.brands-section {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    padding: var(--spacing-12) 0;
    margin-bottom: var(--spacing-12);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-8);
    align-items: center;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-6);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    background: white;
    border: 1px solid var(--gray-200);
}

.brand-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.brand-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%) opacity(0.7);
    transition: all var(--transition-normal);
}

.brand-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.brand-placeholder {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--gray-500);
    padding: var(--spacing-6);
    border-radius: var(--radius-xl);
    font-weight: 600;
    text-align: center;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Enhanced Category Gallery */
.category-gallery {
    margin-bottom: var(--spacing-16);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-8);
}

.category-card {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 1;
    transition: all var(--transition-normal);
    background: white;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.category-card-large {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.category-card-featured {
    position: relative;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.category-card-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-card-image img {
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: var(--spacing-8);
    display: flex;
    align-items: flex-end;
}

.category-card-btn {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    color: var(--gray-900);
    padding: var(--spacing-4) var(--spacing-8);
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--font-size-sm);
    border: 2px solid transparent;
}

.category-card-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-dark);
}

.sale-badge-large {
    position: absolute;
    top: var(--spacing-6);
    right: var(--spacing-6);
    background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
    color: white;
    padding: var(--spacing-4) var(--spacing-6);
    border-radius: var(--radius-xl);
    text-align: center;
    font-weight: 800;
    line-height: 1.1;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    border: 3px solid white;
}

.sale-text {
    display: block;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sale-discount {
    display: block;
    font-size: var(--font-size-xl);
    margin-top: var(--spacing-1);
}

/* Enhanced Best Deals Section */
.best-deals-section {
    margin-bottom: var(--spacing-16);
    background: white;
    padding: var(--spacing-12);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-10);
    padding-bottom: var(--spacing-6);
    border-bottom: 2px solid var(--gray-200);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    color: var(--gray-900);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-nav {
    display: flex;
    gap: var(--spacing-3);
}

.nav-arrow {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.nav-arrow:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #b45309 100%);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.countdown-timer {
    position: absolute;
    bottom: var(--spacing-4);
    left: var(--spacing-4);
    right: var(--spacing-4);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--spacing-3);
    border-radius: var(--radius-xl);
    display: flex;
    justify-content: center;
    gap: var(--spacing-3);
    font-size: var(--font-size-xs);
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    border: 2px solid white;
}

.countdown-item {
    text-align: center;
    min-width: 40px;
}

.countdown-value {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 900;
    line-height: 1;
}

/* Enhanced Buttons */
.button, .btn {
    display: inline-block;
    padding: var(--spacing-4) var(--spacing-8);
    border-radius: var(--radius-xl);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.button.primary, .btn.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.button.primary:hover, .btn.primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #b45309 100%);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.button.secondary, .btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.button.secondary:hover, .btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design for Homepage */
@media (max-width: 1200px) {
    .homepage-layout {
        grid-template-columns: 280px 1fr;
        gap: var(--spacing-6);
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-card-large {
        grid-column: span 1;
        aspect-ratio: 1;
    }
}

@media (max-width: 1024px) {
    .homepage-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }
    
    .homepage-sidebar {
        position: static;
        order: 2;
        margin-top: var(--spacing-8);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
        text-align: center;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-carousel {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: var(--spacing-12);
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .products-carousel {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: var(--spacing-6);
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: var(--spacing-4);
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding: var(--spacing-8);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .products-carousel {
        grid-template-columns: 1fr;
    }
    
    .homepage-sidebar {
        padding: 0 !important;
    }
    
    .category-link {
        padding: var(--spacing-3);
    }
    
    .category-icon {
        width: 28px;
        height: 28px;
    }
}