/* =========================================
   CAFE CORTAO' - HACIENDA LAS LALAS
   Puerto Rico Coffee Hacienda Design
   ========================================= */

:root {
    --coffee-dark: #2b1b12;
    --coffee-brown: #4a2c1d;
    --coffee-medium: #70452d;
    --coffee-light: #a66a3f;
    --cream: #f5efe4;
    --cream-dark: #e8ddca;
    --green: #344936;
    --gold: #b58a4a;
    --white: #ffffff;
}


/* -----------------------------------------
   GENERAL
   ----------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--coffee-dark);
    font-family: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}


/* -----------------------------------------
   HERO
   ----------------------------------------- */

.hero-section {
    position: relative;
    height: 650px;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    inset: 0;
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(25, 16, 10, 0.25), rgba(25, 16, 10, 0.75) );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 30px;
}

.brand-mark {
    font-size: 42px;
    margin-bottom: 18px;
}

.eyebrow {
    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(58px, 9vw, 110px);
    font-weight: normal;
    letter-spacing: 1px;
}

.hero-line {
    width: 90px;
    height: 2px;
    background: var(--gold);
    margin: 25px auto;
}

.hero-tagline {
    font-size: 23px;
    font-style: italic;
    margin: 0 0 30px;
}

.hero-button {
    display: inline-block;
    padding: 14px 28px;
    border: 1px solid rgba(255,255,255,.7);
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    transition: .25s ease;
}

    .hero-button:hover {
        background: white;
        color: var(--coffee-dark);
    }


/* -----------------------------------------
   NAVIGATION
   ----------------------------------------- */

.main-navigation {
    background: var(--coffee-dark);
    color: white;
    min-height: 72px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.nav-brand {
    font-size: 21px;
    white-space: nowrap;
}

    .nav-brand span {
        margin-right: 8px;
    }

.nav-links {
    display: flex;
    gap: 30px;
}

    .nav-links a {
        color: white;
        text-decoration: none;
        font-family: Arial, sans-serif;
        font-size: 13px;
        letter-spacing: .5px;
    }

        .nav-links a:hover {
            color: #d6b77a;
        }


/* -----------------------------------------
   INTRO
   ----------------------------------------- */

.intro-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 30px 90px;
    text-align: center;
}

.section-label {
    color: var(--gold);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.intro-section h2,
.story-content h2,
.message-card h2 {
    font-size: clamp(38px, 5vw, 58px);
    font-weight: normal;
    line-height: 1.1;
    margin: 0;
}

    .intro-section h2 span,
    .story-content h2 span {
        color: var(--coffee-medium);
        font-style: italic;
    }

.section-divider {
    color: var(--gold);
    font-size: 24px;
    margin: 25px 0;
}

.intro-text {
    max-width: 720px;
    margin: 15px auto;
    font-size: 18px;
    line-height: 1.8;
    color: #5d5147;
}


/* -----------------------------------------
   COFFEE STORY
   ----------------------------------------- */

.coffee-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--green);
    color: white;
}

.story-image {
    min-height: 550px;
}

    .story-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.story-content {
    padding: 80px 9%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .story-content .section-label {
        color: #d5b36d;
    }

    .story-content h2 {
        margin-bottom: 25px;
    }

    .story-content p {
        color: rgba(255,255,255,.82);
        font-size: 17px;
        line-height: 1.8;
        max-width: 540px;
    }

.coffee-details {
    display: flex;
    gap: 45px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,.25);
}

    .coffee-details div {
        display: flex;
        flex-direction: column;
    }

    .coffee-details strong {
        font-size: 25px;
        font-weight: normal;
    }

    .coffee-details span {
        font-family: Arial, sans-serif;
        font-size: 11px;
        letter-spacing: 1px;
        margin-top: 5px;
        color: rgba(255,255,255,.65);
    }


/* -----------------------------------------
   MESSAGE
   ----------------------------------------- */

.message-section {
    padding: 100px 25px;
    background: linear-gradient( rgba(245,239,228,.94), rgba(245,239,228,.94) );
}

