/*
Theme Name: Enfold Child
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating will be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/


/* =============================================================
   ICC Single Product — Blocco acquisto WooCommerce
   Da aggiungere al style.css del child theme Enfold
   ============================================================= */

/* Contenitore principale del blocco acquisto */


.tax-product_cat.term-cigars .icc-cigars-hero-content>div {
    font-size: clamp(38px, 4.217vw, 80.9625px);
}

.tax-product_cat.term-cigars .icc-cigars-hero {
    animation: zoomOut 2s ease 0s 1 reverse forwards;
}

.tax-product_cat.term-cigars .icc-cigars-hero::after {
    background: unset;
}

@keyframes zoomOut {
    0% {
        background-position: center;
        background-size: 100%;
    }

    100% {
        background-position: center;
        background-size: 150%;
    }
}

.icc-purchase-box {
    padding: 40px 0 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

.icc-purchase-box__inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

/* Info prodotto (prezzo, SKU, categorie) */
.icc-purchase-box__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.icc-purchase-box__price .woocommerce-Price-amount {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #c9a96e;
    /* oro coerente con la palette del sito */
}

.icc-purchase-box__price del .woocommerce-Price-amount {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.icc-purchase-box__sku,
.icc-purchase-box__cats {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.icc-purchase-box__sku .label,
.icc-purchase-box__cats .label {
    color: rgba(255, 255, 255, 0.3);
    margin-right: 6px;
}

/* Form add-to-cart */
.icc-purchase-box__cart {
    width: 100%;
}

.icc-purchase-box__cart .quantity {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
}

.icc-purchase-box__cart .qty {
    width: 64px;
    height: 48px;
    text-align: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 0;
    -moz-appearance: textfield;
}

.icc-purchase-box__cart .qty::-webkit-outer-spin-button,
.icc-purchase-box__cart .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Bottone aggiungi al carrello */
.icc-purchase-box__cart .single_add_to_cart_button,
.icc-purchase-box__cart button.button {
    background-color: #c9a96e;
    color: #1a1a1a;
    border: none;
    padding: 14px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
    border-radius: 0;
    height: 48px;
    line-height: 1;
}

.icc-purchase-box__cart .single_add_to_cart_button:hover,
.icc-purchase-box__cart button.button:hover {
    background-color: #fff;
    color: #1a1a1a;
}

/* Prodotto non disponibile / out of stock */
.icc-purchase-box__cart .stock.out-of-stock {
    color: #e07070;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.valign-middle td {
    vertical-align: middle;
}

#top #wrap_all .avia-slideshow .av-slideshow-caption .avia-caption-title {
    font-size: 30px;
    color: #efc250;
    margin-bottom: 10px;
}

#top .avia-slideshow .av-slideshow-caption .avia-caption-content,
#top .avia-slideshow .av-slideshow-caption .avia-caption-content p {
    font-size: 42px;
}

.js_active .av-parallax.active-parallax,
.js_active .av-parallax-object.active-parallax {
    opacity: 1;
    -webkit-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

.av-parallax-section {
    position: relative;
    border-top: none;
    overflow: hidden;
}

.av-parallax {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    height: calc((100vh * 0.3) + 100%);
    will-change: transform;
}

.avia-section .av-parallax .av-parallax-inner {
    background-repeat: no-repeat;
    background-image: url(https://wp.icc-tech.it/wp-content/uploads/2023/02/Amedeo_Home_Fumo-Bianco-2.jpg);
    background-position: 100% 0%;
    background-attachment: scroll;
}

#top #main .avia-section .template-page {
    width: 100%;
    border: none;
    margin-left: auto;
    padding-left: 0;
    margin-right: auto;
}

.detail-section-title {
    font-size: 22px;
    font-weight: 700;
}

.th {
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: left;
    padding: 9px 12px;
    border-style: solid;
    border-width: 1px;
}

/* ── Quantity stepper ── */
.icc-qty-wrap {
    display: inline-flex;
    align-items: stretch;
}

.icc-qty-wrap .qty {
    width: 44px;
    text-align: center;
    border: none;
    border-radius: 0;
    padding: 6px 0 !important;
    font-size: 14px;
    -moz-appearance: textfield;
}

.icc-qty-wrap .qty::-webkit-inner-spin-button,
.icc-qty-wrap .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.icc-qty-btn {
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 6px 10px;
    transition: background 0.15s;
}

.icc-qty-btn:hover {
    background: #e0e0e0;
}

.icc-qty-form [type="submit"] {
    display: block;
    margin-top: 6px;
    width: 100%;
}

.icc-atc-feedback {
    display: block;
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 1.2em;
}

.icc-atc-ok {
    color: #3a7d44;
}

.icc-atc-error {
    color: #c0392b;
}

.shopping-data {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
}

.shopping-data input.qty {
    margin: 0 !important;
    border-color: #DDD !important;
    color: #363636 !important;
    width: 36px !important;
    padding: 0 !important;
}

.shopping-data input.qty.text {
    border: 1px solid #eee;
}

.cart.icc-qty-form {
    margin: 0 !important;
    display: flex;
    vertical-align: middle;
}

.cart.icc-qty-form .button {
    padding: 0 !important;
}

.avia_textblock {
    color: #0a0a0a;
}

.single-product-description {
    text-align: center;
    padding: 0 88px;
}

.single-product-cover {
    object-fit: cover;
}

p {
    font-size: 22px;
    line-height: 1.65em;
}

p > strong {
    font-weight: 600;
    letter-spacing: 2px;
}

p {
    font-weight: 400;
}


/* Responsive */


@media (max-width: 767px) {
    .single-product-description {
        text-align: center;
        padding: 0 22px;
    }


    .icc-purchase-box__cart .quantity {
        display: block;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .icc-purchase-box__cart .qty {
        width: 100%;
    }

    .cart.icc-qty-form {
        justify-content: center;
    }

    .icc-purchase-box__cart .single_add_to_cart_button,
    .icc-purchase-box__cart button.button {
        width: 100%;
        padding: 16px;
    }

    table.tabella-sigari td {
        border: none !important;
    }

    table.tabella-sigari tr:not(:last-child) {
        border-bottom: 1px solid black !important;
    }
}

@media (max-width: 479px) {
    .single-product-description {
        text-align: center;
        padding: 0;
    }
}