/* ================================================
   PEN SHOP UNIVERSAL DESIGN V3
   ================================================ */

:root {
    --ps3-blue: #2563eb;
    --ps3-hover: #1d4ed8;
    --ps3-navy: #172b4d;
    --ps3-soft: #f4f7fc;
    --ps3-border: #e2e8f0;
    --ps3-radius: 9px;
}

/* HEADER UNIVERSAL */
body .site-header .ast-primary-header-bar,
body.ast-theme-transparent-header .site-header
.ast-primary-header-bar {
    background: #f4f7fc !important;
    border-bottom: 1px solid #e0e8f3 !important;
    box-shadow: 0 5px 20px rgba(20,36,62,.055);
}

body .site-header .site-title a,
body .site-header .main-header-menu .menu-link {
    color: var(--ps3-navy) !important;
}

body .site-header .main-header-menu
.current-menu-item > .menu-link,
body .site-header .main-header-menu
.menu-item:hover > .menu-link {
    color: var(--ps3-blue) !important;
}

/* FOOTER UNIVERSAL */
.site-footer:not(.ps-v3-footer) {
    display: none !important;
}

/* Suprascrie vechea regula ce ascundea footerul pe Home */
body:has(.ps-home) .site-footer.ps-v3-footer {
    display: block !important;
}

.ps-home .ps-footer {
    display: none !important;
}

.ps-v3-footer {
    display: block !important;
    width: 100%;
    margin-top: 55px;
    background: #13233b !important;
    color: #c8d5e7 !important;
    border: 0 !important;
    padding: 46px 0;
}

.ps-v3-footer-inner {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.ps-v3-brand {
    display: inline-block;
    color: #fff !important;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.25;
    text-decoration: none !important;
}

.ps-v3-brand span { color: #76adff; }

.ps-v3-footer-identity p {
    color: #c8d5e7;
    font-size: 13px;
    margin: 10px 0;
}

.ps-v3-footer-identity small {
    color: #a4b5cb;
    font-size: 12px;
}

.ps-v3-footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}

.ps-v3-footer-nav a {
    color: #dce9fb !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
}

.ps-v3-footer-nav a:hover {
    color: #fff !important;
}

/* BUTOANE UNIVERSALE */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce button.button.alt,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .checkout-button,
.woocommerce a.added_to_cart,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px !important;
    border-radius: 9px !important;
    background: var(--ps3-blue) !important;
    background-color: var(--ps3-blue) !important;
    border: 1px solid var(--ps3-blue) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background .2s, transform .2s;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .checkout-button:hover,
.wp-block-button__link:hover {
    background: var(--ps3-hover) !important;
    background-color: var(--ps3-hover) !important;
    border-color: var(--ps3-hover) !important;
    color: #fff !important;
}

.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

/* Paginile WooCommerce au acelasi fundal */
body.woocommerce-page .site-content {
    background: #f5f8fc;
}

/* MAGAZIN - ascundem suplimentar elementele,
   chiar daca Astra le afiseaza din propriul layout */
body.post-type-archive-product .woocommerce-result-count,
body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_tag .woocommerce-result-count,
body.tax-product_tag .woocommerce-ordering {
    display: none !important;
}

body.post-type-archive-product .woocommerce ul.products,
body.tax-product_cat .woocommerce ul.products {
    margin-top: 26px !important;
}

/* Fara eticheta Uncategorized in carduri */
.woocommerce ul.products li.product
.ast-woo-product-category {
    display: none !important;
}

/* PAGINA INDIVIDUALA PRODUS */
body.single-product .site-content .ast-container {
    max-width: 1240px;
}

body.single-product .woocommerce div.product {
    color: var(--ps3-navy);
}

body.single-product .woocommerce div.product
.woocommerce-product-gallery {
    background: #fff;
    border: 1px solid var(--ps3-border);
    border-radius: 18px;
    padding: 18px;
    overflow: hidden;
}

body.single-product .woocommerce div.product
.woocommerce-product-gallery img {
    border-radius: 10px;
}

body.single-product .woocommerce div.product
.product_title {
    color: var(--ps3-navy);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.035em;
    margin-bottom: 18px;
}

body.single-product .woocommerce div.product
.summary .price {
    display: block;
    color: var(--ps3-navy);
    font-size: 26px;
    font-weight: 750;
    margin: 12px 0 20px;
}

body.single-product .woocommerce div.product
.summary .woocommerce-product-details__short-description {
    color: #52637d;
    font-size: 15px;
    line-height: 1.75;
}

/* Selectarea variatiilor */
body.single-product .woocommerce div.product
form.cart .variations select,
body.single-product .woocommerce div.product
form.cart select,
body.single-product .woocommerce div.product
form.cart input.qty {
    background: #fff;
    border: 1px solid #d7e1ee;
    border-radius: 9px;
    color: var(--ps3-navy);
    min-height: 46px;
    font-size: 15px;
}

body.single-product .woocommerce div.product
form.cart input.qty {
    text-align: center;
    padding: 8px;
}

/* Butonul principal pentru produse simple si variabile */
body.single-product .woocommerce div.product form.cart
button.single_add_to_cart_button {
    min-width: 190px;
    min-height: 48px !important;
    padding: 12px 24px !important;
    margin: 0 !important;
    background: var(--ps3-blue) !important;
    background-color: var(--ps3-blue) !important;
    border: 1px solid var(--ps3-blue) !important;
    color: #fff !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    box-shadow: none !important;
}

body.single-product .woocommerce div.product form.cart
button.single_add_to_cart_button:hover {
    background: var(--ps3-hover) !important;
    background-color: var(--ps3-hover) !important;
    border-color: var(--ps3-hover) !important;
}

/* Taburile Descriere / Informatii suplimentare */
body.single-product .woocommerce div.product
.woocommerce-tabs {
    clear: both;
    padding-top: 42px;
}

body.single-product .woocommerce div.product
.woocommerce-tabs ul.tabs {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--ps3-border);
}

