:root {
    --kd-primary: #d88438;
    --kd-secondary: #232836;
    --kd-accent: #c5752f;
    --kd-light-gray: #fff4f0;
    --kd-dark-gray: #34495e;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header-top {
    background: var(--kd-dark-gray);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.8rem;
    color: var(--kd-primary) !important;
}

.navbar-custom {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.search-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Top Bar */
.top-bar {
    background: #1a1a1a;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.welcome-text {
    color: #fff;
}

.currency-select, .language-select {
    background: transparent;
    border: 1px solid #333;
    color: white;
    padding: 5px 10px;
    margin-left: 10px;
    border-radius: 3px;
}

/* Hero Section */
.hero-section {
    background: #f6f6f6;
    padding: 80px 0;
    color: black;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 500px;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 48px;
    margin-bottom: 0;
}

.btn-primary {
    background: var(--kd-primary);
    border-color: var(--kd-primary);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: #c5752f;
    border-color: #c5752f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    border: 2px solid #333;
    color: #333;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #333;
    color: white;
    text-decoration: none;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Features */
.features-section {
    padding: 60px 0;
    background: white;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Promotional Banners */
.promo-banners {
    padding: 80px 0;
    background: white;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.promo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.promo-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.promo-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    color: white;
    z-index: 2;
}

.promo-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.promo-content p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.btn-promo {
    background: #d88438;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    align-self: flex-start;
}

.btn-promo:hover {
    background: #c5752f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(216, 132, 56, 0.4);
    color: white;
    text-decoration: none;
}

.feature-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 20px;
}

.feature-icon {
    background: #d88438;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
}

.feature-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.feature-content p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

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

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--kd-primary);
}

.countdown {
    display: flex;
    gap: 15px;
}

.countdown-item {
    background: #d88438;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    min-width: 60px;
}

.countdown-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.countdown-label {
    font-size: 12px;
    display: block;
}

.view-all {
    color: #d88438;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.view-all:hover {
    border-bottom-color: #d88438;
    color: #d88438;
    text-decoration: none;
}

/* Flash Sale */
.flash-sale {
    padding: 80px 0;
    background: white;
}

/* Featured Products Main */
.featured-products-main {
    padding: 60px 0;
    background: white;
}

/* Products Carousel */
.products-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 3;
}

.carousel-btn:hover {
    background: var(--kd-primary);
    border-color: var(--kd-primary);
    color: white;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.products-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.products-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
    width: max-content;
}

.products-track .product-card {
    flex: 0 0 280px;
    width: 280px;
}

/* Carousel Scrollbar */
.carousel-scrollbar {
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scrollbar-track {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.scrollbar-thumb {
    height: 100%;
    background: linear-gradient(90deg, var(--kd-primary) 0%, var(--kd-accent) 100%);
    border-radius: 3px;
    transition: transform 0.4s ease, width 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
    position: relative;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: none;
    height: 100%;
}

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

.category-image {
    margin-bottom: 20px;
}

.category-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.category-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.category-info span {
    color: #666;
    font-size: 14px;
}

/* Featured Products */
.featured-products {
    padding: 80px 0;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: transparent;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

.product-card:hover .product-image img {
    transform: none;
}

.sale-badge, .featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d88438;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.featured-badge {
    background: #28a745;
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #d88438;
    color: white;
}

.product-info {
    padding: 25px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stars {
    color: #ffc107;
    margin-right: 10px;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #d88438;
}

.original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

/* Stats Section */
.stats-section {
    background: var(--kd-light-gray);
    padding: 60px 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--kd-primary);
}

/* Newsletter */
.newsletter-section {
    background: #333;
    color: white;
    padding: 60px 0;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.newsletter-text p {
    color: #ccc;
    margin: 0;
}

.newsletter-form-inner {
    display: flex;
    gap: 0;
    max-width: 400px;
}

.newsletter-form-inner input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.newsletter-form-inner button {
    background: #d88438;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 0 5px 5px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form-inner button:hover {
    background: #c5752f;
}

/* Footer */
.footer {
    background: var(--kd-secondary);
    color: white;
    padding: 60px 0 20px;
}

/* Pagination Styles */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    color: var(--kd-primary);
    border-color: #dee2e6;
    padding: 0.5rem 0.75rem;
}

.pagination .page-link:hover {
    color: #c5752f;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--kd-primary);
    border-color: var(--kd-primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Product Cards */
.product-card {
    transition: transform 0.2s ease;
    border: none;
    background: transparent;
}

.product-card:hover {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .hero-image {
        display: none;
    }
    
    .feature-item {
        text-align: center;
        flex-direction: column;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .section-title {
        flex-direction: column;
        gap: 20px;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .countdown {
        justify-content: center;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .promo-card {
        height: 250px;
    }
    
    .promo-content {
        padding: 30px;
    }
    
    .promo-content h3 {
        font-size: 1.8rem;
    }
    
    .products-carousel {
        flex-direction: column;
        gap: 15px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .products-track {
        gap: 15px;
    }
    
    .products-track .product-card {
        flex: 0 0 250px;
        width: 250px;
    }
}

/* Popular Brands Section */
.popular-brands {
    padding: 80px 0;
    background: #f8f9fa;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.brand-item {
    background: white;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.brand-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.brand-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.brand-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brand-item:hover .brand-image {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.brand-placeholder {
    width: 80%;
    height: 60%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.brand-item:hover .brand-name {
    color: var(--kd-primary);
}

/* Responsive adjustments for brands */
@media (max-width: 1200px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .popular-brands {
        padding: 50px 0;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 30px;
    }
    
    .brand-item {
        padding: 20px 15px;
    }
    
    .brand-logo {
        height: 60px;
        margin-bottom: 15px;
    }
    
    .brand-image {
        max-width: 100px;
        max-height: 45px;
    }
    
    .brand-placeholder {
        width: 60px;
        height: 45px;
        font-size: 14px;
    }
    
    .brand-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .brand-item {
        padding: 25px 20px;
        max-width: 300px;
        margin: 0 auto;
    }
}