/* ===================================
   Shop Page Styles
   =================================== */

.shop-page {
    padding: 10px 0 var(--spacing-2xl);
    background-color: var(--color-white);
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: 16px;
    color: #141414;
    font-weight: 500;
}

.breadcrumbs a,
.breadcrumbs .current,
.breadcrumbs .separator {
    color: #141414;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.breadcrumbs .separator {
    color: #141414;
    margin: 0 5px;
    font-weight: 400;
}

/* Filters */
.shop-filters {
    margin-bottom: 50px;
}

.filter-pills-row {
    margin-top: 15px;
    padding-bottom: 15px;
    /* More space for scroll */
    width: 100%;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
    /* Momentum scroll for iOS */
    scrollbar-width: none;
    /* Firefox */
}

.filter-pills-row::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.filter-pills-row {
    -webkit-overflow-scrolling: touch;
}

.filter-pills-container {
    display: -webkit-flex;
    display: flex;
    gap: 12px;
    padding: 0 5px;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    /* Force width to match content */
    min-width: 100%;
}

.filter-pill {
    padding: 12px 28px;
    background: #EEEEEE;
    /* Light gray as per image */
    border: none;
    border-radius: 25px;
    font-family: var(--font-interface);
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.filter-pill.active {
    background: #333333;
    /* Darker/Black for active "Filter" */
    color: #FFFFFF;
}

.filter-controls {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0px;
    gap: 20px;
    width: 100%;
    max-width: 1239px;
    margin: 0;
}

.filters-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 1px;
    gap: 16px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.actions-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    padding: 0px;
    gap: 15px;
}

.filter-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

#filter-new-in {
    padding: 15px 25px;
    width: 190px;
    height: 45px;
    border: 1px solid rgba(176, 176, 176, 0.24);
}

#filter-categories {
    padding: 15px 20px;
    width: 270px;
    height: 45px;
    background: #F9F9F8;
    border: 1px solid rgba(176, 176, 176, 0.24);
    justify-content: space-between;
}

#filter-elements {
    padding: 15px 20px;
    width: 230px;
    height: 45px;
    background: #FBFBFB;
    border: 1px solid rgba(176, 176, 176, 0.24);
    justify-content: space-between;
}

#filter-color {
    padding: 15px 20px;
    width: 250px;
    height: 45px;
    background: #FBFBFB;
    border: 1px solid rgba(176, 176, 176, 0.24);
    justify-content: space-between;
}

#filter-sort {
    padding: 16px 20px;
    width: 170px;
    height: 45px;
    background: #333333;
    border: 0.75px solid #F7F7F7;
    justify-content: space-between;
}

.select-filter select {
    background: transparent;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    outline: none;
    width: 100%;
}

#filter-sort select {
    color: #FFFFFF;
    background-color: #333333;
}

#filter-sort select option {
    background-color: #FFFFFF;
    color: #333333;
}

.btn-clear {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    width: 170px;
    height: 45px;
    background: transparent;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #333333;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: #333333;
    color: #FFFFFF;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    font-family: 'Poppins';
    color: #333333;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #333333;
    /* Dark background as shown */
    border: 1px solid #333333;
    border-radius: 4px;
}

.custom-checkbox:hover input~.checkmark {
    border-color: #000;
}

.custom-checkbox input:checked~.checkmark {
    background-color: #333333;
    border-color: #333333;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.product-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F0F0F0;
    display: flex;
    flex-direction: column;
}

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

.product-card-image {
    width: 100%;
    height: 380px;
    /* Taller on mobile as per image */
    background-color: #EFEFEF;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.badge-new {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
    padding: 4px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(4px);
}

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

/* Zoom effect removed */

.product-info-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--color-dark);
}

.product-price {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
}

.product-type {
    font-family: var(--font-body);
    font-size: 14px;
    color: #757575;
    margin-bottom: 12px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-buy {
    flex: 1;
    background-color: #CDAF71;
    /* Desaturated gold from image */
    color: #FFFFFF;
    font-weight: 500;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
}

.btn-buy:hover {
    background-color: #bfa168;
}

.btn-icon-secondary {
    width: 52px;
    height: 52px;
    background-color: #E0E0E0;
    /* Gray box icon as per image */
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon-secondary:hover {
    border-color: #E6BC7E;
    color: #E6BC7E;
}

/* Responsive Shop */
@media (max-width: 1024px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 15px;
    }

    .shop-page {
        padding: 15px 0 var(--spacing-xl);
    }

    .header-search-row {
        margin-bottom: 5px;
    }

    .search-input {
        flex: none !important;
        height: 54px !important;
        border-radius: 12px !important;
        background-color: #FFFFFF !important;
        border: 1px solid #E0E0E0 !important;
        box-shadow: none !important;
        font-size: 16px !important;
        width: 100% !important;
    }

    /* Mobile Filter Drawer Styling */
    .mobile-filter-drawer {
        display: none;
        /* Toggle with JS */
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
        animation: fadeIn 0.3s ease;
        width: 100%;
        margin-bottom: 15px;
    }

    .mobile-filter-drawer.active {
        display: flex;
    }

    .filter-pills-row {
        margin-top: 10px;
        padding-bottom: 5px;
        /* Reduced space after buttons */
    }

    .filter-controls {
        flex-direction: column;
        height: auto;
        gap: 12px;
    }

    .filters-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .filter-item {
        width: 100% !important;
        height: 54px !important;
        background-color: #FFFFFF !important;
        /* Matches screen bg */
        border: 1px solid #E0E0E0 !important;
        border-radius: 8px !important;
        padding: 0 15px !important;
        justify-content: space-between;
    }

    .filter-item select {
        width: 100% !important;
        height: 100% !important;
        font-size: 15px !important;
    }

    .actions-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        align-items: stretch;
    }

    #filter-sort {
        width: 100% !important;
        height: 54px !important;
    }

    .btn-clear {
        width: 100% !important;
        height: 54px !important;
        justify-content: center !important;
        font-size: 15px !important;
    }

    .product-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 10px;
    }

    .product-card {
        padding: 10px;
    }

    .product-card-image {
        height: 220px;
        margin-bottom: 12px;
    }

    .product-title {
        font-size: 17px;
    }

    .product-price {
        font-size: 15px;
    }

    .btn-buy {
        padding: 12px;
        font-size: 15px;
    }

    .btn-icon-secondary {
        width: 46px;
        height: 46px;
    }

    .shop-page .breadcrumbs {
        display: none;
    }
}