.message-card {
    max-width: 700px;
    margin: auto;
    background: white;
    padding: 60px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(43,27,18,.10);
}

    .message-card h2 {
        margin-bottom: 20px;
    }

    .message-card > p {
        color: #6a5b4e;
        line-height: 1.7;
        font-size: 16px;
    }

.coffee-form {
    margin-top: 35px;
    text-align: left;
}

    .coffee-form label {
        display: block;
        margin-bottom: 9px;
        font-family: Arial, sans-serif;
        font-size: 12px;
        font-weight: bold;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

.coffee-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #d8cbb9;
    background: #fcfaf6;
    font-family: Georgia, serif;
    font-size: 16px;
    outline: none;
}

    .coffee-input:focus {
        border-color: var(--coffee-light);
    }

.coffee-button {
    width: 100%;
    margin-top: 15px;
    padding: 16px;
    border: none;
    background: var(--coffee-brown);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .25s ease;
}

    .coffee-button:hover {
        background: var(--coffee-dark);
    }

    .coffee-button span {
        margin-left: 8px;
    }


/* -----------------------------------------
   SUCCESS MESSAGE
   ----------------------------------------- */

.success-message {
    margin-top: 25px;
    padding: 14px;
    background: #edf3e9;
    border-left: 4px solid var(--green);
    color: var(--green);
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: left;
}


/* -----------------------------------------
   FOOTER
   ----------------------------------------- */

.coffee-footer {
    padding: 70px 20px;
    text-align: center;
    background: var(--coffee-dark);
    color: white;
}

.footer-symbol {
    font-size: 32px;
    margin-bottom: 10px;
}

.coffee-footer h3 {
    font-size: 28px;
    font-weight: normal;
    margin: 0;
}

.coffee-footer p {
    color: rgba(255,255,255,.65);
    font-size: 14px;
}

.footer-line {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 25px auto;
}

.coffee-footer small {
    color: rgba(255,255,255,.5);
    font-style: italic;
}


/* -----------------------------------------
   MOBILE
   ----------------------------------------- */

@media (max-width: 750px) {

    .hero-section {
        height: 580px;
    }

    .hero-content h1 {
        font-size: 58px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .main-navigation {
        padding: 18px 25px;
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 20px;
    }

    .coffee-story {
        grid-template-columns: 1fr;
    }

    .story-image {
        min-height: 400px;
    }

    .story-content {
        padding: 65px 30px;
    }

    .coffee-details {
        gap: 25px;
    }

    .message-card {
        padding: 40px 25px;
    }

    .intro-section {
        padding: 75px 25px;
    }
}
/* ================================
   CAFÉ CORTAO' AI ASSISTANT
   ================================ */

.ai-page {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 24px;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.ai-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: #f3e4cf;
}

.ai-header h1 {
    margin: 0;
    font-size: 32px;
}

.ai-header p {
    margin: 5px 0 0;
    opacity: 0.7;
}

.ai-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.ai-welcome h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.ai-welcome p {
    margin-top: 0;
    line-height: 1.6;
    opacity: 0.75;
}

.ai-form {
    margin-top: 28px;
}

    .ai-form textarea {
        width: 100%;
        min-height: 140px;
        resize: vertical;
        padding: 18px;
        border: 1px solid #ddd;
        border-radius: 16px;
        font-size: 16px;
        font-family: inherit;
        box-sizing: border-box;
        outline: none;
    }

        .ai-form textarea:focus {
            border-color: #9b6b43;
            box-shadow: 0 0 0 3px rgba(155, 107, 67, 0.12);
        }

.ai-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

    .ai-form-footer span {
        font-size: 14px;
        opacity: 0.6;
    }

    .ai-form-footer button {
        border: none;
        border-radius: 12px;
        padding: 12px 22px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        background: #6f472c;
        color: white;
    }

        .ai-form-footer button:hover {
            opacity: 0.9;
        }

.ai-answer {
    margin-top: 30px;
    padding: 22px;
    border-radius: 18px;
    background: #faf7f2;
    border: 1px solid #eee4d8;
}

.ai-answer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ai-answer p {
    margin: 0;
    line-height: 1.7;
    white-space: pre-wrap;
}

.ai-home-button {
    display: inline-block;
    margin-bottom: 20px;
    color: #6f472c;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

    .ai-home-button:hover {
        text-decoration: underline;
    }

.home-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.facebook-link {
    display: inline-block;
    margin-top: 18px;
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.facebook-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #1877f2;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .facebook-link:hover {
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        opacity: 0.9;
    }
.facebook-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
    background: white;
    color: #1877f2;
    font-weight: 700;
    font-size: 14px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
    align-items: stretch;
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}


.product-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: contain;
    display: block;
    background: #faf7f2;
}
.product-info {
    padding: 18px;
    text-align: center;
}

    .product-info h3 {
        margin: 0 0 8px;
        font-size: 22px;
    }

    .product-info p {
        margin: 0 0 12px;
        color: #666;
    }

