@font-face {
  font-family: 'PenShop Inter';
  src: url('./fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* PEN SHOP V4 — DESIGN SYSTEM (modificari ulterioare doar aici) */
:root {
  --ps-font: 'PenShop Inter', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ps-navy: #172b4d;
  --ps-text: #52637d;
  --ps-blue: #2563eb;
  --ps-border: #e2e8f0;
  --ps-radius: 12px;
  --ps-body: 16px;
  --ps-h1: 36px;
  --ps-h2: 30px;
  --ps-h3: 21px;
}

/* Font universal, inclusiv in formulare, fara a afecta adminbar-ul WP */
body .site, body .site button, body .site input,
body .site select, body .site textarea,
body .site .woocommerce, body .site .wp-block-button__link {
  font-family: var(--ps-font) !important;
}
body .site { font-size: var(--ps-body); line-height: 1.7; color: var(--ps-text); }
body .site-content p, body .site-content li { line-height: 1.75; }
body .site-content h1, body .site-content h2,
body .site-content h3, body .site-content h4 {
  font-family: var(--ps-font) !important;
  color: var(--ps-navy);
  letter-spacing: -.028em;
  line-height: 1.26;
}
body .site-content h1 { font-size: var(--ps-h1) !important; font-weight: 700; }
body .site-content h2 { font-size: var(--ps-h2) !important; font-weight: 700; }
body .site-content h3 { font-size: var(--ps-h3) !important; font-weight: 650; }
body .site-content h4 { font-size: 18px !important; font-weight: 650; }

/* Antet si footer — pe toate paginile, actuale si viitoare */
body .site-header .site-title a { font-size: 24px !important; font-weight: 750; letter-spacing: -.035em; }
body .site-header .main-header-menu .menu-link { font-size: 14px !important; font-weight: 550; }
body .ps-v3-brand { font-size: 22px !important; font-weight: 800; }
body .ps-v3-footer-nav a, body .ps-v3-footer-identity p { font-size: 14px !important; }

/* Homepage — scara proportionala, fara alterarea layoutului */
body .site .ps-home .ps-hero h1 {
  font-size: clamp(42px, 4.7vw, 62px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.05em !important;
  font-weight: 750 !important;
  color: white !important;
}
body .site .ps-home .ps-hero p { font-size: 16px !important; line-height: 1.78 !important; }
body .site .ps-home .ps-section h2 {
  font-size: clamp(26px, 2.7vw, 33px) !important;
  line-height: 1.2 !important;
  letter-spacing: -.035em;
}
body .site .ps-home .ps-category-card h3 { font-size: 20px !important; line-height: 1.35 !important; }
body .site .ps-home .ps-category-card p { font-size: 14px !important; }
body .site .ps-home .ps-value strong { font-size: 15px; }
body .site .ps-home .ps-value span { font-size: 13px; }
body .site .ps-home .ps-button { font-size: 14px !important; }

/* Magazin — pastreaza cardurile actuale, cu tipografie stabila */
body.woocommerce-shop .woocommerce-products-header__title,
body.post-type-archive-product .woocommerce-products-header__title,
body.tax-product_cat .woocommerce-products-header__title {
  font-size: var(--ps-h1) !important;
  font-weight: 700 !important;
}
body .site .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px !important;
  line-height: 1.45 !important;
  font-weight: 650 !important;
}
body .site .woocommerce ul.products li.product .price {
  font-size: 18px !important;
  font-weight: 750 !important;
}

/* Paginile produselor — elimina zgomotul din template */
body.single-product .woocommerce-breadcrumb,
body.single-product .ast-breadcrumbs-wrapper,
body.single-product .product_meta,
body.single-product .ast-woo-product-category,
body.single-product .ast-single-product-category,
body.single-product .single-product-category,
body.single-product .woocommerce-tabs,
body.single-product .related.products {
  display: none !important;
}
body.single-product .woocommerce div.product .woocommerce-product-gallery {
  border-radius: 18px;
  background: white;
  border: 1px solid var(--ps-border);
  overflow: hidden;
}
body.single-product .woocommerce div.product div.summary {
  background: white;
  border: 1px solid var(--ps-border);
  border-radius: 18px;
  padding: 29px 31px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(20,36,62,.035);
}
body.single-product .woocommerce div.product .summary .product_title {
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 18px !important;
}
body.single-product .woocommerce div.product .summary .price,
body.single-product .woocommerce div.product .summary .woocommerce-Price-amount {
  font-size: 24px !important;
  color: var(--ps-navy) !important;
  font-weight: 750 !important;
}
body.single-product .woocommerce div.product .summary .woocommerce-product-details__short-description,
body.single-product .woocommerce div.product .summary .woocommerce-product-details__short-description p {
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: var(--ps-text) !important;
}
body.single-product .woocommerce div.product form.cart .quantity .qty {
  min-height: 48px; border-radius: 9px; border: 1px solid var(--ps-border);
}
body.single-product .woocommerce div.product form.cart button.single_add_to_cart_button {
  min-height: 48px !important; border-radius: 9px !important;
  font-size: 14px !important; font-weight: 700 !important;
  background: var(--ps-blue) !important; color: white !important;
  border-color: var(--ps-blue) !important;
}
body.single-product .woocommerce div.product form.cart button.single_add_to_cart_button:hover {
  background: #1d4ed8 !important; border-color: #1d4ed8 !important;
}

/* Descriere continua, fara tabul subliniat */
body.single-product .ps-v4-details {
  clear: both; box-sizing: border-box; width: 100%;
  background: white; border: 1px solid var(--ps-border);
  border-radius: 18px; padding: 38px 44px; margin: 34px 0;
}
body.single-product .ps-v4-description { max-width: 1050px; color: var(--ps-text); }
body.single-product .ps-v4-description h1,
body.single-product .ps-v4-description h2 {
  font-size: 26px !important; line-height: 1.3 !important;
  margin: 0 0 22px !important; font-weight: 700 !important;
}
body.single-product .ps-v4-description h3 {
  font-size: 20px !important; margin: 26px 0 12px !important;
}
body.single-product .ps-v4-description p,
body.single-product .ps-v4-description li { font-size: 16px !important; line-height: 1.8 !important; }
body.single-product .ps-v4-description p { margin-bottom: 18px; }
body.single-product .ps-v4-description li { margin-bottom: 8px; }
body.single-product .ps-v4-attributes h2 { font-size: 25px !important; margin-bottom: 18px; }
body.single-product .ps-v4-attributes table { width: 100%; border-collapse: collapse; }
body.single-product .ps-v4-attributes th,
body.single-product .ps-v4-attributes td { padding: 12px 14px; border-bottom: 1px solid var(--ps-border); }
body.single-product .ps-v3-reviews { border-radius: 18px; margin-top: 34px; padding: 38px 44px; }
body.single-product .ps-v3-reviews h2 { font-size: 25px !important; }

@media(max-width: 767px) {
  :root { --ps-body: 15px; --ps-h1: 29px; --ps-h2: 25px; --ps-h3: 19px; }
  body .site-header .site-title a { font-size: 21px !important; }
  body .site .ps-home .ps-hero h1 { font-size: 39px !important; }
  body .site .ps-home .ps-section h2 { font-size: 26px !important; }
  body.single-product .woocommerce div.product div.summary {
    width: 100%; float: none; padding: 23px 21px; margin-bottom: 26px;
  }
  body.single-product .woocommerce div.product .summary .product_title { font-size: 26px !important; }
  body.single-product .woocommerce div.product .summary .price,
  body.single-product .woocommerce div.product .summary .woocommerce-Price-amount { font-size: 22px !important; }
  body.single-product .ps-v4-details,
  body.single-product .ps-v3-reviews { padding: 25px 21px; margin: 23px 0; border-radius: 15px; }
  body.single-product .ps-v4-description h1,
  body.single-product .ps-v4-description h2 { font-size: 23px !important; }
  body.single-product .ps-v4-description p,
  body.single-product .ps-v4-description li { font-size: 15px !important; }
}

/* ===========================================================
   PENSHOP V4 UNIFIED SURFACES — culori, panouri, review-uri
   Un singur fisier de design system pentru tot site-ul.
   =========================================================== */
:root {
    --ps-page-bg: #f5f8fc;
    --ps-panel-bg: #ffffff;
    --ps-panel-border: #e2e9f3;
    --ps-panel-shadow: 0 10px 30px rgba(20, 36, 62, .045);
    --ps-panel-radius: 20px;
}

/* Aceeasi suprafata de fundal pe toate paginile, inclusiv viitoare. */
html, body, body #page, body .site, body #content,
body .site-content, body .site-main {
    background-color: var(--ps-page-bg) !important;
}

/* Antet alb clar separat de fundalul general. */
body .site-header .ast-primary-header-bar,
body.ast-theme-transparent-header .site-header .ast-primary-header-bar {
    background-color: #fff !important;
    border-bottom: 1px solid #e4eaf2 !important;
    box-shadow: 0 3px 18px rgba(20, 36, 62, .07) !important;
}

/* HOME: hero, colectie, beneficii si ghid in panouri coerente. */
body .site .ps-home { background: transparent; }
body .site .ps-home .ps-hero,
body .site .ps-home .ps-section--soft {
    border-radius: 24px;
}
body .site .ps-home .ps-section--soft {
    border: 1px solid var(--ps-panel-border);
    box-shadow: var(--ps-panel-shadow);
}
body .site .ps-home .ps-values {
    background: var(--ps-panel-bg);
    border: 1px solid var(--ps-panel-border);
    border-radius: 18px;
    box-shadow: var(--ps-panel-shadow);
    margin-top: 26px;
    padding: 30px 28px;
}

/* Ghidul de la final devine o sectiune deliberata, nu text pe fundal. */
body .site .ps-home > .ps-section:not(.ps-section--soft) {
    width: min(1320px, calc(100% - 48px));
    margin: 26px auto 35px;
    background: var(--ps-panel-bg);
    border: 1px solid var(--ps-panel-border);
    border-radius: 24px;
    box-shadow: var(--ps-panel-shadow);
    padding: clamp(42px, 6vw, 78px) 0;
}

/* Panourile de produs si de recenzii folosesc aceeasi familie vizuala. */
body.single-product .woocommerce div.product div.summary,
body.single-product .ps-v4-details,
body.single-product .ps-v3-reviews {
    background: var(--ps-panel-bg);
    border-color: var(--ps-panel-border);
    border-radius: var(--ps-panel-radius);
    box-shadow: var(--ps-panel-shadow);
}

/* Formularul WooCommerce de recenzii are tipografia universala Inter.
   Nu schimbam fontul simbolurilor pentru stele. */
body.single-product .ps-v3-reviews,
body.single-product .ps-v3-reviews .woocommerce-Reviews,
body.single-product .ps-v3-reviews .comment-respond {
    font-family: var(--ps-font) !important;
    color: var(--ps-text);
    font-size: 15px;
    line-height: 1.7;
}
body.single-product .ps-v3-reviews p,
body.single-product .ps-v3-reviews .woocommerce-noreviews,
body.single-product .ps-v3-reviews .comment-notes,
body.single-product .ps-v3-reviews .comment-form-comment,
body.single-product .ps-v3-reviews .comment-form-rating {
    font-family: var(--ps-font) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}
body.single-product .ps-v3-reviews .comment-reply-title,
body.single-product .ps-v3-reviews .woocommerce-Reviews-title {
    font-family: var(--ps-font) !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
    letter-spacing: -.025em;
    font-weight: 700 !important;
    color: var(--ps-navy) !important;
}
body.single-product .ps-v3-reviews label {
    font-family: var(--ps-font) !important;
    font-size: 14px !important;
    font-weight: 600;
    color: var(--ps-navy);
}
body.single-product .ps-v3-reviews textarea,
body.single-product .ps-v3-reviews input:not([type="radio"]):not([type="checkbox"]) {
    font-family: var(--ps-font) !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}
body.single-product .ps-v3-reviews textarea {
    min-height: 130px;
    border: 1px solid #d7e1ee;
    border-radius: 9px;
    padding: 13px 15px;
}

@media (max-width: 767px) {
    body .site .ps-home .ps-values {
        padding: 26px 20px;
        margin-top: 16px;
    }
    body .site .ps-home > .ps-section:not(.ps-section--soft) {
        width: calc(100% - 24px);
        margin: 16px auto 24px;
        padding: 34px 0;
        border-radius: 16px;
    }
    body.single-product .ps-v3-reviews .comment-reply-title,
    body.single-product .ps-v3-reviews .woocommerce-Reviews-title {
        font-size: 20px !important;
    }
}

/* ===========================================
   PENSHOP BLOCK BUTTONS UNIVERSAL V4
   WooCommerce Cart, Checkout, Mini Cart
   =========================================== */

/* Butoane principale WooCommerce Blocks */
body .wc-block-components-button:not(.is-link),
body .wc-block-cart__submit-button,
body .wc-block-components-checkout-place-order-button {
    background: #2563eb !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
    border: 1px solid #2563eb !important;
    border-radius: 9px !important;
    min-height: 48px;
    padding: 12px 20px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color .2s ease, border-color .2s ease;
}

/* Hover si focus: albastru inchis, niciodata galben */
body .wc-block-components-button:not(.is-link):hover,
body .wc-block-components-button:not(.is-link):focus,
body .wc-block-cart__submit-button:hover,
body .wc-block-components-checkout-place-order-button:hover {
    background: #1d4ed8 !important;
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Textul interior al butoanelor */
body .wc-block-components-button:not(.is-link)
.wc-block-components-button__text {
    color: inherit !important;
    font: inherit !important;
}

/* Tastatura: focus vizibil si accesibil */
body .wc-block-components-button:focus-visible {
    outline: 2px solid #93c5fd !important;
    outline-offset: 3px;
}

/* Stare disabled */
body .wc-block-components-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* Selectorul de cantitate */
body .wc-block-components-quantity-selector {
    background: #ffffff !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    overflow: hidden;
}

/* Butoanele minus si plus */
body .wc-block-components-quantity-selector
.wc-block-components-quantity-selector__button {
    background: transparent !important;
    background-color: transparent !important;
    color: #52637d !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    transition: background-color .2s ease, color .2s ease;
}

/* Hover minus si plus */
body .wc-block-components-quantity-selector
.wc-block-components-quantity-selector__button:not(:disabled):hover,
body .wc-block-components-quantity-selector
.wc-block-components-quantity-selector__button:focus-visible {
    background: #eaf2ff !important;
    background-color: #eaf2ff !important;
    color: #1d4ed8 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Nu evidentiem butoanele dezactivate */
body .wc-block-components-quantity-selector
.wc-block-components-quantity-selector__button:disabled {
    opacity: .4;
    background: transparent !important;
}

/* Cifra din selector */
body .wc-block-components-quantity-selector
.wc-block-components-quantity-selector__input {
    color: #172b4d !important;
    font-family: inherit !important;
    font-size: 15px !important;
    background: #ffffff !important;
}

/* Aceleasi controale in mini-cart */
body .wc-block-mini-cart .wc-block-components-button:not(.is-link) {
    border-radius: 9px !important;
}


/* PENSHOP HEADER CART BORDER FIX */
.site-header .ast-menu-cart-outline
.ast-cart-menu-wrap .count,
.site-header .ast-menu-cart-outline
.ast-addon-cart-wrap,
.site-header .ast-header-woo-cart
.ast-cart-menu-wrap {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.site-header .ast-header-woo-cart a:focus-visible {
    outline: 2px solid #2563eb !important;
    outline-offset: 4px;
}


/* PEN SHOP - CENTRARE 3 PRODUSE - START */

/* Se aplica exclusiv cand magazinul afiseaza exact 3 produse. */
body.woocommerce-shop ul.products:has(> li.product:nth-child(3):last-child) {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 26px !important;
    max-width: 980px;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.woocommerce-shop ul.products:has(> li.product:nth-child(3):last-child) > li.product {
    float: none !important;
    clear: none !important;
    flex: 0 0 calc((100% - 52px) / 3) !important;
    width: calc((100% - 52px) / 3) !important;
    margin: 0 !important;
    min-width: 0;
}

@media (max-width: 767px) {
    body.woocommerce-shop ul.products:has(> li.product:nth-child(3):last-child) > li.product {
        flex-basis: calc((100% - 20px) / 2) !important;
        width: calc((100% - 20px) / 2) !important;
    }

    body.woocommerce-shop ul.products:has(> li.product:nth-child(3):last-child) {
        gap: 20px !important;
    }
}

@media (max-width: 480px) {
    body.woocommerce-shop ul.products:has(> li.product:nth-child(3):last-child) > li.product {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 360px;
    }
}

/* PEN SHOP - CENTRARE 3 PRODUSE - END */

/* PEN SHOP CONTACT PREMIUM V1 */

body.page-id-41 .entry-header {
    display: none;
}

body.page-id-41 .ps-contact-page {
    max-width: 1050px !important;
    margin: 30px auto 65px !important;
    padding: 0 18px;
}

body.page-id-41 .ps-contact-hero {
    background: linear-gradient(135deg,#172B4D,#213F6A);
    border-radius: 22px;
    padding: 65px 56px 85px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

body.page-id-41 .ps-contact-eyebrow {
    color: #9FC4FF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    margin: 0 0 16px;
}

body.page-id-41 .ps-contact-title {
    color: #fff;
    font-size: clamp(34px,5vw,52px);
    font-weight: 750;
    line-height: 1.15;
    margin: 0 0 16px;
}

body.page-id-41 .ps-contact-lead {
    color: #D6E3F5;
    font-size: 16px;
    line-height: 1.7;
    max-width: 570px;
    margin: 0;
}

body.page-id-41 .ps-contact-panel {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: -40px auto 0 !important;
    padding: 36px 25px;
    text-align: center;
    background: #fff;
    border: 1px solid #E5ECF5;
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(23,43,77,.09);
}

body.page-id-41 .ps-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 15px;
    background: #EFF5FF;
    color: #2563EB;
    font-size: 28px;
    margin: 0 0 15px;
}

body.page-id-41 .ps-contact-panel-title {
    color: #172B4D;
    font-size: 23px;
    margin: 0 0 12px;
}

body.page-id-41 .ps-contact-address {
    color: #52637D;
    font-size: 15px;
    margin: 0;
    overflow-wrap: anywhere;
}

body.page-id-41 .ps-contact-address a {
    color: #2563EB;
    font-weight: 650;
    text-decoration: none;
}

body.page-id-41 .ps-contact-address a:hover {
    text-decoration: underline;
}

@media(max-width:650px) {
    body.page-id-41 .ps-contact-hero {
        padding: 42px 25px 75px;
    }

    body.page-id-41 .ps-contact-panel {
        padding: 30px 18px;
        margin-top: -35px !important;
    }
}
