.shop-page {

    padding: 48px 0 70px;

}



.shop-layout {

    display: grid;

    grid-template-columns: 1fr;

    gap: 0;

    align-items: start;

}



.search-page .shop-layout {

    grid-template-columns: 1fr;

}



/* hide old sidebar */

.shop-sidebar {

    display: none;

}



/* Main */

.shop-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    margin-bottom: 28px;

}



.shop-header h1,

.shop-header h2 {

    margin: 0;

    color: var(--accent);

}



.shop-header h1 {

    font-size: clamp(28px, 3vw, 50px);

}



.shop-header h2 {

    font-size: clamp(28px, 3vw, 40px);

}



.shop-filter-toggle {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    min-height: 44px;

    padding: 0 16px;

    border: 1px solid var(--accent);

    background: var(--bg);

    color: var(--accent);

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: var(--transition);

    flex-shrink: 0;

}



.shop-filter-toggle:hover {

    background: var(--accent-soft);

}



.shop-filter-toggle__icon {

    display: inline-flex;

    flex-direction: column;

    gap: 3px;

}



.shop-filter-toggle__icon span {

    width: 16px;

    height: 2px;

    background: var(--accent);

    display: block;

}



.product-grid {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 28px 22px;

}



.search-page .product-grid {

    grid-template-columns: repeat(4, minmax(0, 1fr));

}



.product--card {

    width: 100%;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;

    align-items: flex-start;

    gap: 12px;

}



.product--card a:hover {

    color: var(--accent);

}



.product-media {

    width: 100%;

    position: relative;

    background: var(--white);

    overflow: hidden;

    /* aspect-ratio: 0.86 / 1; */

    aspect-ratio: 3 / 6;

}



.product-media img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.sale-badge {

    position: absolute;

    top: 10px;

    left: 10px;

    z-index: 2;

    background: var(--white);

    color: var(--accent);

    font-size: 14px;

    font-weight: 700;

    padding: 4px 8px;

    line-height: 1;

}



.product-media .wishlist-btn {

    position: absolute;

    top: 12px;

    right: 12px;

    z-index: 3;

    width: 42px;

    height: 42px;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.88);

    display: inline-flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: 0.25s ease;

    box-shadow: 0 8px 22px rgba(34, 27, 24, 0.06);

}



.product-media .wishlist-btn svg {

    width: 20px;

    height: 20px;

    fill: transparent;

    stroke: var(--text-soft);

    stroke-width: 1.8;

    transition: 0.25s ease;

}



.product-media .wishlist-btn:hover {

    transform: translateY(-1px);

    border-color: var(--accent);

    background: var(--accent-soft);

}



.product-media .wishlist-btn.active {

    border-color: var(--accent);

    background: var(--accent-soft);

}



.product-media .wishlist-btn:hover svg {

    fill: var(--white);

    stroke: var(--accent);

}



.product-media .wishlist-btn.active svg {

    fill: var(--white);

    stroke: var(--accent);

}



.product--info {

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: space-between;

    gap: 6px;

}



.product-meta-row {

    display: flex;

    justify-content: space-between;

    gap: 12px;

    align-items: flex-start;

}



.product-meta-row .product-title {

    margin: 0;

}



.product-title a {

    font-family: "Cinzel", serif;

    font-size: 20px;

    font-weight: 600;

    line-height: 1.35;

    color: var(--text);

    flex: 1;

}



.product-price {

    margin: 0;

    color: var(--accent);

    display: flex;

    align-items: center;

    gap: 8px;

    white-space: nowrap;

    padding-top: 2px;

}



.old-price {

    color: var(--text-soft);

    text-decoration: line-through;

    font-size: 16px;

}



.new-price {

    color: var(--text-soft);

    font-size: 18px;

    font-weight: 600;

}



.product-variant {

    font-size: 16px;

    color: var(--text-soft);

    margin: 8px 0 10px;

}



.product-swatches {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 14px;

}



.dot {

    width: 22px;

    height: 22px;

    border-radius: 50%;

    border: 1px solid var(--border);

    background: transparent;

    cursor: pointer;

    transition: transform var(--transition), border-color var(--transition);

}



.dot:hover,

.dot.active {

    transform: scale(1.08);

    border-color: var(--border);

}



.btn-cart {

    width: 100%;

    min-height: 42px;

    border: 1px solid var(--accent);

    background: transparent;

    color: var(--accent);

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: var(--transition);

}



.btn-cart:hover {

    border-color: var(--accent);

    background: var(--accent-soft);

}



.load-more-wrap {

    display: flex;

    justify-content: center;

    margin-top: 40px;

}



