/* =====================================================
   OWL BREW & BITES
   Clean • Balanced • 4 Products Per Row
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f1eb;
    color: #2b1b15;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* HEADER */

.brew-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(246, 241, 235, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5d6c8;
}

.brew-nav {
    width: min(1180px, 92%);
    min-height: 76px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brew-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brew-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: white;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
}

.brew-brand strong,
.brew-brand span {
    display: block;
}

.brew-brand span {
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.brew-links {
    display: flex;
    gap: 24px;
    font-weight: 900;
}

/* HERO */

.brew-hero {
    min-height: 620px;
    padding: 82px 0;
    background:
        linear-gradient(120deg, rgba(43, 27, 21, 0.88), rgba(43, 27, 21, 0.55)),
        url("https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&w=1800&q=80");
    background-size: cover;
    background-position: center;
    color: white;
}

.brew-hero-inner {
    width: min(1180px, 92%);
    margin: auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 42px;
    align-items: center;
}

.brew-badge {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.82rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.brew-copy h1 {
    max-width: 680px;
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.brew-copy p {
    max-width: 590px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
    font-size: 1.05rem;
}

.brew-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.brew-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 950;
}

.brew-btn.primary {
    background: #f59e0b;
    color: #2b1b15;
}

.brew-btn.secondary {
    border: 2px solid rgba(255, 255, 255, 0.72);
    color: white;
}

.brew-visual {
    position: relative;
}

.brew-photo-card {
    border-radius: 34px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}

.brew-photo-card img {
    height: 390px;
    object-fit: cover;
    border-radius: 24px;
}

.brew-floating-card {
    position: absolute;
    left: -22px;
    bottom: 28px;
    max-width: 260px;
    padding: 20px 22px;
    border-radius: 22px;
    background: #fff8f0;
    color: #2b1b15;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.brew-floating-card span {
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.brew-floating-card h2 {
    margin: 6px 0;
    font-size: 1.45rem;
}

/* SECTIONS */

.brew-section {
    padding: 72px 0;
}

.brew-container {
    width: min(1180px, 92%);
    margin: auto;
}

.section-kicker {
    color: #b45309;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.section-title {
    margin-top: 10px;
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.section-text {
    max-width: 680px;
    margin-top: 12px;
    color: #6b7280;
    line-height: 1.7;
}

/* PRODUCTS */

.brew-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(43, 27, 21, 0.1);
    border: 1px solid rgba(43, 27, 21, 0.08);
}

.product-photo {
    height: 130px;
    background: #fde68a;
    overflow: hidden;
}

.product-photo img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

.product-body h3 {
    min-height: 44px;
    font-size: 1rem;
    line-height: 1.2;
}

.product-body p {
    min-height: 42px;
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.45;
}

.product-price {
    margin-top: 14px;
}

.product-price strong {
    color: #2b1b15;
    font-size: 1.15rem;
}

.product-price span {
    margin-left: 6px;
    color: #9ca3af;
    font-size: 0.9rem;
    text-decoration: line-through;
}

.qty-control {
    margin: 14px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #2b1b15;
    color: white;
    font-weight: 950;
    cursor: pointer;
}

.qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 950;
}

.add-cart-btn {
    margin-top: auto;
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #2b1b15;
    font-weight: 950;
    cursor: pointer;
}

/* CART */

.cart-box {
    margin-top: 34px;
    padding: 26px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 18px 44px rgba(43, 27, 21, 0.1);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item span {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 0.92rem;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid #e5e7eb;
}

.loading-text {
    color: #6b7280;
}

/* FOOTER */

.brew-footer {
    padding: 34px 20px;
    text-align: center;
    background: #2b1b15;
    color: white;
    font-weight: 900;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .brew-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .brew-hero-inner {
        grid-template-columns: 1fr;
    }

    .brew-photo-card img {
        height: 320px;
    }

    .brew-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .brew-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 14px 0;
    }

    .brew-links {
        gap: 16px;
        font-size: 0.9rem;
    }

    .brew-hero {
        min-height: auto;
        padding: 58px 0;
    }

    .brew-grid {
        grid-template-columns: 1fr;
    }

    .brew-photo-card img {
        height: 250px;
    }

    .brew-floating-card {
        position: static;
        margin-top: 14px;
    }

    .brew-actions,
    .cart-summary {
        flex-direction: column;
    }

    .brew-btn {
        width: 100%;
    }
}

.buildframe-footer {
    width: 100%;
    padding: 14px 5%;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #cdefff;
    background: #061525;
}

.buildframe-chat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
}

.buildframe-chat-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid #66d9ff;
    background: #071a2f;
    color: #ffffff;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 0 22px rgba(79, 195, 255, 0.55);
}

.buildframe-chat-panel {
    display: block;
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 260px;
    padding: 18px;
    border-radius: 18px;
    background: #071a2f;
    border: 1px solid #66d9ff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    color: #eaf8ff;
}

.buildframe-chat-panel.active {
    display: block;
}

.buildframe-chat-panel strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
}

.buildframe-chat-panel p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #bfefff;
    margin-bottom: 12px;
}

.buildframe-chat-panel a {
    display: block;
    color: #66d9ff;
    font-weight: 800;
    margin-top: 8px;
    text-decoration: none;
}

.buildframe-logo-bubble {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(79, 195, 255, .6);
    transition: .3s;
}

.buildframe-logo-bubble:hover {
    transform: scale(1.08);
}

.buildframe-logo-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.buildframe-footer a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    cursor: pointer;
}

.buildframe-footer a:hover {
    color: #4fc3ff !important;
    text-decoration: underline !important;
}