/* GiftTree BD — Minimal Premium Home */
.gifttree-home {
    background: var(--color-cream);
    overflow-x: hidden;
}

.gifttree-home .container {
    max-width: 1280px;
}

.home-section {
    padding: 70px 0;
}

.home-section-heading {
    max-width: 620px;
    margin: 0 auto 34px;
    text-align: center;
}

.home-section-heading.align-left {
    margin-left: 0;
    text-align: left;
}

.home-section-heading h2,
.home-hero-copy h1,
.home-custom-banner h2 {
    font-family: var(--font-display);
    color: var(--color-text);
    letter-spacing: 0;
    margin: 0;
}

.home-section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.home-section-heading p,
.home-hero-copy p,
.home-custom-copy p {
    color: var(--color-muted);
    line-height: 1.7;
    margin: 12px 0 0;
}

.home-section-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.home-empty-state {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    color: var(--color-muted);
    padding: 28px;
    text-align: center;
}

/* Hero slider */
.home-hero-slider {
    position: relative;
    min-height: 74vh;
    background: linear-gradient(135deg, #f3faed 0%, var(--color-cream) 48%, #fffaf6 100%);
    overflow: hidden;
}

.home-hero-track {
    position: relative;
    min-height: 74vh;
}

.home-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(18px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}

.home-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.home-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    gap: 64px;
    align-items: center;
    padding: 72px 0 86px;
}

.home-hero-badge {
    display: inline-flex;
    width: fit-content;
    border-radius: var(--radius-pill);
    background: rgba(127, 187, 66, 0.12);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 7px 13px;
    margin-bottom: 18px;
}

.home-hero-copy h1 {
    max-width: 760px;
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 0.98;
}

.home-hero-copy p {
    max-width: 540px;
    font-size: 1.02rem;
}

.home-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.home-hero-image-wrap {
    min-width: 0;
}

.home-hero-image {
    display: block;
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
    border-radius: 32px;
    background: var(--color-white);
    box-shadow: 0 28px 70px rgba(44, 36, 22, 0.12);
}

.home-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(232, 221, 208, 0.9);
    border-radius: 50%;
    background: rgba(255,255,255,0.78);
    color: var(--color-text);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: all 0.18s ease;
}

.home-hero-arrow:hover {
    background: var(--color-white);
    color: var(--color-primary-dark);
}

.home-hero-arrow-prev {
    left: max(18px, calc((100vw - 1280px) / 2));
}

.home-hero-arrow-next {
    right: max(18px, calc((100vw - 1280px) / 2));
}

.home-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 6;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.home-hero-dots button {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(44, 36, 22, 0.22);
    padding: 0;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.home-hero-dots button.is-active {
    width: 24px;
    background: var(--color-primary);
}

/* Categories */
.home-categories-section,
.home-product-grid-section,
.home-why-section {
    background: #fffaf6;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-category-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: var(--color-white);
    color: var(--color-text);
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(44, 36, 22, 0.035);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-category-card:hover,
.home-product-card:hover,
.home-why-card:hover {
    transform: translateY(-3px);
    border-color: rgba(127, 187, 66, 0.32);
    box-shadow: 0 20px 42px rgba(44, 36, 22, 0.08);
}

.home-category-image {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--color-blush);
    overflow: hidden;
}

.home-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.home-category-card:hover img {
    transform: scale(1.045);
}

.home-category-content {
    display: block;
    padding: 16px;
}

.home-category-content strong {
    display: block;
    color: var(--color-text);
    font-size: 1rem;
}

.home-category-content small {
    display: block;
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 0.84rem;
}

.home-category-arrow {
    display: none;
}

/* Product sections */
.home-section-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.home-carousel-controls {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.home-carousel-section:hover .home-carousel-controls {
    opacity: 1;
}

.home-carousel-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
}

.home-carousel {
    overflow: hidden;
}

.home-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 0 12px;
}

.home-carousel-track::-webkit-scrollbar {
    display: none;
}

.home-carousel-slide {
    flex: 0 0 calc((100% - 60px) / 4);
    scroll-snap-align: start;
}

.home-carousel-dots {
    display: none;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 30px;
}

.home-filter-tabs::-webkit-scrollbar {
    display: none;
}

.home-filter-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 14px;
}

.home-filter-tabs a:hover,
.home-filter-tabs a.is-active {
    border-color: var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
}

.home-product-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: var(--color-white);
    box-shadow: 0 10px 28px rgba(44, 36, 22, 0.035);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-product-image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-blush);
}

