/* public/css/beers.css */

/* =========================================
   BEERS PAGE - NEW CLEAN UI
   Giữ nguyên class cũ để không ảnh hưởng chức năng
========================================= */

:root {
    --beer-orange: #e0592a;
    --beer-purple: #6f42c1;
    --beer-purple-dark: #56309a;
    --beer-dark: #111111;
    --beer-text: #444444;
    --beer-muted: #777777;
    --beer-bg: #fff7e6;
    --beer-card: #ffffff;
    --beer-border: rgba(17, 17, 17, 0.1);
    --beer-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    background: #f7f7f4;
}

/* Container dùng riêng cho trang beers */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

.text-center {
    text-align: center;
}

/* =========================================
   PAGE WRAPPER
========================================= */

.section-with-margin {
    padding: 42px 0 90px;
    background:
        radial-gradient(circle at top left, rgba(111, 66, 193, 0.08), transparent 32%),
        radial-gradient(circle at top right, rgba(224, 89, 42, 0.08), transparent 34%),
        #f7f7f4;
    min-height: 80vh;
}

/* =========================================
   BREADCRUMB
========================================= */

.navigation-links-div-block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 42px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-navigation-links {
    color: #777;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.shop-navigation-links:hover,
.shop-navigation-links.active {
    color: var(--beer-purple);
    transform: translateY(-1px);
}

.product-navigation-links-separator {
    color: #c9c9c9;
}

/* =========================================
   PAGE HEADER
========================================= */

.all-beers-page-header {
    max-width: 860px;
    margin: 0 auto 58px;
}

.secondary-pagers-hero-header {
    margin: 0 0 22px;
    color: var(--beer-dark);
    font-size: clamp(44px, 7vw, 82px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    font-family: var(--beer-font-family, Arial, sans-serif);
}

.main-paragraph-on-container {
    max-width: 780px;
    margin: 0 auto;
    color: var(--beer-text);
    font-size: 17px;
    line-height: 1.75;
    font-weight: 600;
}

/* =========================================
   BEERS GRID
========================================= */

.beers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}

/* =========================================
   BEER CARD
========================================= */

.beer-card {
    position: relative;
    background: var(--beer-card);
    padding: 18px;
    text-align: center;
    border: 1px solid var(--beer-border);
    border-radius: 24px;
    box-shadow: var(--beer-shadow);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.beer-card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 160px;
    height: 160px;
    background: rgba(111, 66, 193, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.beer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.13);
    border-color: rgba(111, 66, 193, 0.25);
}

/* =========================================
   PRODUCT IMAGE
========================================= */

.beer-image-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 310px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(circle at center, rgba(248, 200, 78, 0.3), transparent 55%),
        linear-gradient(180deg, #fafafa, #f1f1f1);
    text-decoration: none;
}

.all-items-page-product-image {
    width: 100%;
    max-width: 230px;
    height: 270px;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
    filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.16));
}

.beer-card:hover .all-items-page-product-image {
    transform: scale(1.06) rotate(-2deg);
}

/* =========================================
   PRODUCT CONTENT
========================================= */

.all-product-page-title-div {
    min-height: 118px;
    padding: 0 6px;
}

.all-product-page-product-title {
    margin: 0 0 10px;
    color: var(--beer-dark);
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.4px;
    font-family: var(--beer-font-family, Arial, sans-serif);
}

.all-product-page-product-descritpion-text {
    margin: 0 0 18px;
    color: var(--beer-muted);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.all-product-page-product-descritpion-text strong {
    display: inline-block;
    margin-top: 6px;
    color: var(--beer-orange) !important;
    font-size: 18px !important;
    font-weight: 900;
    letter-spacing: 0;
}

/* =========================================
   BUTTON
========================================= */

.buy-btn,
.main-red-button.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--beer-purple);
    color: #fff;
    border: 2px solid var(--beer-purple);
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.buy-btn:hover,
.main-red-button.buy-btn:hover {
    background: var(--beer-purple-dark);
    border-color: var(--beer-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(111, 66, 193, 0.28);
}

/* =========================================
   EMPTY STATE nếu sau này cần
========================================= */

.empty-beers-box {
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 22px;
    padding: 50px 24px;
    text-align: center;
    color: #666;
    font-size: 17px;
    font-weight: 700;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
    .section-with-margin {
        padding: 34px 0 70px;
    }

    .all-beers-page-header {
        margin-bottom: 42px;
    }

    .main-paragraph-on-container {
        font-size: 16px;
    }

    .beers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .beer-image-link {
        height: 280px;
    }

    .all-items-page-product-image {
        height: 240px;
    }
}

@media (max-width: 620px) {
    .container {
        padding: 0 16px;
    }

    .navigation-links-div-block {
        margin-bottom: 30px;
        font-size: 13px;
    }

    .secondary-pagers-hero-header {
        font-size: clamp(38px, 14vw, 58px);
    }

    .main-paragraph-on-container {
        font-size: 15px;
        line-height: 1.65;
    }

    .beers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .beer-card {
        padding: 16px;
        border-radius: 20px;
    }

    .beer-image-link {
        height: 260px;
        border-radius: 18px;
    }

    .all-items-page-product-image {
        max-width: 210px;
        height: 225px;
    }

    .all-product-page-title-div {
        min-height: auto;
    }

    .all-product-page-product-title {
        font-size: 20px;
    }
}