/*==================================
SHOP PAGE
==================================*/
.shop-page {
    background: var(--color-background);
}

body.shop-filter-open {
    overflow: hidden;
}

.shop-container {
    max-width: var(--container-width);
}

.shop-hero {
    padding: 22px 0 74px;
    background: linear-gradient(180deg, #fff 0%, var(--color-background) 58%);
}

.shop-breadcrumb {
    margin-bottom: 14px;
}

.shop-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: var(--color-muted);
    font-size: 13px;
    list-style: none;
}

.shop-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.shop-breadcrumb li:not(:last-child)::after {
    content: "\F285";
    color: #b9aaa0;
    font-family: "bootstrap-icons";
    font-size: 10px;
}

.shop-breadcrumb a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color var(--transition-standard);
}

.shop-breadcrumb a:hover {
    color: var(--color-primary);
}

.shop-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.shop-heading-row h1 {
    margin: 0 0 6px;
    color: var(--color-heading);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(44px, 4vw, 60px);
    font-weight: 700;
    line-height: 1;
}

.shop-heading-row p {
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
}

.shop-mobile-filter-btn {
    min-height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.shop-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.shop-filter-shell {
    position: sticky;
    top: 174px;
    max-height: calc(100vh - 194px);
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.shop-filter-shell::-webkit-scrollbar {
    width: 8px;
}

.shop-filter-shell::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(78, 52, 46, .22);
}

.shop-filter-backdrop,
.shop-filter-mobile-head {
    display: none;
}

.shop-filter-card,
.shop-toolbar,
.shop-product-card {
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.shop-filter-card {
    overflow: hidden;
}

.shop-filter-group {
    border-bottom: 1px solid var(--color-border);
}

.shop-filter-group[hidden] {
    display: none;
}

.shop-filter-toggle {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 22px;
    border: 0;
    background: transparent;
    color: var(--color-heading);
    font-size: 15px;
    font-weight: 800;
}

.shop-filter-toggle i {
    color: var(--color-secondary);
}

.shop-filter-content {
    display: grid;
    gap: 12px;
    padding: 0 22px 20px;
}

.shop-filter-group:not(.is-open) .shop-filter-content {
    display: none;
}

.shop-filter-option {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 10px;
    align-items: center;
    color: var(--color-heading);
    font-size: 14px;
    cursor: pointer;
}

.shop-filter-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.shop-filter-option.is-disabled {
    opacity: .46;
    cursor: not-allowed;
}

.shop-filter-option strong {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 500;
}

.shop-price-range {
    width: 100%;
    accent-color: var(--color-secondary);
}

.shop-price-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--color-heading);
    font-size: 12px;
    font-weight: 600;
}

.shop-show-more-btn {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
}

.shop-clear-filters-btn {
    width: calc(100% - 44px);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 22px 22px;
    border: 0;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    transition: background-color var(--transition-standard), transform var(--transition-standard);
}

.shop-clear-filters-btn:hover {
    background: #65463d;
    transform: translateY(-2px);
}

.shop-products-area {
    min-width: 0;
}

.shop-status {
    margin-bottom: 18px;
    padding: 18px 22px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #fffaf5;
    color: var(--color-heading);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.shop-status[data-status-tone="error"] {
    border-color: rgba(133, 57, 40, .25);
    background: #fff4ef;
    color: #853928;
}

.shop-status[data-status-tone="empty"] {
    background: #fff;
    color: var(--color-muted);
}

.shop-toolbar {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 14px 22px;
    background: #fffaf5;
}

.shop-toolbar p {
    margin: 0;
    color: var(--color-heading);
    font-size: 14px;
    font-weight: 700;
}

.shop-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-toolbar-actions label {
    color: var(--color-heading);
    font-size: 13px;
    font-weight: 700;
}

.shop-sort-select {
    min-height: 42px;
    padding: 0 42px 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-heading);
    font-size: 14px;
}

.shop-view-toggle {
    display: inline-flex;
    gap: 8px;
}

.shop-view-toggle button {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(78, 52, 46, .14);
    border-radius: 8px;
    background: #fffaf5;
    color: var(--color-primary);
    transition: background-color var(--transition-standard), color var(--transition-standard), border-color var(--transition-standard), transform var(--transition-standard);
}

.shop-view-toggle button:hover {
    border-color: rgba(78, 52, 46, .36);
    background: #fff3e8;
    transform: translateY(-1px);
}

.shop-view-toggle button.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}

.shop-view-toggle button:focus-visible,
.shop-product-media a:focus-visible,
.shop-product-title a:focus-visible,
.shop-wishlist-btn:focus-visible,
.shop-add-to-cart-btn:focus-visible,
.shop-load-more-btn:focus-visible,
.shop-mobile-filter-btn:focus-visible,
.shop-filter-toggle:focus-visible,
.shop-clear-filters-btn:focus-visible {
    outline: 3px solid rgba(198, 116, 47, .35);
    outline-offset: 3px;
}

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.shop-product-grid.is-list-view {
    grid-template-columns: 1fr;
}

.shop-product-card {
    min-height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow var(--transition-standard), transform var(--transition-standard);
}

.shop-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .07);
}

.shop-product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    min-height: 220px;
    overflow: hidden;
    background: #f6eee5;
}

