﻿
.sidebar-close {
    color: black !important;
}

.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 16px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #717478;
}


.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6161;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.nav-bar-product {
    background: white;
    border-bottom: 1px solid #e0e6ed;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}



.nav-items-product {
    display: flex;
    list-style: none;
    gap: 0;
    justify-content: center;
}

.nav-item-product {
    position: relative;
}

.nav-link-product {
    display: block;
    padding: 12px 16px;
    color: #212121;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s;
}

    .nav-link-product:hover {
        color: #2874f0;
    }

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid #e0e6ed;
}

.breadcrumb-container {
    max-width: 1248px;
    margin: 0 auto;
    padding: 0 16px;
    font-size: 12px;
    color: #878787;
}

.breadcrumb a {
    color: #2874f0;
    text-decoration: none;
}

    .breadcrumb a:hover {
        text-decoration: underline;
    }

/* Main Layout */
.main-layout {
    max-width: 1248px;
    margin: 0 auto;
    display: flex;
    gap: 1px;
    padding: 16px;
    min-height: calc(100vh - 200px);
}

/* Sidebar */
.sidebar-product {
    width: 260px;
    background: white;
    border-radius: 2px;
    height: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.sidebar-section {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-header {
    padding: 16px 20px;
    background: #fafafa;
    font-weight: 600;
    font-size: 14px;
    color: #212121;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group {
    padding: 16px 20px;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #212121;
    cursor: pointer;
    padding: 4px 0;
}

    .filter-option:hover {
        color: #2874f0;
    }

    .filter-option input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #2874f0;
    }

.brand-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e6ed;
    border-radius: 2px;
    font-size: 14px;
    margin-bottom: 12px;
}

    .brand-search:focus {
        outline: 1px solid #2874f0;
        border-color: #2874f0;
    }

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.price-input {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #e0e6ed;
    border-radius: 2px;
    font-size: 12px;
    text-align: center;
}

/* Content Area */
.content-area {
    flex: 1;
    background: white;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.content-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.page-title {
    font-size: 20px;
    font-weight: 400;
    color: #212121;
    margin-bottom: 8px;
}

.page-subtitle {
    color: #878787;
    font-size: 12px;
    margin-bottom: 12px;
}

.content-description {
    color: #212121;
    font-size: 14px;
    line-height: 1.6;
}

/* Toolbar */
.toolbar {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    font-size: 14px;
    color: #878787;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-label {
    font-size: 14px;
    color: #212121;
    font-weight: 500;
}

.sort-options {
    display: flex;
    gap: 2px;
}

.sort-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    color: #878787;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s;
}

    .sort-btn:hover {
        background: #f0f0f0;
        color: #212121;
    }

    .sort-btn.active {
        background: #2874f0;
        color: white;
    }

/* Product Grid */
.product-container {
    padding: 24px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.product-card {
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
}

    .product-card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        transform: translateY(-2px);
    }

.product-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f8f8f8;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #388e3c;
    color: white;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.wishlist-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: all 0.3s;
}

    .wishlist-icon:hover {
        background: #ff6161;
        color: white;
    }

    .wishlist-icon.active {
        background: #ff6161;
        color: white;
    }

.product-info {
    padding: 16px;
}

.product-brand {
    color: #878787;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 4px;
}

.product-title {
    color: #212121;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.rating-badge {
    background: #388e3c;
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating-count {
    color: #878787;
    font-size: 12px;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.current-price {
    font-size: 16px;
    font-weight: 500;
    color: #212121;
}

.original-price {
    font-size: 14px;
    color: #878787;
    text-decoration: line-through;
}

.discount-percent {
    color: #388e3c;
    font-size: 12px;
    font-weight: 500;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.feature-tag {
    background: #e8f5e8;
    color: #1e7b1e;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 500;
}

.delivery-info {
    color: #388e3c;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

.out-of-stock {
    color: #ff6161;
    font-size: 12px;
    font-weight: 500;
}

.hamburger-menu {
    display: none;
}
/* Mobile styles */
@media screen and (max-width: 768px) {

    .nav-bar-product,
    .sidebar-product {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background-color: #fff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        z-index: 1001;
        overflow-y: auto;
        padding: 1rem;
        transition: transform 0.3s ease-in-out;
    }

        .sidebar-product.active,
        .nav-bar-product.active {
            display: block;
        }

    .hamburger-menu {
        display: flex;
        align-items: center;
        padding: 1rem;
        background-color: #333;
        color: white;
        cursor: pointer;
        z-index: 1002;
    }

        .hamburger-menu i {
            font-size: 1.5rem;
            margin-right: 0.5rem;
        }

    .breadcrumb,
    .main-layout {
        margin-top: 50px;
    }

    .toolbar {
        display: none;
    }
}