.btn-load-more {

    min-width: 210px;

    height: 46px;

    border: 1px solid var(--accent);

    background: var(--accent);

    color: var(--white);

    font-size: 18px;

    cursor: pointer;

    transition: var(--transition);

}



.btn-load-more:hover {

    background: transparent;

    color: var(--accent);

}



.no-products-found {

    grid-column: 1 / -1;

    padding: 40px 0;

    text-align: center;

    color: var(--text-soft);

    font-size: 18px;

}



/* Drawer */

.shop-filter-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;

    visibility: hidden;

    transition: 0.25s ease;

    z-index: 120;

}



.shop-filter-overlay.is-open {

    opacity: 1;

    visibility: visible;

}



.shop-filter-drawer {

    position: fixed;

    top: 0;

    right: 0;

    width: min(100%, 380px);

    height: 100%;

    background: var(--white);

    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);

    transform: translateX(100%);

    transition: 0.3s ease;

    z-index: 121;

    display: flex;

    flex-direction: column;

}



.shop-filter-drawer.is-open {

    transform: translateX(0);

}



.shop-filter-drawer__header {

    min-height: 64px;

    padding: 16px 18px;

    border-bottom: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

}



.shop-filter-drawer__header h3 {

    margin: 0;

    font-size: 24px;

    font-weight: 600;

    color: var(--accent);

}



.shop-filter-drawer__close {

    width: 36px;

    height: 36px;

    border: none;

    background: transparent;

    color: var(--accent);

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

}



.shop-filter-drawer__body {

    flex: 1;

    overflow-y: auto;

    padding: 16px 18px 24px;

}



.shop-filter-drawer__footer {

    padding: 16px 18px;

    border-top: 1px solid var(--border);

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    background: var(--white);

}



body.filter-drawer-open {

    overflow: hidden;

}



/* Filter content inside drawer */

.sidebar-top {

    margin-bottom: 18px;

}



.product-count {

    font-size: 18px;

    font-weight: 600;

    color: var(--text);

}



.filter-group {

    border-top: 1px solid var(--border);

    padding: 18px 0;

}



.filter-toggle {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border: none;

    background: transparent;

    cursor: pointer;

    color: var(--accent);

    font-size: 16px;

    font-weight: 600;

    padding: 0;

}



.filter-icon {

    font-size: 18px;

    transition: transform var(--transition);

}



.filter-group:not(.is-open) .filter-icon {

    transform: rotate(180deg);

}



.filter-content {

    padding-top: 16px;

}



.filter-group:not(.is-open) .filter-content {

    display: none;

}



.category-tree {

    display: flex;

    flex-direction: column;

    gap: 14px;

}



.category-item {

    border-bottom: 1px solid var(--border);

    padding-bottom: 14px;

}



.category-item:last-child {

    border-bottom: none;

    padding-bottom: 0;

}



.category-parent {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

}



.category-check {

    flex: 1;

    margin-bottom: 0;

    font-weight: 600;

    color: var(--text);

}



.category-expand {

    width: 28px;

    height: 28px;

    border: none;

    background: transparent;

    color: var(--text);

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    transition: 0.25s ease;

}



.category-expand span {

    font-size: 16px;

    transition: transform 0.25s ease;

}



.category-item.is-open .category-expand span {

    transform: rotate(0deg);

}



.category-item:not(.is-open) .category-expand span {

    transform: rotate(180deg);

}



.category-children-wrap {

    padding-top: 12px;

    padding-left: 30px;

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.category-item:not(.is-open) .category-children-wrap {

    display: none;

}



.category-children {

    padding-top: 0;

    padding-left: 0;

}



.child-check {

    margin-bottom: 0;

    font-size: 14px;

    color: var(--text);

}



.child-check input {

    width: 16px;

    height: 16px;

}



.category-check input:indeterminate {

    background: var(--text);

    border-color: var(--text);

    position: relative;

}



.category-check input:indeterminate::after {

    content: "";

    position: absolute;

    left: 3px;

    right: 3px;

    top: 7px;

    height: 2px;

    background: var(--white);

}



.check-item {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 11px;

    cursor: pointer;

    font-size: 15px;

    color: var(--text);

}



.check-item input {

    appearance: none;

    width: 18px;

    height: 18px;

    border: 1px solid var(--border);

    background: var(--white);

    margin-top: 2px;

    flex-shrink: 0;

    position: relative;

    cursor: pointer;

}



.check-item input:checked::after {

    content: "";

    position: absolute;

    inset: 3px;

    background: var(--text);

}



.color-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px 10px;

}