.shop-product-media a {
    display: block;
    height: 100%;
    cursor: pointer;
}

.shop-product-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s ease;
}

.shop-product-card:hover .shop-product-media img {
    transform: scale(1.035);
}

.shop-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--color-secondary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.shop-product-badge-discount {
    background: var(--color-primary);
}

.shop-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(78, 52, 46, .1);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--color-primary);
    box-shadow: var(--shadow-soft);
    transition: background-color var(--transition-standard), color var(--transition-standard), transform var(--transition-standard);
}

.shop-wishlist-btn:hover,
.shop-wishlist-btn.is-active {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.shop-product-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.shop-product-category {
    margin-bottom: 8px;
    color: var(--color-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.shop-product-title {
    min-height: calc(22px * 1.12 * 2);
    margin: 0 0 9px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.12;
}

.shop-product-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--color-heading);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: color var(--transition-standard), text-decoration-color var(--transition-standard);
}

.shop-product-title a:hover {
    color: var(--color-secondary);
    text-decoration-color: rgba(198, 116, 47, .45);
}

.shop-product-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
    color: var(--color-muted);
    font-size: 12px;
}

.shop-product-rating span {
    display: inline-flex;
    gap: 1px;
    color: #c6742f;
}

.shop-product-rating strong {
    color: var(--color-heading);
}

.shop-product-rating em {
    font-style: normal;
}

.shop-product-footer {
    display: grid;
    gap: 14px;
    margin-top: auto;
}

.shop-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.shop-product-price span {
    color: var(--color-heading);
    font-size: 18px;
    font-weight: 800;
}

.shop-product-price del {
    color: #9a8f88;
    font-size: 13px;
}

.shop-product-actions {
    display: flex;
}

.shop-add-to-cart-btn {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 0;
    border-radius: 50px;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: background-color var(--transition-standard), color var(--transition-standard), transform var(--transition-standard), opacity var(--transition-standard);
}

.shop-add-to-cart-btn:hover:not(:disabled) {
    background: #65463d;
    transform: translateY(-2px);
}

.shop-add-to-cart-btn:disabled {
    opacity: .58;
    cursor: not-allowed;
}

.shop-add-to-cart-btn.is-added {
    background: #2f7a3f;
    opacity: 1;
}

.shop-product-grid.is-list-view .shop-product-card {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
}

.shop-product-grid.is-list-view .shop-product-media {
    aspect-ratio: auto;
    min-height: 220px;
}

.shop-product-grid.is-list-view .shop-product-body {
    padding: 24px;
}

.shop-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 42px 0 4px;
}

.shop-load-more-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 30px;
    border: 0;
    border-radius: 50px;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    transition: background-color var(--transition-standard), transform var(--transition-standard), opacity var(--transition-standard);
}

.shop-load-more-btn:hover:not(:disabled) {
    background: #65463d;
    transform: translateY(-2px);
}

.shop-load-more-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.shop-load-spinner {
    width: 16px;
    height: 16px;
    display: none;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: shop-spin .8s linear infinite;
}

.shop-load-more-btn.is-loading .shop-load-spinner {
    display: inline-block;
}

@keyframes shop-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
    .shop-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .shop-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .shop-filter-shell {
        top: 156px;
        max-height: calc(100vh - 176px);
    }
}

@media (max-width: 992px) {
    .shop-mobile-filter-btn {
        display: inline-flex;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-filter-shell {
        position: fixed;
        inset: 0;
        z-index: 1050;
        display: none;
        max-height: none;
        overflow: visible;
    }

    .shop-filter-shell.is-open {
        display: block;
    }

    .shop-filter-backdrop {
        position: absolute;
        inset: 0;
        display: block;
        background: rgba(28, 18, 14, .45);
    }

    .shop-filter-card {
        position: relative;
        z-index: 1;
        width: min(360px, calc(100vw - 34px));
        max-height: calc(100vh - 34px);
        margin: 17px;
        overflow: auto;
    }

    .shop-filter-mobile-head {
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 0 22px;
        border-bottom: 1px solid var(--color-border);
    }

    .shop-filter-mobile-head h2 {
        margin: 0;
        color: var(--color-heading);
        font-family: 'Cormorant Garamond', serif;
        font-size: 30px;
        font-weight: 700;
    }

    .shop-filter-mobile-head button {
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 50%;
        background: #fff8f1;
        color: var(--color-primary);
    }

    .shop-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .shop-hero {
        padding: 20px 0 58px;
    }

    .shop-container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .shop-heading-row,
    .shop-toolbar,
    .shop-toolbar-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .shop-toolbar-actions {
        width: 100%;
    }

    .shop-sort-select {
        width: 100%;
    }

    .shop-product-grid.is-list-view .shop-product-card {
        grid-template-columns: 1fr;
    }

    .shop-product-media {
        min-height: 210px;
    }

    .shop-load-more-wrap {
        margin: 34px 0 2px;
    }
}

@media (max-width: 520px) {
    .shop-product-grid {
        grid-template-columns: 1fr;
    }

    .shop-product-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-product-actions {
        width: 100%;
    }

    .shop-add-to-cart-btn {
        min-height: 44px;
    }

    .shop-product-media {
        min-height: 232px;
    }
}