body.single-product .woocommerce div.product
.woocommerce-tabs .panel {
    color: #475569;
    font-size: 16px;
    line-height: 1.85;
}

body.single-product .woocommerce div.product
.woocommerce-tabs h2 {
    color: var(--ps3-navy);
    font-size: 25px;
    letter-spacing: -.025em;
}

/* Zona separata de recenzii */
body.single-product .ps-v3-reviews {
    clear: both;
    margin: 65px 0 20px;
    padding: 35px;
    border: 1px solid var(--ps3-border);
    border-radius: 18px;
    background: #fff;
}

body.single-product .ps-v3-reviews
.woocommerce-Reviews-title {
    color: var(--ps3-navy);
    font-size: 26px;
    font-weight: 750;
    margin-bottom: 25px;
}

body.single-product .ps-v3-reviews
#review_form_wrapper {
    margin-top: 30px;
}

body.single-product .ps-v3-reviews textarea,
body.single-product .ps-v3-reviews input[type="text"],
body.single-product .ps-v3-reviews input[type="email"] {
    background: #fff;
    border: 1px solid #d7e1ee;
    border-radius: 9px;
    padding: 12px;
}

body.single-product .ps-v3-reviews textarea:focus,
body.single-product .ps-v3-reviews input:focus {
    border-color: var(--ps3-blue);
}

/* Masura de siguranta pentru produsele similare */
body.single-product .related.products {
    display: none !important;
}

/* Stoc epuizat - acelasi design */
.woocommerce div.product p.stock.out-of-stock {
    display: inline-block;
    padding: 9px 13px;
    background: #fff1f2;
    color: #b42318;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

/* TABLETA SI MOBIL */
@media(max-width: 767px) {
    .ps-v3-footer {
        margin-top: 35px;
        padding: 35px 0;
    }

    .ps-v3-footer-inner {
        width: calc(100% - 36px);
        flex-direction: column;
        align-items: flex-start;
    }

    .ps-v3-footer-nav {
        gap: 15px 23px;
    }

    body.single-product .woocommerce div.product
    .product_title {
        font-size: 28px;
    }

    body.single-product .ps-v3-reviews {
        padding: 22px 17px;
        margin-top: 40px;
    }

    body.single-product .woocommerce div.product
    form.cart button.single_add_to_cart_button {
        min-width: 0;
    }
}


/* PEN SHOP - FOOTER LEGAL V1 */
.ps-v3-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 22px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.ps-v3-footer-legal a {
    color: #c9d7eb;
    font-size: 12px;
    line-height: 1.6;
    text-decoration: none;
}

.ps-v3-footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
}

/* PEN SHOP FOOTER FINAL V3 */
footer.ps-v3-footer .ps-v3-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
footer.ps-v3-footer .ps-v3-footer-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 25px;
}
footer.ps-v3-footer .ps-v3-footer-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
footer.ps-v3-footer .ps-v3-footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px 22px;
    border-top: 1px solid rgba(255,255,255,.13);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px 35px;
}
footer.ps-v3-footer .ps-v3-footer-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
footer.ps-v3-footer .ps-v3-footer-info small {
    color: #afbed4;
    font-size: 12px;
}
footer.ps-v3-footer .ps-v3-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 9px 17px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    max-width: none !important;
}
footer.ps-v3-footer .ps-v3-footer-legal:empty {
    display: none;
}
footer.ps-v3-footer .ps-v3-footer-legal a {
    color: #d1def0;
    font-size: 12px;
    text-decoration: none;
}
footer.ps-v3-footer .ps-v3-footer-sal {
    display: inline-block;
    flex: 0 0 250px;
}
footer.ps-v3-footer .ps-v3-footer-sal img {
    display: block;
    width: 250px;
    height: 50px;
    max-width: 100%;
    object-fit: contain;
}
@media (max-width: 650px) {
    footer.ps-v3-footer .ps-v3-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
    footer.ps-v3-footer .ps-v3-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
