/*
Theme Name: Picantillo
Theme URI: https://example.local/picantillo
Author: Picantillo team
Author URI: https://example.local
Description: Child theme for ticinoWEB CMS (ticinoweb-ai-theme). Do NOT modify the parent theme.
Version: 1.5.7
Template: ticinoweb-ai-theme
Text Domain: picantillo
*/

/* Place custom CSS below this line */

/* 
 * SINGLE PRODUCT PAGE BACKGROUND BANNER
 * Premium Ambient Aura: A soft, luxurious, slow-moving abstract heat/glow.
 * Removes the heavy white or repetitive pattern for a "wow" high-end feel.
 */
body.single-product {
    background-color: #ffffff !important;
    /* Elegant floating sparks / embers pattern */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(178, 16, 16, 0.15) 1.5px, transparent 2.5px),
        radial-gradient(circle at 40% 60%, rgba(178, 16, 16, 0.1) 1px, transparent 2px),
        radial-gradient(circle at 80% 30%, rgba(255, 140, 0, 0.12) 2px, transparent 3px),
        radial-gradient(circle at 70% 80%, rgba(178, 16, 16, 0.08) 1.5px, transparent 2.5px) !important;
    background-size: 150px 150px !important;
    animation: floatingEmbers 40s linear infinite !important;
    overflow-x: hidden;
}

@keyframes floatingEmbers {
    0% { background-position: 0px 0px, 0px 0px, 0px 0px, 0px 0px; }
    100% { background-position: 150px -150px, 75px -225px, 225px -150px, -150px -150px; }
}

/* Red / Spicy Ambient Glow */
body.single-product::before {
    content: "";
    position: fixed;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, rgba(178, 16, 16, 0.18) 0%, rgba(178, 16, 16, 0.05) 35%, rgba(255, 255, 255, 0) 65%);
    top: -15vh;
    left: -10vw;
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
    animation: driftGlow1 25s ease-in-out infinite alternate;
}

/* Orange / Warm Ambient Glow */
body.single-product::after {
    content: "";
    position: fixed;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(178, 16, 16, 0.18) 0%, rgba(178, 16, 16, 0.05) 35%, rgba(255, 255, 255, 0) 65%);
    bottom: -15vh;
    right: -10vw;
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
    animation: driftGlow2 30s ease-in-out infinite alternate;
}

@keyframes driftGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40vw, 20vh) scale(1.2); }
    66% { transform: translate(20vw, 50vh) scale(0.9); }
    100% { transform: translate(70vw, 10vh) scale(1.1); }
}

@keyframes driftGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40vw, -30vh) scale(1.3); }
    66% { transform: translate(-10vw, -60vh) scale(0.8); }
    100% { transform: translate(-70vw, -20vh) scale(1.1); }
}


/* 
 * FIX RELATED PRODUCTS GRID
 * Restore grid layout for Related Products on single product page
 * which was broken by the global .product-card-modern list view styles.
 */
.single-product section.related.products,
.single-product section.up-sells.products {
    width: 100% !important;
    display: block !important;
    padding-top: 20px !important;
}

.single-product .related.products ul.products,
.single-product .up-sells.products ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 0 -15px !important;
    padding: 0 !important;
    list-style: none !important;
}

.single-product .related.products ul.products li.product,
.single-product .up-sells.products ul.products li.product {
    width: 33.333% !important;
    /* 3 columns on desktop */
    padding: 0 15px !important;
    margin-bottom: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    float: left !important;
    /* Fallback */
}

.single-product .related.products ul.products li.product .product-card-modern {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.single-product .related.products li.product .card-img-top-wrapper {
    width: 100% !important;
    height: 250px !important;
    /* Fixed height for grid images */
    overflow: hidden;
}

.single-product .related.products li.product .card-img-top-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Responsive */
@media (max-width: 768px) {

    .single-product .related.products ul.products li.product,
    .single-product .up-sells.products ul.products li.product {
        width: 100% !important;
        /* 1 column on mobile */
    }
}

/* Product Category Badge in Single Product */
.picantillo-product-category {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.picantillo-product-category a {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #fceae9; /* Soft red background */
    color: #b21010;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid rgba(178, 16, 16, 0.1);
}

.picantillo-product-category a:hover {
    background-color: #b21010;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(178, 16, 16, 0.2);
}

/* Shop Category Filters */
.picantillo-category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.picantillo-category-filters .cat-filter {
    background-color: #f7f7f7;
    color: #333;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.picantillo-category-filters .cat-filter:hover {
    background-color: #fceae9;
    color: #b21010;
}

.picantillo-category-filters .cat-filter.active {
    background-color: #b21010;
    color: #fff;
    box-shadow: 0 4px 12px rgba(178, 16, 16, 0.25);
}

:root {
    --site-header-height: 82px;
    /* matches body padding-top used for header offset */
}

/* Picantillo header styles */
/* Picantillo header styles (Refactored v2) */
.picantillo-header {
    position: relative;
    /* Normal flow */
    background: #fff;
    /* Solid white */
    border-bottom: 1px solid #eee;
    padding: 0;
    z-index: 100;
}

.picantillo-header .header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Logo Left, Nav Right */
}

.picantillo-header .logo {
    flex-shrink: 0;
}

.picantillo-header .logo img {
    max-width: 250px;
    height: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-gtranslate {
    display: flex;
    align-items: center;
    transform: translateY(-2px);
}

.header-gtranslate .glink {
    padding: 2px !important;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.picantillo-header .nav-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.picantillo-header .nav-wrap .menu {
    display: flex;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.picantillo-header .nav-wrap .menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.picantillo-header .nav-wrap .menu a:hover {
    color: #b21010;
}

/* ── Cart Button — Fire Effect ──────────────────────────────── */

/* Glow esterno: leggero, lento */
@keyframes cartFireGlow {
    0%, 100% { box-shadow: 0 0  5px 2px rgba(220, 70, 0, 0.28), 0 0 12px 4px rgba(178, 16, 16, 0.10); }
    50%      { box-shadow: 0 0  9px 3px rgba(255, 85, 0, 0.38), 0 0 18px 6px rgba(178, 16, 16, 0.16); }
}

/* Intro: le fiamme salgono dal basso come un accendino */
@keyframes cartFireIgnite {
    0%   { transform: translateY(105%); opacity: 0;    }
    35%  { transform: translateY(30%);  opacity: 0.75; }
    100% { transform: translateY(0%);   opacity: 1;    }
}

/* Respiro idle (parte dopo l'intro) */
@keyframes cartFireIdle {
    0%, 100% { opacity: 0.86; }
    50%      { opacity: 1.00; }
}

/* Wrapper esterno — serve per il badge (fuori dall'overflow:hidden del bottone) */
.cart-header-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.btn-cart-header {
    background: #b21010;
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color 0.25s, transform 0.2s, box-shadow 0.6s;
}

/* Icona carrello nell'header */
.cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 18px;
    flex-shrink: 0;
    z-index: 1;
}

.cart-icon-base {
    font-size: 16px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* Fiammella sopra il carrello — visibile solo con .has-items */
.cart-icon-flame {
    position: absolute;
    top: -10px;
    right: -8px;
    font-size: 16px;
    color: #ff8c00;
    z-index: 2;
    display: none;
    filter: drop-shadow(0 0 3px rgba(255, 100, 0, 0.8));
}

.btn-cart-header.has-items .cart-icon-flame {
    display: block;
    animation: cartIconFlame 1.6s ease-in-out infinite;
}

@keyframes cartIconFlame {
    0%, 100% { transform: scale(1)   translateY(0);    opacity: 0.85; }
    50%       { transform: scale(1.15) translateY(-1px); opacity: 1;    }
}

/* Badge conteggio prodotti (fuori dal bottone, sempre visibile) */
.cart-badge {
    position: absolute;
    top: -9px;
    right: -9px;
    background: #ff8c00;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.30);
    animation: badgePop 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes badgePop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* Fire ::before overlay */
.btn-cart-header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background-image: url('/wp-content/themes/picantillo/assets/img/fire-btn.svg');
    background-size: cover;
    background-position: center bottom;
    opacity: 0;
    transform: translateY(100%);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.btn-cart-header:hover::before {
    animation: cartFireIgnite 0.9s ease-out forwards,
               cartFireIdle   3.4s ease-in-out 0.9s infinite;
    transition: none;
}

.btn-cart-header:hover,
.btn-cart-header:hover:visited {
    color: #ffb347 !important;
    transform: translateY(-1px);
    text-decoration: none !important;
    animation: cartFireGlow 3.5s ease-in-out 0.4s infinite;
}

/* Page content offset no longer needed */
/* Breadcrumbs (Hide globally on Shop) */
.woocommerce-breadcrumb,
.storefront-breadcrumb {
    display: none !important;
}

/* Shop Products Grid Force 3 Columns - Strict Grid */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.products-grid .col-md-4 {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
}

/* Ensure product card fits inside column */
.products-grid .product-card-modern {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: 100%;
    /* Force height match */
}

/* Mobile Stack */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
}

body {
    padding-top: 0;
}

@media (max-width: 900px) {
    .picantillo-header .logo img {
        max-width: 160px;
    }

    .picantillo-header .header-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 15px;
        gap: 0;
    }

    .hamburger-btn {
        display: flex;
    }

    .picantillo-header .nav-wrap {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 40px 20px;
        margin: 0;
    }

    .picantillo-header .nav-wrap.active {
        left: 0;
    }

    .picantillo-header .nav-wrap .menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 30px;
    }

    .picantillo-header .nav-wrap .menu a {
        font-size: 1.3rem;
    }

    .btn-cart-header {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Hero styles removed — replaced by Swiper-based banner slider */
.hero-ctas .btn {
    margin: 0 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: #b21010;
    /* peperoncino red */
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.about-section .wrap,
.services-section .wrap,
.products-section .wrap,
.why-section .wrap {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

.about-media img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.about-copy h2 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    color: #111;
}

.about-copy p {
    color: #333;
    line-height: 1.6;
}

.about-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.about-stats li {
    list-style: none;
    background: #f7f7f6;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-align: center;
}

.about-stats li strong {
    display: block;
    font-size: 1.1rem;
    color: #1f5a3a;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.service-card {
    background: #fff;
    padding: 1.1rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 15, 15, 0.04);
}

.service-card .icon {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 15, 15, 0.05);
}

.product-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.product-body {
    padding: 1rem;
}

.product-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.product-excerpt {
    color: #666;
    font-size: 0.95rem;
}

.product-cta .btn {
    margin-top: 0.6rem;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.why-grid li {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 15, 15, 0.04);
}

.cta-section {
    background: linear-gradient(90deg, #1f5a3a, #b21010);
    color: #fff;
    padding: 2.5rem 1rem;
    text-align: center;
}

.btn-cta {
    background: #fff;
    color: #1f5a3a;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 0.8rem;
}


/* 
 * PARTNERS SECTION
 */
.picantillo-partners-section {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    padding: 35px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #eaeaea;
}

.partners-marquee {
    width: 100%;
    overflow: hidden;
    display: flex;
}

.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

.picantillo-partners-section .partner-item {
    margin: 0 45px;
}

.picantillo-partners-section .partner-item img {
    max-height: 55px;
    width: auto;
    max-width: 160px;
    opacity: 0.55;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    display: block;
}

.picantillo-partners-section .partner-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.08);
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .picantillo-partners-section {
        padding: 25px 0;
    }
    .picantillo-partners-section .partner-item {
        margin: 0 25px;
    }
    .picantillo-partners-section .partner-item img {
        max-height: 40px;
        max-width: 120px;
    }
}

/* 
 * FOOTER STYLES (Custom Picantillo)
 */
.picantillo-footer {
    background: #111;
    color: #ccc;
    padding: 60px 0 20px;
    font-size: 0.95rem;
    position: relative;
    border-top: 4px solid #b21010;
    /* Brand accent */
}

.picantillo-footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.picantillo-footer a:hover {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* Column general */
.footer-col h4.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #b21010;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

/* 1. Brand Col */
.footer-brand-col .footer-desc {
    margin: 20px 0;
    line-height: 1.6;
    font-size: 0.9rem;
    color: #888;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: #b21010;
    color: #fff;
    transform: translateY(-3px);
}

/* 4. Contact Col */
.footer-contact-col li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact-col li i {
    color: #b21010;
    margin-top: 4px;
    /* Align with text top */
}

/* Bottom Copyright */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    /* Lightened for better contrast */
    background: transparent !important;
    /* Force transparent to use footer bg */
    position: relative;
    z-index: 5;
}

.footer-bottom a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #b21010;
}

/* Language Switcher (GTranslate) in Footer */
.footer-lang-switcher {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-lang-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    margin-bottom: 10px;
}

/* GTranslate flags styling */
.footer-lang-switcher .gt-current-lang,
.footer-lang-switcher .nturl {
    display: inline-flex;
    align-items: center;
    margin: 3px 4px 3px 0;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-lang-switcher .nturl:hover,
.footer-lang-switcher .gt-current-lang:hover {
    opacity: 1;
    transform: scale(1.15);
}

.footer-lang-switcher img {
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col h4.footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact-col li {
        justify-content: center;
    }
}


/* Responsive: tablet+ */
@media (min-width: 720px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Fixed: Picantillo footer needs 4 columns */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive: large screens */
@media (min-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Small accessibility touches */
a.btn:focus {
    outline: 3px solid rgba(178, 16, 16, 0.2);
    outline-offset: 2px;
}


/* Picantillo hero slider custom style */
.hero-slider-section {
    margin-top: 0;
}

.banner-slider {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    left: 0;
}

.banner-slider .swiper-wrapper {
    align-items: stretch;
    /* Stretch to equal height */
}

.banner-slider .swiper-slide {
    width: 100%;
    height: auto;
}

.banner-style3 {
    background-size: cover !important;
    background-position: center center !important;
    min-height: 550px;
    /* Taller */
    height: 100%;
    display: flex;
    align-items: center;
}

.banner-style3::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.38));
}

.banner-style3 .banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    color: #fff;
}

