:root {
    --header-height: 86px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 252, 246, .9);
    border-bottom: 1px solid rgba(74, 33, 26, .1);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px clamp(20px, 6vw, 84px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.site-brand img {
    width: clamp(124px, 15vw, 178px);
    height: auto;
    display: block;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 28px);
    margin-left: auto;
}

.site-nav a {
    position: relative;
    color: rgba(23, 21, 19, .74);
    font-size: .94rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--terrace);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--ulin-red);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--charcoal);
    color: #fffaf2;
    font-size: .9rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 14px 32px rgba(23, 21, 19, .14);
}

.header-cta:hover {
    background: var(--ulin-red);
}

.nav-toggle {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(74, 33, 26, .15);
    border-radius: 999px;
    background: rgba(255, 252, 246, .72);
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--ulin-dark);
}

.listing-page .section-heading h1 {
    margin: 12px 0 0;
    color: var(--charcoal);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    line-height: .98;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 252, 246, .92);
    box-shadow: var(--shadow);
}

.product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(202, 161, 91, .2), rgba(74, 33, 26, .08));
    text-decoration: none;
}

.product-card__media img,
.product-detail__main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.035);
}

.product-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(74, 33, 26, .36);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4rem;
    font-weight: 700;
}

.product-card__thumbs,
.product-detail__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    background: rgba(255, 252, 246, .85);
}

.product-card__thumbs img,
.product-detail__thumbs img {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid rgba(74, 33, 26, .12);
    border-radius: 12px;
    object-fit: cover;
    background: #f4eee4;
}

.product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.product-card__body span {
    color: var(--ash);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.product-card__body h2 {
    margin: 10px 0 10px;
    color: var(--ulin-dark);
    font-size: 1.35rem;
    line-height: 1.22;
}

.product-card__body p {
    margin: 0;
    color: rgba(23, 21, 19, .68);
}

.product-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
}

.product-card__actions a,
.share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(74, 33, 26, .14);
    border-radius: 999px;
    color: var(--ulin-red);
    font-size: .88rem;
    font-weight: 850;
    text-decoration: none;
}

.product-card__actions a:last-child {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: #fffaf2;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(280px, .92fr) minmax(0, 1.08fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: start;
}

.product-detail__gallery {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.product-detail__main-image {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #f4eee4;
    box-shadow: var(--shadow);
}

.product-detail__thumbs {
    padding: 12px 0 0;
    background: transparent;
}

.product-detail__content h1 {
    margin: 14px 0 16px;
    color: var(--charcoal);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    line-height: .96;
}

.product-detail__content > p {
    color: rgba(23, 21, 19, .7);
    font-size: 1.14rem;
}

.share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0;
}

.site-footer {
    background:
        radial-gradient(circle at 12% 0%, rgba(202, 161, 91, .18), transparent 28rem),
        linear-gradient(135deg, #151210 0%, #261b17 48%, #0f0d0c 100%);
    color: #fffaf2;
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(160px, .75fr));
    gap: clamp(28px, 5vw, 70px);
    padding: clamp(56px, 7vw, 92px) clamp(20px, 6vw, 84px);
}

.site-footer__brand img {
    width: min(190px, 56vw);
    height: auto;
    display: block;
    margin-bottom: 22px;
}

.site-footer__brand p,
.footer-contact p,
.site-footer__bottom p {
    color: rgba(255, 250, 242, .68);
}

.site-footer__brand p {
    max-width: 380px;
    margin: 0 0 22px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 250, 242, .16);
    border-radius: 999px;
    background: rgba(255, 250, 242, .06);
    color: #fffaf2;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h3 {
    margin: 0 0 10px;
    color: var(--terrace-soft);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.footer-col a {
    color: rgba(255, 250, 242, .78);
    text-decoration: none;
}

.footer-col a:hover,
.footer-social a:hover {
    color: var(--terrace-soft);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px clamp(20px, 6vw, 84px);
    border-top: 1px solid rgba(255, 250, 242, .1);
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__bottom div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer__bottom a {
    color: rgba(255, 250, 242, .7);
    font-size: .9rem;
    text-decoration: none;
}

.site-footer__bottom a:hover {
    color: var(--terrace-soft);
}

@media (max-width: 1120px) {
    .site-header__inner {
        gap: 16px;
    }

    .site-nav {
        gap: 14px;
    }

    .header-cta {
        padding-inline: 15px;
    }
}

@media (max-width: 980px) {
    .product-grid,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail__gallery {
        position: static;
    }
}

@media (max-width: 940px) {
    .site-header__inner {
        min-height: 76px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header-cta {
        display: none;
    }

    .site-nav {
        position: fixed;
        top: 76px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid rgba(74, 33, 26, .12);
        border-radius: 22px;
        background: rgba(255, 252, 246, .98);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 13px 14px;
        border-radius: 14px;
    }

    .site-nav a::after {
        display: none;
    }

    .site-nav a:hover {
        background: rgba(202, 161, 91, .12);
    }

    .site-footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .site-brand img {
        width: 128px;
    }

    .product-card__body {
        padding: 20px;
    }

    .product-card__actions {
        flex-direction: column;
    }

    .product-card__actions a {
        width: 100%;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
