

/* ============================================================
   SHOP ARCHIVE — All Sections
   ============================================================ */

/* --- Breadcrumbs (archive — dark bar matching single product) --- */
.gr1p-breadcrumbs--archive {
    background-color: var(--gr1p-dark);
    padding: 2.5px 0 2.5px 15px;
    margin-bottom: 0;
}

.gr1p-breadcrumbs--archive .woocommerce-breadcrumb {
    font-family: var(--gr1p-font);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    color: var(--gr1p-orange);
    margin: 0;
}

.gr1p-breadcrumbs--archive .woocommerce-breadcrumb a {
    color: var(--gr1p-light);
    text-decoration: none;
}

.gr1p-breadcrumbs--archive .woocommerce-breadcrumb a:hover {
    color: var(--gr1p-orange);
}

/* --- Main Container --- */
.gr1p-shop-archive {
    padding: 2rem 0;
}

.products .shop-image {
    position: relative;
}

.products .shop-image img {
    width: 85%;
}

/* --- Sidebar --- */
.gr1p-shop-archive aside {
    padding-right: 1.5rem;
}

.gr1p-sidebar-inner {
    position: static;
}

.gr1p-sidebar-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.gr1p-sidebar-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* --- Accordion Header --- */
.gr1p-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 0 0.75rem 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    transition: border-color 0.2s ease;
}

.gr1p-sidebar-section:last-child .gr1p-sidebar-header {
    border-bottom: none;
}

.gr1p-sidebar-header:hover {
    border-bottom-color: var(--gr1p-orange);
}

.gr1p-sidebar-title {
    font-family: var(--gr1p-font);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
    color: var(--gr1p-dark);
}

/* --- Accordion Icon (Font Awesome Plus/Minus) --- */
.gr1p-sidebar-icon {
    font-size: 0.6875rem;
    color: #999;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gr1p-sidebar-header:hover .gr1p-sidebar-icon {
    color: var(--gr1p-orange);
}

/* --- Accordion Content --- */
.gr1p-sidebar-content {
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding-top 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 700px;
    opacity: 1;
    padding-top: 0.75rem;
    /* Horizontal padding prevents slider handle clipping */
    padding-left: 12px;
    padding-right: 12px;
}

.gr1p-sidebar-section.is-collapsed .gr1p-sidebar-content {
    max-height: 0;
    padding-top: 0;
}

/* --- Product Categories --- */
.gr1p-category-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.gr1p-category-list .children {
    padding-left: 1rem;
    margin-top: 0.375rem;
}

.gr1p-category-list li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.gr1p-category-list li:last-child {
    margin-bottom: 0;
}

.gr1p-category-list a {
    font-family: var(--gr1p-font) !important;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--gr1p-dark);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.gr1p-category-list a:hover {
    color: var(--gr1p-orange);
    text-decoration: none;
}

.gr1p-category-list .current-cat > a,
.gr1p-category-list .current-cat-parent > a {
    color: var(--gr1p-orange);
    font-weight: 600;
}

.gr1p-category-list .count {
    color: #999;
    font-size: 0.75rem;
    margin-left: 0.25rem;
    font-family: var(--gr1p-font);
}

/* --- Color Filter --- */
.gr1p-color-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.gr1p-color-list li {
    margin-bottom: 0.625rem;
    line-height: 1.4;
}

.gr1p-color-list li:last-child {
    margin-bottom: 0;
}

.gr1p-color-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--gr1p-font) !important;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--gr1p-dark);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.gr1p-color-link:hover {
    color: var(--gr1p-orange);
    text-decoration: none;
}

.gr1p-color-item--active .gr1p-color-link {
    color: var(--gr1p-orange);
    font-weight: 600;
}

.gr1p-color-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid #d0d0d0;
    background-color: var(--swatch-bg, #cccccc);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gr1p-color-link:hover .gr1p-color-swatch {
    box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--swatch-bg, #cccccc);
    border-color: transparent;
    transform: scale(1.1);
}

.gr1p-color-name {
    flex: 1;
    text-align: left;
}

.gr1p-color-count {
    color: #999;
    font-size: 0.75rem;
    font-family: var(--gr1p-font);
    flex-shrink: 0;
}

.gr1p-color-item--active .gr1p-color-count {
    color: var(--gr1p-orange);
}

