/* =========================================================
   DESIGNER BOXES — EDITORIAL / LUXURY COLLECTION
========================================================= */
.boxes-page {
    --box-bg: #fbf7f3;
    --box-peach: #d6cde6;
    --box-peach-light: #f8eee8;
    --box-white: #fffdfb;
    --box-text: #502149;
    --box-heading: #403832;
    --box-muted: #887b73;
    --box-accent: #9b7565;
    --box-line: #e8ddd5;
    background: var(--box-bg);
    color: var(--box-text);
}

/* =========================================================
   GLOBAL
========================================================= */
.boxes-page *,
.boxes-page *::before,
.boxes-page *::after {
    box-sizing: border-box;
}

.boxes-page img {
    max-width: 100%;
}

.boxes-page a {
    color: inherit;
}

/* =========================================================
   HERO
========================================================= */
.boxes-page .boxes-hero {
    padding: 30px 5px 25px;
    text-align: center;
    background: var(--box-bg);
}

.boxes-page .boxes-hero-inner {
    max-width: 850px;
    margin: auto;
}

.boxes-page .boxes-eyebrow,
.boxes-page .boxes-section-label {
    display: block;
    margin-bottom: 16px;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .22em;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--box-accent);
}

.boxes-page .boxes-hero h1 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(52px, 7vw, 92px);
    font-weight: 400;
    line-height: .95;
    letter-spacing: -.025em;
    color: var(--box-heading);
}

.boxes-page .boxes-hero p {
    max-width: 580px;
    margin: 24px auto 0;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.9;
    color: var(--box-muted);
}

/* =========================================================
   INTRO
========================================================= */
.boxes-page .boxes-intro {
    padding: 80px 20px;
    background: var(--box-white);
    border-top: 1px solid var(--box-line);
    border-bottom: 1px solid var(--box-line);
}

.boxes-page .boxes-intro-content {
    max-width: 700px;
    margin: auto;
    text-align: center;
}

.boxes-page .boxes-intro h2 {
    margin: 0 0 20px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 400;
    line-height: 1;
    color: var(--box-heading);
}

.boxes-page .boxes-intro p {
    max-width: 650px;
    margin: 0 auto 12px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.9;
    color: var(--box-muted);
}

/* =========================================================
   COLLECTION
========================================================= */
.boxes-page .boxes-collection {
    padding: 90px 0 110px;
    background: var(--box-bg);
}

.boxes-page .boxes-collection-heading {
    margin-bottom: 45px;
}

.boxes-page .boxes-collection-heading h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(38px, 4vw, 55px);
    font-weight: 400;
    line-height: 1;
    color: var(--box-heading);
}

/* =========================================================
   PRODUCT GRID
========================================================= */
.boxes-page .boxes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 55px 22px;
}

/* =========================================================
   PRODUCT
========================================================= */
.boxes-page .boxes-product {
    min-width: 0;
    background: transparent;
}

/* =========================================================
   PRODUCT IMAGE AREA
========================================================= */
.boxes-page .boxes-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--box-peach);
}

.boxes-page .boxes-product-main-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    cursor: zoom-in;
    transition:
        transform .7s cubic-bezier(.22, 1, .36, 1),
        opacity .3s ease;
}

.boxes-page .boxes-product:hover .boxes-product-main-img {
    transform: scale(1.035);
}

/* =========================================================
   IMAGE VIEW BUTTON
========================================================= */
.boxes-page .boxes-product-view {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(80, 65, 58, .15);
    border-radius: 50%;
    background: rgba(255, 253, 251, .92);
    color: var(--box-text);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity .3s ease,
        transform .3s ease,
        background .3s ease,
        color .3s ease;
}

.boxes-page .boxes-product:hover .boxes-product-view {
    opacity: 1;
    transform: translateY(0);
}

.boxes-page .boxes-product-view:hover {
    background: var(--box-heading);
    color: #fff;
}

.boxes-page .boxes-product-view i {
    font-size: 12px;
}

/* =========================================================
   THUMBNAIL GALLERY
========================================================= */
.boxes-page .boxes-product-thumbnails {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.boxes-page .boxes-product-thumbnails::-webkit-scrollbar {
    display: none;
}

.boxes-page .boxes-product-thumb {
    flex: 0 0 47px;
    width: 47px;
    height: 47px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--box-line);
    border-radius: 0;
    background: var(--box-white);
    cursor: pointer;
    transition:
        border-color .25s ease,
        opacity .25s ease,
        transform .25s ease;
}

.boxes-page .boxes-product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boxes-page .boxes-product-thumb:hover {
    border-color: var(--box-accent);
    transform: translateY(-2px);
}

.boxes-page .boxes-product-thumb.active {
    border-color: var(--box-heading);
}

/* =========================================================
   PRODUCT INFORMATION
========================================================= */
.boxes-page .boxes-product-content {
    padding: 17px 0 0;
}

.boxes-page .boxes-product-number {
    display: block;
    margin-bottom: 7px;
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .18em;
    color: var(--box-accent);
}

.boxes-page .boxes-product-content h3 {
    margin: 0 0 7px;
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.05;
    color: var(--box-heading);
}

