/* LIVBEN - Home page */

body {
    font-family: "Inter", system-ui, sans-serif;
    --home-primary: #064e3b;
    --home-dark: #172033;
    --home-muted: #475569;
    --home-discount: #b91c1c;
    --home-surface: #f8fafc;
    --home-border: #e2e8f0;
    --home-success: #f0fdf4;
    color: var(--home-dark);
    background: #fafaf8;
}

html[lang="ar"] body {
    font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif;
}

html[lang="ar"] .lv-hero-content > span,
html[lang="ar"] .lv-collection-label,
html[lang="ar"] .lv-collection-placeholder {
    letter-spacing: normal;
}


/* Hero */

.lv-hero {
    position: relative;
    margin: 0 0 1.5rem;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(135deg, #043c2e, #064e3b);
    color: #fff;
}

/* Hero without slides */

.lv-hero:not(:has(> .lv-hero-slide)) {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.lv-hero:not(:has(> .lv-hero-slide)) > span {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.lv-hero:not(:has(> .lv-hero-slide)) > h1 {
    margin: 0.75rem 0;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.lv-hero:not(:has(> .lv-hero-slide)) > p {
    max-width: 44rem;
    margin: 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

/* Hero slides */

.lv-hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: clamp(17rem, 23vw, 22rem);
    padding: 1.5rem clamp(1.25rem, 3vw, 3rem);
    overflow: hidden;
    isolation: isolate;
}

.lv-hero-slide[hidden] {
    display: none;
}

.lv-hero-picture {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
}

.lv-hero-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.lv-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgb(0 20 14 / 84%),
        rgb(0 20 14 / 22%)
    );
    pointer-events: none;
}

.lv-hero-slide:dir(rtl)::before {
    background: linear-gradient(
        270deg,
        rgb(0 20 14 / 84%),
        rgb(0 20 14 / 22%)
    );
}

.lv-hero-content {
    position: relative;
    width: 100%;
    max-width: 42.5rem;
    min-width: 0;
    color: #fff;
}

.lv-hero-content > span {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.lv-hero-slide .lv-hero-content h1 {
    margin: 0 0 0.75rem;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.625rem);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.lv-hero-slide .lv-hero-content p {
    margin: 0;
    color: #f2faf5;
    font-size: clamp(0.875rem, 1.15vw, 1rem);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.lv-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 44px;
    margin-top: 1rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    background: #fff;
    color: var(--home-primary);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.lv-hero-button:hover {
    background: #e5f3eb;
    color: #064b37;
}

.lv-hero-button:focus-visible {
    outline: 3px solid #f97316;
    outline-offset: 3px;
}

/* Hero preview notice */

.lv-notice {
    margin: 0 0 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid #bfdcc9;
    border-radius: 0.625rem;
    background: #edf7f2;
    color: #214c35;
    line-height: 1.5;
}

/* Collection heading */

.lv-collection {
    margin: 0 0 2rem;
}

.lv-collection-heading {
    margin-bottom: 1rem;
}

.lv-collection-label {
    color: var(--home-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.lv-collection-heading h2 {
    margin: 0.375rem 0 0;
    color: var(--home-dark);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
    font-weight: 600;
}

/* Product grid */

.lv-collection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.lv-collection-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 0.875rem;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.lv-collection-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.75rem rgb(0 35 20 / 9%);
}

.lv-collection-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.lv-collection-link:focus-visible {
    outline: 3px solid #087f5b;
    outline-offset: -3px;
}

/* Product image */

.lv-collection-image {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    min-width: 0;
    overflow: hidden;
    background: var(--home-surface);
}

.lv-collection-badge {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    gap: 0.25rem;
    min-width: 0;
    max-width: 100%;
    padding: 0.25rem 0.375rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
    white-space: normal;
}

.lv-collection-badge-icon {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 1.5rem;
    object-fit: contain;
}

.lv-collection-badge--featured {
    background: #fdf2f5;
    color: #9f1239;
}

.lv-collection-badge--shipping {
    background: #ecfdf5;
    color: #065f46;
}

.lv-collection-badge--discount {
    position: absolute;
    z-index: 2;
    inset-block-start: 0.5rem;
    inset-inline-start: 0.5rem;
    max-width: calc(100% - 1rem);
    background: var(--home-discount);
    color: #fff;
    pointer-events: none;
}

.lv-collection-image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lv-collection-placeholder {
    color: #23684f;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

/* Product information */

.lv-collection-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    min-width: 0;
    padding: 0.625rem;
}

.lv-collection-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    min-width: 0;
    max-width: 100%;
}

.lv-collection-price-group {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    max-width: 100%;
    margin-block-start: auto;
}

.lv-collection-info h3 {
    margin: 0;
    min-width: 0;
    color: var(--home-dark);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.lv-collection-price {
    color: var(--home-dark);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.lv-collection-saving {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: 100%;
    color: var(--home-primary);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.lv-collection-price-previous {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.125rem 0.375rem;
    min-width: 0;
    max-width: 100%;
}

.lv-collection-price-label {
    min-width: 0;
    max-width: 100%;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.lv-collection-price-old {
    display: block;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.lv-collection-type,
.lv-collection-colors {
    margin: 0;
    color: #52695a;
    font-size: 0.8125rem;
    line-height: 1.45;
}

/* Stock and production status */

.lv-collection-info .lv-collection-type--made,
.lv-collection-info .lv-collection-type--stock {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0;
    padding: 0.375rem 0.625rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.lv-collection-info .lv-collection-type--made {
    border-color: #fdba74;
    background: #fff7ed;
    color: #9a3412;
}

.lv-collection-info .lv-collection-type--stock {
    border-color: #86efac;
    background: var(--home-success);
    color: var(--home-primary);
}

.lv-collection-type-days {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3125rem 0.5625rem;
    border-radius: 0.375rem;
    background: #9a3412;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

/* Sizes */

.lv-collection-sizes {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 0.25rem;
}

.lv-collection-sizes span {
    box-sizing: border-box;
    min-width: 1.625rem;
    max-width: 100%;
    padding: 0.25rem 0.375rem;
    border: 1px solid var(--home-border);
    border-radius: 0.375rem;
    background: var(--home-surface);
    color: var(--home-dark);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
}

/* Colors */

.lv-collection-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    overflow-wrap: anywhere;
}

.lv-collection-color {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.3125rem 0.5625rem;
    border: 1px solid #dce5df;
    border-radius: 0.5rem;
    background: #f7faf8;
    color: #40564a;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.lv-collection-color[data-color="Mavi"] {
    border-color: #bfd4f0;
    background: #eef5ff;
    color: #245486;
}

.lv-collection-color[data-color="Yeşil"],
.lv-collection-color[data-color="Mat Yeşil"] {
    border-color: #c5e3ce;
    background: #eff8f1;
    color: #286542;
}

.lv-collection-color[data-color="Bordo"] {
    border-color: #ecc8d2;
    background: #fcf0f3;
    color: #79263f;
}

/* Reviews */

.lv-collection-review-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3125rem 0.5rem;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    line-height: 1.3;
}

.lv-collection-review-stars {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    direction: ltr;
    white-space: nowrap;
    font-size: 1.0625rem;
    line-height: 1;
    letter-spacing: 1px;
}

.lv-collection-review-stars-base {
    color: #cbd5e1;
}

.lv-collection-review-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    color: #a16207;
}

.lv-collection-review-score {
    color: #1e293b;
    font-size: 0.8125rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.lv-collection-review-count {
    min-width: 0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* Empty collection */

.lv-collection-empty {
    padding: 1.5rem 1rem;
    border: 1px solid #dbe5dd;
    border-radius: 0.75rem;
    background: #f7faf7;
    color: #52695a;
    text-align: center;
    line-height: 1.5;
}


/* Discounted price */

.lv-collection-price-previous + .lv-collection-price {
    color: var(--home-discount);
}

/* Home header */

.lv-header {
    color: var(--home-dark);
    border-color: var(--home-border);
}

.lv-brand {
    color: var(--home-primary);
    font-weight: 800;
}

.lv-header-nav a {
    color: var(--home-dark);
    font-weight: 600;
    font-size: 0.9375rem;
}

.lv-cart-count {
    background: var(--home-primary);
}

.lv-language-menu summary {
    color: var(--home-dark);
    border-color: var(--home-border);
    font-weight: 600;
}

/* Responsive */

@media (min-width: 1100px) {
    .lv-collection-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.875rem;
    }
}

@media (max-width: 767px) {
    .lv-hero-slide {
        align-items: flex-end;
        min-height: clamp(18.75rem, 90vw, 24.375rem);
        padding: 1.5rem 1.125rem;
    }

    .lv-hero-slide::before {
        background: linear-gradient(
            0deg,
            rgb(0 20 14 / 88%),
            rgb(0 20 14 / 28%)
        );
    }

    .lv-hero-slide:dir(rtl)::before {
        background: linear-gradient(
            0deg,
            rgb(0 20 14 / 88%),
            rgb(0 20 14 / 28%)
        );
    }

    .lv-hero-content {
        max-width: 100%;
    }

    .lv-hero-slide .lv-hero-content h1 {
        font-size: clamp(1.375rem, 5.4vw, 2rem);
    }
}

@media (max-width: 600px) {
    .lv-collection-grid {
        gap: 0.625rem;
    }

    .lv-collection-card {
        border-radius: 0.625rem;
    }

    .lv-collection-info {
        gap: 0.375rem;
        padding: 0.5rem;
    }

    .lv-collection-badge {
        font-size: 0.6875rem;
    }

    .lv-collection-badge-icon {
        width: 1.25rem;
        height: 1.25rem;
        flex-basis: 1.25rem;
    }

    .lv-collection-info h3 {
        font-size: 0.875rem;
    }

    .lv-collection-price {
        font-size: 1.125rem;
    }

    .lv-collection-review-stars {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .lv-collection-info .lv-collection-type--made,
    .lv-collection-info .lv-collection-type--stock {
        gap: 0.3125rem;
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lv-collection-card {
        transition: none;
    }

    .lv-collection-card:hover {
        transform: none;
    }
}
