/* =========================================================
   HOME PAGE - DYNAMIC PREMIUM UI
   Beyaz arka plan + kırmızı vurgu
   Dinamik slider + kategori + ürün + mağaza + cta
   ========================================================= */

:root {
    --home-bg: #ffffff;
    --home-surface: #ffffff;
    --home-surface-soft: #fafafa;
    --home-surface-red-soft: #fff4f4;

    --home-border: #ececec;
    --home-border-strong: #dddddd;

    --home-text: #111111;
    --home-text-soft: #555555;
    --home-text-muted: #777777;

    --home-primary: #c40000;
    --home-primary-dark: #990000;
    --home-primary-soft: #ffe8e8;

    --home-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.05);
    --home-shadow-md: 0 14px 36px rgba(0, 0, 0, 0.08);
    --home-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.10);

    --home-radius-sm: 12px;
    --home-radius-md: 18px;
    --home-radius-lg: 28px;
}

/* Genel */
.home-page {
    background: var(--home-bg);
    padding: 28px 0 70px;
    color: var(--home-text);
}

.home-page * {
    box-sizing: border-box;
}

.home-page a {
    text-decoration: none;
}

.home-page img {
    max-width: 100%;
    display: block;
}

.home-section {
    margin-top: 42px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.22s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--home-primary);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(196, 0, 0, 0.16);
}

.btn-primary:hover {
    background: var(--home-primary-dark);
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    color: var(--home-text);
    border-color: var(--home-border-strong);
}

.btn-secondary:hover {
    border-color: rgba(196, 0, 0, 0.30);
    color: var(--home-primary);
}

/* =========================================================
   HERO
   ========================================================= */
.home-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    padding: 64px 52px;
    background:
        radial-gradient(circle at top right, rgba(196, 0, 0, 0.10), transparent 28%),
        radial-gradient(circle at left bottom, rgba(196, 0, 0, 0.05), transparent 20%),
        linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
    box-shadow: var(--home-shadow-sm);
}

.home-hero::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(196, 0, 0, 0.05);
}

.home-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.home-hero__eyebrow,
.section-heading__eyebrow,
.home-cta__eyebrow,
.home-empty-state__eyebrow,
.home-slide__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--home-primary-soft);
    color: var(--home-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero__eyebrow {
    margin-bottom: 18px;
}

.home-hero__title {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--home-text);
}

.home-hero__text {
    max-width: 700px;
    margin: 0;
    color: var(--home-text-soft);
    font-size: 18px;
    line-height: 1.8;
}

.home-hero__actions,
.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

/* =========================================================
   SLIDER
   ========================================================= */
.home-slider {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    background:
        radial-gradient(circle at top right, rgba(196, 0, 0, 0.10), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
    box-shadow: var(--home-shadow-sm);
}

.home-slider__track {
    position: relative;
    width: 100%;
}

.home-slide {
    display: none;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 28px;
    min-height: 520px;
    padding: 48px;
}

.home-slide.is-active {
    display: grid;
}

.home-slide__content {
    max-width: 760px;
}

.home-slide__eyebrow {
    margin-bottom: 18px;
}

.home-slide__title {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--home-text);
}

.home-slide__text {
    margin: 0;
    color: var(--home-text-soft);
    font-size: 18px;
    line-height: 1.8;
}

.home-slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.home-slide__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.home-slide__media img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--home-shadow-md);
    border: 1px solid var(--home-border);
}

.home-slide__placeholder {
    width: 100%;
    height: 360px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, #fff1f1 0%, #ffffff 100%);
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow-sm);
}

.home-slider__nav {
    position: absolute;
    inset: 50% 18px auto 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.home-slider__arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--home-primary);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: var(--home-shadow-sm);
    transition: all 0.2s ease;
}

.home-slider__arrow:hover {
    background: var(--home-primary);
    color: #ffffff;
    border-color: var(--home-primary);
}

.home-slider__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px 22px;
}

.home-slider__dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: #d8d8d8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-slider__dot.is-active {
    background: var(--home-primary);
    transform: scale(1.15);
}

/* =========================================================
   SECTION HEADING
   ========================================================= */
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading__eyebrow {
    margin-bottom: 10px;
}

.section-heading__title {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--home-text);
}

.section-link {
    color: var(--home-primary);
    font-size: 14px;
    font-weight: 700;
}

.section-link:hover {
    color: var(--home-primary-dark);
}

