:root {
    --bbt-ink: #111111;
    --bbt-muted: #74746f;
    --bbt-line: #e7e2dc;
    --bbt-soft: #f7f5f1;
    --bbt-moss: #657260;
    --bbt-wine: #8f2635;
    --bbt-gold: #b88a44;
    --bbt-radius: 8px;
    --bbt-shadow: 0 28px 70px rgba(17, 17, 17, 0.11);
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: var(--bbt-ink);
    letter-spacing: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.site-nav {
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    min-height: 72px;
}

.brand-mark,
.footer-brand {
    color: var(--bbt-ink);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: lowercase;
}

.nav-cart {
    align-items: center;
    display: inline-flex;
    gap: 0.55rem;
    min-height: 44px;
}

.cart-count {
    align-items: center;
    background: var(--bbt-wine);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.7rem;
    height: 1.35rem;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0 0.35rem;
}

.catalogue-hero {
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.08)),
        var(--hero-image);
    background-position: center;
    background-size: cover;
    min-height: min(680px, 74vh);
    position: relative;
}

.hero-content {
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(680px, 74vh);
    max-width: 1500px;
    position: relative;
}

.eyebrow {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.catalogue-hero h1 {
    color: #fff;
    font-size: clamp(3rem, 8vw, 7.6rem);
    line-height: 0.88;
    margin: 0;
    max-width: 10ch;
    text-transform: lowercase;
}

.catalogue-hero .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.74);
    color: #fff;
}

.catalogue-hero .btn-outline-light:hover {
    background: #fff;
    border-color: #fff;
    color: var(--bbt-ink);
}