.product-price {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}
.product-card .coffee-button {
    width: 100%;
    margin-top: 5px;
}
.product-image {
    height: 240px;
    object-fit: contain;
    padding: 15px;
    box-sizing: border-box;
}
/* =========================
   CHECKOUT
   ========================= */

.checkout-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.checkout-intro {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.checkout-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.checkout-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #4a2c1a;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.checkout-field {
    margin-bottom: 20px;
}

    .checkout-field label {
        display: block;
        margin-bottom: 7px;
        font-weight: 600;
        color: #4a2c1a;
    }

    .checkout-field input,
    .checkout-field textarea,
    .checkout-field select {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        border: 1px solid #d8d0c8;
        border-radius: 9px;
        font-size: 16px;
        background: #fff;
        color: #333;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .checkout-field input:focus,
        .checkout-field textarea:focus,
        .checkout-field select:focus {
            outline: none;
            border-color: #8b5e3c;
            box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.12);
        }

    .checkout-field textarea {
        resize: vertical;
        min-height: 100px;
    }

.checkout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.checkout-button {
    width: 100%;
    margin-top: 10px;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

@media (max-width: 700px) {

    .checkout-form {
        padding: 22px;
    }

    .checkout-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


.cart-actions {
    width: 100%;
    max-width: 500px;
    margin: 25px auto 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .cart-actions .coffee-button {
        display: block;
        width: 100%;
        margin: 0;
        padding: 16px;
        box-sizing: border-box;
        text-align: center;
        text-decoration: none;
    }
.checkout-product-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #faf7f2;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 12px;
}
.checkout-summary {
    max-width: 700px;
    margin: 0 auto 25px;
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.checkout-summary-title {
    font-size: 20px;
    font-weight: 700;
    color: #4a2c1a;
    margin-bottom: 20px;
}

.checkout-product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.checkout-product-info {
    flex: 1;
}

    .checkout-product-info h3 {
        margin: 0 0 8px;
        font-size: 21px;
    }

    .checkout-product-info p {
        margin: 5px 0;
        color: #666;
    }

.checkout-product-total {
    font-size: 22px;
    font-weight: bold;
    color: #4a2c1a;
}

@media (max-width: 600px) {
    .checkout-product {
        flex-wrap: wrap;
    }

    .checkout-product-total {
        width: 100%;
        text-align: right;
    }
}

/* =========================
   ORDER CONFIRMATION
   ========================= */

.order-confirmation {
    max-width: 700px;
    margin: 30px auto;
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(43, 27, 18, 0.10);
    text-align: center;
}

.confirmation-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 36px;
    line-height: 65px;
    font-weight: bold;
}

.confirmation-message {
    color: #666;
    margin-bottom: 25px;
}

.confirmation-details {
    text-align: left;
    background: #faf7f2;
    padding: 25px;
    border-radius: 14px;
}

    .confirmation-details p {
        margin: 10px 0;
    }

/* Order number */

.confirmation-order-number {
    text-align: center;
    padding: 15px;
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid var(--cream-dark);
    border-radius: 12px;
}

    .confirmation-order-number p {
        margin: 0;
        color: #777;
        font-family: Arial, sans-serif;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .confirmation-order-number h3 {
        margin: 8px 0 0;
        color: var(--coffee-brown);
        font-size: 27px;
    }

/* Products */

.confirmation-products h3,
.confirmation-delivery h3 {
    color: var(--coffee-brown);
    font-size: 20px;
    font-weight: normal;
    margin: 0 0 15px;
}

.confirmation-product {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin: 15px 0;
    padding: 15px 0;
}

    .confirmation-product p {
        margin: 8px 0;
    }

/* Delivery */

.confirmation-delivery {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* Order total */

.confirmation-total {
    font-size: 22px;
    font-weight: bold;
    color: var(--coffee-brown);
    text-align: right;
    padding-top: 18px;
    margin-top: 20px;
    border-top: 2px solid var(--gold);
}

/* Return to shopping */

.order-confirmation .coffee-button {
    display: block;
    width: 100%;
    margin-top: 25px;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

/* Mobile */

@media (max-width: 600px) {

    .order-confirmation {
        padding: 22px;
        margin: 20px 12px;
    }

    .confirmation-details {
        padding: 18px;
    }

    .confirmation-order-number h3 {
        font-size: 24px;
    }

    .confirmation-total {
        font-size: 20px;
    }
}



/* =========================================
   CAFE CORTAO' - GLOBAL DESIGN SYSTEM
   Shared visual identity across all pages
   ========================================= */

/* Typography */
body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--coffee-dark);
    background: var(--cream);
    line-height: 1.6;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--coffee-dark);
    line-height: 1.2;
}

/* Shared cards */
.ai-card,
.product-card,
.checkout-form,
.checkout-summary,
.order-confirmation,
.message-card {
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(43, 27, 18, 0.08);
}

/* Shared buttons */
.coffee-button,
.checkout-button,
.ai-form-footer button {
    border-radius: 8px;
    background: var(--coffee-brown);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.25s ease;
}

    .coffee-button:hover,
    .checkout-button:hover,
    .ai-form-footer button:hover {
        background: var(--coffee-dark);
        color: var(--white);
        transform: translateY(-2px);
    }

/* Shared form controls */
input,
textarea,
select {
    font-family: Arial, Helvetica, sans-serif;
}

    input:focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: var(--coffee-light);
    }

/* Consistent links */
a {
    transition: color 0.2s ease;
}

    /* Accessibility */
    button:focus-visible,
    a:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible {
        outline: 3px solid var(--gold);
        outline-offset: 3px;
    }

/* Checkout navigation buttons */
.checkout-form a.coffee-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}


