.shop-page {
    padding: 176px 24px 72px;
    background: var(--bg);
}

.shop-page-heading {
    max-width: 1360px;
    margin: 0 auto 20px;
    text-align: center;
}

.shop-page-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.shop-page-heading h1 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 0.94;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.shop-search {
    max-width: 1360px;
    margin: 0 auto 14px;
    display: flex;
    justify-content: center;
}

.shop-search-form {
    width: min(720px, 100%);
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
}

.shop-search-input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(23, 20, 17, 0.2);
    border-radius: 999px;
    background: #fffdfa;
    color: #2f2a26;
    padding: 0 14px;
    font-size: 14px;
}

.shop-search-input:focus {
    outline: none;
    border-color: rgba(23, 20, 17, 0.38);
}

.shop-search-btn {
    min-height: 42px;
    border: 1px solid #171411;
    border-radius: 999px;
    background: #171411;
    color: #fffdfa;
    padding: 0 18px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.shop-search-btn:hover {
    background: #101010;
    border-color: #101010;
}

.shop-filter-toggle {
    min-height: 38px;
    border: 1px solid #171411;
    border-radius: 999px;
    background: transparent;
    color: #171411;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    letter-spacing: 0;
    cursor: pointer;
}

.shop-filter-toggle:hover {
    background: rgba(23, 20, 17, 0.04);
}

.shop-filter-toggle--inline {
    min-height: 42px;
    padding: 0 15px;
    background: #fffdfa;
}

.shop-filter-toggle svg {
    width: 17px;
    height: 17px;
    display: block;
}

.shop-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 20, 17, 0.34);
    z-index: 1200;
}

.shop-filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(500px, 100vw);
    height: 100vh;
    background: #fbfaf8;
    z-index: 1201;
    transform: translateX(100%);
    transition: transform 0.24s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(23, 20, 17, 0.14);
}

.shop-filter-drawer.is-open {
    transform: translateX(0);
}

.shop-filter-drawer-head {
    height: 72px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(23, 20, 17, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-filter-drawer-head h2 {
    margin: 0;
    font-size: 30px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1;
}

.shop-filter-close {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #171411;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.shop-filter-close svg {
    width: 20px;
    height: 20px;
    display: block;
}

.shop-filter-drawer-form {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shop-filter-block {
    border-bottom: 1px solid rgba(23, 20, 17, 0.12);
    padding-bottom: 14px;
}

.shop-filter-block:last-of-type {
    border-bottom: none;
    padding-bottom: 4px;
}

.shop-filter-block h3 {
    margin: 0 0 12px;
    color: #201d1a;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
}

.shop-sort-list {
    display: grid;
    gap: 9px;
}

.shop-sort-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(23, 20, 17, 0.15);
    padding: 0 13px;
    cursor: pointer;
    background: #ffffff;
    color: #2a2622;
    font-size: 14px;
}

.shop-sort-option input[type="radio"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #171411;
}

.shop-sort-option:has(input:checked) {
    border-color: #171411;
}

.shop-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    color: #2d2925;
    font-size: 14px;
}

.shop-check-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #171411;
    cursor: pointer;
}

.shop-check-row--drawer:last-child {
    margin-bottom: 0;
}

.shop-price-range-hint {
    margin: -3px 0 10px;
    font-size: 12px;
    color: #6a635c;
}

.shop-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.shop-price-field {
    display: grid;
    gap: 6px;
}

.shop-price-field > span {
    font-size: 12px;
    color: #6f685f;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.shop-price-input-wrap {
    height: 42px;
    border: 1px solid rgba(23, 20, 17, 0.22);
    border-radius: 8px;
    background: #fffdfa;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 5px;
}

.shop-price-symbol {
    color: #5f5851;
    font-size: 18px;
    line-height: 1;
}

.shop-price-input-wrap input {
    width: 100%;
    border: 0;
    background: transparent;
    color: #2d2a27;
    font-size: 14px;
    height: 100%;
    min-width: 0;
}