.hero-copy {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.6;
    margin: 1.4rem 0 0;
    max-width: 42rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.btn-icon-text {
    align-items: center;
    display: inline-flex;
    gap: 0.55rem;
    justify-content: center;
}

.btn svg,
.icon-button svg,
.nav-cart svg,
.back-link svg,
.search-field svg,
.quantity-stepper svg {
    height: 1rem;
    width: 1rem;
}

.collection-shell,
.product-detail,
.cart-page {
    padding: clamp(2.8rem, 7vw, 6rem) 0;
}

.section-heading {
    align-items: end;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-heading h1,
.section-heading h2 {
    font-size: clamp(1.6rem, 3vw, 3rem);
    line-height: 1.05;
    margin: 0;
    max-width: 760px;
}

.section-heading p:last-child {
    color: var(--bbt-muted);
    margin-bottom: 0.25rem;
}

.catalogue-toolbar {
    align-items: center;
    background: var(--bbt-soft);
    border: 1px solid var(--bbt-line);
    border-radius: var(--bbt-radius);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(160px, 220px) auto;
    padding: 0.8rem;
}

.search-field {
    align-items: center;
    background: #fff;
    border: 1px solid #d8d2ca;
    border-radius: var(--bbt-radius);
    display: flex;
    gap: 0.6rem;
    padding: 0 0.85rem;
}

.search-field .form-control {
    border: 0;
    box-shadow: none;
    padding-left: 0;
}

.category-strip {
    display: flex;
    gap: 0.65rem;
    margin: 1rem 0 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.category-strip a {
    border: 1px solid var(--bbt-line);
    border-radius: 999px;
    color: var(--bbt-muted);
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.65rem 1rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.category-strip a:hover,
.category-strip a.active {
    background: var(--bbt-ink);
    border-color: var(--bbt-ink);
    color: #fff;
}

.product-grid {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: var(--bbt-radius);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
    border-color: rgba(17, 17, 17, 0.22);
    box-shadow: var(--bbt-shadow);
    transform: translateY(-4px);
}

.product-image {
    aspect-ratio: 4 / 5;
    background: var(--bbt-soft);
    display: block;
    overflow: hidden;
    position: relative;
}

.product-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
    width: 100%;
}

.product-card:hover .product-image img {
    transform: scale(1.045);
}

.product-badge {
    background: #fff;
    border-radius: 999px;
    color: var(--bbt-ink);
    font-size: 0.7rem;
    font-weight: 800;
    left: 0.85rem;
    padding: 0.4rem 0.7rem;
    position: absolute;
    text-transform: uppercase;
    top: 0.85rem;
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.product-meta,
.summary-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.product-meta {
    color: var(--bbt-muted);
    font-size: 0.78rem;
    gap: 1rem;
    text-transform: uppercase;
}

.product-meta strong {
    color: var(--bbt-ink);
    flex: 0 0 auto;
}

.product-body h3 {
    font-size: 1rem;
    line-height: 1.25;
    margin: 0.65rem 0 0.4rem;
}

.product-body h3 a {
    text-decoration: none;
}

.product-body p {
    color: var(--bbt-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.product-actions {
    align-items: center;
    display: flex;
    gap: 0.6rem;
    justify-content: space-between;
    margin-top: auto;
}

.product-actions form {
    margin: 0;
}

.detail-grid {
    display: grid;
    gap: clamp(1rem, 3vw, 3rem);
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    min-height: 620px;
}

.detail-media {
    background: var(--bbt-soft);
    border-radius: var(--bbt-radius);
    overflow: hidden;
}

.detail-media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.detail-panel {
    align-self: center;
    padding: clamp(1rem, 3vw, 2rem) 0;
}

.back-link {
    align-items: center;
    color: var(--bbt-muted);
    display: inline-flex;
    font-weight: 700;
    gap: 0.5rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.detail-panel h1 {
    font-size: clamp(2rem, 4vw, 4.5rem);
    line-height: 0.98;
    margin-bottom: 1rem;
}

.detail-tagline,
.detail-panel > p {
    color: var(--bbt-muted);
    line-height: 1.7;
}

.detail-price {
    color: var(--bbt-ink);
    font-size: 1.6rem;
    font-weight: 800;
}

.detail-specs {
    border-bottom: 1px solid var(--bbt-line);
    border-top: 1px solid var(--bbt-line);
    display: grid;
    gap: 0;
    margin: 1.5rem 0;
}

.detail-specs div {
    display: grid;
    gap: 1rem;
    grid-template-columns: 120px 1fr;
    padding: 0.8rem 0;
}

.detail-specs dt {
    color: var(--bbt-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.detail-specs dd {
    margin: 0;
}

.purchase-form label {
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

.purchase-row,
.cart-item-actions,
.quantity-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quantity-stepper {
    align-items: center;
    border: 1px solid var(--bbt-line);
    border-radius: var(--bbt-radius);
    display: inline-grid;
    grid-template-columns: 42px 72px 42px;
    height: 48px;
    overflow: hidden;
}

.quantity-stepper button,
.icon-button {
    align-items: center;
    background: #fff;
    border: 0;
    color: var(--bbt-ink);
    display: inline-flex;
    height: 100%;
    justify-content: center;
    transition: background 180ms ease, color 180ms ease;
}

.quantity-stepper button:hover,
.icon-button:hover {
    background: var(--bbt-ink);
    color: #fff;
}

.quantity-stepper input {
    border: 0;
    border-left: 1px solid var(--bbt-line);
    border-right: 1px solid var(--bbt-line);
    height: 100%;
    text-align: center;
    width: 100%;
}

.related-section {
    margin-top: clamp(3rem, 7vw, 6rem);
}

.cart-grid {
    align-items: start;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.cart-items {
    display: grid;
    gap: 1rem;
}

.cart-item {
    border: 1px solid var(--bbt-line);
    border-radius: var(--bbt-radius);
    display: grid;
    gap: 1rem;
    grid-template-columns: 148px minmax(0, 1fr) auto;
    padding: 0.8rem;
}

.cart-item-image {
    aspect-ratio: 1;
    background: var(--bbt-soft);
    border-radius: calc(var(--bbt-radius) - 2px);
    overflow: hidden;
}

.cart-item-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.cart-item-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.cart-item-main h2 {
    font-size: 1.1rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.cart-item-main h2 a {
    text-decoration: none;
}

.cart-item-main p {
    color: var(--bbt-muted);
    margin-bottom: 0.75rem;
}

.cart-price {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: center;
    min-width: 120px;
    text-align: right;
}

.cart-price span {
    color: var(--bbt-muted);
    font-size: 0.86rem;
}

.cart-price strong {
    font-size: 1.05rem;
}

.order-summary {
    border: 1px solid var(--bbt-line);
    border-radius: var(--bbt-radius);
    padding: 1.25rem;
    position: sticky;
    top: 96px;
}

.order-summary h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.summary-row {
    border-top: 1px solid var(--bbt-line);
    padding: 1rem 0;
}

.summary-total {
    font-size: 1.2rem;
}

.whatsapp-form {
    display: grid;
    gap: 0.8rem;
}

.whatsapp-form textarea {
    min-height: 110px;
}

.icon-button {
    border: 1px solid var(--bbt-line);
    border-radius: var(--bbt-radius);
    height: 38px;
    width: 38px;
}

.empty-state {
    align-items: center;
    background: var(--bbt-soft);
    border: 1px solid var(--bbt-line);
    border-radius: var(--bbt-radius);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    min-height: 280px;
    text-align: center;
}

.empty-state h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin: 0;
}

.site-footer {
    background: var(--bbt-ink);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
    display: block;
    margin-bottom: 0.45rem;
    text-decoration: none;
}

.footer-brand {
    color: #fff;
    display: inline-block;
    margin-bottom: 1rem;
}

.site-footer h2 {
    color: #fff;
    font-size: 0.78rem;
    margin-bottom: 1rem;
}

.message-stack {
    z-index: 1100;
}

.toast {
    box-shadow: var(--bbt-shadow);
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1199.98px) {
    .product-grid,
    .product-grid.compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalogue-toolbar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        padding: 1rem 0;
    }

    .detail-grid,
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        min-height: 0;
    }

    .detail-media {
        aspect-ratio: 4 / 5;
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .catalogue-hero,
    .hero-content {
        min-height: 620px;
    }

    .section-heading,
    .cart-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .catalogue-toolbar {
        grid-template-columns: 1fr;
    }

    .product-grid,
    .product-grid.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .product-actions .btn,
    .product-actions form,
    .product-actions button {
        width: 100%;
    }

    .cart-item {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .cart-price {
        grid-column: 1 / -1;
        text-align: left;
    }
}

@media (max-width: 479.98px) {
    .product-grid,
    .product-grid.compact {
        grid-template-columns: 1fr;
    }

    .catalogue-hero h1 {
        font-size: 3.1rem;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item-image {
        aspect-ratio: 4 / 3;
    }

    .purchase-row .btn,
    .purchase-row .quantity-stepper {
        width: 100%;
    }

    .quantity-stepper {
        grid-template-columns: 48px 1fr 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
