/*
 * Client - Home Page
 * Tái cấu trúc theo mẫu Design mới
 */

/* ─── HERO SECTION (SLIDER) ───────────────────────────────── */

.home-hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    background-color: #ECECEC;
    overflow: hidden;
}

.home-hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.home-hero__slide.active {
    opacity: 1;
    z-index: 1;
}

.home-hero__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    /* Mờ nhẹ để chữ dễ đọc */
}

.home-hero__content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 24px;
    color: #FFFFFF;
}

.home-hero__title {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.home-hero__desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dot.active {
    width: 36px;
    background-color: #FFFFFF;
}

/* ─── SECTION COMMON ──────────────────────────────────────── */

.home-section {
    padding-top: 120px;
    padding-bottom: 120px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1;
    margin: 0;
}

.section-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.section-link:hover {
    opacity: 1;
    color: var(--color-primary);
}

/* ─── VÒNG TAY PHẬT (Asymmetric Grid) ─────────────────────── */

.vong-tay-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.product-card-large .card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #E8DCC0;
    /* Placeholder */
    border-radius: var(--radius-card);
    margin-bottom: 24px;
    object-fit: cover;
}

.product-card-large .card-subtext {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-card-large .card-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.product-card-large .card-price {
    font-weight: 600;
    color: var(--color-primary);
}

.vong-tay-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.product-card-side {
    display: flex;
    align-items: center;
    gap: 24px;
}

.product-card-side .card-img {
    width: 120px;
    height: 120px;
    background-color: #E8DCC0;
    border-radius: var(--radius-card);
    flex-shrink: 0;
    object-fit: cover;
}

.product-card-side .card-title {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.product-card-side .card-price {
    font-size: 0.95rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.product-card-side .card-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.product-card-side .card-link:hover {
    color: var(--color-text);
}

/* ─── STORY SECTION (Ghi mầm an lạc) ─────────────────────── */

.story-section {
    background-color: var(--color-surface);
    /* Assuming slightly different from bg, or pure white */
    padding: 140px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.story-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.story-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 32px;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.8;
}

.story-content p {
    margin-bottom: 24px;
}

.story-keywords {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 48px;
}

.keyword-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.keyword-item .vn {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.keyword-item .en {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
}

/* ─── NẾN THƠM & ĐÈN CẦY (3 Column Grid) ───────────────── */

.nen-thom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.product-card-column {
    text-align: center;
}

.product-card-column .card-img {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: #333;
    /* Darker placeholders for candles */
    border-radius: var(--radius-card);
    margin-bottom: 24px;
    object-fit: cover;
}

.product-card-column .card-title {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.product-card-column .card-subtext {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 12px;
}

.product-card-column .card-price {
    font-size: 1.05rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .home-hero__title {
        font-size: 3.2rem;
    }

    .vong-tay-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vong-tay-side {
        flex-direction: row;
        gap: 24px;
    }

    .product-card-side {
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .product-card-side .card-img {
        width: 100%;
        height: 200px;
        margin-bottom: 16px;
    }
}

@media (max-width: 768px) {
    .home-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .home-hero__title {
        font-size: 2.5rem;
    }

    .story-keywords {
        gap: 32px;
        flex-wrap: wrap;
    }

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

    .vong-tay-side {
        flex-direction: column;
    }
}