/* --- Size Filter --- */
.gr1p-size-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.gr1p-size-list li {
    margin-bottom: 0.625rem;
    line-height: 1.4;
}

.gr1p-size-list li:last-child {
    margin-bottom: 0;
}

.gr1p-size-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--gr1p-font) !important;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--gr1p-dark);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.gr1p-size-link:hover {
    color: var(--gr1p-orange);
    text-decoration: none;
}

.gr1p-size-item--active .gr1p-size-link {
    color: var(--gr1p-orange);
    font-weight: 600;
}

.gr1p-size-name {
    flex: 1;
    text-align: left;
}

.gr1p-size-count {
    color: #999;
    font-size: 0.75rem;
    font-family: var(--gr1p-font);
    flex-shrink: 0;
}

.gr1p-size-item--active .gr1p-size-count {
    color: var(--gr1p-orange);
}

/* --- Price Filter --- */
.gr1p-price-filter-section .price_slider {
    margin: 0.5rem 0;
}

.gr1p-price-filter-section .price_slider.ui-slider {
    position: relative;
    background: #e9ecef;
    border: none;
    border-radius: 2px;
    height: 3px;
    cursor: pointer;
}

.gr1p-price-filter-section .ui-slider-range {
    position: absolute;
    z-index: 1;
    height: 100%;
    background: var(--gr1p-dark);
    border: none;
    border-radius: 2px;
}

.gr1p-price-filter-section .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 16px;
    height: 16px;
    top: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border-radius: 50%;
    background: var(--gr1p-dark);
    border: 2px solid #fff;
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gr1p-price-filter-section .ui-slider-handle:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    background: var(--gr1p-orange);
}

.gr1p-price-filter-section .ui-slider-handle:active {
    transform: scale(1.1);
}

.gr1p-price-filter-section .price_label {
    font-family: var(--gr1p-font);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--gr1p-dark);
    display: flex;
    align-items: center;
    margin: 0;
    order: -1;
    flex: 0 1 auto;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.gr1p-price-filter-section .price_slider_amount {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
}

.gr1p-price-filter-section .price_slider_amount .button {
    flex: 0 0 auto;
    padding: 0.4rem 1rem;
    font-family: var(--gr1p-font);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--gr1p-dark);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gr1p-price-filter-section .price_slider_amount .button:hover {
    background: var(--gr1p-orange);
}

.gr1p-price-filter-section .price_slider_amount .clear {
    display: none;
}

/* --- Products Grid --- */
.gr1p-shop-archive .products {
    padding-left: 0;
    list-style: none;
}

.gr1p-shop-archive .products > li {
    margin-bottom: 1.5rem;
}

/* --- Variation Color --- */
.shop-variation-color {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gr1p-gray);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* --- Filter Trigger Button (mobile/tablet) --- */
.gr1p-filter-trigger {
    display: none;
}

@media (max-width: 991px) {
    .gr1p-filter-trigger {
        margin-top: 1.25rem;
    }
}

.gr1p-filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: var(--gr1p-font);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gr1p-light);
    background: var(--gr1p-dark);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gr1p-filter-toggle-btn:hover {
    background: var(--gr1p-orange);
}

.gr1p-filter-toggle-btn svg {
    flex-shrink: 0;
}