.color-filter {

    border: none;

    background: transparent;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    color: var(--text);

    font-size: 14px;

    padding: 0;

}



.color-filter.active span:last-child {

    font-weight: 600;

    color: var(--dark);

}



.swatch {

    width: 28px;

    height: 28px;

    border-radius: 50%;

    border: 1px solid var(--border);

    display: inline-block;

}



.swatch.is-active {

    outline: 2px solid var(--text);

    outline-offset: 2px;

}



.size-block+.size-block {

    margin-top: 20px;

}



.size-title {

    font-size: 16px;

    font-weight: 600;

    margin-bottom: 10px;

    color: var(--text);

}



.size-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 8px;

}



.size-grid button {

    height: 42px;

    border: 1px solid var(--accent);

    background: var(--accent-soft);

    color: var(--text);

    cursor: pointer;

    transition: var(--transition);

}



.size-grid button:hover,

.size-grid button:focus-visible {

    background: var(--accent);

    color: var(--white);

    border-color: var(--accent);

}



.size-grid button.active {

    background: var(--accent);

    color: var(--white);

    border-color: var(--accent);

}



.filter-clear-btn,

.filter-apply-btn {

    min-height: 46px;

    border: 1px solid var(--accent);

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: var(--transition);

}



.filter-clear-btn {

    background: var(--white);

    color: var(--accent);

}



.filter-clear-btn:hover {

    background: var(--accent-soft);

}



.filter-apply-btn {

    background: var(--accent);

    color: var(--white);

}



.filter-apply-btn:hover {

    background: var(--accent-dark);

}



/* Responsive */

@media (max-width: 1200px) {

    .product-grid {

        gap: 24px 18px;

    }



    .product-title {

        font-size: 18px;

    }

}



@media (max-width: 991px) {

    .product-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }



    .search-page .product-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }



    .shop-header h1,

    .shop-header h2 {

        max-width: 100%;

    }

}



@media (max-width: 768px) {

    .shop-page {

        padding: 28px 0 50px;

    }



    .product-grid {

        gap: 24px;

    }



    .product-media .wishlist-btn {

        width: 38px;

        height: 38px;

        top: 10px;

        right: 10px;

    }



    .product-media .wishlist-btn svg {

        width: 18px;

        height: 18px;

    }



    .product-meta-row {

        flex-direction: column;

        gap: 6px;

    }



    .product-title {

        font-size: 17px;

    }



    .product-price {

        padding-top: 0;

    }



    .btn-cart {

        width: 100%;

        min-width: 100%;

        font-size: 20px;

        height: 48px;

    }



    /* .btn-load-more {

        width: 100%;

        min-width: 100%;

    } */



    .shop-header {

        margin-bottom: 24px;

    }



    .shop-filter-toggle {

        min-height: 40px;

        padding: 0 14px;

        font-size: 14px;

    }



    .shop-filter-drawer {

        width: min(100%, 340px);

    }



    .shop-filter-drawer__footer {

        grid-template-columns: 1fr;

    }

}



@media (max-width: 640px) {

    .product-grid {

        grid-template-columns: 1fr;

    }



    .search-page .product-grid {

        grid-template-columns: 1fr;

    }

}



/* -------------- NEW CSS -------------------- */



.category-page {

    padding-top: 42px;

}



.shop-main {

    overflow: hidden;

}



.category-hero {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 24px;

    margin-bottom: 22px;

}



/* .category-hero__content {

    max-width: 840px;

} */



.category-hero h1 {

    margin: 0 0 12px;

    color: var(--accent);

    font-size: clamp(30px, 3vw, 40px);

    line-height: 1.5;

}



.category-hero p {

    margin: 0;

    /* max-width: 760px; */

    color: var(--text);

    font-size: 16px;

    line-height: 1.5;

}



.category-link-row {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin: 0 0 34px;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);

}



.category-link {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 38px;

    padding: 8px 16px;

    border: 1px solid var(--border);

    background: var(--white);

    color: var(--text);

    font-size: 15px;

    font-weight: 500;

    text-decoration: none;

    transition: var(--transition);

}



.category-link:hover,

.category-link.is-active {

    border-color: var(--accent);

    background: var(--accent-soft);

    color: var(--accent);

}



.category-content-section {

    margin-top: 56px;

    padding-top: 44px;

    border-top: 1px solid var(--border);

}



.category-rich-content {

    /* max-width: 980px; */

    color: var(--text);

    font-size: 16px;

    line-height: 1.75;

    overflow: hidden;

}



.category-rich-content h1,

.category-rich-content h2,

.category-rich-content h3,

.category-rich-content h4,

