/*
Theme Name: Noir & Or Child
Template: astra
Description: Motyw potomny Astra dla sklepu WooCommerce "Noir & Or" — rzemieślnicza czekolada, demo portfolio Digital GO
Author: Digital GO
Version: 1.0
*/

/* ============================================
   NOIR & OR — ZMIENNE KOLORÓW
   ============================================ */
:root {
    --noir: #120b08;          /* głęboka czekoladowa czerń — tło sekcji ciemnych */
    --noir-soft: #1c130f;     /* czerń z lekkim brązem — karty na ciemnym tle */
    --bordeaux: #6b0f1a;      /* głęboka czerwień/bordo — akcent drugorzędny */
    --bordeaux-light: #8c1c27;
    --gold: #c9a227;          /* złoto/mosiądz — akcent główny, CTA */
    --gold-light: #e0c15a;
    --cream: #f7f1e8;         /* kremowa biel — tło główne */
    --cream-soft: #efe6d8;
    --text-dark: #201510;
    --text-muted: rgba(32, 21, 16, 0.65);
}

/* ============================================
   RESET WRAPPERA ASTRY — WYMAGANE NA KAŻDYM front-page.php
   ============================================ */
body .ast-container,
body #content,
body .site-content {
    display: block !important;
    max-width: none !important;
}
body #primary,
body #main {
    width: 100% !important;
    float: none !important;
}
#colophon { display: none !important; }

/* ============================================
   PODSTAWY
   ============================================ */
body {
    background: var(--cream);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

/* ============================================
   PRZYCISK — wzorzec no-border-radius (projekty spoza Sylwii)
   ============================================ */
.noiretor__btn {
    position: relative;
    display: inline-block;
    padding: 14px 34px;
    border: 1px solid var(--gold);
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: font-weight 0.3s;
}
.noiretor__btn span {
    position: relative;
    z-index: 1;
}
.noiretor__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
    z-index: 0;
}
.noiretor__btn:hover::before {
    transform: translateX(0);
}
.noiretor__btn:hover span {
    font-weight: 700;
    color: var(--noir);
}
/* Wariant przycisku na jasnym tle (np. w sekcji produktów) */
.noiretor__btn--dark {
    color: var(--noir);
    border-color: var(--noir);
}
.noiretor__btn--dark::before {
    background: var(--noir);
}
.noiretor__btn--dark:hover span {
    color: var(--gold);
}

/* ============================================
   HERO
   ============================================ */
.noiretor-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--noir);
    overflow: hidden;
    text-align: center;
}
.noiretor-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
}
.noiretor-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(18,11,8,0.3) 0%, rgba(18,11,8,0.92) 75%);
}
.noiretor-hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 24px;
}
.noiretor-hero__title {
    color: var(--cream);
    font-size: clamp(48px, 8vw, 96px);
    line-height: 1;
    margin: 16px 0;
}
.noiretor-hero__title .accent {
    color: var(--gold);
    font-style: italic;
}
.noiretor-hero__subtitle {
    color: rgba(247,241,232,0.8);
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    max-width: 480px;
    margin: 0 auto 36px;
    text-align: center;
}

/* ============================================
   PASEK ZAUFANIA
   ============================================ */
.noiretor-trust {
    background: var(--cream-soft);
    padding: 32px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    text-align: center;
}
.noiretor-trust__item {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.noiretor-trust__item strong {
    display: block;
    color: var(--bordeaux);
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 4px;
}

/* ============================================
   KOLEKCJA PRODUKTÓW
   ============================================ */
.noiretor-collection {
    padding: 100px 24px;
    max-width: 1240px;
    margin: 0 auto;
}
.noiretor-collection__header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 64px;
}
.noiretor-collection__header h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin: 12px 0 16px;
}
.noiretor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}
.noiretor-card {
    background: #fff;
    border: 1px solid rgba(201,162,39,0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.noiretor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(18,11,8,0.14);
}
.noiretor-card__img {
    aspect-ratio: 4/3;
    overflow: hidden;
}
.noiretor-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.noiretor-card:hover .noiretor-card__img img {
    transform: scale(1.06);
}
.noiretor-card__body {
    padding: 28px 24px 32px;
    text-align: center;
}
.noiretor-card__body h3 {
    font-size: 24px;
    margin: 0 0 8px;
}
.noiretor-card__body p {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 16px;
}
.noiretor-card__price {
    display: block;
    color: var(--bordeaux);
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    margin-bottom: 18px;
}

/* ============================================
   STORYTELLING — pełnoekranowe zdjęcie + tekst
   ============================================ */
.noiretor-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
}
.noiretor-story__img {
    background-size: cover;
    background-position: center;
}
.noiretor-story__text {
    background: var(--noir);
    color: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
}
.noiretor-story__text h2 {
    color: var(--cream);
    font-size: clamp(30px, 3.5vw, 42px);
    margin: 12px 0 20px;
}
.noiretor-story__text p {
    color: rgba(247,241,232,0.75);
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
}
@media (max-width: 900px) {
    .noiretor-story { grid-template-columns: 1fr; }
    .noiretor-story__img { min-height: 320px; }
    .noiretor-story__text { padding: 56px 32px; }
}

/* ============================================
   ODMIANY
   ============================================ */
.noiretor-variants {
    background: var(--noir-soft);
    padding: 100px 24px;
}
.noiretor-variants__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}
.noiretor-variants__header h2 { color: var(--cream); }
.noiretor-variants__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2px;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(201,162,39,0.2);
}
.noiretor-variant {
    background: var(--noir-soft);
    padding: 48px 24px;
    text-align: center;
}
.noiretor-variant__pct {
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}
.noiretor-variant__name {
    color: var(--cream);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ============================================
   OPINIE
   ============================================ */
.noiretor-reviews {
    padding: 100px 24px;
    text-align: center;
}
.noiretor-reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 56px auto 0;
}
.noiretor-review {
    padding: 32px;
    background: var(--cream-soft);
}
.noiretor-review p {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.noiretor-review span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
}

/* ============================================
   CTA KOŃCOWE
   ============================================ */
.noiretor-cta {
    background: var(--bordeaux);
    color: var(--cream);
    text-align: center;
    padding: 100px 24px;
}
.noiretor-cta h2 {
    color: var(--cream);
    font-size: clamp(32px, 4vw, 52px);
    margin-bottom: 24px;
}
.noiretor-cta .noiretor__btn {
    color: var(--cream);
    border-color: var(--cream);
}
.noiretor-cta .noiretor__btn::before {
    background: var(--cream);
}
.noiretor-cta .noiretor__btn:hover span {
    color: var(--bordeaux);
}

/* ============================================
   RESPONSYWNOŚĆ OGÓLNA
   ============================================ */
@media (max-width: 600px) {
    .noiretor-collection,
    .noiretor-variants,
    .noiretor-reviews,
    .noiretor-cta { padding-left: 20px; padding-right: 20px; }
}

/* ============================================
   PODSTAWOWE STYLOWANIE WOOCOMMERCE (Noir & Or)
   ============================================ */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--bordeaux);
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce input.button {
    background: var(--noir) !important;
    color: var(--cream) !important;
    border-radius: 0 !important;
    border: 1px solid var(--gold) !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    padding: 14px 28px !important;
    transition: all 0.3s ease !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce input.button:hover {
    background: var(--gold) !important;
    color: var(--noir) !important;
}
.woocommerce ul.products li.product h2,
.woocommerce div.product .product_title {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
}
.woocommerce-page #content .product .quantity input.qty {
    border-radius: 0;
}
