/**
 * CosmeticeSiHaine.ro
 * Content Flow Premium V1
 *
 * Pagini:
 * - blog și articol
 * - brand
 * - campanii
 * - pagini CMS
 * - colecții
 * - checkout V2
 * - confirmare comandă
 */

:root {
    --content-navy: #06182f;
    --content-navy-soft: #102a4f;
    --content-gold: #c59a3d;
    --content-gold-dark: #956d1f;
    --content-gold-soft: #fff7e4;
    --content-surface: #ffffff;
    --content-background: #f5f7fa;
    --content-text: #111827;
    --content-muted: #667085;
    --content-border: #e3e8ef;
    --content-success: #15803d;
    --content-radius-lg: 24px;
    --content-radius-md: 17px;
    --content-radius-sm: 12px;
    --content-shadow:
        0 18px 48px rgba(6, 24, 47, .075);
    --content-shadow-soft:
        0 10px 28px rgba(6, 24, 47, .055);
}

.content-page,
.article-page,
.blog-wrap,
.cms-public-page,
.checkout-v2 {
    color: var(--content-text);
}

.content-page *,
.article-page *,
.blog-wrap *,
.cms-public-page *,
.checkout-v2 * {
    box-sizing: border-box;
}

.content-page img,
.article-page img,
.blog-wrap img,
.cms-public-page img,
.checkout-v2 img {
    max-width: 100%;
}

.content-page a:focus-visible,
.content-page button:focus-visible,
.content-page input:focus-visible,
.content-page select:focus-visible,
.content-page textarea:focus-visible,
.article-page a:focus-visible,
.blog-wrap a:focus-visible,
.blog-wrap input:focus-visible,
.cms-public-page a:focus-visible,
.checkout-v2 a:focus-visible,
.checkout-v2 button:focus-visible,
.checkout-v2 input:focus-visible,
.checkout-v2 select:focus-visible,
.checkout-v2 textarea:focus-visible {
    outline: 3px solid rgba(197, 154, 61, .28);
    outline-offset: 2px;
}

/* =========================================================
   STRUCTURĂ COMUNĂ
   ========================================================= */

.content-page,
.article-page,
.blog-wrap {
    width: 100%;
    max-width: 1680px;
    min-height: 65vh;
    margin-inline: auto;
}

.content-page {
    padding:
        28px
        clamp(18px, 4.5vw, 72px)
        68px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(197, 154, 61, .105),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #ffffff,
            var(--content-background)
        );
}

.content-page h1,
.article-page h1,
.blog-wrap h1,
.cms-public-page h1 {
    color: var(--content-navy);
    letter-spacing: -.04em;
}

.content-page h2,
.content-page h3,
.article-page h2,
.article-page h3,
.blog-wrap h2,
.blog-wrap h3,
.cms-public-page h2,
.cms-public-page h3 {
    color: var(--content-navy);
    letter-spacing: -.025em;
}

.content-page p,
.article-page p,
.blog-wrap p,
.cms-public-page p {
    color: var(--content-muted);
    line-height: 1.72;
}

.content-page a,
.article-page a,
.blog-wrap a,
.cms-public-page a {
    text-underline-offset: 3px;
}

.content-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--content-gold-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.content-notice {
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid rgba(197, 154, 61, .2);
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            rgba(197, 154, 61, .09),
            rgba(255, 255, 255, .82)
        );
    color: #5e6875;
    font-size: 13px;
    line-height: 1.65;
}

.content-section-spaced {
    margin-top: 22px;
}

/* =========================================================
   BLOG
   ========================================================= */

.blog-wrap,
.article-page {
    padding:
        28px
        clamp(18px, 4.5vw, 72px)
        68px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(197, 154, 61, .11),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #fff,
            var(--content-background)
        );
}

.blog-hero {
    overflow: hidden;
    padding:
        clamp(25px, 4vw, 48px);
    border: 1px solid rgba(197, 154, 61, .2);
    border-radius: var(--content-radius-lg);
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(197, 154, 61, .3),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--content-navy),
            var(--content-navy-soft)
        );
    box-shadow: var(--content-shadow);
}

.blog-hero h1,
.blog-hero p {
    max-width: 760px;
    color: #fff;
}

.blog-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 4.5vw, 54px);
    line-height: 1.02;
}

.blog-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(14px, 1.7vw, 17px);
}

.blog-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(245px, 315px);
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.blog-card,
.blog-box,
.article-page article {
    border: 1px solid var(--content-border);
    border-radius: 20px;
    background: var(--content-surface);
    box-shadow: var(--content-shadow-soft);
}

.blog-card {
    overflow: hidden;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 154, 61, .38);
    box-shadow: var(--content-shadow);
}