.banner-style3 .title {
    font-size: clamp(20px, 4.5vw, 36px);
    margin: 0 0 0.5rem;
    font-weight: 700;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    color: #fff;
}

.banner-style3 .title {
    /* Clean white title for slider */
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    -webkit-text-stroke: 0;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.banner-style3 .subtitle {
    max-width: 900px;
    margin: 0.5rem auto 1rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
}

.banner-style3 .pepper-emoji {
    font-size: 38px;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.banner-style3 .banner-ctas .btn {
    margin-top: 0.6rem;
}

/* Arrows: make them large, high-contrast and clickable */
.banner-slider .arrow-prev,
.banner-slider .arrow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    border: 0;
}

.banner-slider .arrow-prev {
    left: 18px;
}

.banner-slider .arrow-next {
    right: 18px;
}

.banner-slider .arrow-prev:hover,
.banner-slider .arrow-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Ensure swiper slides cover the viewport horizontally and maintain a compact height */
.banner-slider .swiper-slide {
    width: 100%;
}

.banner-style3 {
    min-height: 36vh;
}

/* Ensure all slides have the same height and do not overlap */
.banner-slider .swiper-wrapper {
    align-items: stretch;
}

/* Slide height: at least 800px, but prefer full viewport minus header so text centers nicely */
.banner-slider .swiper-slide {
    height: max(800px, calc(100vh - var(--site-header-height)));
    min-height: 800px;
    position: relative;
    overflow: hidden;
}

.banner-style3 {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Pagination (bullets) styling */
.banner-slider .swiper-pagination {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 45;
}

.banner-slider .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.55);
    width: 10px;
    height: 10px;
    opacity: 1;
    margin: 0 6px;
}

.banner-slider .swiper-pagination-bullet-active {
    background: #ffffff;
}

/* Compact layout so products are visible below */
@media (min-width: 900px) {
    .banner-style3 {
        min-height: 34vh;
    }
}

@media (max-width: 720px) {
    .banner-style3 {
        min-height: 44vh;
    }

    .banner-style3 .title {
        font-size: 20px;
    }
}

/* Desktop: stack title and subtitle on separate lines and keep CTA lower, centered vertically */
@media (min-width: 900px) {
    .banner-style3 .banner-content {
        max-width: 1400px;
        padding: 2.5rem 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 18px;
        height: 100%;
    }

    .banner-style3 .pepper-emoji {
        margin-bottom: 0;
        font-size: 42px;
    }

    .banner-style3 .title,
    .banner-style3 .subtitle {
        display: block;
        white-space: nowrap;
        /* keep text on a single line on desktop */
        margin: 0;
        /* Do not truncate: allow font-size to scale so text fits */
    }

    /* Scale fonts with viewport so long titles fit on a single line */
    .banner-style3 .title {
        font-size: clamp(22px, 3.8vw, 64px);
        line-height: 1.15;
    }

    .banner-style3 .subtitle {
        opacity: 0.95;
        font-style: italic;
        font-size: clamp(16px, 2.2vw, 22px);
        line-height: 1.35;
    }

    .banner-style3 .banner-ctas {
        margin-top: 28px;
    }
}

/* Mobile: allow wrapping so content doesn't overflow */
@media (max-width: 899px) {
    .banner-style3 .banner-content {
        display: block;
        text-align: center;
    }

    .banner-style3 .title,
    .banner-style3 .subtitle {
        white-space: normal;
    }
}



/* Boxed Hero Slider Styles */
.hero-boxed-section {
    position: relative;
    padding: 40px 20px;
    background: #f9f9f9;
    /* Subtle fallback background */
}

.hero-boxed-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Elevated look */
    min-height: 500px;
}

/* Left Column: CMS Content */
.hero-content-col {
    flex: 1;
    min-width: 300px;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-text-wrap {
    max-width: 480px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: #111;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-cta .btn {
    padding: 12px 28px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(178, 16, 16, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(178, 16, 16, 0.35);
}

/* Right Column: Image & Slider */
.hero-image-col {
    flex: 1.2;
    /* Slightly wider than text col */
    min-width: 300px;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

/* Mini Slider inside Right Column */
.product-mini-slider {
    width: 280px;
    height: 380px;
    /* Portrait card style */
    z-index: 10;
    position: relative;
}

.product-slide-card {
    width: 100%;
    height: 100%;
}

.slide-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin: 10px;
    /* Space for shadow */
    transition: transform 0.3s ease;
}

.slide-inner:hover {
    transform: translateY(-5px);
}

.prod-thumb img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.prod-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 10px 0 5px;
    color: #111;
}

.prod-price {
    display: block;
    font-size: 1.1rem;
    color: #b21010;
    font-weight: 600;
    margin-bottom: 15px;
}

.btn-link {
    font-size: 0.95rem;
    color: #b21010;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.btn-link:hover {
    border-bottom-color: #b21010;
}

/* Swiper Pagination Customization */
.product-mini-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.product-mini-slider .swiper-pagination-bullet-active {
    background: #b21010;
    opacity: 1;
}

/* Animations */
[data-animation="fadeInUp"] {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-boxed-wrapper {
        flex-direction: column;
    }

    .hero-image-col {
        min-height: 400px;
    }

    .product-mini-slider {
        margin: 20px 0;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-content-col {
        padding: 40px 20px;
    }
}

/* HERO SLIDER (NEW - Swiper based) */
.hero-swiper {
    position: relative;
    padding-bottom: 40px;
    /* Space for dots */
}

/* Remove old separate wrapper style as it moved inside slide */
.hero-boxed-wrapper {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
}

.hero-slide-item {
    display: flex;
    /* Makes the slide full width */
    justify-content: center;
}

.hero-slide-inner-grid {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Elevated look */
    min-height: 500px;
    position: relative;
    /* Contain inner absolute elements if any */
}

/* Pagination Dots */
.hero-pagination .swiper-pagination-bullet {
    background: #b21010;
    opacity: 0.3;
    width: 10px;
    height: 10px;
    margin: 0 6px;
}

.hero-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* LIQUID GLASS PRODUCT SLIDER */
.glass-slider-section {
    padding: 60px 0;
    background: #fdfdfd;
}

.glass-product-slider {
    padding: 20px 0 50px;
    /* Space for shadows + dots */
    overflow: visible;
    /* Show shadows */
}

.glass-product-slide {
    height: auto;
    /* Allow content to grow */
    display: flex;
    justify-content: center;
}

/* -------------------------------------------
   LATEST PRODUCTS SECTION (Verified Boxed Layout)
------------------------------------------- */
.latest-products-section {
    padding: 30px 0 30px 0;
    /* Reduced top padding */
    position: relative;
    /* Clean white background as requested */
    background: transparent;
}

/* Custom Container to match Slider Boxed Layout - EXACT 1200px Alignment */
.picantillo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* Add padding to align with Header (20px) */
    width: 100%;
    /* No z-index or box-sizing needed if we align standard */
}

/* Ensure the row inside respects the 1200px without pushing out */
.picantillo-container .row {
    margin-left: -15px;
    margin-right: -15px;
}

/* Liquid Glass Card */
.product-card-modern {
    background: rgba(255, 255, 255, 0.55);
    /* Semi-transparent */
    backdrop-filter: blur(12px);
    /* Glass blur */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    /* Subtle border */
    border-radius: 25px;
    /* More rounded */
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.03),
        /* Soft primary shadow */
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    /* Inner light */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy transition */
    height: 100%;
}

.product-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.75);
    box-shadow:
        0 20px 40px rgba(178, 16, 16, 0.1),
        /* Red tint on hover */
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    border-color: #fff;
}

