/**
 * ThemeForge Pro Fashion — Premium Front Page Styles
 */

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */

.tf-section {
    padding: 100px 0;
}

.tf-section--alt {
    background: var(--tf-color-bg-alt, #FAFAFA);
}

.tf-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.tf-section-header--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    text-align: left;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
}

.tf-section-eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tf-color-text-muted, #737373);
    font-weight: 500;
    margin: 0 0 12px;
}

.tf-section-title {
    font-family: var(--tf-font-serif, Georgia, serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--tf-color-text, #171717);
}

.tf-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tf-color-text, #171717);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
    transition: opacity 0.2s ease;
}

.tf-section-link:hover {
    opacity: 0.6;
}

/* ============================================================
   HERO — Full-screen
   ============================================================ */

.tf-hero {
    position: relative;
    min-height: 90vh;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

@media (max-width: 1023px) {
    .tf-hero {
        background-attachment: scroll;
        min-height: 80vh;
    }
}

.tf-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.tf-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 24px;
    max-width: 900px;
}

.tf-hero--left .tf-hero__inner {
    text-align: left;
    margin-left: 0;
}

.tf-hero--right .tf-hero__inner {
    text-align: right;
    margin-right: 0;
}

.tf-hero__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 24px;
    font-weight: 500;
}

.tf-hero__title {
    font-family: var(--tf-font-serif, Georgia, serif);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
    color: #fff;
}

.tf-hero__text {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.tf-hero--left .tf-hero__text {
    margin-left: 0;
}

.tf-hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.7;
    animation: tf-bounce 2s infinite;
}

@keyframes tf-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   MARQUEE — Infinite scroll
   ============================================================ */

.tf-marquee {
    overflow: hidden;
    background: #171717;
    color: #fff;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tf-marquee__track {
    display: flex;
    gap: 32px;
    animation: tf-marquee-scroll 40s linear infinite;
    white-space: nowrap;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
}

.tf-marquee__track span:nth-child(even) {
    opacity: 0.4;
}

@keyframes tf-marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   CATEGORIES — Premium cards
   ============================================================ */

.tf-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tf-category-card {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    background: #f5f5f5;
}

.tf-category-card__image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.tf-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tf-category-card:hover .tf-category-card__image img {
    transform: scale(1.08);
}

.tf-category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

.tf-category-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: #fff;
    z-index: 2;
}

.tf-category-card__name {
    font-family: var(--tf-font-serif, Georgia, serif);
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 4px;
    color: #fff;
    letter-spacing: -0.01em;
}

.tf-category-card__count {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

.tf-category-card__arrow {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(20px, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.tf-category-card:hover .tf-category-card__arrow {
    transform: translate(0, -50%);
    opacity: 1;
}

/* ============================================================
   PRODUCTS
   ============================================================ */

.tf-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tf-product-card {
    position: relative;
    background: transparent;
    transition: transform 0.3s ease;
}

.tf-product-card:hover {
    transform: translateY(-4px);
}

.tf-product-card__image {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 16px;
}

.tf-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tf-product-card:hover .tf-product-card__image img {
    transform: scale(1.05);
}

.tf-product-card__sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #b91c1c;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
}

.tf-product-card__wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.95);
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #171717;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 2;
}

.tf-product-card:hover .tf-product-card__wishlist {
    opacity: 1;
    transform: translateY(0);
}

.tf-product-card__wishlist:hover {
    background: #171717;
    color: #fff;
}

.tf-product-card__title {
    font-family: var(--tf-font-serif, Georgia, serif);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 6px;
    line-height: 1.4;
}