.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.home-product-card:hover .home-product-image img {
    transform: scale(1.035);
}

.home-product-body {
    padding: 14px;
}

.home-product-title {
    margin: 0 0 10px;
    font-family: var(--font-body);
    font-size: 0.94rem;
    line-height: 1.35;
    font-weight: 800;
}

.home-product-title a {
    display: -webkit-box;
    min-height: 2.55em;
    overflow: hidden;
    color: var(--color-text);
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-product-price {
    color: var(--color-primary-dark);
    font-weight: 900;
    margin-bottom: 12px;
}

.home-product-price del {
    color: var(--color-muted);
    opacity: 0.65;
    margin-right: 4px;
}

.home-product-button {
    min-height: 38px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.home-product-card:hover .home-product-button,
.home-product-card:focus-within .home-product-button {
    opacity: 1;
    transform: translateY(0);
}

/* Single banner */
.home-custom-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 28px;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-brown));
    color: var(--color-white);
    padding: 44px;
    box-shadow: 0 24px 52px rgba(44, 36, 22, 0.12);
}

.home-custom-banner h2,
.home-custom-banner p {
    color: var(--color-white);
}

.home-custom-banner h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.home-custom-banner p {
    max-width: 560px;
    opacity: 0.86;
}

.home-custom-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.home-gift-box {
    position: relative;
    width: 178px;
    height: 178px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--color-white), var(--color-blush));
    box-shadow: inset 0 0 0 10px rgba(255,255,255,0.45), 0 22px 42px rgba(0,0,0,0.14);
}

.home-gift-box span {
    position: absolute;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
}

.home-gift-box span:first-child {
    width: 22px;
    inset: 18px auto 18px 50%;
    transform: translateX(-50%);
}

.home-gift-box span:last-child {
    height: 22px;
    inset: 50% 18px auto;
    transform: translateY(-50%);
}

/* Why choose */
.home-why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-why-card {
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: var(--color-white);
    padding: 20px;
    box-shadow: 0 10px 28px rgba(44, 36, 22, 0.035);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-why-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(127, 187, 66, 0.12);
    margin-bottom: 14px;
}

.home-why-icon::before {
    content: '';
    width: 18px;
    height: 18px;
    margin: auto;
    border: 2px solid var(--color-primary);
    border-radius: 6px;
}

.home-why-card h3 {
    margin: 0 0 6px;
    font-size: 0.96rem;
}

.home-why-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .home-hero-layout {
        gap: 36px;
    }

    .home-category-grid,
    .home-product-grid,
    .home-why-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-carousel-slide {
        flex-basis: calc((100% - 40px) / 3);
    }
}

@media (max-width: 768px) {
    .home-section {
        padding: 40px 0;
    }

    .home-hero-slider,
    .home-hero-track {
        min-height: auto;
    }

    .home-hero-slide {
        position: relative;
        display: none;
        min-height: auto;
    }

    .home-hero-slide.is-active {
        display: block;
    }

    .home-hero-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 0 66px;
    }

    .home-hero-copy h1 {
        font-size: clamp(2.25rem, 11vw, 3.4rem);
    }

    .home-hero-copy p {
        font-size: 0.94rem;
    }

    .home-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .home-hero-image {
        max-width: 480px;
        margin: 0 auto;
        border-radius: 24px;
    }

    .home-hero-arrow {
        display: none;
    }

    .home-section-row {
        align-items: flex-start;
    }

    .home-carousel-controls {
        display: none;
    }

    .home-category-grid,
    .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .home-carousel-slide {
        flex-basis: calc((100% - 14px) / 2);
    }

    .home-carousel-track {
        gap: 14px;
    }

    .home-product-button {
        opacity: 1;
        transform: none;
    }

    .home-custom-banner {
        grid-template-columns: 1fr;
        padding: 30px 22px;
    }

    .home-custom-visual {
        display: none;
    }

    .home-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .home-section-heading {
        margin-bottom: 24px;
    }

    .home-section-heading h2 {
        font-size: 2rem;
    }

    .home-category-content,
    .home-product-body {
        padding: 11px;
    }

    .home-category-content strong,
    .home-product-title {
        font-size: 0.82rem;
    }

    .home-category-content small {
        font-size: 0.74rem;
    }

    .home-product-price {
        font-size: 0.86rem;
    }

    .home-product-button {
        min-height: 36px;
        font-size: 0.74rem;
        padding-left: 9px;
        padding-right: 9px;
    }

    .home-custom-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .home-why-grid {
        grid-template-columns: 1fr;
    }
}
