/* Product Card & Catalog Styles - Gaurav Gupta Fashion */

/* Product Grid Layout - Responsive Bootstrap Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Responsive Grid Columns */
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Product Card - Minimal Clean Design */
.product-card {
    position: relative;
    background-color: var(--gg-white);
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Product Image Container */
.product-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: var(--gg-light);
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.product-card:hover .product-card-img {
    transform: scale(1.03);
}

/* Product Body */
.product-card .card-body {
    padding: 1.25rem 0.75rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Product Title */
.product-card__title {
    font-size: 0.8rem;
    font-weight: 400;
    font-family: var(--font-primary);
    color: var(--gg-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__title a {
    color: inherit;
    text-decoration: none;
}

.product-card__title a:hover {
    color: var(--gg-secondary);
}

/* Product Price */
.product-price {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gg-dark);
    letter-spacing: 0.1px;
}

.product-price .original-price {
    color: var(--gg-gray);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.product-price .sale-price {
    color: var(--gg-accent);
    font-weight: 600;
}

/* Letter Spacing Utility */
.letter-spacing {
    letter-spacing: 0.3px;
}

/* Product Link */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Catalog Header */
.catalog-header {
    padding: 2rem 0;
    background-color: var(--gg-light);
    text-align: center;
}

.catalog-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--gg-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.catalog-description {
    font-size: 1rem;
    color: var(--gg-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter & Sort Controls */
.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gg-light-gray);
    margin-bottom: 2rem;
    gap: 2rem;
}

/* Filter Toggle Button */
.btn-filter-toggle {
    border: 1px solid var(--gg-primary);
    color: var(--gg-primary);
    background-color: transparent;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 0;
    font-weight: 500;
    white-space: nowrap;
}

.btn-filter-toggle:hover {
    background-color: var(--gg-primary);
    color: var(--gg-white);
    border-color: var(--gg-primary);
}

/* Column Switcher */
.column-label {
    font-size: 0.85rem;
    color: var(--gg-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
    margin-right: 0.5rem;
}

.column-switcher {
    display: flex;
    gap: 0.5rem;
    border: 1px solid var(--gg-light-gray);
    padding: 0.4rem;
    border-radius: 0;
    background-color: var(--gg-white);
}

.col-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    background-color: transparent;
    color: var(--gg-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    border-radius: 0;
}

.col-btn:hover {
    color: var(--gg-primary);
    background-color: var(--gg-light-gray);
}

.col-btn.active {
    background-color: var(--gg-primary);
    color: var(--gg-white);
    border-color: var(--gg-primary);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-label {
    font-size: 0.85rem;
    color: var(--gg-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.sort-select {
    border: 1px solid var(--gg-light-gray);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    background-color: var(--gg-white);
    border-radius: 0;
    color: var(--gg-dark);
    font-family: var(--font-primary);
}

.sort-select:focus {
    outline: none;
    border-color: var(--gg-primary);
}

/* Filter Sidebar Styles */
.filters-sidebar {
    background-color: var(--gg-white);
}

.filters-section {
    border-bottom: 1px solid var(--gg-light-gray);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.filters-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.option-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gg-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
}

/* Size Options */
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-option {
    flex: 0 1 calc(25% - 0.375rem);
    padding: 0.6rem 0.4rem;
    border: 1px solid var(--gg-light-gray);
    background-color: var(--gg-white);
    color: var(--gg-dark);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.size-option:hover {
    border-color: var(--gg-primary);
    color: var(--gg-primary);
}

.size-option.active {
    background-color: var(--gg-primary);
    color: var(--gg-white);
    border-color: var(--gg-primary);
}

/* Color Options */
.color-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.color-option {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.color-option:hover,
.color-option.active {
    border-color: var(--gg-primary);
    transform: scale(1.1);
}

/* Pagination */
.pagination-container-wide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    background-color: var(--gg-white);
    color: var(--gg-primary);
    border: 1px solid var(--gg-light-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    font-weight: 500;
}

.page-link:hover {
    background-color: var(--gg-light-gray);
    border-color: var(--gg-primary);
    color: var(--gg-primary);
}

.page-link.active {
    background-color: var(--gg-primary);
    color: var(--gg-white);
    border-color: var(--gg-primary);
}

/* Offcanvas Styling */
.offcanvas-start {
    width: 280px;
    z-index: 5100;
}

.offcanvas-header {
    padding: 1.5rem;
    background-color: var(--gg-white);
}

.offcanvas-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gg-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.offcanvas-body {
    padding: 0;
    background-color: var(--gg-white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .catalog-controls {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .btn-filter-toggle {
        flex: 1;
        min-width: 120px;
        order: 1;
    }

    .column-label {
        display: none;
    }

    .column-switcher {
        order: 2;
        flex: 1;
        min-width: 180px;
    }

    .sort-controls {
        order: 3;
        flex: 1;
        min-width: 120px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .catalog-header {
        padding: 1.5rem 0;
    }

    .catalog-title {
        font-size: 1.75rem;
        letter-spacing: 1px;
        margin-bottom: 0.75rem;
    }

    .catalog-description {
        font-size: 0.9rem;
    }

    .catalog-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-filter-toggle,
    .column-switcher,
    .sort-controls {
        width: 100%;
    }

    .col-btn {
        flex: 1;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .product-card .card-body {
        padding: 0.75rem 0.5rem;
    }

    .product-card__title {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .sort-controls {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .sort-label {
        white-space: nowrap;
        font-size: 0.75rem;
    }

    .sort-select {
        width: auto;
        flex: 1;
    }

    .offcanvas-start {
        width: 100%;
    }
}