/* --- Filter Drawer (mobile/tablet only) --- */
@media (max-width: 991px) {
    .gr1p-filter-trigger {
        display: block;
    }

    /* Overlay */
    .gr1p-drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s;
    }

    body.gr1p-drawer-open .gr1p-drawer-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* Drawer panel */
    #gr1p-filter-drawer {
        display: block !important;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 320px;
        max-width: 85vw;
        background: #fff;
        z-index: 99999;
        padding: 0;
        margin: 0;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
        visibility: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.gr1p-drawer-open #gr1p-filter-drawer {
        transform: translateX(0);
        visibility: visible;
    }

    /* Override Bootstrap col-lg-3 in drawer mode */
    body.gr1p-drawer-open #gr1p-filter-drawer.col-lg-3 {
        flex: 0 0 auto;
        max-width: none;
    }

    /* Drawer header — override d-none on mobile */
    .gr1p-drawer-header.d-none {
        display: none !important;
    }

    body.gr1p-drawer-open .gr1p-drawer-header.d-none,
    #gr1p-filter-drawer .gr1p-drawer-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        background: var(--gr1p-dark);
        color: var(--gr1p-light);
        font-family: var(--gr1p-font);
        font-size: 0.875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .gr1p-drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: none;
        background: rgba(255, 255, 255, 0.1);
        color: var(--gr1p-light);
        border-radius: 4px;
        cursor: pointer;
        transition: background 0.2s ease;
        flex-shrink: 0;
    }

    .gr1p-drawer-close:hover {
        background: var(--gr1p-orange);
    }

    /* Drawer body spacing */
    .gr1p-drawer-body {
        padding: 1.25rem;
    }

    .gr1p-drawer-body .gr1p-sidebar-section {
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .gr1p-drawer-body .gr1p-sidebar-header {
        padding-bottom: 0.625rem;
    }

    .gr1p-drawer-body .gr1p-sidebar-title {
        font-size: 0.75rem;
    }

    .gr1p-drawer-body .gr1p-sidebar-icon {
        font-size: 0.625rem;
    }

    .gr1p-drawer-body .gr1p-category-list a {
        font-size: 0.875rem;
        padding: 0.25rem 0;
    }

    .gr1p-drawer-body .gr1p-color-link {
        font-size: 0.875rem;
        padding: 0.25rem 0;
        gap: 0.625rem;
    }

    .gr1p-drawer-body .gr1p-color-swatch {
        width: 16px;
        height: 16px;
    }

    .gr1p-drawer-body .gr1p-price-filter-section .price_label {
        font-size: 0.8125rem;
    }

    .gr1p-drawer-body .gr1p-price-filter-section .price_slider_amount .button {
        font-size: 0.6875rem;
    }

    /* Price filter touch targets */
    .gr1p-drawer-body .gr1p-price-filter-section .ui-slider-handle {
        width: 22px;
        height: 22px;
        margin-top: -11px;
        margin-left: -11px;
    }

    /* Body scroll lock */
    body.gr1p-drawer-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* --- Catalog Controls --- */
.gr1p-catalog-controls {
    font-family: var(--gr1p-font) !important;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--gr1p-dark);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.gr1p-per-page-selector {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gr1p-per-page-selector label {
    color: var(--gr1p-dark) !important;
    margin: 0;
}

.gr1p-per-page-selector .form-select {
    font-family: var(--gr1p-font) !important;
    font-size: 0.875rem;
    color: var(--gr1p-dark) !important;
    padding: 0 1.5625rem 0 0.5rem;
    border-radius: 4px;
}

.form-select:focus {
    border-color: var(--gr1p-dark) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

/* --- Pagination --- */
.gr1p-catalog-pagination {
    margin-top: 2rem;
    padding: 1rem 0;
}

.gr1p-catalog-pagination .pagination {
    margin: 0;
}

.gr1p-catalog-pagination .page-item {
    margin: 0 2px;
}

.gr1p-catalog-pagination .page-link {
    color: var(--gr1p-dark) !important;
    background-color: transparent !important;
    border: 1px solid var(--gr1p-light) !important;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.gr1p-catalog-pagination .page-link:hover {
    color: var(--gr1p-light) !important;
    background-color: var(--gr1p-dark) !important;
    border-color: var(--gr1p-dark) !important;
}

.gr1p-catalog-pagination .page-item.active .page-link {
    color: var(--gr1p-light) !important;
    background-color: var(--gr1p-dark) !important;
    border-color: var(--gr1p-dark) !important;
}

.gr1p-catalog-pagination .page-item.disabled .page-link {
    color: var(--gr1p-gray) !important;
    background-color: var(--gr1p-light) !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .shop-filter-toggle {
        display: inline-flex;
    }

    .products .shop-image {
        position: relative;
    }
    }
    .products .shop-image img {
        width: 75%;
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    
    


@media (max-width: 768px) {
    .shop-variation-color {
        font-size: 0.65rem;
    }


    .products .shop-image {
        position: relative;
    }
    .products .shop-image img {
        width: 75%;
        display: block;
        margin: 0 auto;
        text-align: center;
    }

    .gr1p-catalog-controls .d-flex {
        flex-direction: column;
        gap: 0.75rem;
    }

    .gr1p-breadcrumbs--archive .woocommerce-breadcrumb {
        font-size: 12px;
    }
}