.card-img-top-wrapper {
    position: relative;
    height: 320px;
    /* Taller as requested */
    overflow: hidden;
    background: transparent;
    /* Transparent for glass effect */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card-img-top-wrapper img {
    max-height: 90%;
    /* Bigger image */
    width: auto;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    /* Product shadow */
}

.product-card-modern:hover .card-img-top-wrapper img {
    transform: scale(1.15) rotate(3deg);
    /* Dynamic hover */
}

/* Spice Badge */
.spice-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 4px;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.spice-badge i {
    font-size: 14px;
    transition: transform 0.3s;
}

.product-card-modern:hover .spice-badge i.filled {
    transform: scale(1.2);
    /* Pop chili on hover */
}

.spice-badge i.filled {
    color: #b21010;
    /* Chili Red */
}

.spice-badge i.empty {
    color: #e6e6e6;
}

.product-card-modern .card-body {
    padding: 40px !important;
    /* Force padding */
}

.product-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.product-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #b21010;
}

.product-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 25px;
    font-weight: 500;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #b21010;
    letter-spacing: -0.5px;
}

/* Button - Matched to Slider Button (Red) */
.btn-product-view {
    background: #b21010;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.25s, transform 0.2s, box-shadow 0.6s;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(178, 16, 16, 0.25);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

/* Fire overlay - identico a .btn-cart-header */
.btn-product-view::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background-image: url('/wp-content/themes/picantillo/assets/img/fire-btn.svg');
    background-size: cover;
    background-position: center bottom;
    opacity: 0;
    transform: translateY(100%);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.btn-product-view:hover::before {
    animation: cartFireIgnite 0.9s ease-out forwards,
               cartFireIdle   3.4s ease-in-out 0.9s infinite;
    transition: none;
}

.btn-product-view:hover,
.btn-product-view:hover:visited,
.btn-product-view:focus {
    color: #ffb347 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(178, 16, 16, 0.20);
    animation: cartFireGlow 3.5s ease-in-out 0.4s infinite;
    text-decoration: none !important;
}

.btn-product-view i {
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
}

.btn-product-view:hover i {
    transform: translateX(3px);
}

.glass-card {
    width: 320px;
    background: rgba(255, 255, 255, 0.7);
    /* Translucent base */
    backdrop-filter: blur(12px);
    /* Blur effect */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow:
        0 8px 32px 0 rgba(178, 16, 16, 0.1),
        /* Red tint shadow */
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(178, 16, 16, 0.2);
}

.glass-media {
    position: relative;
    height: 220px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-media img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.glass-card:hover .glass-media img {
    transform: scale(1.05) rotate(2deg);
}

.glass-content {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.glass-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.glass-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.glass-spice {
    cursor: help;
}

.glass-price {
    font-weight: 600;
    color: #b21010;
}

.glass-btn {
    margin-top: auto;
    width: 100%;
    border-radius: 30px;
    background: linear-gradient(135deg, #b21010, #d91c1c);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(178, 16, 16, 0.3);
}

.glass-btn:hover {
    background: linear-gradient(135deg, #990e0e, #b21010);
    box-shadow: 0 6px 20px rgba(178, 16, 16, 0.4);
    transform: translateY(-1px);
}

/* Glass Pagination */
.glass-pagination .swiper-pagination-bullet {
    background: #111;
    opacity: 0.2;
}

.glass-pagination .swiper-pagination-bullet-active {
    background: #b21010;
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .glass-card {
        width: 100%;
        max-width: 340px;
    }
}

/* =========================================
   NEW HERO SLIDER (Boxed + Overlay)
   ========================================= */

.hero-section-container {
    position: relative;
    padding: 40px 20px;
    background: #f9f9f9;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: visible;
    /* Allows overlay to pop out if needed, or contain it */
    min-height: 500px;
}

/* 1. Main Content Slider */
.hero-main-slider {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 1;
    /* Base layer */
}

.hero-boxed-layout {
    display: flex;
    width: 100%;
    height: 500px;
    /* Fixed height for consistency */
}

/* Left Col */
/* Full Box Hero Styles */
.banner-style3 {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    width: 100%;
    height: 100%;
}

/* Background Image for lazy loading support */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    margin: 0;
    padding: 0;
}

/* Dark gradient overlay for text readability - REMOVED per user request */
.hero-full-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* No gradient */
    z-index: 1;
}

.hero-content-container {
    position: relative;
    z-index: 2;
    /* Above overlay */
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
    padding-left: 100px !important;
    /* FORCE 100px PADDING LEFT */
}

.hero-text-content {
    max-width: 50%;
    /* Text takes half width */
}

/* Typography Overrides for readability */
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    /* White text */
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Slight shadow for readability since gradient is gone */
}

/* Typography Overrides for readability */
.about-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    /* Reduced line height */
    margin-bottom: 25px;
    letter-spacing: -1px;
    text-transform: none;
    /* Force sentence case as requested */
}

.hero-subtitle {
    color: #fff;
    /* White text */
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Custom Hero Button */
.btn-primary-custom {
    display: inline-block;
    background-color: #b21010;
    /* Red background */
    color: #fff !important;
    /* White text */
    padding: 12px 30px;
    border-radius: 50px;
    /* Rounded border */
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary-custom:hover {
    background-color: #ffcc00;
    /* Yellow background on hover */
    color: #000 !important;
    /* Black text for contrast on yellow */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    padding: 12px 30px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(178, 16, 16, 0.3);
}

/* Right Col */
.hero-right-col {
    flex: 1.2;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #fff 0%, transparent 10%);
    /* Soft blend */
}

/* Pagination for Hero */
/* Pagination for Hero - See Refined Definition below around line 2000 */

/* Custom Chili Bullet - See Refined Definition below around line 2000 */





/* 2. Product Circle Overlay (Integrated in Hero Slides) */
.product-circle-overlay {
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    z-index: 15;
    /* Above hero content */
}

/* Fire glow effect - centered BEHIND the circle, visible only around edges */
.product-circle-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    /* Just slightly larger than circle (320px) */
    height: 380px;
    transform: translate(-50%, -50%);
    /* Centered behind circle */
    background: radial-gradient(circle,
            rgba(139, 0, 0, 0.6) 0%,
            /* Dark red core - reduced opacity */
            rgba(178, 16, 16, 0.7) 20%,
            /* Deep crimson */
            rgba(200, 0, 0, 0.5) 35%,
            /* Bright red */
            rgba(178, 16, 16, 0.4) 50%,
            /* Red */
            rgba(139, 0, 0, 0.2) 65%,
            /* Dark red fade */
            transparent 80%);
    border-radius: 50%;
    z-index: -1;
    /* Behind the circle */
    opacity: 0;
    filter: blur(40px);
    /* More blur for softer effect */
    pointer-events: none;
}

/* Fire glow animation when slide becomes active */
.swiper-slide-active .product-circle-overlay::before {
    animation: fireGlowPulse 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fireGlowPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
        filter: blur(40px);
    }

    25% {
        opacity: 0.6;
        /* Reduced from 1 */
        transform: translate(-50%, -50%) scale(1.1);
        filter: blur(30px);
    }

    50% {
        opacity: 0.7;
        /* Reduced from 1 */
        transform: translate(-50%, -50%) scale(1.3);
        filter: blur(25px);
    }

    75% {
        opacity: 0.4;
        /* Reduced from 0.7 */
        transform: translate(-50%, -50%) scale(1.2);
        filter: blur(30px);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(35px);
    }
}

.product-orb-link {
    display: block;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-orb-link:hover {
    transform: scale(1.05) rotate(3deg);
}

.product-orb-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
    /* Initial state - hidden and small */
    opacity: 0;
    transform: scale(0.5) translateY(30px);
}

/* Animation when slide becomes active */
.swiper-slide-active .product-orb-circle {
    animation: zoomInJump 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes zoomInJump {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(30px) rotate(-10deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.1) translateY(-15px) rotate(5deg);
    }

    70% {
        transform: scale(0.95) translateY(5px) rotate(-2deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

.product-orb-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 100%);
    border-radius: 50%;
    pointer-events: none;
}

/* Fire glow effect behind the circle */
.product-orb-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
            rgba(255, 69, 0, 0.8) 0%,
            rgba(255, 140, 0, 0.6) 20%,
            rgba(178, 16, 16, 0.4) 40%,
            transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    filter: blur(20px);
    pointer-events: none;
}

/* Fire glow animation when slide becomes active */
.swiper-slide-active .product-orb-circle::after {
    animation: fireGlow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fireGlow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
        filter: blur(30px);
    }

    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
        filter: blur(25px);
    }

    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.5);
        filter: blur(20px);
    }

    70% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.4);
        filter: blur(22px);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
        filter: blur(25px);
    }
}

.product-orb-link:hover .product-orb-circle {
    border-color: rgba(178, 16, 16, 0.8);
    box-shadow:
        0 25px 70px rgba(178, 16, 16, 0.5),
        inset 0 0 40px rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .product-circle-overlay {
        right: 40px;
    }

    .product-orb-circle {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 900px) {
    .hero-content-container {
        padding: 0 20px !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-top: 40px !important;
        padding-bottom: 20px !important;
    }

    .hero-text-content {
        max-width: 100%;
        margin-bottom: 25px;
    }

    .hero-title {
        font-size: 2.4rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 20px;
    }

    .hero-btn-wrap {
        margin-bottom: 30px;
    }

    .product-circle-overlay {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 0 auto;
        text-align: center;
    }

    .product-orb-link {
        display: inline-block;
    }

    .product-orb-circle {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 600px) {
    .product-orb-circle {
        width: 200px;
        height: 200px;
    }
}

/* FIXES: Button Placement & Glass Consistency */
.hero-btn {
    display: table;
    /* Forces separate line but shrinks to content */
    margin-top: 25px;
    /* Explicit separation */
    margin-bottom: 0;
}

/* Unified Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.65) !important;
    /* Unified opacity */
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.glass-thumb {
    background: transparent !important;
    /* Remove inner box difference */
    padding-bottom: 0;
}

.glass-info {
    background: transparent !important;
    /* Remove inner box difference */
    padding-top: 10px;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.8) !important;
}

/* Ensure Hero Text doesn't overlap weirdly */
.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* REFINEMENTS: Spacing & Backgrounds */

/* 1. Remove Gray Background & Fix Padding */
.hero-section-container {
    background: transparent !important;
    padding: 20px 20px !important;
    /* MATCH .picantillo-container padding */
    width: 100%;
}

/* 2. Title & Description Spacing (Closer) */
.hero-title {
    margin-bottom: 10px !important;
}

.hero-desc {
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    line-height: 1.4;
}

/* 3. Button Placement */
.hero-btn {
    display: inline-block;
    clear: both;
    margin-top: 10px !important;
}

/* Pagination for Hero - Centered */
.hero-pagination {
    position: absolute;
    bottom: 25px !important;
    /* Lift up slightly */
    left: 0 !important;
    width: 100% !important;
    text-align: center;
    z-index: 999 !important;
    display: flex;
    justify-content: center;
    gap: 12px !important;
    /* increased gap for clarity */
}

/* Custom Chili Bullet - Refined */
.hero-pagination .swiper-pagination-bullet.custom-chili-bullet,
.custom-chili-bullet {
    width: 30px !important;
    /* Slightly smaller, more elegant */
    height: 30px !important;
    display: inline-block !important;
    background: transparent !important;
    opacity: 0.7 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 !important;
    margin: 0 !important;
}

.hero-pagination .swiper-pagination-bullet.custom-chili-bullet svg,
.custom-chili-bullet svg {
    width: 100% !important;
    height: 100% !important;
    fill: transparent;
    /* Wireframe default */
    stroke: #fff;
    /* White outline */
    stroke-width: 4px;
    /* Thinner stroke */
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    overflow: visible;
}

/* Active State - Colored & Filled */
.hero-pagination .swiper-pagination-bullet-active.custom-chili-bullet,
.custom-chili-bullet.swiper-pagination-bullet-active {
    opacity: 1 !important;
    transform: scale(1.2);
}

.hero-pagination .swiper-pagination-bullet-active.custom-chili-bullet svg,
.custom-chili-bullet.swiper-pagination-bullet-active svg {
    stroke: #b21010;
    fill: #b21010;
    /* Fill with red when active */
    filter: drop-shadow(0 0 10px rgba(178, 16, 16, 0.6));
    stroke-width: 0;
    /* Remove stroke when filled */
}

/* Hover State */
.custom-chili-bullet:hover svg {
    transform: scale(1.1);
    stroke: #ffcc00;
}

/* Product Slider Arrows */
.glass-next,
.glass-prev {
    color: #b21010;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.glass-next:after,
.glass-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.glass-next:hover,
.glass-prev:hover {
    background: #fff;
    color: #d91c1c;
}

/* CUSTOM SLIDER ARROWS (Clean & Minimal) */
/* Reset Swiper defaults if any remain */
.glass-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #b21010;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.glass-nav:hover {
    background: #b21010;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.glass-prev {
    left: 10px;
}

.glass-next {
    right: 10px;
}

.glass-nav i {
    font-size: 14px;
    /* Crisp icon size */
}

/* Ensure content is strictly 100% inside slide */
.card-glass-slide {
    padding: 10px;
    /* Space for shadow */
    box-sizing: border-box;
}

/* SUBTLE ARROWS */
.glass-nav {
    background: rgba(255, 255, 255, 0.4) !important;
    /* More transparent */
    color: #333 !important;
    /* Dark grey instead of red */
    width: 30px !important;
    /* Smaller */
    height: 30px !important;
    box-shadow: none !important;
    /* Remove shadow */
    opacity: 0.6;
    /* Fade out */
}

.glass-nav:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    opacity: 1;
    color: #b21010 !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.glass-nav i {
    font-size: 12px !important;
}