.blog-card h2 {
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.18;
}

.blog-box {
    padding: 20px;
}

.blog-sidebar-search {
    width: 100%;
    min-height: 47px;
    padding: 0 13px;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
    color: var(--content-text);
    font-weight: 750;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.blog-sidebar-search:focus {
    border-color: var(--content-gold);
    box-shadow:
        0 0 0 3px
        rgba(197, 154, 61, .11);
    outline: 0;
}

/* =========================================================
   ARTICOL
   ========================================================= */

.article-page article {
    width: min(100%, 980px);
    margin-inline: auto;
    padding:
        clamp(22px, 4vw, 48px);
}

.article-page article > header {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--content-border);
}

.article-page article h1 {
    margin: 0 0 14px;
    font-size: clamp(33px, 4.6vw, 54px);
    line-height: 1.05;
}

.article-content {
    color: #344054;
    font-size: clamp(15px, 1.7vw, 17px);
    line-height: 1.82;
}

.article-content h2,
.article-content h3 {
    margin-top: 1.7em;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--content-gold);
    border-radius: 0 14px 14px 0;
    background: var(--content-gold-soft);
    color: #5f491d;
}

.article-content img {
    height: auto;
    border-radius: 18px;
}

/* =========================================================
   BRAND ȘI COLECȚII
   ========================================================= */

.content-page--brand .brand-hero,
.content-page--collection > section:first-of-type {
    overflow: hidden;
    border: 1px solid rgba(197, 154, 61, .2);
    border-radius: var(--content-radius-lg);
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(197, 154, 61, .2),
            transparent 38%
        ),
        #fff;
    box-shadow: var(--content-shadow);
}

.content-page--brand .brand-hero {
    padding:
        clamp(23px, 3.5vw, 42px);
}

.content-page--brand .brand-hero h1,
.content-page--collection h1 {
    margin: 0;
    font-size: clamp(32px, 4.4vw, 50px);
    line-height: 1.05;
}

.content-page--brand .section-title,
.content-page--collection .section-title {
    margin-top: 32px;
    font-size: clamp(24px, 3vw, 34px);
}

.content-page--brand .brand-seo-text,
.content-page--collection .category-description,
.content-page--collection .collection-description {
    margin-top: 28px;
    padding: clamp(19px, 2.8vw, 30px);
    border: 1px solid var(--content-border);
    border-radius: 19px;
    background: #fff;
    box-shadow: var(--content-shadow-soft);
}

.content-page--collection .product-grid,
.content-page--brand .product-grid {
    gap: 17px;
}

.content-page--collection .product-card,
.content-page--brand .product-card {
    height: 100%;
    border-radius: 16px;
}

/* =========================================================
   CAMPANII
   ========================================================= */

.content-page--campaigns {
    min-height: 65vh;
}

.content-page--campaigns .home-section {
    width: 100%;
    max-width: 1500px;
    margin-inline: auto;
    padding:
        clamp(22px, 3.5vw, 40px);
    border: 1px solid var(--content-border);
    border-radius: var(--content-radius-lg);
    background: #fff;
    box-shadow: var(--content-shadow);
}

.content-page--campaigns .home-section > h2,
.content-page--campaigns .home-section-header h2 {
    margin-top: 0;
    color: var(--content-navy);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
}

.content-page--campaigns .campaign-card,
.content-page--campaigns .home-campaign-card {
    overflow: hidden;
    border: 1px solid var(--content-border);
    border-radius: 18px;
    box-shadow: var(--content-shadow-soft);
    transition:
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.content-page--campaigns .campaign-card:hover,
.content-page--campaigns .home-campaign-card:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 154, 61, .42);
    box-shadow: var(--content-shadow);
}

/* =========================================================
   CMS ȘI PAGINI LEGALE
   ========================================================= */

.cms-public-page.content-page {
    max-width: none;
}

.cms-public-page__container {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.cms-public-page__breadcrumbs {
    margin-bottom: 15px;
    color: var(--content-muted);
    font-size: 13px;
}

.cms-public-page__breadcrumbs a {
    color: var(--content-gold-dark);
    font-weight: 850;
}

.cms-public-page__header {
    margin-bottom: 18px;
    padding:
        clamp(22px, 3.4vw, 38px);
    border: 1px solid rgba(197, 154, 61, .2);
    border-radius: var(--content-radius-lg);
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(197, 154, 61, .2),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #fff,
            #faf7ef
        );
    box-shadow: var(--content-shadow-soft);
}

.cms-public-page__header h1 {
    margin: 0;
    font-size: clamp(32px, 4.5vw, 50px);
    line-height: 1.05;
}

