/**
 * Doviasluxury Website Main Styles
 * Exact recreation of doviasluxury.ng design
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header Styles - Exact match to image */
.doviasluxury-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo Section */
.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

/* Search Bar - Exact styling from image */
.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 50px 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 22px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

.search-input:focus {
    border-color: #6b7280;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-button:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* Currency Selector - Nigeria Flag */
.currency-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.currency-selector:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.flag-icon {
    font-size: 16px;
}

.currency-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.dropdown-arrow {
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.currency-selector:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Login Link */
.login-link {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.login-link:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cart-icon:hover {
    background-color: #f3f4f6;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Hero Section - Dark background */
.doviasluxury-hero {
    background-color: #2c2c2c;
    padding: 80px 0;
    text-align: center;
    color: white;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Categories Navigation */
.doviasluxury-categories {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}

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

.categories-nav {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 0;
}

.category-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 16px 24px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-link:hover {
    color: #374151;
}

.category-link.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Products Grid */
.doviasluxury-products {
    padding: 40px 0;
    background-color: #f9fafb;
}

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

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

.products-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.products-grid[data-columns="3"] {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.products-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Product Cards */
.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.product-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

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

.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;
}

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

.add-to-cart-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .header-actions {
        order: 2;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .categories-nav {
        padding: 0 10px;
    }
    
    .category-link {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .product-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .currency-selector {
        padding: 6px 8px;
    }
    
    .currency-text {
        display: none;
    }
    
    .login-link {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Category Filtering */
.product-card[data-category]:not([data-category*="all"]) {
    display: block;
}

.product-card.hidden {
    display: none;
}

/* Loading States */
.search-input.loading {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3" fill="%236b7280"><animate attributeName="r" values="3;5;3" dur="1s" repeatCount="indefinite"/></circle></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}