.shop-price-input-wrap input:focus {
    outline: none;
}

.shop-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 6px;
}

.shop-refine-apply {
    min-height: 42px;
    border: 1px solid #171411;
    border-radius: 999px;
    background: #171411;
    color: #fffdfa;
    padding: 0 18px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    white-space: nowrap;
}

.shop-refine-apply:hover {
    background: #101010;
    border-color: #101010;
}

.shop-refine-clear {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #625b55;
    border-bottom: 1px solid rgba(98, 91, 85, 0.42);
    padding-bottom: 1px;
}

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

.shop-filters {
    max-width: 1360px;
    margin: 0 auto 34px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 116px;
    padding: 0 18px;
    background: #f0ece7;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #413b36;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.shop-filter-link:hover {
    border-color: rgba(23, 20, 17, 0.35);
}

.shop-filter-link.is-active {
    background: #171411;
    color: #fff;
    border-color: #171411;
}

.shop-subcategory-filters {
    max-width: 1360px;
    margin: -16px auto 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-subcategory-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(23, 20, 17, 0.2);
    background: #fffdfa;
    color: #3f3934;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.shop-subcategory-link:hover {
    background: #f2ede7;
}

.shop-subcategory-link.is-active {
    border-color: #171411;
    background: #171411;
    color: #fffdfa;
}

.shop-grid {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-auto-rows: 1fr;
    gap: 22px;
}

.shop-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e2ddd4;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-card-clickable {
    position: relative;
    cursor: pointer;
}

.shop-card-clickable:focus-visible {
    outline: 2px solid #171411;
    outline-offset: 2px;
}

.shop-card:hover {
    border-color: #d3ccc1;
    box-shadow: 0 8px 24px rgba(23, 20, 17, 0.07);
}

.shop-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #ece6de;
}

.shop-card-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(23, 20, 17, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: #1f1a16;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.shop-card-wishlist-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

.shop-card-wishlist-btn:hover {
    color: #7d6363;
    border-color: rgba(125, 99, 99, 0.5);
    background: rgba(255, 255, 255, 0.96);
    transform: scale(1.04);
}

.shop-card-wishlist-btn.is-added {
    color: #000000;
}

.shop-card-wishlist-btn.is-added svg {
    fill: currentColor;
    stroke: currentColor;
}

#wishlistSuccessModal .success-modal-card {
    width: min(92vw, 420px);
    padding: 38px 22px 26px;
}

#wishlistSuccessModal .success-modal-backdrop {
    background: rgba(18, 18, 18, 0.3);
}

#wishlistSuccessModal .success-modal-card h3 {
    font-size: 1.7rem;
}

#wishlistSuccessModal .success-message-text {
    margin-bottom: 0;
}

.shop-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.75s ease;
}

.shop-card:hover .shop-card-image {
    transform: scale(1.08);
}

.shop-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a736c;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.shop-card-content {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-card-kicker {
    margin: 0;
    font-size: 10px;
    color: #625b55;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.shop-card-content h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.16;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-description {
    display: none;
}

.shop-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.shop-card-add-to-cart-btn {
    border: 1px solid #171411;
    background: #171411;
    color: #fffdfa;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

.shop-card-add-to-cart-btn:hover {
    background: #2a2623;
    border-color: #2a2623;
}

.shop-card-add-to-cart-btn.is-added {
    border-color: rgba(23, 20, 17, 0.2);
    background: #f0ece7;
    color: #3f3934;
}

.shop-card-price {
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
}

.shop-empty {
    max-width: 1360px;
    margin: 12px auto 0;
    border: 1px dashed rgba(23, 20, 17, 0.24);
    padding: 28px;
    color: #5c5650;
    background: #f8f4ee;
    text-align: center;
}

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

.shop-quickview-modal {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.shop-quickview-modal.is-visible {
    display: flex;
}

.shop-quickview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.54);
}

.shop-quickview-panel {
    position: relative;
    width: min(980px, 94vw);
    max-height: min(90vh, 820px);
    overflow: auto;
    background: #fffdfa;
    border: 1px solid #dfd8cf;
    border-radius: 10px;
    padding: 20px;
    z-index: 1;
}

.shop-quickview-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    color: #171717;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.shop-quickview-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
}

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