.cms-public-page__content {
    padding:
        clamp(22px, 3.4vw, 40px);
    border: 1px solid var(--content-border);
    border-radius: var(--content-radius-lg);
    background: #fff;
    box-shadow: var(--content-shadow);
    color: #344054;
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.8;
}

.cms-public-page__content h2,
.cms-public-page__content h3 {
    margin-top: 1.7em;
}

.cms-public-page__content h2:first-child,
.cms-public-page__content h3:first-child {
    margin-top: 0;
}

.cms-public-page__content a {
    color: var(--content-gold-dark);
    font-weight: 800;
}

/* =========================================================
   CHECKOUT V2
   ========================================================= */

.checkout-v2.content-page--checkout-v2 {
    width: 100%;
    max-width: 1680px;
    margin-inline: auto;
    padding:
        26px
        clamp(14px, 4vw, 62px)
        64px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(197, 154, 61, .1),
            transparent 29%
        ),
        var(--content-background);
}

.checkout-v2-top {
    overflow: hidden;
    padding:
        clamp(22px, 3.2vw, 38px);
    border: 1px solid rgba(197, 154, 61, .2);
    border-radius: var(--content-radius-lg);
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(197, 154, 61, .28),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--content-navy),
            var(--content-navy-soft)
        );
    box-shadow: var(--content-shadow);
}

.checkout-v2-top h1,
.checkout-v2-top p {
    color: #fff;
}

.checkout-v2-main > section,
.checkout-v2-empty,
.checkout-v2-summary {
    border-color: var(--content-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--content-shadow-soft);
}

.checkout-v2 input,
.checkout-v2 select,
.checkout-v2 textarea {
    border-radius: 12px;
}

.checkout-v2 input:focus,
.checkout-v2 select:focus,
.checkout-v2 textarea:focus {
    border-color: var(--content-gold);
    box-shadow:
        0 0 0 3px
        rgba(197, 154, 61, .11);
    outline: 0;
}

.checkout-v2 button[type="submit"],
.checkout-v2 .checkout-v2-submit {
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            var(--content-gold),
            var(--content-gold-dark)
        );
    box-shadow:
        0 14px 28px
        rgba(197, 154, 61, .23);
}

.checkout-v2-spaced {
    margin-top: 16px;
}

/* =========================================================
   MULȚUMIRE / CONFIRMARE COMANDĂ
   ========================================================= */

.content-page--thank-you {
    display: grid;
    align-content: start;
    justify-items: center;
}

.thank-you-card {
    width: min(100%, 900px);
    margin: 4px auto 0;
    padding:
        clamp(24px, 4vw, 46px);
    border: 1px solid var(--content-border);
    border-radius: var(--content-radius-lg);
    background:
        radial-gradient(
            circle at 50% 0,
            rgba(197, 154, 61, .15),
            transparent 38%
        ),
        #fff;
    box-shadow: var(--content-shadow);
    text-align: center;
}

.thank-you-icon {
    font-size: 54px;
    line-height: 1;
}

.thank-you-card h1 {
    margin: 14px 0 12px;
    font-size: clamp(32px, 4.5vw, 50px);
    line-height: 1.05;
}

.thank-you-details {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--content-border);
    border-radius: 16px;
    background: #fafbfc;
    text-align: left;
}

.thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.thank-you-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 0 18px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.thank-you-actions a:first-child {
    background:
        linear-gradient(
            135deg,
            var(--content-gold),
            var(--content-gold-dark)
        );
    color: #fff;
}

.thank-you-actions a:not(:first-child) {
    border: 1px solid var(--content-border);
    background: #fff;
    color: var(--content-navy);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-layout > aside {
        display: grid;
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .blog-layout > aside .blog-box {
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .content-page,
    .article-page,
    .blog-wrap,
    .checkout-v2.content-page--checkout-v2 {
        padding:
            16px
            12px
            44px;
    }

    .blog-hero,
    .article-page article,
    .content-page--campaigns .home-section,
    .cms-public-page__header,
    .cms-public-page__content,
    .thank-you-card {
        border-radius: 18px;
    }

    .blog-layout {
        margin-top: 16px;
    }

    .blog-layout > aside {
        grid-template-columns: 1fr;
    }

    .content-page--collection .product-grid,
    .content-page--brand .product-grid {
        gap: 10px;
    }

    .thank-you-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .thank-you-actions a {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .blog-hero h1,
    .article-page article h1,
    .cms-public-page__header h1,
    .content-page--brand .brand-hero h1,
    .content-page--collection h1,
    .thank-you-card h1 {
        font-size: 30px;
    }

    .article-page article,
    .cms-public-page__content,
    .thank-you-card {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .content-page *,
    .article-page *,
    .blog-wrap *,
    .cms-public-page *,
    .checkout-v2 * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