/* =========================================================
   CATEGORY GRID
   ========================================================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.category-card {
    display: block;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-md);
    background: var(--home-surface);
    box-shadow: var(--home-shadow-sm);
    transition: all 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(196, 0, 0, 0.22);
    box-shadow: var(--home-shadow-md);
}

.category-card__body {
    padding: 24px;
}

.category-card__title {
    margin: 0 0 10px;
    color: var(--home-text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
}

.category-card__meta {
    color: var(--home-text-soft);
    font-size: 14px;
    font-weight: 600;
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-md);
    overflow: hidden;
    box-shadow: var(--home-shadow-sm);
    transition: all 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(196, 0, 0, 0.22);
    box-shadow: var(--home-shadow-md);
}

.product-card::before {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--home-primary-dark), var(--home-primary));
}

.product-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #fafafa;
    border-bottom: 1px solid var(--home-border);
}

.product-card__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.04);
}

.product-card__image-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, #fff1f1 0%, #ffffff 100%);
}

.product-card__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.product-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.product-card__store,
.product-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.product-card__store {
    background: var(--home-primary-soft);
    color: var(--home-primary);
}

.product-card__badge {
    background: #f4f4f4;
    color: var(--home-text-soft);
    text-transform: capitalize;
}

.product-card__title {
    margin: 0;
    min-height: 60px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
}

.product-card__title a {
    color: var(--home-text);
    transition: color 0.2s ease;
}

.product-card__title a:hover {
    color: var(--home-primary);
}

.product-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--home-text-soft);
    font-size: 14px;
    font-weight: 600;
}

.product-card__price {
    color: var(--home-text);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.product-card__price--ask {
    color: var(--home-primary);
    font-size: 18px;
    font-weight: 800;
}

.product-card__actions {
    margin-top: auto;
    display: flex;
    align-items: center;
}

/* =========================================================
   STORE GRID
   ========================================================= */
.store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.store-card {
    background: linear-gradient(135deg, #ffffff 0%, #fff9f9 100%);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-md);
    box-shadow: var(--home-shadow-sm);
    transition: all 0.25s ease;
}

.store-card:hover {
    transform: translateY(-6px);
    border-color: rgba(196, 0, 0, 0.22);
    box-shadow: var(--home-shadow-md);
}

.store-card__body {
    padding: 24px;
}

.store-card__title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
}

.store-card__title a {
    color: var(--home-text);
}

.store-card__title a:hover {
    color: var(--home-primary);
}

.store-card__meta {
    margin-bottom: 10px;
    color: var(--home-text-soft);
    font-size: 15px;
    line-height: 1.6;
}

.store-card__count {
    margin-bottom: 18px;
    color: var(--home-primary);
    font-size: 14px;
    font-weight: 800;
}

.store-card__actions {
    display: flex;
    align-items: center;
}

/* =========================================================
   CTA
   ========================================================= */
.home-cta {
    margin-top: 46px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    padding: 52px 40px;
    background:
        radial-gradient(circle at right top, rgba(196, 0, 0, 0.10), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fff6f6 100%);
    box-shadow: var(--home-shadow-sm);
}

.home-cta__content {
    max-width: 760px;
}

.home-cta__eyebrow {
    margin-bottom: 18px;
}

.home-cta__title {
    margin: 0 0 16px;
    color: var(--home-text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.home-cta__text {
    margin: 0;
    color: var(--home-text-soft);
    font-size: 17px;
    line-height: 1.8;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */
.home-empty-state {
    margin-top: 26px;
}

.home-empty-state__box {
    padding: 54px 28px;
    text-align: center;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
    box-shadow: var(--home-shadow-sm);
}

.home-empty-state__eyebrow {
    margin-bottom: 14px;
}

.home-empty-state__box h2 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 800;
    color: var(--home-text);
}

.home-empty-state__box p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--home-text-soft);
    font-size: 16px;
    line-height: 1.8;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-grid,
    .store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-slide {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .home-slide__media {
        min-height: 280px;
    }
}

@media (max-width: 992px) {
    .home-page {
        padding: 22px 0 52px;
    }

    .home-hero {
        padding: 42px 28px;
    }

    .home-slider__nav {
        inset: auto 14px 18px auto;
        transform: none;
        justify-content: flex-end;
        gap: 10px;
    }

    .home-slide {
        padding: 34px 28px 72px;
    }

    .home-cta {
        padding: 40px 28px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 640px) {
    .home-hero,
    .home-cta,
    .home-empty-state__box {
        padding: 28px 18px;
    }

    .home-slide {
        padding: 26px 18px 68px;
        gap: 20px;
    }

    .home-slide__title,
    .home-hero__title {
        font-size: 30px;
    }

    .home-slide__text,
    .home-hero__text,
    .home-cta__text {
        font-size: 15px;
        line-height: 1.75;
    }

    .home-slide__actions,
    .home-hero__actions,
    .home-cta__actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .category-grid,
    .product-grid,
    .store-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card__title,
    .store-card__title,
    .category-card__title {
        font-size: 19px;
        min-height: auto;
    }

    .product-card__price {
        font-size: 22px;
    }

    .home-empty-state__box h2 {
        font-size: 24px;
    }

    .home-slider__arrow {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }
}