.category-rich-content h5,

.category-rich-content h6 {

    margin: 0;

}



.category-rich-content h1 span,

.category-rich-content h2 span,

.category-rich-content h3 span,

.category-rich-content h4 span,

.category-rich-content h5 span,

.category-rich-content h6 span {

    font-family: "Quicksand", sans-serif !important;

    line-height: 1.5 !important;

}



.category-rich-content h2 span {

    font-size: 30px !important;

}



.category-rich-content h3 span {

    font-size: 25px !important;

}



.category-rich-content p {

    font-family: "Quicksand", sans-serif !important;

    font-size: 16px !important;

    line-height: 1.5 !important;

}



.category-rich-content p span {

    font-family: "Quicksand", sans-serif !important;

    font-size: 18px !important;

    line-height: 1.5 !important;

}



.category-rich-content ul,

.category-rich-content ol {

    /* margin: 0 0 22px 22px !important; */

    padding-inline-start: 40px !important;

}



.category-rich-content li {

    margin-bottom: 8px;

}



.category-rich-content a {

    color: var(--accent);

    text-decoration: underline;

}



.category-rich-content img {

    max-width: 100%;

    height: auto;

}



.category-faq-section {

    margin-top: 56px;

    padding-top: 44px;

    border-top: 1px solid var(--border);

}



.category-faq-section h2 {

    margin: 0 0 24px;

    color: var(--accent);

    font-size: clamp(26px, 2.4vw, 40px);

    line-height: 1.5;

    text-align: center;

}



.category-faq-list {

    border-top: 1px solid var(--border);

}



.category-faq-item {

    border-bottom: 1px solid var(--border);

}



.category-faq-question {

    width: 100%;

    min-height: 66px;

    border: none;

    background: transparent;

    color: var(--text);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    padding: 18px 0;

    text-align: left;

    cursor: pointer;

    font-size: 18px;

}



.category-faq-question h4 {

    font-weight: 600;

    font-family: "Quicksand", sans-serif;

    margin: 0;

}



.category-faq-icon {

    width: 30px;

    height: 30px;

    border: 1px solid var(--accent);

    color: var(--accent);

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    line-height: 1;

    transition: var(--transition);

}



.category-faq-icon::before {

    content: "+";

    font-size: 22px;

    line-height: 1;

}



.category-faq-answer {

    display: none;

    padding: 0 48px 20px 0;

    color: var(--text-soft);

    font-size: 16px;

    line-height: 1.7;

}



.category-faq-answer p,

.category-faq-answer span {

    font-family: "Quicksand", sans-serif !important;

    font-size: 16px !important;

    line-height: 1.5 !important;

}



.category-faq-answer p span {

    font-family: "Quicksand", sans-serif !important;

    font-size: 16px !important;

    line-height: 1.5 !important;

}



.category-faq-item.is-open .category-faq-answer {

    display: block;

}



.category-faq-item.is-open .category-faq-icon {

    background: var(--accent);

    color: var(--white);

}



.category-faq-item.is-open .category-faq-icon {

    font-size: 0;

}



.category-faq-item.is-open .category-faq-icon::before {

    content: "−";

    font-size: 24px;

    line-height: 1;

}



@media (max-width: 768px) {

    .category-page {

        padding-top: 28px;

    }



    .category-hero {

        flex-direction: column;

        gap: 18px;

        margin-bottom: 20px;

    }



    .category-hero .shop-filter-toggle {

        width: 100%;

        justify-content: center;

    }



    .category-link-row {

        justify-content: flex-start;

        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 14px;

        margin-bottom: 28px;

        -webkit-overflow-scrolling: touch;

    }



    .category-link {

        white-space: nowrap;

        flex-shrink: 0;

    }



    .category-content-section,

    .category-faq-section {

        margin-top: 42px;

        padding-top: 34px;

    }



    .category-rich-content {

        font-size: 16px;

    }



    .category-faq-question {

        min-height: 58px;

        font-size: 16px;

        padding: 16px 0;

    }



    .category-faq-answer {

        padding-right: 0;

        font-size: 15px;

    }

}



/*  Pagination */



.shop-pagination {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    margin: 35px 0;

    flex-wrap: wrap;

}



.shop-pagination .page-link {

    min-width: 38px;

    height: 38px;

    padding: 0 12px;

    border: 1px solid #ddd;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    color: #222;

    background: #fff;

    border-radius: 4px;

    font-size: 14px;

}



.shop-pagination .page-link.is-active,

.shop-pagination .page-link:hover {

    background: var(--accent);

    color: var(--white);

    border-color: var(--accent);

}