/* Home hero: product photo left, title and card slider right */

.vh-hero {
    --vh-text: #FBF6EE;
    --vh-card-w: 400px;
    --vh-gap: 20px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: -80px;
    height: max(640px, min(100vh, 900px));
    background: #3A2B20;
    color: var(--vh-text);
    border-radius: 0 0 32px 32px;
}

/* the same photo, blurred, fills the rest of the hero */
.vh-backdrop { position: absolute; inset: 0; z-index: 0; }
.vh-backdrop img {
    position: absolute;
    inset: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    object-fit: cover;
    filter: blur(30px) saturate(1.15);
    opacity: 0;
    transition: opacity 0.8s ease;
}
.vh-backdrop img.is-on { opacity: 1; }
/* light shade on the text side only */
.vh-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 22, 16, 0.05) 30%, rgba(30, 22, 16, 0.42) 75%);
}

.vh-photos {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    height: 100%;
    aspect-ratio: 4 / 5;
    max-width: 52%;
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
}
.vh-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.vh-photo.is-on { opacity: 1; }

.vh-inner {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 120px clamp(20px, 4vw, 56px) 56px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.vh-side {
    width: min(560px, 44%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.vh-title {
    margin: 0 0 36px;
    font-family: 'Inter', sans-serif;
    font-size: clamp(44px, 5.2vw, 80px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-align: right;
    color: var(--vh-text);
    text-shadow: 0 2px 24px rgba(20, 14, 10, 0.35);
}

.vh-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}
.vh-num {
    font-family: var(--font-num);
    font-size: 20px;
    font-weight: 700;
    color: var(--vh-text);
    font-variant-numeric: tabular-nums;
}
.vh-num.is-total { font-weight: 500; color: rgba(251, 246, 238, 0.75); }
.vh-bar {
    position: relative;
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: rgba(251, 246, 238, 0.28);
    overflow: hidden;
}
.vh-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--vh-text);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* the track runs off the right edge so the next card peeks in */
.vh-viewport {
    width: calc(100% + clamp(20px, 4vw, 56px));
    margin-right: calc(-1 * clamp(20px, 4vw, 56px));
    overflow: hidden;
    padding: 4px 0;
}
.vh-track {
    display: flex;
    gap: var(--vh-gap);
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.vh-card {
    flex: 0 0 var(--vh-card-w);
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: rgba(40, 29, 21, 0.42);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    opacity: 0.55;
    transition: opacity 0.5s ease;
    cursor: pointer;
}
.vh-card.is-on { opacity: 1; cursor: default; }
.vh-card-img {
    width: 140px;
    height: 172px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.08);
}
.vh-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 4px 4px 2px 0;
}
.vh-card-cat {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.66);
}
.vh-card-title {
    margin: 0 0 6px;
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #fff;
}
.vh-card-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.74);
}
.vh-card-foot {
    width: 100%;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 10px;
}
.vh-card-price {
    font-family: var(--font-num);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.vh-card-btn {
    flex-shrink: 0;
    padding: 9px 20px;
    border: 0;
    border-radius: 999px;
    background: #FBF7F0;
    color: var(--brown-dark);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.vh-card-btn:hover { background: #fff; transform: translateY(-1px); }
.vh-card-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.vh-arrows {
    display: flex;
    gap: 12px;
    align-self: flex-start;
    margin-top: 24px;
}
.vh-arrow {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(251, 246, 238, 0.45);
    background: rgba(40, 29, 21, 0.25);
    color: var(--vh-text);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.vh-arrow.is-prev svg { transform: rotate(180deg); }
.vh-arrow:hover { border-color: rgba(251, 246, 238, 0.8); }
.vh-arrow.is-next { background: #FBF7F0; border-color: #FBF7F0; color: var(--brown-dark); }
.vh-arrow.is-next:hover { background: #fff; transform: translateX(2px); }
.vh-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 1100px) {
    .vh-hero { --vh-card-w: 350px; }
    .vh-side { width: min(500px, 52%); }
    .vh-card { grid-template-columns: 116px minmax(0, 1fr); }
    .vh-card-img { width: 116px; height: 150px; }
}

@media (max-width: 860px) {
    .vh-hero {
        --vh-card-w: min(350px, calc(100vw - 64px));
        height: auto;
        margin-top: 0;
        border-radius: 0 0 24px 24px;
    }
    .vh-photos {
        position: relative;
        width: 100%;
        max-width: none;
        height: 64vh;
        aspect-ratio: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .vh-backdrop::after { background: rgba(30, 22, 16, 0.4); }
    .vh-inner { display: block; height: auto; padding: 28px 20px 36px; }
    .vh-side { width: 100%; align-items: stretch; }
    .vh-title { text-align: left; font-size: clamp(36px, 10vw, 54px); margin-bottom: 22px; }
    .vh-viewport { width: calc(100% + 20px); margin-right: -20px; }
    .vh-arrows { margin-top: 18px; }
}

@media (max-width: 420px) {
    .vh-card { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; }
    .vh-card-img { width: 100px; height: 136px; }
    .vh-card-title { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .vh-photo, .vh-backdrop img, .vh-track, .vh-bar span, .vh-card { transition: none; }
}

/* Best sellers: heading on top, bento grid of four pieces centered below */

/* rows shrink with the screen height so the whole section fits in one view */
.bs-section { padding-top: 64px; padding-bottom: 64px; }
.bs-layout { max-width: 1120px; margin: 0 auto; }
.bs-intro { text-align: center; margin-bottom: 28px; }
.bs-intro .section-eyebrow { justify-content: center; }
.bs-intro .section-title { margin: 0; }
.bs-more { display: flex; justify-content: center; margin-top: 24px; }
.bs-more .view-all-link { display: inline-flex; }

.bs-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: clamp(210px, calc((100vh - 380px) / 2), 320px);
    gap: 18px;
}
.bs-tile:nth-child(4n + 1),
.bs-tile:nth-child(4n + 4) { grid-column: span 3; }
.bs-tile:nth-child(4n + 2),
.bs-tile:nth-child(4n + 3) { grid-column: span 2; }

.bs-tile {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.bs-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.bs-media {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: var(--surface-2);
    cursor: pointer;
}
.bs-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.bs-tile:hover .bs-media img { transform: scale(1.04); }
.bs-media .bs-placeholder { width: 64px; height: 64px; margin: auto; object-fit: contain; opacity: 0.4; }
.bs-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(30, 22, 16, 0.78) 100%);
    pointer-events: none;
}

.bs-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(30, 22, 16, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}

.bs-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 18px 20px;
    pointer-events: none;
}
.bs-text { min-width: 0; color: #fff; }
.bs-name {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
}
.bs-price { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.bs-price * { color: inherit !important; }
.bs-actions { display: flex; gap: 8px; flex-shrink: 0; pointer-events: auto; }
.bs-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #FBF7F0;
    color: var(--brown-dark);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.bs-btn:hover { background: #fff; transform: translateY(-1px); }
.bs-btn.is-ghost {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(30, 22, 16, 0.35);
    color: #fff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.bs-btn.is-ghost:hover { background: rgba(30, 22, 16, 0.6); }
.bs-btn:focus-visible, .bs-media:focus-visible { outline: 2px solid var(--brown-mid); outline-offset: 3px; }

@media (max-width: 760px) {
    .bs-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
    .bs-tile:nth-child(n) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .bs-tile, .bs-media img { transition: none; }
}
