/*
Theme Name: Shoptimizer Child
Theme URI: https://v2.intervals.lv/
Description: Clean child theme for step-by-step Shoptimizer customization.
Author: Codex
Template: shoptimizer
Version: 1.0.0
Text Domain: shoptimizer-child
*/

:root {
    --iv2-page-bg: #f7f8fb;
    --iv2-surface: #ffffff;
    --iv2-text: #17181d;
    --iv2-muted: #647089;
    --iv2-border: #dbe1ea;
    --iv2-accent: #003f7c;
    --iv2-brand: #0b6b4a;
    --iv2-header-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    --iv2-topbar-bg: #17365d;
    --iv2-topbar-text: #ecf3fb;
}

body {
    background: var(--iv2-page-bg);
    color: var(--iv2-text);
}

.site-header,
.site-header .main-header {
    background: var(--iv2-surface);
}

.site-branding .custom-logo {
    width: auto;
    max-width: 260px;
    max-height: 74px;
}

@media (min-width: 993px) {
    .site-header {
        position: relative;
        z-index: 20;
        border-bottom: 0;
        box-shadow: none;
    }

    .site-header .main-header.col-full {
        align-items: center;
        row-gap: 16px;
    }

    .site-header .site-branding {
        line-height: 1;
    }

    .site-branding .custom-logo {
        max-width: 210px;
        max-height: 46px;
    }

    .site-header .site-search {
        margin-left: 2.4em;
        flex: 1 1 420px;
        max-width: 560px;
    }

    .header-5 .site-header .site-header-cart .cart-contents,
    .header-5 .site-header .site-header-cart .cart-contents .amount {
        color: #222;
    }
}

@media (max-width: 992px) {
    .site-header {
        border-bottom: 1px solid var(--iv2-border);
    }

    .site-header .main-header.col-full {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .site-branding .custom-logo {
        max-height: 36px;
    }
}

.intervals-clean-front-page {
    padding: 28px 0 64px;
}

.iv2-home-hero,
.iv2-home-card {
    background: var(--iv2-surface);
    border: 1px solid var(--iv2-border);
    border-radius: 10px;
}

.iv2-home-hero {
    padding: 28px;
    margin-bottom: 24px;
}

.iv2-home-hero__eyebrow {
    margin: 0 0 10px;
    color: var(--iv2-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.iv2-home-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    line-height: 1.15;
}

.iv2-home-hero__text {
    max-width: 760px;
    margin: 0;
    color: var(--iv2-muted);
    font-size: 16px;
    line-height: 1.65;
}

.iv2-home-hero__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

.iv2-home-hero__link {
    color: var(--iv2-accent);
    font-weight: 700;
}

.iv2-home-section--tight {
    margin-top: 24px;
}

.iv2-home-section {
    margin-top: 28px;
}

.iv2-home-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.iv2-home-section__header h2 {
    margin: 0 0 6px;
    font-size: 24px;
}

.iv2-home-section__header p {
    margin: 0;
    color: var(--iv2-muted);
    max-width: 760px;
}

.iv2-home-section__link {
    color: var(--iv2-accent);
    font-weight: 700;
    white-space: nowrap;
}

.iv2-home-categories,
.iv2-home-products,
.iv2-home-info,
.iv2-home-value-grid,
.iv2-home-brand-grid {
    display: grid;
    gap: 18px;
}

.iv2-home-value-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.iv2-home-categories,
.iv2-home-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.iv2-home-brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.iv2-home-info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.iv2-home-card {
    overflow: hidden;
}

.iv2-home-value-card {
    display: block;
    min-height: 100%;
    padding: 22px;
    color: var(--iv2-text);
    text-decoration: none;
}

.iv2-home-value-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.iv2-home-value-card p {
    margin: 0;
    color: var(--iv2-muted);
    line-height: 1.6;
}

.iv2-home-brand-card {
    min-height: 100%;
}

.iv2-home-brand-card__content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 22px;
}

.iv2-home-brand-card__eyebrow {
    margin: 0 0 10px;
    color: var(--iv2-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.iv2-home-brand-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.15;
}

.iv2-home-brand-card h3 a,
.iv2-home-brand-card__cta {
    color: var(--iv2-text);
    text-decoration: none;
}

.iv2-home-brand-card__text {
    margin: 0;
    color: var(--iv2-muted);
    line-height: 1.6;
}

.iv2-home-brand-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 16px;
}

.iv2-home-brand-card__links a {
    color: var(--iv2-accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.iv2-home-brand-card__cta {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    color: var(--iv2-accent);
    font-weight: 700;
}

.iv2-home-category {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: var(--iv2-text);
    text-decoration: none;
}

.iv2-home-category img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #eef2f7;
}

.iv2-home-category__title,
.iv2-home-category__meta {
    padding: 0 18px;
}

.iv2-home-category__title {
    padding-top: 18px;
    font-size: 18px;
    font-weight: 700;
}

.iv2-home-category__meta {
    padding-bottom: 18px;
    color: var(--iv2-muted);
}

.iv2-home-product {
    display: flex;
    flex-direction: column;
}

.iv2-home-product__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 18px;
    background: #f9fafc;
}

.iv2-home-product__image img {
    max-height: 220px;
    width: auto;
}

.iv2-home-product__content {
    padding: 18px;
}

.iv2-home-product__content h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.45;
}

.iv2-home-product__content h3 a {
    color: var(--iv2-text);
}

.iv2-home-product__price {
    color: var(--iv2-accent);
    font-weight: 700;
}

.iv2-home-info-card {
    display: block;
    padding: 22px;
    color: var(--iv2-text);
    text-decoration: none;
}

.iv2-home-info-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.iv2-home-info-card p {
    margin: 0;
    color: var(--iv2-muted);
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .iv2-home-value-grid,
    .iv2-home-categories,
    .iv2-home-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .iv2-home-brand-grid,
    .iv2-home-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .iv2-home-hero {
        padding: 28px 22px;
    }

    .iv2-home-hero__actions,
    .iv2-home-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .iv2-home-categories,
    .iv2-home-products,
    .iv2-home-info,
    .iv2-home-value-grid,
    .iv2-home-brand-grid {
        grid-template-columns: 1fr;
    }

    .iv2-home-brand-card h3 {
        font-size: 20px;
    }
}
