/**
 * Theme Name: Viasecco
 * Description: Viasecco theme
 * Author: Roland Murg
 * Template: blocksy
 * Text Domain: blocksy
 */

/* Original: #9d7b4d */
/* #966e36 */

/* General */
[data-header*="type-1"] .ct-header [data-id="menu"]>ul>li>a {
    text-transform: none;
}

div[data-id="widget-area-1"] {
    max-width: 100%;
}

div[data-id="widget-area-1"] .slider-content-zone p {
    padding: 0;
}

.viasecco-custom-cards .wp-block-column a img {
    transition: transform 700ms cubic-bezier(.19, 1, .22, 1)
}

.viasecco-custom-cards .wp-block-column a:hover img {
    transform: scale(1.1);
}

.viasecco-custom-cards .wp-block-column a:hover p:last-of-type {
    color: var(--theme-link-hover-color) !important;
}


/* Footer */
.footer-anpc img {
    max-height: 60px;
}

/* Footer Newsletetr */
.ct-newsletter-subscribe-form-elements {
    background-color: #fff !important;
}



/* Gravity Forms */
.gform_button {
    background-color: #b59461 !important;
}

.gform_button:hover {
    background-color: #9d7b4d !important;
}

.gfield--type-textarea textarea {
    border-radius: 24px !important;
}


/* WooCommerce */

[data-products=type-1] .product {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding-bottom: 20px;
}

[data-products=type-1] .product .ct-media-container {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.woocommerce-loop-product__title {
    padding-left: 5px;
    padding-right: 5px;
}

#gspb_container-id-gsbp-fdf61ec {
    cursor: pointer;
}

/* Price Wrap Single Page */
.single-product-price-wrap {
    background: #ecdecf;
    padding: 30px 40px;
    margin-bottom: 30px !important;
    border-radius: 30px;
    margin-top: 20px;
    /* border: 1px solid #bababa; */
}

.single-product-price-wrap .stock {
    margin-bottom: 0 !important;
    /* TODO make out of stock look better */
}

.single-product-price-wrap>.price {
    margin-bottom: 0 !important;
}

.viasecco-price-saving {
    margin: 6px 0 0 !important;
    font-size: 15px;
    font-weight: 600;
}

.single-product-price-wrap form {
    margin-top: 20px !important;
}

.single-product-price-wrap .qty {
    background: #fff;
}

/* Gallery thumbs: whole image, no crop */
.single-product .flexy-pills[data-type="thumbs"] img {
    object-fit: contain !important;
}

.ct-cart-actions .added_to_cart {
    --theme-button-text-initial-color: #ffffff !important;
    --theme-button-text-hover-color: #ffffff !important;
    --theme-button-background-initial-color: rgb(157 123 77) !important;
    --theme-button-background-hover-color: #b89464 !important;
}

/* Reduceri */
.onsale {
    background-color: #e52f2f !important;
}

.sale-price ins .woocommerce-Price-amount {
    color: #e52f2f
}

/* Hide SGR */
form.cart .woocommerce-info {
    display: none;
}

/* Recently Viewed */
.recently-viewed>h2 {
    margin-top: 40px;
    font-size: 30px;
    margin-bottom: 30px;
}

.single-product .recently-viewed>h2 {
    font-size: 20px;
}

.recently-viewed .woocommerce {
    margin-bottom: 60px;
}

/* Fan Curier */
/* Blocksy puts the shipping section in a full-width table cell. */
.woocommerce .shop_table tr.shipping ul#shipping_method {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce .shop_table tr.shipping ul#shipping_method li {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
}

.woocommerce .shop_table tr.shipping ul#shipping_method li>input[type="radio"] {
    flex: 0 0 auto;
    margin: 0;
}

.woocommerce .shop_table tr.shipping ul#shipping_method li>label {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.woocommerce .shop_table tr.shipping .viasecco-shipping-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    width: 100%;
    font-size: inherit;
    font-weight: 400;
    line-height: 1.6;
}

.woocommerce .shop_table tr.shipping .viasecco-shipping-title {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.woocommerce .shop_table tr.shipping .viasecco-shipping-price {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    color: var(--theme-text-color, inherit);
}

.woocommerce .shop_table tr.shipping .ct-shipping-heading {
    text-align: left;
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    .woocommerce .shop_table tr.shipping .viasecco-shipping-line {
        gap: 8px;
    }
}

.woocommerce-shipping-destination {
    font-size: 14px;
}

.woocommerce .shop_table tr.shipping ul#shipping_method li>label {
    cursor: default;
}

