/* ============================================================
   HOME PAGE SPECIFIC STYLES — index.css
   ============================================================ */

/* HERO */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.12) 60%, rgba(0, 0, 0, 0.05) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 8%;
    padding-right: 5%;
    max-width: 680px;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
    animation: slideUp 0.6s ease 0.1s both;
}

.hero-heading {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: slideUp 0.7s ease 0.3s both;
}

.hero-subtext {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    max-width: 420px;
    margin-bottom: 32px;
    animation: slideUp 0.7s ease 0.5s both;
}

.hero-btn {
    animation: slideUp 0.7s ease 0.7s both;
}

/* CATEGORY SECTION */
.category-section {
    background: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.category-card-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 55%);
    transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.1) 60%);
}

.category-info {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 2;
}

.category-name {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 8px;
}

.category-link {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.category-link:hover {
    color: #fff;
}

/* BEST SELLING SECTION */
.bestseller-section {
    background: var(--off-white);
    padding: var(--section-padding);
}

.bestseller-inner {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.bestseller-left {
    flex: 0 0 320px;
    padding-top: 20px;
    position: sticky;
    top: 100px;
}

.bestseller-heading {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 2.2rem;
    line-height: 1.3;
    color: var(--dark-text);
    margin-bottom: 16px;
}

.bestseller-sub {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.93rem;
    color: var(--medium-text);
    line-height: 1.85;
    margin-bottom: 24px;
}

.see-more-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--primary-red);
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.see-more-link:hover {
    color: var(--deep-crimson);
}

.bestseller-right {
    flex: 1;
    overflow: hidden;
}

/* Carousel */
.carousel-wrapper {
    position: relative;
}

.carousel-viewport {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.carousel-track .product-card {
    flex: 0 0 calc((100% - 40px) / 3);
}

.carousel-nav {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: background var(--transition), border-color var(--transition);
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.carousel-nav:hover svg {
    stroke: #fff;
}

.carousel-nav svg {
    width: 16px;
    height: 16px;
    stroke: var(--dark-text);
    fill: none;
    stroke-width: 2;
}

.carousel-prev {
    left: -18px;
}

.carousel-next {
    right: -18px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: background var(--transition), transform 0.2s;
}

.carousel-dot.active {
    background: var(--primary-red);
    transform: scale(1.25);
}

/* CRAFTSMANSHIP */
.craft-section {
    padding: 0;
}

.craft-inner {
    display: flex;
    min-height: 480px;
}

.craft-image {
    flex: 1;
    overflow: hidden;
}

.craft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.craft-image:hover img {
    filter: grayscale(60%);
}

.craft-text {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 60px;
}

.craft-text-inner {
    max-width: 420px;
}

.craft-heading {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.4;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.craft-sub {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.93rem;
    color: var(--medium-text);
    line-height: 1.85;
    margin-bottom: 28px;
}

/* VIDEO BANNER */
.video-banner {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.video-bg {
    position: absolute;
    inset: 0;
}

.video-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.video-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.play-btn {
    width: 64px;
    height: 64px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto 24px;
    transition: background var(--transition);
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.play-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    margin-left: 4px;
}

.video-heading {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 12px;
}

.video-sub {
    font-family: var(--font-body);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    letter-spacing: 0.06em;
}

/* NEWSLETTER + INSTAGRAM */
.newsletter-section {
    background: var(--cream);
}

.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.newsletter-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--dark-text);
    margin-bottom: 16px;
}

.newsletter-sub {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.92rem;
    color: var(--medium-text);
    line-height: 1.85;
    margin-bottom: 28px;
}

.newsletter-form {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
}

.newsletter-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 0;
    outline: none;
    color: var(--dark-text);
}

.newsletter-input::placeholder {
    color: var(--light-text);
}

.newsletter-btn {
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--primary-red);
    color: #fff;
    border: none;
    padding: 10px 24px;
    cursor: pointer;
    border-radius: var(--button-radius);
    transition: background var(--transition);
}

.newsletter-btn:hover {
    background: var(--deep-crimson);
}

/* Instagram grid */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.insta-cell {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.insta-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.insta-cell:hover img {
    transform: scale(1.06);
}

.insta-cell-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-cell:hover .insta-cell-overlay {
    opacity: 1;
}

.insta-cell-overlay svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

/* RESPONSIVE - HOME */
@media (max-width: 1024px) {
    .bestseller-left {
        flex: 0 0 260px;
    }

    .carousel-track .product-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-left: 5%;
    }

    .hero-heading {
        font-size: 2.2rem;
    }

    .hero-subtext {
        font-size: 0.88rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .bestseller-inner {
        flex-direction: column;
    }

    .bestseller-left {
        flex: none;
        position: static;
    }

    .carousel-track .product-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .craft-inner {
        flex-direction: column;
    }

    .craft-text {
        padding: 40px 24px;
    }

    .newsletter-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .video-heading {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .carousel-track .product-card {
        flex: 0 0 80%;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}