/* -------------------------------------------------------------------------- */
/* BASE & TYPOGRAPHY */
/* -------------------------------------------------------------------------- */

body {
    margin: 0;
    font-family: 'Inter', 'Poppins', Arial, sans-serif; 
    background: #eef1f4;
    color: #333;
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* HEADER & NAVIGATION */
/* -------------------------------------------------------------------------- */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1c2b39;
    color: white;
    padding: 10px 30px; 
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
}

nav a {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 15px;
    text-decoration: none;
    font-size: 1rem; 
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffd700;
}

.menu-toggle {
    display: none; 
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-icon {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

/* -------------------------------------------------------------------------- */
/* PREMIUM HERO SECTION */
/* -------------------------------------------------------------------------- */

.hero-premium {
    background: linear-gradient(135deg, #1c2b39 0%, #3e5c76 100%); 
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta-btn {
    display: inline-block;
    background-color: #ffd700;
    color: #1c2b39;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.2s;
}

.hero-cta-btn:hover {
    background-color: #e6c100;
    transform: translateY(-2px);
}


/* -------------------------------------------------------------------------- */
/* PRODUCT SECTION & CARDS */
/* -------------------------------------------------------------------------- */

.product-section {
    padding: 40px 25px; 
    background: #eef1f4; 
}

.product-section h2 {
    margin-bottom: 35px;
    font-size: 2.2rem; 
    font-weight: 800; 
    color: #1a1a1a;
    text-align: center;
    letter-spacing: 0.05em; 
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 30px; 
    padding-bottom: 10px;
}

.product-container::-webkit-scrollbar {
    height: 8px;
}
.product-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.product-container::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.product-card {
    background: #ffffff;
    padding: 20px; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);      
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease; 
    height: 350px; 
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05); 
}

.product-image-wrapper {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.product-card img {
    width: 90%;
    max-height: 100%; 
    object-fit: contain; 
    background: transparent; 
    border-radius: 0; 
    margin-bottom: 0; 
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card h3 {
    font-size: 1.25rem; 
    font-weight: 700; 
    margin: 5px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    color: #1a1a1a;
    letter-spacing: -0.01em; 
}

/* PRICE GROUP */
.product-card .price-group {
    text-align: left;
    margin: 5px 0 5px 0;
}

.product-card .strikethrough-price {
    font-size: 0.9rem;
    color: #888;
    text-decoration: line-through;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.product-card p.product-price {
    font-weight: 800; 
    color: #c46237;
    margin: 0; 
    text-align: left;
    font-size: 1.4rem; 
    letter-spacing: 0.02em;
}

.product-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); 
}

.product-card:hover img {
    transform: scale(1.05);
}

/* BUTTONS */
.product-card .product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    margin-top: auto; 
    flex-direction: row; 
    gap: 10px;
}

.product-card .add-to-cart-btn,
.product-card .buy-now-btn {
    font-weight: 600;
    padding: 8px 12px;
    font-size: 0.85em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    text-align: center;
    flex-grow: 1; 
    transition: background-color 0.3s ease, transform 0.1s, box-shadow 0.3s ease;
}

.product-card .add-to-cart-btn {
    background-color: #1c4558;
    box-shadow: 0 4px 10px rgba(28, 69, 88, 0.3);
}

.product-card .buy-now-btn {
    background-color: #c46237;
    box-shadow: 0 4px 10px rgba(196, 98, 55, 0.4);
}

.product-card .add-to-cart-btn:hover {
    background-color: #153545;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(28, 69, 88, 0.5);
}

.product-card .buy-now-btn:hover {
    background-color: #b05931;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(196, 98, 55, 0.6);
}

/* -------------------------------------------------------------------------- */
/* TOP ACTIONS, FILTERS, & SEARCH */
/* -------------------------------------------------------------------------- */

.top-page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
}

.filter-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-group-right {
    display: flex;
    align-items: center;
    gap: 10px; 
}

.apply-filters-btn {
    padding: 8px 12px;
    background-color: #1c4558;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.apply-filters-btn:hover {
    background-color: #153545;
}

.clear-filters-btn {
    text-decoration: none;
    color: #cc0000;
    font-size: 14px;
    padding: 5px;
    white-space: nowrap;
}

.minimal-search-container {
    position: relative; 
    width: auto; 
    height: 40px; 
    display: flex; 
    align-items: center;
}

.minimal-search-form {
    display: none;
    position: absolute;
    right: 0; 
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    z-index: 10;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    display: flex; 
}

.minimal-search-form.is-visible {
    display: flex;
}

.minimal-search-form input[type="search"] {
    flex-grow: 1;
    padding: 8px 10px;
    border: none;
}

.minimal-search-form .search-submit-btn {
    background: #ffd700;
    color: #1c2b39;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.search-toggle-btn {
    background-color: #ffd700;
    color: #1c2b39;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* MOBILE STYLES */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-premium {
        padding: 50px 15px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    .top-page-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 10px;
    }

    .filter-dropdowns-container {
        width: 100%; 
        margin-bottom: 10px;
    }
    .filter-form {
        display: flex;
        flex-wrap: wrap; 
        width: 100%;
        gap: 6px; 
    }
    .filter-form select, .apply-filters-btn {
        flex-grow: 1;
        min-width: 120px;
        box-sizing: border-box;
    }
    .filter-form select, .apply-filters-btn, .clear-filters-btn {
        margin-top: 5px;
    }
    .clear-filters-btn {
        margin-left: 10px;
    }

    .action-group-right {
        width: 100%;
        justify-content: flex-start;
        align-items: center; 
        margin-top: 5px;
        gap: 15px;
    }
    
    .minimal-search-container {
        position: static;
        flex-grow: 1; 
        max-width: 60%;
    }
    
    .minimal-search-form {
        position: static; 
        width: 100%;
        border: none;
        transform: none;
        box-shadow: none;
        display: flex;
    }
    
    .minimal-search-container .search-toggle-btn {
        display: block;
    }
    
    .product-section {
        padding: 20px 10px;
    }
    .product-section h2 {
        font-size: 1.8rem;
    }

    .product-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); 
        gap: 10px;
    }

    .product-card {
        height: 160px; 
        padding: 5px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
    }
    
    .product-image-wrapper {
        height: 100px;
        margin-bottom: 10px;
    }

    .product-card h3 {
        font-size: 0.95rem;
        margin: 2px 0;
    }
    
    .product-card .price-group {
        margin: 2px 0 8px 0;
    }
    .product-card .strikethrough-price {
        font-size: 0.75rem;
        line-height: 1;
    }
    .product-card p.product-price {
        font-size: 1.05rem;
        margin: 0;
    }

    .product-card .product-actions {
        margin-top: 5px;
        gap: 6px; 
    }
    
    .product-card .add-to-cart-btn,
    .product-card .buy-now-btn {
        padding: 2px 3px; 
        font-size: 0.7em; 
        border-radius: 5px;
    }
    
    .main-nav {     
        display: none;
        flex-direction: column;
        background: #1c2b39e1;
        position: fixed;
        top: 60px; 
        left: 0;
        width: 100%;       
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    .main-nav a {
        padding: 10px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-nav.is-open {
        display: flex;
    }

    header {
        padding: 10px 15px;
    }
}

/* -------------------------------------------------------------------------- */
/* NEW HIERARCHY STYLES (FIXED ALIGNMENT) */
/* -------------------------------------------------------------------------- */

/* Visually separate Main Categories (e.g., Winter) */
.main-category-block {
    margin-bottom: 60px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 40px;
}

/* Main Category Title Styling */
.main-cat-title {
    font-size: 2rem;
    color: #1c2b39;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 6px solid #ffd700; /* Gold Accent */
}

/* Sub Category Group Styling */
.sub-category-group {
    margin-bottom: 40px;
    padding: 0 10px;
}

/* --- CONTAINER FIX FOR ALIGNMENT --- */
.sub-category-header {
    display: flex;           /* Forces items into a row */
    align-items: center;     /* Vertically centers them */
    gap: 15px;               /* Adds space between text and button */
    margin-bottom: 20px;     
}

/* Sub Category Title (Sweater) */
.sub-cat-title {
    font-size: 1.5rem;
    color: #c46237;
    font-weight: 700;
    margin: 0;      /* IMPORTANT: Removes default spacing that breaks alignment */
    line-height: 1; 
}

/* View All Button */
.view-all-sub {
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.view-all-sub:hover {
    background: #1c2b39;
    color: #fff;
    border-color: #1c2b39;
}