.shop-quickview-media {
    border-radius: 8px;
    overflow: hidden;
    background: #ece6de;
    aspect-ratio: 1 / 1;
}

.shop-quickview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.75s ease;
}

.shop-quickview-media:hover .shop-quickview-image {
    transform: scale(1.08);
}

.shop-quickview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e665f;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.shop-quickview-content {
    min-width: 0;
    padding-right: 16px;
}

.shop-quickview-code {
    margin: 0 0 10px;
    font-size: 11px;
    color: #535353;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.shop-quickview-title {
    margin: 0 0 8px;
    font-size: 42px;
    line-height: 1.02;
    font-weight: 400;
    color: #1a1a1a;
    font-family: 'Cormorant Garamond', serif;
}

.shop-quickview-price {
    margin: 0 0 14px;
    font-size: 46px;
    line-height: 1;
    color: #1f1f1f;
    font-family: 'Inter', sans-serif;
}

.shop-quickview-meta {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4f4a44;
}

.shop-quickview-description {
    margin-top: 6px;
    white-space: pre-line;
}

.shop-quickview-controls {
    margin-top: 14px;
}

.shop-quickview-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d8d1c8;
    border-radius: 8px;
    overflow: hidden;
    background: #fffdfa;
}

.shop-quickview-qty-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #2a2521;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.shop-quickview-qty-btn + .shop-quickview-qty-value,
.shop-quickview-qty-value + .shop-quickview-qty-btn {
    border-left: 1px solid #d8d8d8;
}

.shop-quickview-qty-btn:hover {
    background: #f2f2f2;
}

.shop-quickview-qty-value {
    min-width: 46px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #2f2a26;
}

.shop-quickview-link,
.shop-quickview-purchase-btn {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid #171411;
    background: #171411;
    color: #fffdfa;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shop-quickview-purchase-btn {
    cursor: pointer;
}

.shop-quickview-link:hover,
.shop-quickview-purchase-btn:hover {
    background: #2a2623;
    border-color: #2a2623;
}

.shop-hidden-checkout-form {
    display: none;
}

@media (max-width: 700px) {
    .shop-page {
        padding: 154px 16px 50px;
    }

    .shop-page-heading h1 {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .shop-filter-link {
        min-height: 38px;
        min-width: 104px;
        font-size: 14px;
    }

    .shop-subcategory-filters {
        margin: -10px auto 22px;
        gap: 6px;
    }

    .shop-subcategory-link {
        min-height: 32px;
        padding: 0 11px;
        font-size: 11px;
    }

    .shop-search-form {
        grid-template-columns: 1fr auto auto;
    }

    .shop-search-input,
    .shop-search-btn,
    .shop-filter-toggle--inline {
        min-height: 38px;
    }

    .shop-filter-toggle,
    .shop-filter-toggle--inline {
        min-height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .shop-filter-toggle--inline span {
        display: none;
    }

    .shop-filter-drawer {
        width: 100vw;
    }

    .shop-filter-drawer-head {
        height: 62px;
        padding: 0 14px;
    }

    .shop-filter-drawer-head h2 {
        font-size: 26px;
    }

    .shop-filter-drawer-form {
        padding: 14px;
        gap: 12px;
    }

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

    .shop-filter-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

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

    .shop-card-content h2 {
        font-size: 18px;
        min-height: 40px;
    }

    .shop-card-price {
        font-size: 18px;
    }

    .shop-card-add-to-cart-btn {
        min-height: 32px;
        padding: 0 12px;
        font-size: 10px;
    }

    .shop-quickview-panel {
        padding: 16px;
    }

    .shop-quickview-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .shop-quickview-content {
        padding-right: 0;
    }

    .shop-quickview-title {
        font-size: 34px;
    }

    .shop-quickview-price {
        font-size: 36px;
    }
}

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