/* FARM PHOTO GALLERY */

.farm-gallery {
    padding: 80px 8%;
    text-align: center;
    background-color: #f7f3eb;
}

    .farm-gallery h2 {
        margin: 15px 0;
        color: #493321;
    }

        .farm-gallery h2 span {
            display: block;
            color: #8a633d;
        }

.farm-gallery-intro {
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
    color: #66594c;
}

.farm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

    .farm-gallery-grid figure {
        margin: 0;
        overflow: hidden;
        background: white;
        border-radius: 10px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
    }

    .farm-gallery-grid img {
        display: block;
        width: 100%;
        height: 260px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .farm-gallery-grid figure:hover img {
        transform: scale(1.04);
    }

    .farm-gallery-grid figcaption {
        padding: 15px;
        color: #493321;
        font-weight: 600;
    }

@media (max-width: 768px) {
    .farm-gallery {
        padding: 55px 5%;
    }

    .farm-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

        .farm-gallery-grid img {
            height: 190px;
        }
}

@media (max-width: 480px) {
    .farm-gallery-grid {
        grid-template-columns: 1fr;
    }

        .farm-gallery-grid img {
            height: 240px;
        }
}


/* HOMEPAGE PRODUCT SHOWCASE */

.home-products {
    padding: 65px 8%;
    background-color: #f7f3eb;
    text-align: center;
}

.home-products-heading {
    max-width: 750px;
    margin: 0 auto 40px;
}

    .home-products-heading h2 {
        color: #493321;
        margin: 15px 0;
    }

    .home-products-heading p {
        color: #66594c;
        line-height: 1.8;
    }

/* Product grid */

.home-products .products-grid {
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual product card */

.home-products .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Upper section: image and information */

.home-products .product-card-main {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-grow: 1;
}

    /* Product image */

    .home-products .product-card-main .product-image {
        width: 40%;
        height: 200px;
        flex-shrink: 0;
        object-fit: contain;
        padding: 10px;
        background: #faf7f2;
    }

    /* Product information */

    .home-products .product-card-main .product-info {
        flex: 1;
        min-width: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        text-align: left;
    }

        .home-products .product-card-main .product-info h3 {
            margin: 0 0 10px;
            font-size: 22px;
        }

        .home-products .product-card-main .product-info p {
            margin: 0 0 12px;
            color: #666;
        }

/* Product price */

.home-products .product-price {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Product stock */

.home-products .product-stock {
    font-size: 14px;
    margin-top: 5px;
}

/* Bottom button section */

.home-products .product-card-actions {
    width: 100%;
    margin-top: auto;
    padding-top: 20px;
}

    .home-products .product-card-actions .coffee-button {
        display: block;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        text-align: center;
    }

/* Mobile adjustments */

@media (max-width: 768px) {

    .home-products {
        padding: 50px 5%;
    }

        .home-products .product-card {
            padding: 15px;
        }

        .home-products .product-card-main {
            gap: 12px;
        }

            .home-products .product-card-main .product-image {
                height: 170px;
                width: 38%;
            }
}

@media (max-width: 480px) {

    .home-products .product-card-main .product-image {
        height: 145px;
        width: 35%;
    }

    .home-products .product-card-main .product-info h3 {
        font-size: 18px;
    }

    .home-products .product-price {
        font-size: 19px;
    }
}


/* CLICKABLE HOMEPAGE PRODUCT CARDS */

.home-products .product-card {
    position: relative;
}

/* Transparent clickable area covering the card */

.home-products .product-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

/* Keep the button clickable above the transparent link */

.home-products .product-card-actions {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

    .home-products .product-card-actions .coffee-button {
        position: relative;
        pointer-events: auto;
    }

/* =========================================
   PRODUCT GRID - THREE COLUMNS ON DESKTOP
   Homepage and Product Search
   ========================================= */

.home-products .products-grid,
.coffee-container .products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

/* TABLET */
@media (max-width: 900px) {
    .home-products .products-grid,
    .coffee-container .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .home-products .products-grid,
    .coffee-container .products-grid {
        grid-template-columns: 1fr !important;
    }
}



/* =========================================
   HOMEPAGE PRODUCT CAROUSEL
   ========================================= */

.home-products .products-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Visible carousel area */

.home-products .products-carousel-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

/* Horizontal product track */

.home-products .products-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 25px;
    width: 100%;
    will-change: transform;
}

    /* Three visible product cards on desktop */

    .home-products .products-carousel-track .product-card {
        flex: 0 0 calc((100% - 50px) / 3);
        min-width: 0;
        box-sizing: border-box;
    }

/* Navigation buttons */

.home-products .products-carousel-button {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--coffee-brown);
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

    .home-products .products-carousel-button:hover {
        background: var(--coffee-dark);
        transform: scale(1.08);
    }

    .home-products .products-carousel-button:active {
        transform: scale(0.95);
    }

/* Tablet: two visible product cards */

@media (max-width: 900px) {

    .home-products .products-carousel-track .product-card {
        flex-basis: calc((100% - 25px) / 2);
    }
}

/* Mobile: one visible product card */

@media (max-width: 600px) {

    .home-products .products-carousel {
        gap: 10px;
    }

    .home-products .products-carousel-button {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .home-products .products-carousel-track {
        gap: 15px;
    }

        .home-products .products-carousel-track .product-card {
            flex-basis: 100%;
        }
}