.sgr-not-clickable {
    pointer-events: none;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table thead {
    display: none;
}

.cart_item .ct-media-container img,
.mini_cart_item img,
.ct-checkout-cart-item .ct-media-container img {
    object-fit: contain;
}

.mini_cart_item img {
    max-height: 100px;
}


.ct-filter-item-inner .ct-swatch-container {
    display: none !important;
}

.ct-price-filter-inputs .ct-price-filter-input small {
    color: #fff;
}

/* Disponibil pe comanda */
.single-product-disponibil-pe-comanda {
    background: #E9EBEC;
    padding: 30px 40px;
    margin-bottom: 30px !important;
    border-radius: 30px;
}

.product.outofstock img,
.product.outofstock h2,
.product.outofstock span.price {
    opacity: 0.5;
}




section.pahare-recomandate {
    max-width: 1290px;
}

section.pahare-recomandate>h2 {
    font-size: 20px;
}

.ct-breadcrumbs {
    text-transform: none !important;
}

.ct-product-divider {
    border-top-color: #b89464 !important;
}


.ct-shipping-progress-checkout-page,
.ct-shipping-progress-cart-page,
.ct-shipping-progress-single,
.ct-shipping-progress-mini-cart {
    background-color: #fbf8f4;
    border-radius: 30px;
    padding: 20px 30px;
}

.ct-shipping-progress-single {
    margin-bottom: 30px !important;
}

.ct-shipping-progress-checkout-page h4,
.ct-shipping-progress-cart-page h4,
.ct-shipping-progress-single h4,
.ct-shipping-progress-mini-cart h4 {
    font-size: 20px;
    margin-bottom: 0;
}

.ct-shipping-progress-checkout-page strong,
.ct-shipping-progress-cart-page strong,
.ct-shipping-progress-single strong,
.ct-shipping-progress-mini-cart strong {
    font-weight: normal;
    color: #687279;
    padding-bottom: 10px;
    display: block;
}

.ct-shipping-progress-checkout-page p,
.ct-shipping-progress-cart-page p,
.ct-shipping-progress-single p,
.ct-shipping-progress-mini-cart p {
    color: #111518;
}

.ct-shipping-progress-checkout-page p span,
.ct-shipping-progress-cart-page p span,
.ct-shipping-progress-single p span,
.ct-shipping-progress-mini-cart p span {
    font-weight: bold;
}


@media screen and (max-width:767px) {
    .gs-parent-hover {
        padding-left: 1rem;
        padding-right: 1rem;
        line-height: 1.2;
    }

    .gs-parent-hover>div:first-child {
        transform: translateY(0) !important;
    }

    .gs-parent-hover>div:first-child>div {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 999.98px) {
    .woocommerce-product-gallery .flexy-item .ct-media-container {
        display: block;
        max-width: 50%;
        margin: 0 auto;
    }

    .woocommerce-product-gallery .flexy-pills {
        display: none;
    }
}

/* Header */

div[data-sticky="yes:auto-hide"] {
    border-bottom: 1px solid #ecdecf;
}

[data-device="desktop"] .ct-header-search {
    display: none !important;
}

.ct-header-socials {
    display: block;
}

div[data-sticky="yes:auto-hide"] .ct-header-search {
    display: flex !important;
}

div[data-sticky="yes:auto-hide"] .ct-header-socials {
    display: none;
}

[data-header*="type-1"] .ct-header [data-sticky*="yes"] [data-row*="middle"] {
    background: #3A5067 !important;
    --height: 60px;
}

[data-header*="type-1"] .ct-header [data-sticky*="yes"] [data-row*="middle"] [data-column="middle"] div {
    display: none !important;
}

[data-header*="type-1"] .ct-header [data-sticky*="yes"] [data-row*="middle"] .site-logo-container img {
    height: 30px !important;
    margin-top: 10px;
}

[data-header*="type-1"] .ct-header [data-sticky*="yes"] [data-row*="bottom"] {
    --height: 60px;
}



/* Vivino widget (product page, under the title) */
.viasecco-vivino {
    --vivino-red: #ba1628;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0 0 18px;
    padding: 8px 16px;
    border: 1px solid #e6dfd6;
    border-radius: 999px;
    background: #fff;
    color: var(--theme-text-color, #111820);
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
}

a.viasecco-vivino:hover {
    border-color: #9d7b4d;
    color: inherit;
    color: #9d7b4d;
}

.viasecco-vivino__logo {
    display: block;
    height: 12px;
    width: auto;
}


.viasecco-vivino__stars {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.viasecco-vivino__stars-base,
.viasecco-vivino__stars-fill {
    display: flex;
    gap: 2px;
    white-space: nowrap;
}

.viasecco-vivino__stars-base {
    color: #ddd5cb;
}

.viasecco-vivino__stars-fill {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    color: var(--vivino-red);
}

.viasecco-vivino__stars svg {
    flex: none;
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.viasecco-vivino__score {
    font-size: 16px;
    font-weight: 700;
}

.viasecco-vivino__link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding-left: 12px;
    border-left: 1px solid #e6dfd6;
    color: var(--theme-palette-color-1, #a18151);
    font-weight: 500;
}

.viasecco-vivino__link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Age gate + cookie consent (includes/functions-consent.php) */
.vs-consent-open {
    overflow: hidden;
}

.vs-consent {
    --vs-consent-accent: #9d7b4d;
    --vs-consent-accent-hover: #b89464;
    --vs-consent-border: #e6dfd6;
    --vs-consent-ink: #18181b;
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(17, 24, 32, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.vs-consent[hidden],
.vs-consent [hidden] {
    display: none !important;
}

.vs-consent__box {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 32px 32px 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(17, 24, 32, .25);
    color: var(--vs-consent-ink);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.vs-consent__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--vs-consent-ink);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.vs-consent__close:hover {
    background: #f4efe9;
}

.vs-consent:not(.is-confirmed) .vs-consent__close,
.vs-consent.is-confirmed [data-gate-only] {
    display: none;
}

.vs-consent__logo {
    margin: 0 0 16px;
}

.vs-consent__logo img {
    display: inline-block;
    max-width: 160px;
    max-height: 120px;
    width: auto;
    height: auto;
}

.vs-consent__logo span {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.vs-consent__title {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.vs-consent__text {
    margin: 0 0 20px;
}

.vs-consent__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vs-consent__btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--vs-consent-accent);
    border-radius: 999px;
    background: #fff;
    color: var(--vs-consent-accent);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.vs-consent__btn:hover {
    border-color: var(--vs-consent-accent-hover);
    color: var(--vs-consent-accent-hover);
}

.vs-consent__btn--primary {
    background: var(--vs-consent-accent);
    color: #fff;
}

.vs-consent__btn--primary:hover {
    background: var(--vs-consent-accent-hover);
    color: #fff;
}

.vs-consent__links {
    margin: 16px 0 0;
}

.vs-consent__links span {
    margin: 0 6px;
}

.vs-consent__link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--vs-consent-ink);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.vs-consent__link:hover {
    color: var(--vs-consent-accent);
}

.vs-consent__legal {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--vs-consent-border);
    font-size: 13px;
}

.vs-consent__legal a {
    color: var(--vs-consent-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vs-consent__btn:focus-visible,
.vs-consent__link:focus-visible,
.vs-consent__close:focus-visible,
.vs-consent__legal a:focus-visible {
    outline: 2px solid var(--vs-consent-accent);
    outline-offset: 2px;
}

.vs-consent__prefs {
    margin: 0 0 20px;
    border-top: 1px solid var(--vs-consent-border);
    text-align: left;
}

.vs-consent__cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--vs-consent-border);
    cursor: pointer;
}

.vs-consent__cat-text strong {
    display: block;
    font-weight: 600;
}

.vs-consent__cat-text small {
    display: block;
    font-size: 13px;
}

.vs-consent__switch {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 22px;
    margin: 0;
    border-radius: 999px;
    background: #cfc8bf;
    cursor: pointer;
    transition: background .2s;
}

.vs-consent__switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s;
}

.vs-consent__switch:checked {
    background: var(--vs-consent-accent);
}

.vs-consent__switch:checked::after {
    transform: translateX(18px);
}

.vs-consent__switch:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.vs-consent__switch:focus-visible {
    outline: 2px solid var(--vs-consent-accent);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .vs-consent {
        padding: 12px;
    }

    .vs-consent__box {
        padding: 28px 18px 18px;
    }

    .vs-consent__title {
        font-size: 22px;
    }
}

.woocommerce-checkout-payment .place-order .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 0 !important;
}

.woocommerce-terms-and-conditions-wrapper .validate-required {
    margin-bottom: 0;
}