/* ==========================================================================
   Homepage — روسری شیک (Premium)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared Section Header
   -------------------------------------------------------------------------- */

.section-header {
    text-align: center;
    margin-bottom: var(--space-7);
}

.section-header__title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-h2);
    color: var(--color-text);
    margin-bottom: var(--space-3);
    position: relative;
    display: inline-block;
}

.section-header__title::before {
    content: "✦";
    position: absolute;
    top: 50%;
    inset-inline-end: calc(100% + var(--space-3));
    transform: translateY(-50%);
    font-size: 0.5em;
    color: var(--color-rose-gold);
    opacity: 0.7;
}

.section-header__title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: var(--space-3) auto 0;
    background: linear-gradient(90deg, var(--color-rose-gold), var(--color-primary), var(--color-rose-gold));
    border-radius: 2px;
}

.section-header__subtitle {
    font-size: 1.125rem;
    max-width: 42ch;
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding-block: var(--space-8);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(176, 74, 114, 0.14) 0%, transparent 45%),
        radial-gradient(ellipse at 15% 85%, rgba(196, 160, 136, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 245, 248, 0.8) 0%, transparent 70%),
        linear-gradient(
            155deg,
            var(--color-ivory) 0%,
            var(--color-soft-pink) 35%,
            var(--color-champagne) 65%,
            var(--color-blush) 100%
        );
    z-index: 0;
}

.hero__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(176, 74, 114, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.5;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-7);
    align-items: center;
}

@media (min-width: 768px) {
    .hero {
        padding-block: var(--space-8) calc(var(--space-8) + var(--space-4));
    }

    .hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    text-align: center;
}

@media (min-width: 768px) {
    .hero__content {
        text-align: start;
        order: 1;
    }

    .hero__media {
        order: 2;
    }
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    align-self: center;
    padding: var(--space-2) var(--space-4);
    font-size: 0.8125rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--color-deep-rose);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(232, 213, 222, 0.8);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
    .hero__eyebrow {
        align-self: flex-start;
    }
}

.hero__title {
    font-family: var(--font-family-display);
    font-size: clamp(2.25rem, 5.5vw, 3.25rem);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--color-deep-rose) 0%, var(--color-primary) 50%, var(--color-rose-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__text {
    font-size: 1.25rem;
    color: var(--color-warm-gray);
    max-width: 34ch;
    margin-inline: auto;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .hero__text {
        margin-inline: 0;
    }
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

@media (min-width: 768px) {
    .hero__actions {
        justify-content: flex-start;
    }
}

.hero__btn {
    min-width: 160px;
}

.hero__media {
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: 560px;
    margin-inline: auto;
    width: 100%;
    max-width: 460px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-luxury), var(--shadow-glow);
    border: 2px solid rgba(255, 255, 255, 0.8);
    outline: 1px solid rgba(232, 213, 222, 0.5);
    outline-offset: 6px;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero__media:hover .hero__image {
    transform: scale(1.03);
}

.hero__media-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(200, 107, 152, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: var(--space-3);
    background: linear-gradient(
        160deg,
        var(--color-soft-pink) 0%,
        var(--color-surface) 50%,
        var(--color-blush) 100%
    );
}

.hero__placeholder-icon {
    font-size: 4.5rem;
    color: var(--color-primary);
    opacity: 0.45;
    animation: float 4s ease-in-out infinite;
}

.hero__placeholder-text {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-warm-gray);
}

/* --------------------------------------------------------------------------
   Categories
   -------------------------------------------------------------------------- */

.home-categories {
    padding-block: var(--space-8);
    background-color: var(--color-surface);
    position: relative;
}

.home-categories::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-5);
    }
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-6) var(--space-4);
    text-align: center;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(232, 213, 222, 0.6);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition:
        transform var(--transition-smooth),
        box-shadow var(--transition-smooth),
        border-color var(--transition-base);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    pointer-events: none;
}

.category-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-card-hover);
    color: inherit;
}

.category-card--rose {
    background: linear-gradient(145deg, var(--color-blush) 0%, var(--color-soft-pink) 100%);
}

.category-card--blush {
    background: linear-gradient(145deg, #FDF0F5 0%, var(--color-secondary) 100%);
}

.category-card--gold {
    background: linear-gradient(145deg, #FBF5F0 0%, #F5EBE3 100%);
}

.category-card--silk {
    background: linear-gradient(145deg, var(--color-ivory) 0%, var(--color-blush) 100%);
}

.category-card__icon {
    font-size: 2rem;
    color: var(--color-primary);
    opacity: 0.75;
    transition: transform var(--transition-base);
}

.category-card:hover .category-card__icon {
    transform: scale(1.15);
    opacity: 1;
}

.category-card__title {
    font-family: var(--font-family-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text);
    position: relative;
    z-index: 1;
}

.category-card__desc {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Latest Products
   -------------------------------------------------------------------------- */

.home-products {
    padding-block: var(--space-8);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(176, 74, 114, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-background) 0%, var(--color-blush) 100%);
}

.product-grid--home .product-card:nth-child(1) { animation: fadeUp 0.6s ease 0.05s both; }
.product-grid--home .product-card:nth-child(2) { animation: fadeUp 0.6s ease 0.1s both; }
.product-grid--home .product-card:nth-child(3) { animation: fadeUp 0.6s ease 0.15s both; }
.product-grid--home .product-card:nth-child(4) { animation: fadeUp 0.6s ease 0.2s both; }
.product-grid--home .product-card:nth-child(5) { animation: fadeUp 0.6s ease 0.25s both; }
.product-grid--home .product-card:nth-child(6) { animation: fadeUp 0.6s ease 0.3s both; }
.product-grid--home .product-card:nth-child(7) { animation: fadeUp 0.6s ease 0.35s both; }
.product-grid--home .product-card:nth-child(8) { animation: fadeUp 0.6s ease 0.4s both; }

@media (prefers-reduced-motion: reduce) {
    .product-grid--home .product-card {
        animation: none;
    }
}