/* Ensure arrows are clickable */
.product-overlay-wrapper {
    pointer-events: none;
    /* Let clicks pass through empty areas */
}

.product-glass-slider {
    pointer-events: auto;
    /* Re-enable clicks on slider */
}

/* FINAL BUTTON SPACING FIX */
.glass-btn {
    margin: 15px !important;
    /* Space around the button */
    display: inline-block;
    width: calc(100% - 30px);
    /* Account for margin */
}

.glass-content {
    padding-bottom: 15px !important;
    /* Extra bottom padding for container */
}

/* Ensure sliding is visible (no clipping too early) */
.product-glass-slider {
    overflow: hidden;
    /* Standard swiper */
    padding: 20px !important;
    /* Space for shadows/scales */
    margin: -20px !important;
    /* Counteract padding */
}

/* PRICE FIXES */
.glass-meta {
    justify-content: center !important;
    /* Center the price container */
    width: 100%;
}

.glass-price {
    display: block;
    text-align: center;
    width: 100%;
    font-size: 1.4rem;
    /* Make it slightly bigger */
}

/* Ensure slider keeps moving */
.glass-product-slider .swiper-wrapper {
    transition-timing-function: linear;
    /* Continuous feel if desired, or ease for slide */
}

/* EXTERNAL ARROWS FIX */
.product-overlay-wrapper {
    overflow: visible !important;
    /* Allow arrows to sit outside */
}

.glass-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999 !important;
    /* Force on top */
    cursor: pointer !important;
    background: #fff !important;
    opacity: 1 !important;
    width: 40px !important;
    height: 40px !important;
    color: #b21010 !important;
    border: 2px solid #b21010;
}

.glass-prev {
    left: -20px !important;
    /* Pull outside left */
}

.glass-next {
    right: -20px !important;
    /* Pull outside right */
}

.glass-nav:active {
    background: #b21010 !important;
    color: #fff !important;
    transform: translateY(-50%) scale(0.9) !important;
}

/* CRITICAL FIX: ENABLE CLICKS ON ARROWS */
.glass-nav {
    pointer-events: auto !important;
    /* Override parent's none */
}

/* Ensure wrapper doesn't block but allows children */
.product-overlay-wrapper {
    pointer-events: none;
}

.product-glass-slider,
.glass-nav {
    pointer-events: auto !important;
}

/* FORCE ARROWS CLICKABLE */
.hero-section-container {
    z-index: 10;
}

.product-overlay-wrapper {
    z-index: 20 !important;
    pointer-events: none;
    /* Layout wrapper shouldn't block */
}

.product-glass-slider {
    pointer-events: auto !important;
}

.glass-nav {
    pointer-events: auto !important;
    z-index: 99999 !important;
    /* Maximum Priority */
    cursor: pointer;
}

/* HERO IMAGE FULL FIX */
.hero-right-col {
    background-size: cover !important;
    background-position: center !important;
    min-height: 100% !important;
    flex-grow: 1;
    /* Ensure it grabs space */
}

.hero-boxed-layout {
    height: 550px !important;
    /* Slightly taller */
    align-items: stretch;
}

/* NEW ORB SLIDER STYLES */
.product-orb-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.orb-link {
    display: block;
    text-decoration: none;
}

.orb-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    /* Subtle glass base */
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.1),
        /* Outer ring */
        0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy pop */
    animation: orbFloat 6s ease-in-out infinite;
}

.orb-circle img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s ease;
}

/* Hover Effects */
.orb-circle:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.2),
        0 20px 50px rgba(178, 16, 16, 0.3);
    /* Red glow on hover */
}

.orb-circle:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Floating Animation */
@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Nav positioning for Orbs */
.orb-prev {
    left: -40px !important;
}

.orb-next {
    right: -40px !important;
}

/* -------------------------------------------
   RESELLER BANNER SECTION (Red Futuristic)
------------------------------------------- */
.reseller-banner-section {
    position: relative;
    overflow: hidden;
}

.reseller-banner-box {
    /* Background Image with Intense Red Overlay */
    background:
        linear-gradient(135deg, rgba(178, 16, 16, 0.9) 0%, rgba(138, 11, 11, 0.95) 100%),
        url('assets/images/IMG_5867.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 20px 50px rgba(178, 16, 16, 0.3);
    /* Red Glow Shadow */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Futuristic Animated Background Overlay */
.reseller-banner-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 8s infinite alternate;
    pointer-events: none;
}

.reseller-banner-box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.reseller-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
    -webkit-background-clip: unset;
    background-clip: unset;
    /* Reset potentially conflicting older styles */
    -webkit-text-fill-color: #fff;
    background: none;
}

.reseller-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.reseller-desc strong {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 4px;
}

/* Button - Futuristic Style */
.btn-reseller {
    background: #fff;
    color: #b21010;
    /* Chili Red Text */
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Hover: Inverted Brand Style (Black Bg, White Text) */
.btn-reseller:hover {
    background: #000;
    color: #fff;
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.2);
    /* Glow */
}

.btn-reseller i {
    transition: transform 0.4s ease;
}

.btn-reseller:hover i {
    transform: translateX(6px);
}

/* Responsive */
/* Responsive Reseller Banner */
@media (max-width: 768px) {
    .reseller-banner-box {
        padding: 40px 25px;
        text-align: center;
    }

    .reseller-title {
        font-size: 2rem;
    }

    .reseller-desc {
        margin: 0 auto;
    }

    .btn-reseller {
        width: 100%;
        justify-content: center;
        margin-top: 25px;
    }
}

/* Responsive About Us */
@media (max-width: 991px) {
    .about-title {
        font-size: 2.5rem;
    }

    .about-content {
        text-align: center;
        margin-bottom: 40px;
    }

    .about-features li {
        justify-content: center;
    }
}

/* -------------------------------------------
   FORCE ABOUT US STYLES (User Request)
   Ensures 100% match with product section
------------------------------------------- */

/* 1. Spacing - Force separation from footer */
.about-us-section {
    padding-bottom: 180px !important;
}

/* 2. Title Typography - Force Sentence Case & Red Color */
.about-title {
    font-size: 3rem;
    font-weight: 800;
    color: #b21010 !important;
    /* Changed to Red */
    line-height: 1.1 !important;
    margin-bottom: 25px;
    letter-spacing: -1px;
    text-transform: none !important;
}

/* 2b. Description Hierarchy */
.about-desc {
    color: #333;
    /* Darker color as requested */
    font-weight: 400;
    /* Regular weight */
    font-size: 1.05rem;
    /* Slightly smaller if needed, but color helps hierarch */
}

/* 4. Image Styling - Equal Height Cover */
.about-us-section .row {
    align-items: stretch !important;
    /* Override Bootstrap align-items-center to make columns equal height */
}

.about-image-wrapper {
    height: 100%;
    min-height: 300px;
    /* Ensure visibility on mobile if needed */
    border-radius: 20px !important;
    overflow: hidden;
    /* Ensure image doesn't bleed out of rounded corners */
}