.tf-product-card__title a {
    color: var(--tf-color-text, #171717);
    text-decoration: none;
}

.tf-product-card__price {
    font-size: 0.9375rem;
    color: var(--tf-color-text-muted, #737373);
}

.tf-product-card__price del {
    opacity: 0.5;
    margin-right: 6px;
}

/* ============================================================
   SALE BANNER
   ============================================================ */

.tf-sale-banner {
    position: relative;
    min-height: 480px;
    background-color: #171717;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    padding: 80px 0;
}

.tf-sale-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

.tf-sale-banner__inner {
    position: relative;
    z-index: 2;
}

.tf-sale-banner__content {
    max-width: 560px;
}

.tf-sale-banner__eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0.9;
}

.tf-sale-banner__title {
    font-family: var(--tf-font-serif, Georgia, serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: #fff;
}

.tf-sale-banner__text {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 32px;
    opacity: 0.9;
}

/* ============================================================
   EDITORIAL
   ============================================================ */

.tf-editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tf-editorial-card {
    position: relative;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: flex-end;
}

.tf-editorial-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
    transition: opacity 0.4s ease;
}

.tf-editorial-card:hover .tf-editorial-card__overlay {
    opacity: 0.9;
}

.tf-editorial-card__body {
    position: relative;
    z-index: 2;
    padding: 32px;
    width: 100%;
}

.tf-editorial-card__title {
    font-family: var(--tf-font-serif, Georgia, serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    color: #fff;
}

.tf-editorial-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
}

/* ============================================================
   BRAND STORY
   ============================================================ */

.tf-brand-story {
    background: var(--tf-color-bg-alt, #FAFAFA);
}

.tf-brand-story__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.tf-brand-story__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eaeaea;
}

.tf-brand-story__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-brand-story__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eaeaea, #f5f5f5);
}

.tf-brand-story__title {
    font-family: var(--tf-font-serif, Georgia, serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 24px;
    color: var(--tf-color-text, #171717);
}

.tf-brand-story__text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--tf-color-text-muted, #737373);
    margin: 0 0 32px;
}

/* ============================================================
   INSTAGRAM
   ============================================================ */

.tf-instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.tf-instagram-item {
    aspect-ratio: 1;
    overflow: hidden;
    display: block;
    background: #f5f5f5;
}

.tf-instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.tf-instagram-item:hover img {
    transform: scale(1.08);
    opacity: 0.85;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.tf-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.tf-testimonial {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid var(--tf-color-border, #EAEAEA);
    background: #fff;
}

.tf-testimonial__stars {
    color: #171717;
    letter-spacing: 4px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.tf-testimonial__quote {
    font-family: var(--tf-font-serif, Georgia, serif);
    font-size: 1.125rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--tf-color-text, #171717);
    margin: 0 0 16px;
    border: 0;
    padding: 0;
}

.tf-testimonial__author {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tf-color-text-muted, #737373);
    margin: 0;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */

.tf-newsletter {
    position: relative;
    padding: 100px 0;
    background: #171717;
    color: #fff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.tf-newsletter__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1;
}

.tf-newsletter .tf-container {
    position: relative;
    z-index: 2;
}

.tf-newsletter__inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.tf-newsletter .tf-section-eyebrow {
    color: rgba(255,255,255,0.7);
}

.tf-newsletter__title {
    font-family: var(--tf-font-serif, Georgia, serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: #fff;
}

.tf-newsletter__text {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 32px;
    opacity: 0.9;
}

.tf-newsletter__form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
}

.tf-newsletter__input {
    flex: 1;
    padding: 16px;
    font-size: 0.9375rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.tf-newsletter__input:focus {
    border-color: #fff;
}

.tf-newsletter__input::placeholder {
    color: rgba(255,255,255,0.5);
}

.tf-newsletter__note {
    font-size: 0.75rem;
    margin: 16px 0 0;
    opacity: 0.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1023px) {
    .tf-section {
        padding: 64px 0;
    }

    .tf-categories-grid,
    .tf-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tf-instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tf-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .tf-editorial-grid {
        grid-template-columns: 1fr;
    }

    .tf-brand-story__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tf-section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .tf-hero {
        min-height: 70vh;
    }

    .tf-hero__scroll {
        display: none;
    }

    .tf-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .tf-product-card__wishlist {
        opacity: 1;
        transform: none;
    }

    .tf-newsletter__form {
        flex-direction: column;
    }

    .tf-section-header--split {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tf-hero__scroll {
        animation: none;
    }

    .tf-marquee__track {
        animation: none;
    }
}