/* ============================================
   RICE CRAFT — Products Showcase Section
   Filename: products-showcase.css
   Premium Card Design
   ============================================ */

/* --- CSS Variables --- */
:root {
    --ps-bg: #f9f6f0;
    --ps-container: 1280px;
    --ps-title-color: #2E2116;
    --ps-card-bg: #FDFBF7;
    --ps-card-border: #EAE0D5;
    --ps-card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --ps-card-shadow-hover: 0 18px 60px rgba(0, 0, 0, 0.16);
    --ps-gold: #C9A063;
    --ps-gold-light: #D9B87A;
    --ps-radius: 14px;
    --ps-gap: 18px;
    --ps-font-family: 'Inter', 'Prompt', sans-serif;
    --ps-font-family-thai: 'Prompt', 'Inter', sans-serif;
}

/* --- Reset (scoped) --- */
.products-showcase *,
.products-showcase *::before,
.products-showcase *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Section --- */
.products-showcase {
    font-family: var(--ps-font-family);
    background-color: var(--ps-bg);
    padding-top: 60px;
    padding-bottom: 80px;
    width: 100%;
}

.products-showcase__container {
    max-width: var(--ps-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* --- Header --- */
.products-showcase__header {
    text-align: center;
    margin-bottom: 0;
}

.products-showcase__title {
    font-family: var(--ps-font-family-thai);
    font-weight: 700;
    font-size: 40px;
    color: var(--ps-title-color);
    line-height: 1.2;
    letter-spacing: normal;
}

.products-showcase__subtitle {
    font-size: 14px;
    color: var(--ps-title-color);
    opacity: 0.8;
    line-height: 1.4;
    margin-top: 4px;
}

/* 16px below subtitle: handled by grid margin-top */
.products-showcase__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ps-gap);
    margin-top: 16px;
}

/* --- Product Card --- */
.products-showcase__card {
    position: relative;
    width: 100%;
    aspect-ratio: 500 / 500;
    border-radius: var(--ps-radius);
    overflow: hidden;
    background: var(--ps-card-bg);
    border: 1px solid var(--ps-card-border);
    box-shadow: var(--ps-card-shadow);
    transition: all 0.25s ease;
    cursor: pointer;
    outline: none;
}

.products-showcase__card:hover,
.products-showcase__card:focus-visible {
    transform: translateY(-6px);
    box-shadow: var(--ps-card-shadow-hover);
}

.products-showcase__card:focus-visible {
    outline: 2px solid var(--ps-gold);
    outline-offset: 2px;
}

/* --- Bottle (floating, overlapping everything) --- */
.products-showcase__bottle {
    position: absolute;
    left: -8%;
    bottom: 5%;
    height: 90%;
    z-index: 10;
    filter: drop-shadow(12px 8px 24px rgba(0, 0, 0, 0.3));
    pointer-events: none;
    display: flex;
    align-items: center;
}

.products-showcase__bottle img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
}

/* --- Right Content Area (65%) --- */
.products-showcase__content {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* --- Food Image (top 55% of card) --- */
.products-showcase__food {
    flex: 0 0 38%;
    overflow: hidden;
    min-height: 0;
}

.products-showcase__food img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Gold Title Banner (TH + EN) --- */
.products-showcase__banner {
    background: var(--ps-gold);
    padding: 10px 10px 10px 49%;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 0 0 auto;
}

.products-showcase__name {
    font-family: var(--ps-font-family-thai);
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-showcase__en {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
    letter-spacing: 0.5px;
    opacity: 0.95;
    margin-top: -1px;
}

.products-showcase__card[data-product="hainanese-chicken"] .products-showcase__banner {
    background: #264d2e;
}

.products-showcase__card[data-product="chicken-biryani"] .products-showcase__banner {
    background: #b47108;
}

.products-showcase__card[data-product="garlic-butter"] .products-showcase__banner {
    background: #341e09;
}

.products-showcase__card[data-product="holy-basil"] .products-showcase__banner {
    background: #691209;
}

/* --- Info Section (desc + CTA) --- */
.products-showcase__info {
    flex: 1;
    min-height: 0;
    padding: 8px 10px 8px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--ps-card-bg);
}

.products-showcase__desc {
    font-size: 15px;
    color: #4A3A2A;
    line-height: 1.35;
    margin-bottom: 6px;
    opacity: 0.8;
    padding-left: 50%;
}

/* --- Outline CTA Button (hover → gold fill) --- */
.products-showcase__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-height: 44px;
    padding: 0 16px;
    background: transparent;
    color: var(--ps-gold);
    border: 1.5px solid var(--ps-gold);
    border-radius: 999px;
    font-family: var(--ps-font-family);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
    pointer-events: auto;
    align-self: flex-end;
}

.products-showcase__cta:hover {
    background: var(--ps-gold);
    color: #fff;
}

.products-showcase__cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    background: var(--ps-gold);
    color: #fff;
}

/* --- Responsive: Tablet (2 columns) --- */
@media (max-width: 1024px) {
    .products-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-showcase__name {
        font-size: clamp(16px, 2.5vw, 20px);
    }

    .products-showcase__en {
        font-size: clamp(10px, 1.5vw, 12px);
    }

    .products-showcase__desc {
        font-size: clamp(14px, 1.8vw, 15px);
    }
}

/* --- Responsive: Mobile (1 column) --- */
@media (max-width: 640px) {
    .products-showcase__container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .products-showcase__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--ps-gap);
        margin-top: 16px;
    }

    .products-showcase__card {
        aspect-ratio: 500 / 500;
    }

    .products-showcase__title {
        font-size: 32px;
    }

    .products-showcase__name {
        font-size: clamp(16px, 4.5vw, 20px);
    }

    .products-showcase__en {
        font-size: clamp(10px, 2.5vw, 12px);
    }

    .products-showcase__desc {
        font-size: clamp(14px, 3vw, 15px);
    }
}