.boxes-page .boxes-product-content p {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    line-height: 1.7;
    color: var(--box-muted);
}

/* =========================================================
   PRODUCT LINK
========================================================= */
.boxes-page .boxes-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .14em;
    line-height: 1.5;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--box-heading);
    transition:
        color .25s ease,
        gap .25s ease;
}

.boxes-page .boxes-product-btn:hover {
    gap: 11px;
    color: var(--box-accent);
}

.boxes-page .boxes-product-btn i {
    font-size: 9px;
    transition: transform .25s ease;
}

.boxes-page .boxes-product-btn:hover i {
    transform: translateX(2px);
}

/* =========================================================
   LIGHTBOX
========================================================= */
.boxes-page .boxes-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(42, 35, 31, .96);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.boxes-page .boxes-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.boxes-page .boxes-lightbox-content {
    width: min(90vw, 1100px);
    height: min(88vh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.boxes-page .boxes-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

/* =========================================================
   LIGHTBOX CLOSE
========================================================= */
.boxes-page .boxes-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    transition:
        opacity .2s ease,
        transform .25s ease;
}

.boxes-page .boxes-lightbox-close:hover {
    opacity: .7;
    transform: rotate(90deg);
}

/* =========================================================
   LIGHTBOX ARROWS
========================================================= */
.boxes-page .boxes-lightbox-prev,
.boxes-page .boxes-lightbox-next {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background .25s ease,
        transform .25s ease;
}

.boxes-page .boxes-lightbox-prev {
    left: 25px;
}

.boxes-page .boxes-lightbox-next {
    right: 25px;
}

.boxes-page .boxes-lightbox-prev:hover,
.boxes-page .boxes-lightbox-next:hover {
    background: rgba(255, 255, 255, .18);
    transform: translateY(-50%) scale(1.05);
}

/* =========================================================
   BODY LOCK
========================================================= */
body.boxes-lightbox-open {
    overflow: hidden;
}

/* =========================================================
   LARGE TABLET
========================================================= */
@media (max-width: 1199px) {
    .boxes-page .boxes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 50px 20px;
    }

    .boxes-page .boxes-product-main-img {
        padding: 18px;
    }
}

/* =========================================================
   TABLET
========================================================= */
@media (max-width: 991px) {
    .boxes-page .boxes-hero {
        padding: 75px 20px;
    }

    .boxes-page .boxes-intro {
        padding: 70px 20px;
    }

    .boxes-page .boxes-collection {
        padding: 75px 0 90px;
    }

    .boxes-page .boxes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 45px 20px;
    }

    .boxes-page .boxes-product-content h3 {
        font-size: 23px;
    }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 575px) {
    .boxes-page .boxes-hero {
        padding: 65px 18px 60px;
    }

    .boxes-page .boxes-hero h1 {
        font-size: 52px;
    }

    .boxes-page .boxes-hero p {
        font-size: 12px;
    }

    .boxes-page .boxes-intro {
        padding: 60px 18px;
    }

    .boxes-page .boxes-intro h2 {
        font-size: 38px;
    }

    .boxes-page .boxes-collection {
        padding: 60px 0 75px;
    }

    .boxes-page .boxes-collection-heading {
        margin-bottom: 32px;
    }

    .boxes-page .boxes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 12px;
    }

    .boxes-page .boxes-product-image {
        aspect-ratio: 4 / 5;
    }

    .boxes-page .boxes-product-main-img {
        padding: 10px;
    }

    .boxes-page .boxes-product-view {
        width: 34px;
        height: 34px;
        right: 8px;
        bottom: 8px;
        opacity: 1;
        transform: none;
    }

    .boxes-page .boxes-product-thumbnails {
        gap: 4px;
        margin-top: 7px;
    }

    .boxes-page .boxes-product-thumb {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .boxes-page .boxes-product-content {
        padding-top: 13px;
    }

    .boxes-page .boxes-product-content h3 {
        font-size: 20px;
    }

    .boxes-page .boxes-product-content p {
        font-size: 10px;
        line-height: 1.6;
    }

    .boxes-page .boxes-product-btn {
        font-size: 8px;
        margin-top: 9px;
    }

    .boxes-page .boxes-lightbox {
        padding: 15px;
    }

    .boxes-page .boxes-lightbox-prev,
    .boxes-page .boxes-lightbox-next {
        width: 40px;
        height: 40px;
    }

    .boxes-page .boxes-lightbox-prev {
        left: 8px;
    }

    .boxes-page .boxes-lightbox-next {
        right: 8px;
    }

    .boxes-page .boxes-lightbox-close {
        top: 8px;
        right: 10px;
    }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */
@media (max-width: 380px) {
    .boxes-page .boxes-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .boxes-page .boxes-product-image {
        aspect-ratio: 1 / 1.15;
    }

    .boxes-page .boxes-product-main-img {
        padding: 20px;
    }

    .boxes-page .boxes-product-content h3 {
        font-size: 24px;
    }

    .boxes-page .boxes-product-content p {
        font-size: 11px;
    }
}