/* OrganicsFood Typography System v1.1
   Scala: 12 → 13 → 14 → 15 → 16 → 18 → 20 → 24 → 30
   Fonturi: Fraunces (headings) + Raleway (body)
   Line-height: headings 1.25, body 1.6, UI 1.3
*/

/* =========================================
   DESKTOP: Tipografie armonizata
   ========================================= */

/* Body — baza 16px, lh 1.6 */
body {
    font-size: 16px;
    line-height: 1.6;
}

/* H1 — titlu produs / pagina */
h1, .product_title, h1.entry-title, .page-title {
    font-size: 30px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

/* H2 — sectiuni (Upsells, Related, etc.) */
h2, .related-wrapper h2, .upsells h2, .up-sells h2, .related h2, .cross-sells h2 {
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

/* H3 */
h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

/* H4 */
h4 {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

/* Pret principal — selectoare specifice pt a suprascrie div.product p.price 1.9em din tema */
body.single-product div.product p.price,
body.single-product div.product .summary .price,
body.single-product .summary p.price {
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

body.single-product div.product p.price del,
body.single-product .summary .price del {
    font-size: 18px !important;
    font-weight: 400 !important;
}

body.single-product div.product p.price ins,
body.single-product .summary .price ins {
    font-size: 24px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Descriere scurta — 16px pe scala (era 17px) */
.woocommerce-product-details__short-description,
.woocommerce-product-details__short-description p,
.product-short-description,
.product-short-description p {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* Meta (SKU, categorii) */
.product_meta {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Tab links */
.woocommerce-tabs ul.tabs li a {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

/* Tab content */
.woocommerce-Tabs-panel,
.woocommerce-Tabs-panel p {
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* Card-uri produs (upsells, related, categorie) */
.woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

/* Card pret — selectoare specifice pt a suprascrie tema */
.woocommerce ul.products li.product .price,
div.product .upsells .price,
div.product .related .price,
.upsells ul.products li.product .price,
.related ul.products li.product .price {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.woocommerce ul.products li.product .price del {
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Butoane — UI font */
.button, .btn,
.add_to_cart_button,
.single_add_to_cart_button {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

/* Card butoane — mai mici */
.upsells .add_to_cart_button,
.related .add_to_cart_button,
.cross-sells .add_to_cart_button,
.woocommerce ul.products li.product .add_to_cart_button {
    font-size: 14px !important;
}

/* Nav menu */
.main-navigation a,
.primary-menu a,
.menu-main-menu-container a {
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

/* Cross-sell */
.pdp-complementary--heading {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.pdp-complementary--title {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

/* Quantity input */
.quantity input.qty {
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* =========================================
   TABLET: 768px - 1024px
   ========================================= */
@media (max-width: 1024px) {
    h1, .product_title, h1.entry-title {
        font-size: 26px !important;
    }

    h2, .related-wrapper h2, .upsells h2, .related h2 {
        font-size: 22px !important;
    }

    body.single-product div.product p.price,
    body.single-product .summary .price {
        font-size: 26px !important;
    }

    body.single-product div.product p.price ins,
    body.single-product .summary .price ins {
        font-size: 22px !important;
    }
}

/* =========================================
   MOBILE: sub 768px
   ========================================= */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1, .product_title, h1.entry-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    h2, .related-wrapper h2, .upsells h2, .up-sells h2, .related h2, .cross-sells h2 {
        font-size: 20px !important;
    }

    h3 {
        font-size: 18px !important;
    }

    h4 {
        font-size: 16px !important;
    }

    body.single-product div.product p.price,
    body.single-product .summary .price {
        font-size: 24px !important;
    }

    body.single-product div.product p.price del,
    body.single-product .summary .price del {
        font-size: 16px !important;
    }

    body.single-product div.product p.price ins,
    body.single-product .summary .price ins {
        font-size: 20px !important;
    }

    .woocommerce-product-details__short-description,
    .woocommerce-product-details__short-description p,
    .product-short-description,
    .product-short-description p {
        font-size: 15px !important;
    }

    .woocommerce-tabs ul.tabs li a {
        font-size: 13px !important;
    }

    .woocommerce-Tabs-panel,
    .woocommerce-Tabs-panel p {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    .woocommerce-breadcrumb {
        font-size: 12px !important;
    }

    .woocommerce-loop-product__title,
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 14px !important;
    }

    .woocommerce ul.products li.product .price,
    .upsells .price, .related .price {
        font-size: 16px !important;
    }

    .button, .btn,
    .add_to_cart_button,
    .single_add_to_cart_button {
        font-size: 14px !important;
    }

    .upsells .add_to_cart_button,
    .related .add_to_cart_button,
    .woocommerce ul.products li.product .add_to_cart_button {
        font-size: 13px !important;
    }

    .main-navigation a,
    .primary-menu a {
        font-size: 14px !important;
    }

    .pdp-complementary--heading {
        font-size: 18px !important;
    }

    .pdp-complementary--title {
        font-size: 14px !important;
    }

    .product_meta {
        font-size: 13px !important;
    }
}

/* =========================================
   MOBILE MIC: sub 480px
   ========================================= */
@media (max-width: 480px) {
    h1, .product_title, h1.entry-title {
        font-size: 20px !important;
    }

    h2, .related-wrapper h2, .upsells h2, .related h2 {
        font-size: 18px !important;
    }

    body.single-product div.product p.price,
    body.single-product .summary .price {
        font-size: 22px !important;
    }

    body.single-product div.product p.price ins,
    body.single-product .summary .price ins {
        font-size: 18px !important;
    }

    body.single-product div.product p.price del,
    body.single-product .summary .price del {
        font-size: 14px !important;
    }
}