.about-img {
    border-radius: 0 !important;
    /* Wrapper has radius */
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

/* 3. Button - EXACT COPY of .btn-product-view */
.btn-about {
    background: #b21010 !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: 0 4px 12px rgba(178, 16, 16, 0.25) !important;
    border: none !important;
    text-transform: none !important;
    margin-top: 20px;
}

.btn-about:hover {
    background: #990e0e !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(178, 16, 16, 0.35) !important;
}

.btn-about i {
    transition: transform 0.3s;
}

.btn-about:hover i {
    transform: translateX(3px);
}

/* -------------------------------------------
   GLOBAL MOBILE OPTIMIZATIONS
------------------------------------------- */
@media (max-width: 768px) {

    /* 1. Global Container Padding - Increased for visual comfort */
    .picantillo-container {
        padding-left: 30px !important;
        padding-right: 30px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* ... typography ... */

    /* 6. Product Grid - Fixes */
    .products .row,
    .latest-products-section .row {
        display: flex;
        flex-wrap: wrap;
        margin-right: -10px;
        margin-left: -10px;
    }

    .products .col-md-4,
    .latest-products-section .col-md-4 {
        width: 50% !important;
        padding-right: 10px;
        padding-left: 10px;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .product-card-modern {
        margin-bottom: 20px;
    }

    /* 7. Product Card Footer - Stack Price and Button */
    .product-card-modern .mt-auto {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 10px;
    }

    .product-price {
        font-size: 1.1rem;
        align-self: flex-start;
        /* Price on left */
    }

    .btn-product-view {
        width: 100%;
        /* Full width for easier tapping */
        justify-content: center;
        padding: 10px 0;
        margin-top: 0;
        /* Handled by gap */
        display: flex !important;
    }

    /* 2. Typography Scaling */
    h2,
    .about-title,
    .reseller-title,
    .product-title {
        word-wrap: break-word;
        /* Prevent overflow */
    }

    .about-title {
        font-size: 2rem !important;
        /* Scale down from 3rem */
        line-height: 1.2 !important;
    }

    .reseller-title {
        font-size: 1.8rem !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    /* 3. Section Spacing */
    .hero-section-container {
        padding-bottom: 10px !important;
        margin-bottom: 0 !important;
    }

    .latest-products-section {
        padding-top: 15px !important;
        padding-bottom: 10px !important;
        margin-top: 0 !important;
    }

    .latest-products-section h2.section-title.mb-5,
    .latest-products-section .section-title {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        font-size: 1.8rem !important;
    }

    .reseller-banner-box {
        padding: 40px 20px !important;
        margin-top: 20px !important;
    }

    .about-us-section {
        padding-bottom: 100px !important;
        /* Adjusted slightly for mobile */
    }

    /* 4. Element Spacing */
    .about-us-section .col-lg-6.mb-5 {
        margin-bottom: 20px !important;
    }

    .about-content {
        margin-bottom: 10px;
        text-align: center;
        /* Center align for better mobile flow */
    }

    .about-desc,
    .reseller-desc {
        font-size: 1rem !important;
    }

    .btn-about,
    .btn-reseller {
        width: 100%;
        /* Full width buttons on mobile are easier to tap */
        justify-content: center;
    }

    /* 5. Image Handling */
    .about-image-wrapper {
        margin-top: 0px;
    }

    /* 6. Product Grid - 2 Column on Mobile (More "App-like") */
    .products .row,
    .latest-products-section .row {
        display: flex;
        flex-wrap: wrap;
        margin-right: -10px;
        margin-left: -10px;
    }

    .products .col-md-4,
    .latest-products-section .col-md-4 {
        width: 50% !important;
        /* Force 2 columns */
        padding-right: 10px;
        padding-left: 10px;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .product-card-modern {
        margin-bottom: 20px;
    }

    .card-img-top-wrapper {
        height: 160px;
        display: block;
        padding: 0;
    }

    .card-img-top-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        margin: 0;
        max-height: none;
    }

    .product-card-modern .card-body {
        padding: 10px 15px 15px 15px !important;
    }

    .product-card-modern .product-title,
    .product-card-modern h3 {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        font-size: 1rem !important;
    }

    .product-excerpt {
        display: none;
        /* Hide excerpt on minimal mobile view to save space, or keep short */
    }

    .btn-product-view {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* =========================================
   SINGLE PRODUCT PAGE
   ========================================= */

/* Main Container Padding - Match Homepage Boxed Layout */
.picantillo-single-product {
    padding-top: 50px;
    /* Standard spacing */
    padding-bottom: 80px;
    max-width: 1200px;
    /* Explicitly enforce if not inherited */
    margin: 0 auto;
    width: 100%;
}

/* Ensure global font compliance */
.picantillo-single-product h1,
.picantillo-single-product h2,
.picantillo-single-product h3,
.picantillo-single-product h4,
.picantillo-single-product h5,
.picantillo-single-product h6,
.picantillo-single-product .product_title,
.picantillo-single-product .price,
.picantillo-single-product .single_add_to_cart_button {
    font-family: 'Outfit', sans-serif !important;
}

/* =========================================================================
   WOOCOMMERCE PRODUCT GALLERY REDESIGN - PREMIUM
   ========================================================================= */

/* 1. Contenitore Principale */
.picantillo-product-gallery .woocommerce-product-gallery {
    float: none !important; /* Force no float to avoid breaking the column flow */
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    opacity: 1 !important; /* Prevent WooCommerce loading fade bugs */
    background: transparent !important;
    clear: both !important;
    display: block !important;
}

/* The wrapper holds the main images. This should be the 1:1 box. */
.picantillo-product-gallery .woocommerce-product-gallery__wrapper {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    background-color: #fcfcfc !important; /* neutro molto chiaro */
    border-radius: 24px !important;
    overflow: hidden !important;
    position: relative !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important; /* Disabilita lo slide orizzontale di FlexSlider in favore del fade */
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
}

/* Rimuovi sfondi blurrati, pseudo-elementi e duplicazioni */
.picantillo-product-gallery .woocommerce-product-gallery::before,
.picantillo-product-gallery .woocommerce-product-gallery::after,
.picantillo-product-gallery .woocommerce-product-gallery__wrapper::before,
.picantillo-product-gallery .woocommerce-product-gallery__wrapper::after,
.picantillo-product-gallery .woocommerce-product-gallery__image::before,
.picantillo-product-gallery .woocommerce-product-gallery__image::after {
    display: none !important;
    content: none !important;
    background: none !important;
    filter: none !important;
    backdrop-filter: none !important;
}

/* 2. Immagine principale */
.picantillo-product-gallery .woocommerce-product-gallery__image {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 0 !important;
    transition: opacity 0.35s ease, transform 0.35s ease !important;
    transform: scale(0.98) !important;
    padding: 0 !important; /* Rimosso il padding per riempire tutto lo spazio */
    box-sizing: border-box !important;
    z-index: 1 !important;
    pointer-events: none !important; /* Evita interazioni con img invisibili */
}

/* Solo l'immagine attiva è visibile */
.picantillo-product-gallery .woocommerce-product-gallery__image.flex-active-slide {
    opacity: 1 !important;
    transform: scale(1) !important;
    z-index: 2 !important;
    pointer-events: auto !important;
}

/* Fallback: se la galleria sta ancora caricando e non ha slide attive, mostra la prima */
.picantillo-product-gallery .woocommerce-product-gallery__wrapper:not(:has(.flex-active-slide)) .woocommerce-product-gallery__image:first-child {
    opacity: 1 !important;
    transform: scale(1) !important;
    z-index: 2 !important;
    pointer-events: auto !important;
}

/* Il link deve riempire tutto per permettere all'img di usare object-fit cover */
.picantillo-product-gallery .woocommerce-product-gallery__image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.picantillo-product-gallery .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Cover per riempire uniformemente il riquadro */
    border-radius: 0 !important; 
    box-shadow: none !important; 
    filter: none !important; 
    margin: 0 auto !important;
    display: block !important;
    position: relative !important;
}

/* Rimuove immagini zoomImg duplicate se sfocate o fastidiose */
.picantillo-product-gallery .woocommerce-product-gallery__image img.zoomImg {
    display: none !important; 
}

/* 3. Pulsante Zoom */
.picantillo-product-gallery .woocommerce-product-gallery__trigger {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    z-index: 10 !important;
    display: block !important;
    transition: transform 0.2s ease !important;
    overflow: hidden !important;
    text-indent: -9999px !important;
    font-size: 0 !important;
    color: transparent !important;
}

.picantillo-product-gallery .woocommerce-product-gallery__trigger:hover {
    transform: scale(1.05) !important;
}

/* Nascondi qualsiasi nodo figlio (svg, img, span, i) che WooCommerce o il tema provano a inserire */
.picantillo-product-gallery .woocommerce-product-gallery__trigger > * {
    display: none !important;
}

/* Usa un SVG inline pulito e perfetto per la lente d'ingrandimento */
.picantillo-product-gallery .woocommerce-product-gallery__trigger::before {
    content: "" !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.picantillo-product-gallery .woocommerce-product-gallery__trigger::after {
    display: none !important;
    content: none !important;
}

/* 4. Miniature (Flex-control-nav) */
.picantillo-product-gallery .flex-control-nav.flex-control-thumbs {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    margin: 20px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

.picantillo-product-gallery .flex-control-nav.flex-control-thumbs li {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.picantillo-product-gallery .flex-control-nav.flex-control-thumbs img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    opacity: 0.75 !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    box-shadow: none !important;
    display: block !important;
}

.picantillo-product-gallery .flex-control-nav.flex-control-thumbs img:hover {
    opacity: 1 !important;
}

.picantillo-product-gallery .flex-control-nav.flex-control-thumbs img.flex-active {
    opacity: 1 !important;
    border-color: #b21010 !important;
    box-shadow: 0 4px 10px rgba(178, 16, 16, 0.15) !important;
    transform: scale(1.02) !important;
}

/* 6. Responsive */
@media (max-width: 991px) {
    .picantillo-product-gallery .flex-control-nav.flex-control-thumbs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important; /* Firefox */
        padding-bottom: 10px !important; /* Spazio per evitare tagli in caso di scale(1.02) */
    }
    .picantillo-product-gallery .flex-control-nav.flex-control-thumbs::-webkit-scrollbar {
        display: none !important; /* Safari and Chrome */
    }
    .picantillo-product-gallery .flex-control-nav.flex-control-thumbs li {
        flex: 0 0 calc(25% - 9px) !important;
        min-width: 80px !important;
    }
}
@media (max-width: 575px) {
    .picantillo-product-gallery .flex-control-nav.flex-control-thumbs li {
        flex: 0 0 78px !important;
    }
}

/* Product Summary (Right Col) */
.picantillo-product-summary {
    padding-left: 40px;
    /* More breathing room */
}

/* Title */
.picantillo-product-summary .product_title {
    font-weight: 700;
    font-size: 2.8rem;
    /* Larger, like hero titles */
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.1;

}

/* Price */
/* Price - "Figo" & Prominent */
/* Price - "Figo" & Prominent - High Specificity */
body.woocommerce div.product .picantillo-product-summary .price {
    font-size: 2rem !important;
    /* Significantly smaller (was 2.5rem, before that 3.5rem) */
    font-weight: 800 !important;
    color: #b21010 !important;
    margin-bottom: 25px !important;
    display: inline-block !important;
    line-height: 1 !important;
    letter-spacing: -1px !important;
    /* Reduced tracking */
    text-shadow: none !important;
    /* Removed shadow for cleaner look */
}

/* Short Description */
.picantillo-product-summary .woocommerce-product-details__short-description {
    font-size: 1.1rem;
    color: #000000 !important;
    /* Enforced Black */
    font-weight: 400 !important;
    /* Normal weight but enforced */
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Add to Cart Section - Aligned Heights */
body.woocommerce div.product .picantillo-product-summary form.cart {
    display: flex !important;
    gap: 15px !important;
    align-items: center !important;
    margin-bottom: 30px !important;
}

/* Quantity Input */
body.woocommerce div.product .picantillo-product-summary .quantity .input-text,
body.woocommerce div.product .picantillo-product-summary .quantity .qty {
    height: 55px !important;
    /* Exact match with button */
    border: 2px solid #eee !important;
    border-radius: 12px !important;
    /* Soft square contrast to pill button */
    padding: 0 !important;
    width: 80px !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    text-align: center !important;
    color: #333 !important;
    background: #fff !important;
    transition: border-color 0.3s ease !important;
}

body.woocommerce div.product .picantillo-product-summary .quantity .input-text:focus,
body.woocommerce div.product .picantillo-product-summary .quantity .qty:focus {
    border-color: #b21010 !important;
    outline: none !important;
}

/* Add to Cart Button (Updated to match PDF Button: Red, Big) */
body.woocommerce div.product .picantillo-product-summary button.single_add_to_cart_button {
    padding: 15px 30px !important;
    background: #b21010 !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(178, 16, 16, 0.3);
    cursor: pointer;
    display: inline-block;
    border: 2px solid #b21010;
    margin-right: 0;
    width: auto;
    height: auto;
    line-height: normal;
    justify-content: center;
}

.picantillo-product-summary button.single_add_to_cart_button:hover {
    background: #990e0e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 16, 16, 0.4);
}

/* Meta Data */
.picantillo-product-summary .product_meta {
    font-size: 0.9rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.picantillo-product-summary .product_meta span {
    display: block;
    margin-bottom: 5px;
}

/* Tabs */
.picantillo-product-tabs {
    margin-top: 20px !important;
}

.picantillo-product-tabs .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #eee;
    padding: 0;
    margin: 0 0 30px;
    list-style: none;
    display: flex;
    gap: 30px;
}

.picantillo-product-tabs .woocommerce-tabs ul.tabs li {
    border: none;
    background: transparent;
    margin: 0;
    padding: 0;
}

.picantillo-product-tabs .woocommerce-tabs ul.tabs li a {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #999;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: block;
}

.picantillo-product-tabs .woocommerce-tabs ul.tabs li.active a,
.picantillo-product-tabs .woocommerce-tabs ul.tabs li:hover a {
    color: #b21010;
    border-bottom-color: #b21010;
}

.picantillo-product-tabs .woocommerce-Tabs-panel {
    color: #555;
    line-height: 1.8;
}

/* Related Products Header */
.related.products>h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    margin-top: 20px !important;
}

/* Mobile Adjustments for Product Page */
@media (max-width: 768px) {
    .picantillo-product-summary {
        padding-left: 0;
        margin-top: 30px;
    }

    .picantillo-product-summary .product_title {
        font-size: 2rem;
    }

    .picantillo-product-summary .price {
        font-size: 1.5rem;
    }

    .picantillo-product-summary form.cart {
        flex-direction: column;
        align-items: stretch;
    }

    .picantillo-product-summary button.single_add_to_cart_button {
        width: 100%;
    }

    /* Ensure tabs scroll on mobile if needed */
    .picantillo-product-tabs .woocommerce-tabs ul.tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        /* Scrollbar space */
    }
}

/* Fix for Add to Cart button on single product page */
.summary.entry-summary button.single_add_to_cart_button {
    background: #b21010 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 40px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(178, 16, 16, 0.25) !important;
    cursor: pointer !important;
}

/* Old fix removed */

/* Global Refinements - Boxed Layout & Outfit Font */
body,
h1,
h2,
h3,
h4,
h5,
h6,
.product_title,
.price,
.button,
.single_add_to_cart_button {
    font-family: 'Outfit', sans-serif !important;
}

.container,
.picantillo-single-product {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
}


/* =========================================
   FORCE HOMEPAGE LAYOUT ON RELATED PRODUCTS
   ========================================= */

/* Make the UL behave like a Bootstrap .row */
.related.products ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    padding: 0 !important;
    list-style: none !important;
    width: auto !important;
}

/* Make the LI behave like a Bootstrap .col-md-4 */
.related.products ul.products li.product {
    width: 33.3333% !important;
    padding: 0 15px !important;
    margin: 0 0 30px 0 !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: none !important;
}

/* Force Image Aspect Ratio to Match Homepage (Square) */
.related.products .product-img {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
}

/* Responsiveness: Stack on Mobile */
@media (max-width: 768px) {
    .related.products ul.products li.product {
        width: 100% !important;
    }
}

/* =========================================
   SPICE INDICATOR ANIMATION & LAYOUT REFINEMENTS
   ========================================= */

/* Remove Tabs (if filter misses anything) */
.woocommerce-tabs {
    display: none !important;
}

/* Hide Category/Meta */
.product_meta {
    display: none !important;
}

/* Reduce spacing to Related Products */
.related.products {
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: none !important;
}

/* Spice Indicator Container */
.picantillo-spice-indicator-container {
    clear: both !important; /* Prevents overlap with floating WooCommerce gallery */
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    text-align: center;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.spice-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.spice-meter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.spice-pepper {
    font-size: 2.2rem;
    color: #e0e0e0;
    /* Inactive gray */
    opacity: 0;
    /* Start hidden for animation */
    animation: pepperPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.spice-pepper.active {
    color: #B21010;
    filter: drop-shadow(0 4px 6px rgba(178, 16, 16, 0.3));
}

@keyframes pepperPop {
    0% {
        transform: scale(0) translateY(10px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Stagger animations controlled by inline style, but base fallback here */
.spice-pepper:nth-child(1) {
    animation-delay: 0.1s;
}

.spice-pepper:nth-child(2) {
    animation-delay: 0.2s;
}

.spice-pepper:nth-child(3) {
    animation-delay: 0.3s;
}

.spice-pepper:nth-child(4) {
    animation-delay: 0.4s;
}

.spice-pepper:nth-child(5) {
    animation-delay: 0.5s;
}

/* Progress Bar */
.spice-bar-track {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.spice-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8a8a, #B21010);
    border-radius: 4px;
    width: 0;
    /* Start/fallback */
    animation: fillBar 1.2s ease-out forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

.spice-label {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

/* PDF Download Button */
.picantillo-pdf-download {
    margin-top: 15px;
    margin-bottom: 20px;
}

.btn-pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 2px solid #B21010;
    color: #B21010;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-pdf-download:hover {
    background-color: #B21010;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(178, 16, 16, 0.2);
}

.btn-pdf-download i {
    font-size: 1.1rem;
}

/* =========================================
   MOBILE OPTIMIZATION (Shop Page)
   ========================================= */
@media (max-width: 768px) {

    /* Force 1 column for product grid */
    .shop-products-section .col-md-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Reduce Title Size */
    .shop-header-section .section-title,
    .woocommerce-products-header__title {
        /* Also target default WC title */
        font-size: 26px !important;
        line-height: 1.3;
        margin-bottom: 30px !important;
    }

    /* Adjust Header Spacing */
    .shop-header-section {
        padding-top: 15px !important;
        padding-bottom: 10px !important;
    }

    /* Ensure container has breathing room */
    .picantillo-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Product Card Spacing */
    .product-card-modern {
        margin-bottom: 30px;
    }
}

/* Center Shop Title */
.woocommerce-products-header {
    text-align: center;
    margin-bottom: 3rem;
    /* Approx like mb-5 */
}

.woocommerce-products-header__title {
    display: inline-block;
    width: 100%;
    margin-bottom: 0;
}

/* =========================================
   FORCE HIDE WOOCOMMERCE ELEMENTS (Shop Matches Home)
   ========================================= */
.woocommerce-shop .woocommerce-ordering,
.woocommerce-shop .woocommerce-result-count {
    display: none !important;
}

/* 
 * FIX PRODUCT PAGE SPACING & ALIGNMENT
 * (Only Spacing Fixes Retained per User Request)
 * 1. Reduce gap between Product info and Related Products
 */
.single-product div.product {
    padding-bottom: 0px !important;
}

.single-product section.related.products,
.single-product section.up-sells.products {
    padding-top: 15px !important;
    /* Reduced from 50px */
    border-top: 1px solid #eee;
    margin-top: 0 !important;
}

/* 2. Related Products Header Style (Consolidated) */
.related.products>h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    margin-top: 20px !important;
}

/* NOTE: Inline Button Alignment CSS Removed */

/* 
 * 3. PDF Button Styling (Updated: White BG, Red Border, Red Text, Closer to Top)
 * User requested "bordo rosso, sfondo bianco, testo rosso" & "avvicinalo"
 */
.btn-pdf-download {
    display: inline-block;
    background: #fff;
    /* White Background */
    color: #b21010 !important;
    /* Red Text */
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 5px;
    /* Reduced spacing (was 15px) */
    border: 2px solid #b21010;
    /* Red Border */
    box-shadow: 0 4px 15px rgba(178, 16, 16, 0.1);
}

.btn-pdf-download:hover {
    background: #b21010;
    /* Reverse on hover */
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(178, 16, 16, 0.3);
}

.btn-pdf-download i {
    margin-right: 8px;
    color: #b21010;
    /* Red Icon */
}

.btn-pdf-download:hover i {
    color: #fff;
    /* White Icon on hover */
}

/* Increase spacing between related product cards */
.related.products ul.products,
.up-sells.products ul.products {
    gap: 30px !important;
    /* Increased gap for grid */
}

.related.products ul.products li.product,
.up-sells.products ul.products li.product {
    margin-bottom: 30px !important;
    /* Vertical spacing */
    padding: 0 15px !important;
    /* Horizontal spacing buffer */
}

/* 4. Add to cart button (Red/Big Style to match PDF button) */
.single_add_to_cart_button {
    display: inline-block !important;
    background: #b21010 !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 15px 30px !important;
    border-radius: 30px !important;
    border: 2px solid #b21010 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(178, 16, 16, 0.3) !important;
    height: auto !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
    margin-bottom: 5px !important;
}

.single_add_to_cart_button:hover {
    background: #fff !important;
    color: #b21010 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(178, 16, 16, 0.4) !important;
}

/* FOOTER GRID FIX - FORCE 4 COLUMNS ON DESKTOP */
.footer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px !important;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 30px !important;
    }
    
    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-socials {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-col h4.footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-list li {
        justify-content: center;
    }
}

/* Make footer logo white */
.footer-logo img {
    filter: brightness(0) invert(1);
}


/* 
 * CHILI RAIN INTERACTION 
 */
.chili-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #b21010;
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(178, 16, 16, 0.4);
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chili-fab:hover {
    transform: scale(1.1) rotate(10deg);
    background: #d61c1c;
    box-shadow: 0 6px 20px rgba(178, 16, 16, 0.6);
}

.chili-fab:active {
    transform: scale(0.9);
}

/* Rain Container */
#chili-rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

/* Pepper Drop - Simple Fall */
.chili-drop {
    position: absolute;
    top: -50px;
    animation-name: chiliFall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes chiliFall {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* Big Text Overlay */
#picantillo-text-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer; /* indica che il click chiude */
}

#picantillo-text-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Inner wrapper — non propaga il click al backdrop */
#picantillo-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    cursor: default; /* reset cursor sull'inner */
}

/* Logo nell'overlay */
#picantillo-overlay-logo {
    max-width: 520px;
    width: 80vw;
    height: auto;
    cursor: pointer;
    transform: scale(0.5);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

#picantillo-text-overlay.show #picantillo-overlay-logo {
    transform: scale(1);
    opacity: 1;
    animation: textPulse 1s infinite alternate;
}

@keyframes textPulse {
    from {
        transform: scale(1);
        filter: brightness(100%);
    }
    to {
        transform: scale(1.04);
        filter: brightness(115%);
    }
}

/* Social links row */
#picantillo-overlay-socials {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

#picantillo-text-overlay.show #picantillo-overlay-socials {
    opacity: 1;
    transform: translateY(0);
}

.overlay-social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease,
                transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.25s ease;
}

.overlay-social-link i {
    font-size: 1.15rem;
}

.overlay-social-link:hover {
    background: #b21010;
    border-color: #b21010;
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(178, 16, 16, 0.55);
    text-decoration: none;
}

/* Hint text */
#picantillo-overlay-hint {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    opacity: 0;
    transition: opacity 0.4s ease 0.6s;
    text-align: center;
    letter-spacing: 0.5px;
}

#picantillo-text-overlay.show #picantillo-overlay-hint {
    opacity: 1;
}

/* ==========================================================================
   Empty Cart Customization
   ========================================================================== */

.picantillo-empty-cart-message {
    text-align: center;
    padding: 60px 20px;
    background: #fdf9f9;
    border-radius: 15px;
    margin: 30px 0 50px 0;
    box-shadow: 0 10px 30px rgba(178, 16, 16, 0.05);
    border: 1px solid rgba(178, 16, 16, 0.1);
}

.empty-cart-chili-icon {
    font-size: 80px;
    color: #b21010;
    margin-bottom: 25px;
    display: inline-block;
    animation: chiliHeartbeat 2s infinite ease-in-out;
}

@keyframes chiliHeartbeat {
    0% { transform: scale(1) rotate(0deg); }
    15% { transform: scale(1.15) rotate(15deg); }
    30% { transform: scale(1.1) rotate(-10deg); }
    45% { transform: scale(1.15) rotate(5deg); }
    60% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.picantillo-empty-cart-message h3 {
    color: #b21010;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 15px;
}

.picantillo-empty-cart-message p {
    font-size: 1.1rem;
    color: #555;
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   PICANTILLO CART PAGE REDESIGN
   Premium & Modern Aesthetic
   ========================================================================== */
.picantillo-cart-page {
    background: #fafafa;
    border-radius: 12px;
}

/* Cart Table Layout */
.picantillo-cart-page table.shop_table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    border: none !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(15, 15, 15, 0.04);
    overflow: hidden;
    margin-bottom: 40px !important;
}

.picantillo-cart-page table.shop_table th {
    background: #fff !important;
    color: #111 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 20px 15px !important;
    border-bottom: 2px solid #f0f0f0 !important;
    text-align: left;
}

.picantillo-cart-page table.shop_table td {
    border-top: none !important;
    border-bottom: 1px solid #f5f5f5 !important;
    padding: 20px 15px !important;
    vertical-align: middle;
}

/* Fix product thumbnail */
.picantillo-cart-page table.cart .product-thumbnail img {
    width: 70px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Product name */
.picantillo-cart-page table.cart .product-name a {
    color: #333;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s;
}

.picantillo-cart-page table.cart .product-name a:hover {
    color: #b21010;
}

/* Price and Subtotal */
.picantillo-cart-page table.cart .product-price .amount,
.picantillo-cart-page table.cart .product-subtotal .amount {
    font-weight: 700;
    color: #b21010;
}

/* Remove button */
.picantillo-cart-page table.cart .product-remove a.remove {
    color: #ff3b3b !important;
    background: rgba(255, 59, 59, 0.1) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 30px !important;
    text-align: center !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.picantillo-cart-page table.cart .product-remove a.remove:hover {
    background: #ff3b3b !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* Quantity Input */
.picantillo-cart-page table.cart .qty {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

/* Coupon & Actions row */
.picantillo-cart-page table.cart td.actions {
    padding: 25px 20px !important;
    background: #fafafa;
}

.picantillo-cart-page .coupon {
    display: flex;
    gap: 10px;
    align-items: center;
}

.picantillo-cart-page .coupon input.input-text {
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    width: 250px !important;
    font-size: 0.95rem;
    box-shadow: none !important;
}

/* General button styling for cart */
.picantillo-cart-page .button,
.picantillo-cart-page .checkout-button {
    background: #b21010 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.95rem !important;
    border: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(178, 16, 16, 0.2) !important;
}

.picantillo-cart-page .button:hover,
.picantillo-cart-page .checkout-button:hover {
    background: #990e0e !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 16, 16, 0.3) !important;
}

/* Update Cart button specific (secondary action) */
.picantillo-cart-page button[name="update_cart"] {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.picantillo-cart-page button[name="update_cart"]:hover {
    background: #f5f5f5 !important;
    border-color: #ccc !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    transform: translateY(-1px);
}
.picantillo-cart-page button[name="update_cart"]:disabled {
    opacity: 0.5;
    transform: none;
    cursor: not-allowed;
}

/* Cart Collaterals (Totals) */
.picantillo-cart-page .cart-collaterals {
    display: flex;
    justify-content: flex-end;
}

.picantillo-cart-page .cart-collaterals .cart_totals {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(15, 15, 15, 0.06);
    border: 1px solid rgba(0,0,0,0.03);
}

.picantillo-cart-page .cart_totals h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #111;
}

.picantillo-cart-page .cart_totals table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.picantillo-cart-page .cart_totals th,
.picantillo-cart-page .cart_totals td {
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: top;
}

.picantillo-cart-page .cart_totals th {
    text-align: left;
    font-weight: 600;
    color: #555;
    width: 40%;
}

.picantillo-cart-page .cart_totals td {
    text-align: right;
    font-weight: 700;
    color: #111;
}

/* Shipment styling */
.picantillo-cart-page ul#shipping_method {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.picantillo-cart-page ul#shipping_method li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.picantillo-cart-page ul#shipping_method input[type="radio"] {
    accent-color: #b21010;
}

.picantillo-cart-page .woocommerce-shipping-destination {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    display: block;
}

.picantillo-cart-page .woocommerce-shipping-calculator {
    text-align: right;
    margin-top: 10px;
}

.picantillo-cart-page .shipping-calculator-button {
    color: #b21010 !important;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Total row */
.picantillo-cart-page .cart_totals tr.order-total th,
.picantillo-cart-page .cart_totals tr.order-total td {
    border-bottom: none;
    padding-top: 20px;
}

.picantillo-cart-page .cart_totals tr.order-total th {
    font-size: 1.2rem;
    color: #111;
}

.picantillo-cart-page .cart_totals tr.order-total td .amount {
    font-size: 1.4rem;
    color: #b21010;
    font-weight: 800;
}

/* Proceed to checkout button */
.picantillo-cart-page .wc-proceed-to-checkout {
    padding: 0;
}

.picantillo-cart-page .wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.1rem !important;
    padding: 16px 24px !important;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .picantillo-cart-page .cart-collaterals .cart_totals {
        max-width: 100%;
    }

    /* Fix: shipping row occupa larghezza piena su mobile */
    .picantillo-cart-page .cart_totals tr.shipping > td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        text-align: left !important;
        padding-left: 0 !important;
    }

    .picantillo-cart-page .cart_totals tr.shipping > th {
        display: block !important;
        width: 100% !important;
        padding-bottom: 4px !important;
    }

    .picantillo-cart-page ul#shipping_method {
        text-align: left;
    }

    .picantillo-cart-page ul#shipping_method li {
        justify-content: flex-start;
    }

    .picantillo-cart-page .woocommerce-shipping-calculator {
        text-align: left;
    }

    .picantillo-cart-page .coupon {
        flex-direction: column;
        align-items: stretch;
    }

    .picantillo-cart-page .coupon input.input-text {
        width: 100% !important;
        margin-bottom: 10px;
    }

    .picantillo-cart-page table.cart td.actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .picantillo-cart-page button[name="update_cart"] {
        width: 100%;
    }
}

/* ==========================================================================
   PICANTILLO CHECKOUT PAGE REDESIGN (BLOCKS)
   Premium & Modern Aesthetic
   ========================================================================== */

/* Main wrapper spacing */
.wc-block-checkout {
    margin-top: 30px;
}

/* Left Column: Form Panels */
.wc-block-checkout__main {
    background: transparent !important;
}

.wc-block-components-checkout-step {
    background: #fff;
    border-radius: 12px;
    padding: 30px !important;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(15, 15, 15, 0.04);
    border: none !important;
}

/* Headings in checkout steps */
fieldset.wc-block-components-checkout-step legend {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.wc-block-components-checkout-step__heading {
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 0 25px 0 !important;
}

h2.wc-block-components-checkout-step__title {
    color: #b21010 !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Inputs styling */
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"] {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 24px 16px 8px !important;
    font-size: 0.95rem !important;
    background: #fafafa !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: none !important;
}

.wc-block-components-text-input input:focus {
    border-color: #b21010 !important;
    background: #fff !important;
    box-shadow: 0 0 0 1px #b21010 !important;
    outline: none !important;
}

/* Floating labels adjustment */
.wc-block-components-text-input label {
    font-weight: 500;
    color: #666;
    padding-left: 0 !important;
}

/* Radio buttons & Payment Accordion container */
.wc-block-components-radio-control {
    border-radius: 8px;
}

.wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option {
    border-radius: 8px !important;
    overflow: hidden !important;
}

.wc-block-components-radio-control__option-layout,
.wc-block-components-radio-control-accordion-option-layout,
.wc-block-components-radio-control-accordion-content {
    border-radius: 8px !important;
}

/* Right Column: Sidebar Summary */
.wc-block-checkout__sidebar {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 8px 30px rgba(15, 15, 15, 0.06) !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
    position: relative;
    overflow: hidden;
}

/* Sidebar Title */
.wc-block-components-totals-wrapper__title,
.wc-block-components-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    margin: 0 0 25px 0 !important;
    padding: 0 !important;
    border: none !important;
    color: #111 !important;
}

/* Sidebar product items */
.wc-block-components-order-summary-item {
    border-bottom: 1px solid #f5f5f5 !important;
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
}

.wc-block-components-order-summary-item__name {
    color: #333 !important;
    font-weight: 600 !important;
}

.wc-block-components-order-summary-item__price {
    color: #b21010 !important;
    font-weight: 700 !important;
}

/* Product Badge (Quantity) */
.wc-block-components-product-badge {
    background: #111 !important;
    color: #fff !important;
    font-weight: 700 !important;
}

/* Totals rows */
.wc-block-components-totals-item {
    padding: 10px 0 !important;
}

.wc-block-components-totals-item__label {
    color: #555 !important;
    font-weight: 500 !important;
}

.wc-block-components-totals-item__value {
    color: #111 !important;
    font-weight: 700 !important;
}

.wc-block-components-totals-item.wc-block-components-totals-footer-item {
    border-top: 2px solid #f0f0f0 !important;
    padding-top: 20px !important;
    margin-top: 10px !important;
}

.wc-block-components-totals-item.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-item.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #b21010 !important;
}

/* Checkout Button */
.wc-block-components-checkout-place-order-button {
    background: #b21010 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 18px 24px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 1.1rem !important;
    border: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(178, 16, 16, 0.2) !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 20px !important;
}

.wc-block-components-checkout-place-order-button:hover {
    background: #990e0e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(178, 16, 16, 0.3) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wc-block-components-checkout-step {
        padding: 20px 16px !important;
    }

    /* Fix: Riepilogo ordine — padding laterale adeguato */
    .wc-block-checkout__sidebar {
        padding: 24px 16px !important;
    }

    /* Item del riepilogo: non tagliano il testo */
    .wc-block-components-order-summary-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .wc-block-components-order-summary-item__individual-prices,
    .wc-block-components-order-summary-item__description {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Righe totali: spacing verticale confortevole */
    .wc-block-components-totals-item {
        padding: 12px 0 !important;
    }

    /* Titolo sidebar */
    .wc-block-components-totals-wrapper__title,
    .wc-block-components-title {
        font-size: 1.3rem !important;
        margin-bottom: 18px !important;
    }
}

/* Fix Checkout Wrapper Width (Match Header 1200px) */
.woocommerce-checkout .picantillo-container {
    max-width: 1200px !important;
}

.woocommerce-checkout .entry-content > *,
.woocommerce-checkout .wp-block-woocommerce-checkout,
.wp-block-woocommerce-checkout {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Adjust column gap on desktop for the wider layout */
@media (min-width: 768px) {
    .wc-block-checkout__main {
        padding-right: 40px !important;
    }
}

/* ─── CHECKOUT MOBILE FIX ───────────────────────────────────────────────────
 * 1. Titolo "Pagamento": spazio enorme sopra/sotto su mobile
 * 2. Sidebar riepilogo ordine: padding laterale adeguato
 * ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {

    /* Titolo pagina checkout (H1 "Pagamento") — margini enormi dal tema base */
    .woocommerce-checkout h1.entry-title,
    .woocommerce-checkout .wp-block-post-title,
    body.woocommerce-checkout h1 {
        font-size: 1.8rem !important;
        margin-top: 16px !important;
        margin-bottom: 16px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Wrapper esterno del checkout block — riduce padding verticale */
    .wc-block-checkout,
    .wp-block-woocommerce-checkout {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Entry-content sul checkout: nessun extra padding-top */
    .woocommerce-checkout .entry-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Sidebar riepilogo ordine — padding laterale sufficiente */
    .wc-block-checkout__sidebar,
    .wc-block-checkout__sidebar > * {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Item prodotto nel riepilogo */
    .wc-block-components-order-summary__button-text,
    .wc-block-components-order-summary {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .wc-block-components-order-summary-item {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Prezzi individuali e descrizione prodotto */
    .wc-block-components-order-summary-item__individual-prices {
        padding: 4px 0 !important;
    }

    /* Righe totali (Subtotale, SwissPost, Totale) */
    .wc-block-components-totals-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .wc-block-components-totals-item {
        padding: 12px 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Coupon accordion */
    .wc-block-components-totals-coupon {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}


/* ============================================================
 * COOKIE BANNER — Picantillo Override
 * Sovrascrive il banner del parent theme con lo stile del sito.
 * Design: barra compatta in basso, colori brand Picantillo.
 * ============================================================ */
.tw-cookie-banner {
    /* Barra orizzontale full-width invece del box flottante */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: translateY(100%) !important;   /* slide in dal basso */
    border-radius: 0 !important;

    /* Sfondo: quasi nero come il footer Picantillo */
    background: rgba(17, 17, 17, 0.97) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: none !important;
    border-top: 3px solid #b21010 !important; /* accento brand */
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35) !important;

    /* Layout orizzontale compatto */
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 12px 24px !important;

    opacity: 0 !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s ease !important;
    z-index: 999999 !important;
}

.tw-cookie-banner.show {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Testo */
.tw-cookie-text {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #aaa !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
}

.tw-cookie-text a {
    color: #b21010 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(178, 16, 16, 0.4) !important;
    transition: border-color 0.2s !important;
}

.tw-cookie-text a:hover {
    border-bottom-color: #b21010 !important;
}

/* Bottoni: affiancati, stile Picantillo */
.tw-cookie-actions {
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
}

.tw-cookie-btn {
    border: none !important;
    padding: 7px 18px !important;
    border-radius: 30px !important;   /* pill — stile btn-cart-header */
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.25s !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
}

/* Rifiuta: discreto, stile outline */
.tw-cookie-btn-decline {
    background: transparent !important;
    color: #888 !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
}
.tw-cookie-btn-decline:hover {
    background: rgba(255,255,255,0.08) !important;
    color: #ccc !important;
    transform: none !important;
}

/* Accetta: rosso brand */
.tw-cookie-btn-accept {
    background: #b21010 !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(178, 16, 16, 0.4) !important;
}
.tw-cookie-btn-accept:hover {
    background: #990e0e !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 14px rgba(178, 16, 16, 0.5) !important;
}

/* Mobile: testo + bottoni su righe separate, più compatto */
@media (max-width: 600px) {
    .tw-cookie-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 12px 16px !important;
        gap: 10px !important;
        bottom: 0 !important;
        width: 100% !important;
    }
    .tw-cookie-actions {
        width: 100% !important;
        flex-direction: row !important;   /* bottoni affiancati anche su mobile */
    }
    .tw-cookie-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 8px 12px !important;
    }
}

/* ============================================================
 * STRIPE PAYMENT BADGE
 * Usato nel footer e nella pagina prodotto.
 * ============================================================ */

/* ── Footer badge ── */
.footer-payment-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 28px;
}

.footer-payment-badge img {
    max-width: 260px;
    width: 100%;
    height: auto;
    opacity: 0.70;
    filter: brightness(1.1) grayscale(0.15);
    transition: opacity 0.3s, filter 0.3s;
    /* Inverte i colori: badge bianco/nero → visibile su sfondo scuro */
    filter: invert(1) brightness(0.85) grayscale(0.1);
}

.footer-payment-badge img:hover {
    opacity: 0.92;
    filter: invert(1) brightness(1.0) grayscale(0);
}

/* ── Product page badge ── */
.picantillo-payment-badge {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 16px 0 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    max-width: 320px;
}

.picantillo-payment-badge img {
    max-width: 240px;
    width: 100%;
    height: auto;
    opacity: 0.72;
    filter: brightness(0.9) grayscale(0.1);
    transition: opacity 0.3s, filter 0.3s;
}

.picantillo-payment-badge img:hover {
    opacity: 0.95;
    filter: brightness(1.0) grayscale(0);
}

/* Su sfondo chiaro la pagina prodotto ha tema light — nessun invert */
body.single-product .picantillo-payment-badge {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

@media (max-width: 576px) {
    .picantillo-payment-badge {
        max-width: 100%;
        justify-content: center;
    }
    .footer-payment-badge img {
        max-width: 200px;
    }
}

/* ============================================================
 * SOCIAL SHARE BAR — Pagina Prodotto
 * ============================================================ */
.picantillo-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 6px;
    flex-wrap: wrap;
}

/* Variante in cima — sopra il titolo, allineata con l'immagine */
.picantillo-share-bar--top {
    margin: 0 0 18px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* Il titolo h1 del prodotto ottiene un po' di spazio */
.picantillo-product-summary .product_title {
    margin-top: 0 !important;
}

.share-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-right: 2px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.88;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    color: #fff !important;
    text-decoration: none !important;
}

.share-facebook  { background: #1877F2; }
.share-twitter   { background: #111;    }
.share-whatsapp  { background: #25D366; }
.share-pinterest { background: #E60023; }
.share-email     { background: #6b7280; }

/* Icona X (SVG inline) — allineamento verticale */
.share-twitter svg {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   CART ANIMATION — fly-to-cart + custom toast
   ══════════════════════════════════════════════════════════════ */

/* Nascondi il banner WooCommerce di default (sostituito dal toast) */
.woocommerce-notices-wrapper .woocommerce-message {
    display: none !important;
}

/* ── Elemento volante ────────────────────────────────────────── */
.picantillo-fly-item {
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.picantillo-fly-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.picantillo-fly-item.fly-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #b21010;
    color: #fff;
    font-size: 28px;
}

/* ── Cart bounce al momento dell'arrivo ─────────────────────── */
@keyframes picantilloBounce {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.30) rotate(-8deg); }
    55%  { transform: scale(0.88) rotate(5deg); }
    75%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.picantillo-cart-bounce {
    animation: picantilloBounce 0.55s ease forwards;
}

/* ── Toast notification ──────────────────────────────────────── */
.picantillo-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(18, 18, 18, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 18px;
    padding: 14px 16px 14px 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.30),
                0 0 0 1px rgba(255, 255, 255, 0.06),
                inset 0 1px 0 rgba(255,255,255,0.05);
    color: #fff;
    max-width: 380px;
    min-width: 260px;
    border-left: 4px solid #b21010;
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.picantillo-toast.toast-out {
    animation: toastSlideOut 0.35s ease forwards;
}

@keyframes toastSlideIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(110%); opacity: 0; }
}

.toast-check {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.4);
}

.toast-body {
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
}

.toast-body strong {
    color: #fff;
}

.toast-cta {
    background: #b21010;
    color: #fff !important;
    padding: 7px 13px;
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
}

.toast-cta:hover {
    background: #8a0c0c;
    transform: translateY(-1px);
    color: #fff !important;
}

.toast-x {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-x:hover {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 480px) {
    .picantillo-toast {
        bottom: 16px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

/* ─── Hero Main Slider: immagini cover ──────────────────────────────────────
   Garantisce che ogni slide del .hero-main-slider occupi l'intera altezza
   definita e che l'immagine di sfondo (.hero-bg-img) copra tutto lo spazio
   in modalità cover, senza lasciare bande grigie o spazi vuoti.
   Preserva il layout boxed con angoli arrotondati e ombra.
   ─────────────────────────────────────────────────────────────────────────── */

/* Wrapper: boxed con padding laterale e centrato */
.hero-section-container {
    padding: 20px 20px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
}

/* Swiper container: angoli arrotondati + ombra (boxed look) */
.hero-main-slider {
    width: 100%;
    background: #111 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
    border-radius: 16px !important;
    overflow: hidden;
}

/* Ogni slide: altezza fissa cover */
.hero-main-slider .swiper-slide {
    position: relative;
    height: clamp(380px, 60vh, 700px);
    overflow: hidden;
}

/* .banner-style3: il div interno che contiene tutto */
.hero-main-slider .swiper-slide .banner-style3 {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: #111; /* fallback mentre l'img carica */
}

/* Immagine di sfondo: assoluta, cover, z-index base */
.hero-main-slider .swiper-slide .hero-bg-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Overlay: sopra l'immagine, sotto il contenuto */
.hero-main-slider .swiper-slide .hero-full-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.06) 60%,
        rgba(0, 0, 0, 0.02) 100%
    );
    z-index: 1;
}

/* Contenuto: sopra overlay */
.hero-main-slider .swiper-slide .hero-content-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 clamp(24px, 6vw, 100px);
}

/* Responsive: mobile */
@media (max-width: 768px) {
    .hero-section-container {
        padding: 12px 12px !important;
    }

    .hero-main-slider {
        border-radius: 12px !important;
    }

    .hero-main-slider .swiper-slide {
        height: clamp(280px, 52vh, 460px);
    }

    .hero-main-slider .swiper-slide .hero-content-container {
        padding: 0 20px;
        justify-content: center;
        text-align: center;
    }

    .hero-main-slider .swiper-slide .hero-text-content {
        align-items: center;
    }
}