/**
 * AC Widgets CSS
 * Styles for all custom Audiocostruzioni widgets
 *
 * @package AC_Child
 */

/* ========================================
   Membership Points Widget
   ======================================== */

.ac-membership-points {
    padding: 60px 40px;
    background-color: transparent;
}

.ac-mp-container {
    max-width: 1400px;
    margin: 0 auto;
}

.ac-mp-header {
    text-align: center;
    margin-bottom: 40px;
}

.ac-mp-heading {
    font-family: 'Lato', sans-serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #000;
}

.ac-mp-points {
    font-family: 'Delight', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: #000;
}

.ac-mp-levels {
    position: relative;
    height: 30px;
    margin-bottom: 10px;
    font-family: 'Delight', sans-serif;
}

.ac-mp-level {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

.ac-mp-level-name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
}

.ac-mp-progress-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.ac-mp-progress-bar {
    position: relative;
    width: 100%;
    height: 16px;
    background-color: transparent;
    border: 1px solid #000;
    border-radius: 20px;
}

.ac-mp-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #FFFFFF;
    z-index: 3;
}

.ac-mp-marker-outside {
    background-color: #000 !important;
}

.ac-mp-progress-fill {
    position: absolute;
    left: -1px;
    top: -1px;
    height: calc(100% + 2px);
    background-color: #c35326;
    border-radius: 20px;
    transition: width 0.3s ease;
    z-index: 2;
}

/* Ensure fill has full radius if 100% */
.ac-mp-progress-fill[style*="width: 100%"] {
    border-radius: 20px;
}

.ac-mp-progress-indicator {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #FFFFFF;
    border-radius: 50%;
}

.ac-mp-progress-labels {
    position: relative;
    top: 20px;
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
}

.ac-mp-current-level {
    font-family: 'Delight', sans-serif;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
    color: #000;
}

.ac-mp-next-level {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: #000;
}

/* Membership Points - Responsive Styles */
@media (max-width: 768px) {
    .ac-membership-points {
        padding: 40px 20px;
    }
    
    .ac-mp-heading {
        font-size: 16px;
    }
    
    .ac-mp-points {
        font-size: 36px;
    }
    
    .ac-mp-level-name {
        font-size: 12px;
    }
    
    .ac-mp-current-level {
        font-size: 20px;
    }
    
    .ac-mp-next-level {
        font-size: 14px;
    }
    
    /* Prevent progress labels from overflowing on mobile */
    .ac-mp-progress-labels {
        margin-left: 0 !important;
        position: absolute;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: calc(100% - 40px);
        text-align: center;
    }
}

/* ========================================
   Testimonials Widget
   ======================================== */

/* Testimonials Section */
.footer-testimonials-section {
    padding: 80px 0 60px;
    position: relative;
}

.footer-testimonials-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background-color: #ffffff;
}

.testimonials-heading {
    font-family: "Delight", sans-serif;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 50px;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: none;
}

.testimonials-slider {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.slider-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.slider-arrow:hover {
    opacity: 0.7;
}

.testimonials-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
    padding-bottom: 10px; /* Space for scrollbar if visible */
}

.testimonials-container::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    background: #ffffff;
    color: #000000;
    display: flex;
    min-width: 650px;
    border: 4px solid #000000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Dark Card Variant (2nd item) */
.testimonial-card:nth-child(2) {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 4px solid #ffffff;
}

.testimonial-content {
    padding: 35px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-image {
    width: 280px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.quote-icon {
    color: #c35326;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.quote-icon svg {
    display: block;
}

.testimonial-card:nth-child(2) .quote-icon {
    color: #ffffff;
}

.stars {
    color: #c35326;
    letter-spacing: 2px;
    font-size: 16px;
    line-height: 1;
}

.testimonial-card:nth-child(2) .stars {
    color: #ffffff;
}

.testimonial-title {
    font-family: "Delight", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 20px;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 400;
}

.testimonial-meta {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    gap: 24px;
    letter-spacing: 0.5px;
}

.testimonial-meta .client,
.testimonial-meta .location {
    font-weight: 600;
}

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

    .footer-testimonials-section .grid-container {
        padding: 0 20px;
    }
    .testimonials-heading {
        font-size: 32px;
    }
    .testimonial-card {
        min-width: 100%;
        width: 100%;
        flex-direction: column;
        box-sizing: border-box;
    }
    .testimonial-image {
        display: none;
    }
}

/* ========================================
   Order Summary & Order Details Widgets
   Shared Components
   ======================================== */

.ac-order-summary,
.ac-order-details {
    padding: 40px 0;
}

/* Header Bar / Info Grid - Shared Pattern */
.ac-os-header,
.ac-od-bank-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 0 0 40px 0;
    flex-wrap: wrap;
}

.ac-od-bank-grid {
    margin-bottom: 30px;
}

.ac-os-header-item,
.ac-od-bank-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 1 auto;
    min-width: fit-content;
}

.ac-os-header-item:first-child,
.ac-od-bank-item:first-child {
    padding-left: 0;
}

.ac-os-header-divider {
    width: 1px;
    height: 40px;
    background-color: #000;
    align-self: center;
}

.ac-os-header-label,
.ac-od-bank-label {
    font-size: 11px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ac-os-header-value,
.ac-od-bank-value {
    font-family: 'Delight', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

/* Section Titles with Underline */
.ac-os-details {
    padding: 40px 0;
}

.ac-os-details-title,
.ac-od-bank-title,
.ac-od-info-title {
    font-family: 'Delight', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0 0 10px 0;
    padding-bottom: 15px;
    position: relative;
    display: inline-block;
}

.ac-od-bank-title,
.ac-od-info-title {
    font-size: 28px;
    margin-bottom: 30px;
}

.ac-os-details-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150%;
    height: 1px;
    background-color: #000;
}

.ac-od-info-title::after {
    width: 100%;
}

/* Table Structure - Shared Pattern */
.ac-os-table,
.ac-od-info-table {
    max-width: 100%;
    margin-top: 28px;
}

.ac-os-table.ac-os-table-extra,
.ac-od-info-table {
    margin-top: 30px;
}

.ac-os-table-header {
    display: flex;
    padding: 0;
    border-bottom: 1px solid #000;
}

.ac-os-table-header .ac-os-table-col {
    font-size: 20px;
    font-family: 'Delight', sans-serif;
}

.ac-os-table-col,
.ac-od-info-label,
.ac-od-info-value {
    font-size: 14px;
    color: #000;
    padding: 6px 20px;
}

.ac-os-col-product,
.ac-od-info-label {
    width: 50%;
    font-weight: 700;
    border-right: 1px solid #000;
}

.ac-od-info-label {
    font-family: 'Delight', sans-serif;
    font-size: 16px;
    padding: 20px;
    background-color: #fff;
}

.ac-os-col-price,
.ac-od-info-value {
    width: 50%;
    font-weight: 400;
}

.ac-od-info-value {
    padding: 20px;
    background-color: #FCF5F1;
}

.ac-os-table-header .ac-os-col-price {
    font-weight: 700;
}

.ac-os-table-body {
    background-color: #FCF5F1;
    padding: 0;
}

/* Add borders when table body is used without header/footer */
.ac-os-table:not(:has(.ac-os-table-header)) .ac-os-table-body {
    border-top: 1px solid #000;
}

.ac-os-table:not(:has(.ac-os-table-footer)) .ac-os-table-body {
    border-bottom: 1px solid #000;
}

.ac-os-table-row,
.ac-od-info-row {
    display: flex;
    padding: 0;
}

.ac-od-info-row {
    border-bottom: 1px solid #000;
}

.ac-od-info-row:first-child {
    border-top: 1px solid #000;
}

.ac-os-table-body .ac-os-table-row:first-child .ac-os-table-col {
    padding-top: 20px;
}

.ac-os-table-body .ac-os-table-row:last-child .ac-os-table-col {
    padding-bottom: 20px;
}

.ac-os-table-footer .ac-os-table-row .ac-os-table-col {
    padding-top: 20px;
}

.ac-os-table-header .ac-os-table-col {
    padding-bottom: 10px;
}

.ac-os-product-row .ac-os-col-product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ac-os-product-name,
.ac-os-product-qty {
    font-family: 'Delight', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.ac-os-row-label {
    font-family: 'Delight', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.ac-os-table-footer {
    padding: 0;
    border-top: 1px solid #000;
}

.ac-os-total-row {
    padding: 0;
    border-bottom: none;
}

.ac-os-total-label {
    font-family: 'Delight', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.ac-os-total-value {
    font-family: 'Delight', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-right: 10px;
}

.ac-os-tax-info {
    font-size: 13px;
    font-weight: 400;
    color: #666;
    line-height: 30px;
}

.ac-os-table-footer .ac-os-col-price {
    display: flex;
    flex-wrap: wrap;
}

/* Addresses Section */
.ac-os-addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px 0;
}

.ac-os-address-col {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ac-os-address-title {
    font-family: 'Delight', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin: 0 0 25px 0;
}

.ac-os-address-box {
    border: 1px solid #000;
    border-radius: 20px;
    padding: 25px 30px;
    flex: 1;
    height: 100%;
}

.ac-os-address-box p {
    font-size: 15px;
    font-weight: 400;
    color: #000;
    margin: 0;
    padding: 8px 0;
    line-height: 1.4;
}

/* Download Button & Icon Styling */
.ac-os-button-wrapper {
    text-align: center;
    padding: 20px 0;
}

.ac-os-icon {
    margin-right: 8px;
}

/* Order Summary & Details - Responsive Styles */
@media (max-width: 1024px) {
    .ac-os-header {
        gap: 20px;
    }
    
    .ac-os-header-item {
        padding: 0 20px;
    }
    
    .ac-os-details-title {
        font-size: 28px;
    }
    
    .ac-os-addresses {
        gap: 30px;
    }
    
    .ac-os-address-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .ac-order-summary {
        padding: 20px 0;
    }
    
    .ac-os-header {
        flex-direction: column;
        gap: 15px;
        padding-bottom: 30px;
    }
    
    .ac-os-header-item {
        padding: 0;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 10px;
    }
    
    .ac-os-header-item:first-child {
        padding-left: 0;
    }
    
    .ac-os-header-divider {
        display: none;
    }
    
    .ac-os-details {
        padding: 30px 0;
    }
    
    .ac-os-details-title {
        font-size: 24px;
        width: 75%;
    }

    .ac-os-details-title::after {
        width: 90%;
    }

    .ac-os-table-header .ac-os-table-col {
        font-size: 16px;
    }
    
    .ac-os-table {
        margin-top: 30px;
    }
    
    .ac-os-product-row .ac-os-col-product {
        align-items: flex-start;
        gap: 5px;
    }
    
    .ac-os-addresses {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 0;
    }
    
    .ac-os-address-col {
        max-width: 100%;
    }
    
    .ac-os-address-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .ac-os-address-box {
        padding: 20px;
    }
    
    .ac-os-address-box p {
        font-size: 14px;
        padding: 6px 0;
    }
    
    .ac-os-button-wrapper {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    /* Mobile-specific styles for ac-os-header */
    .ac-os-header {
        flex-direction: column;
        gap: 0;
        padding-bottom: 30px;
    }
    
    .ac-os-header-item {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid #e0e0e0;
        gap: 5px;
    }
    
    .ac-os-header-item:first-child {
        padding-top: 0;
    }
    
    .ac-os-header-item:last-child {
        border-bottom: none;
    }
    
}

/* ========================================
   Order Details Specific Sections
   ======================================== */

/* Bank Transfer Section */
.ac-od-bank-section {
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ac-od-bank-instructions {
    margin-top: 30px;
}

.ac-od-bank-instructions p {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    margin: 0 0 15px 0;
}

.ac-od-bank-instructions p.ac-od-bank-email {
    font-weight: 900;
    font-size: 16px;
}

/* Additional Information Section */
.ac-od-additional-info {
    padding: 40px 0 20px 0;
}

/* Order Details Specific - Responsive Styles */
@media (max-width: 1024px) {
    .ac-od-bank-title,
    .ac-od-info-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .ac-order-summary,
    .ac-order-details {
        padding: 20px 0;
    }
    
    .ac-od-bank-section {
        padding: 30px 0;
    }
    
    .ac-od-bank-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .ac-od-bank-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .ac-od-bank-grid .ac-os-header-divider {
        display: none;
    }
    
    .ac-od-bank-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 10px;
    }
    
    .ac-od-bank-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .ac-od-bank-instructions p {
        font-size: 13px;
    }
    
    .ac-od-additional-info {
        padding: 30px 0 20px 0;
    }
    
    .ac-od-info-title {
        font-size: 22px;
    }
    
    .ac-od-info-table {
        margin-top: 20px;
    }
    
    .ac-od-info-row {
        flex-direction: column;
    }
    
    .ac-od-info-label,
    .ac-od-info-value {
        width: 100%;
        border-right: none;
    }
    
    .ac-od-info-label {
        padding: 15px 20px 8px 20px;
        border-bottom: none;
    }
    
    .ac-od-info-value {
        padding: 8px 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .ac-od-bank-grid {
        flex-direction: column;
        gap: 0;
    }
    
    .ac-od-bank-grid .ac-os-header-divider {
        display: none;
    }
    
    .ac-od-bank-item {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid #e0e0e0;
        gap: 5px;
    }
    
    .ac-od-bank-item:first-child {
        padding-top: 0;
    }
    
    .ac-od-bank-item:last-child {
        border-bottom: none;
    }
    
    .ac-od-bank-title,
    .ac-od-info-title {
        font-size: 20px;
    }
    
    .ac-od-bank-value {
        font-size: 14px;
        word-break: break-all;
    }
    
    .ac-od-info-label {
        font-size: 14px;
    }
    
    .ac-od-info-value {
        font-size: 13px;
    }
}

/* ========================================
   Trade-Up Catalog Widget
   ======================================== */

.ac-trade-up-catalog {
    font-family: 'Lato', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Category Header */
.ac-trade-up-category {
    border-bottom: 1px solid #E5E5E5;
}

.ac-trade-up-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ac-trade-up-category-header h3 {
    font-family: 'Delight', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.ac-trade-up-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: transform 0.3s ease;
}

.ac-trade-up-category-header.active .ac-trade-up-toggle-icon {
    transform: rotate(180deg);
}

/* Category Content */
.ac-trade-up-category-content {
    padding-bottom: 24px;
}

/* Product Pair Container */
.ac-trade-up-pair {
    display: grid;
    grid-template-columns: 1fr auto 1fr 200px;
    align-items: center;
    gap: 30px;
    background-color: #F5F1ED;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 16px;
}

.ac-trade-up-pair:last-child {
    margin-bottom: 0;
}

/* Individual Product */
.ac-trade-up-product {
    display: flex;
    flex-direction: column;
}

.ac-trade-up-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.ac-trade-up-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ac-trade-up-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ac-trade-up-product-image .ac-trade-up-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #ccc;
}

/* Cart Icon - Visual Indicator - matches ac-product-cart-status */
.ac-trade-up-cart-icon,
.ac-trade-up-cart-icon-editor {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    pointer-events: none; /* Not clickable - just visual indicator */
}

/* Default state - shopping bag icon (outline style) */
.ac-trade-up-cart-icon svg,
.ac-trade-up-cart-icon-editor svg {
    width: 22px;
    height: 22px;
}

/* In-cart state - filled style handled by SVG fill attribute */

/* Product Info */
.ac-trade-up-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ac-trade-up-product-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}

.ac-trade-up-product-name {
    font-family: 'Delight', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #000;
    line-height: 1.3;
}

.ac-trade-up-product-category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}

.ac-trade-up-product-category {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.ac-trade-up-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-trade-up-current-price {
    font-family: 'Delight', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.ac-trade-up-old-price {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

.ac-trade-up-old-price del,
del.ac-trade-up-old-price {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

/* Arrow */
.ac-trade-up-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.ac-trade-up-arrow svg {
    width: 60px;
    height: auto;
}

/* Hide mobile arrow by default (desktop view) */
.ac-trade-up-arrow-mobile {
    display: none;
}

/* Conguaglio Section */
.ac-trade-up-conguaglio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ac-trade-up-conguaglio-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.ac-trade-up-conguaglio-label {
    font-family: 'Delight', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
}

.ac-trade-up-conguaglio-price {
    font-family: 'Delight', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
}

/* Button */
.ac-trade-up-button,
button.ac-trade-up-button {
    display: inline-block;
    padding: 16px 32px;
    border: 1px solid #000 !important;
    background: transparent;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 180px;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.ac-trade-up-button:hover,
button.ac-trade-up-button:hover {
    background: #000;
    color: #fff !important;
}

/* Trade-Up Catalog - Responsive Styles */
@media (max-width: 1024px) {
    .ac-trade-up-pair {
        grid-template-columns: 1fr 40px 1fr 180px;
        gap: 20px;
        padding: 20px;
    }
    
    .ac-trade-up-conguaglio-label {
        font-size: 22px;
    }
    
    .ac-trade-up-conguaglio-price {
        font-size: 26px;
    }
    
    .ac-trade-up-button {
        padding: 14px 24px;
        font-size: 13px;
        min-width: 150px;
        font-weight: 700;
    }
}

@media (max-width: 768px) {
    .ac-trade-up-category-header h3 {
        font-size: 20px;
    }
    
    .ac-trade-up-pair {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 16px;
        padding: 25px;
        position: relative;
    }
    
    /* Hide desktop arrow, show mobile arrow */
    .ac-trade-up-arrow-desktop {
        display: none;
    }
    
    .ac-trade-up-arrow-mobile {
        display: block;
    }
    
    /* Arrow positioned above the images */
    .ac-trade-up-arrow {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
        width: auto;
        height: auto;
    }
    
    /* Bridge shape arrow SVG - above images */
    .ac-trade-up-arrow svg {
        width: 90px;
        height: 22px;
    }
    
    /* First product - positioned left */
    .ac-trade-up-pair > .ac-trade-up-product:nth-of-type(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    /* Second product - positioned right */
    .ac-trade-up-pair > .ac-trade-up-product:nth-of-type(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    /* Conguaglio section - full width at bottom */
    .ac-trade-up-conguaglio {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-top: 16px;
        border-top: 1px solid #ddd;
    }
    
    .ac-trade-up-conguaglio-inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px 24px;
    }
    
    .ac-trade-up-conguaglio-label,
    .ac-trade-up-conguaglio-price {
        font-size: 20px;
    }
    
    /* Smaller product images for mobile side-by-side */
    .ac-trade-up-product-image {
        aspect-ratio: 4 / 3;
        margin-bottom: 12px;
    }
    
    /* Smaller cart icon on mobile */
    .ac-trade-up-cart-icon {
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
    }
    
    .ac-trade-up-cart-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .ac-trade-up-product-info-row,
    .ac-trade-up-product-category-row {
        padding: 0 4px;
    }
    
    .ac-trade-up-product-name {
        font-size: 14px;
        line-height: 1.2;
    }
    
    .ac-trade-up-current-price {
        font-size: 14px;
    }
    
    .ac-trade-up-product-category {
        font-size: 11px;
    }
    
    .ac-trade-up-old-price,
    .ac-trade-up-old-price del,
    del.ac-trade-up-old-price {
        font-size: 10px;
    }
    
    /* Button sizing for mobile */
    .ac-trade-up-button {
        padding: 12px 20px;
        font-size: 12px;
        min-width: 140px;
    }
}

/* ========================================
   Collection Form Widget
   ======================================== */

.ac-collection-form {
    font-family: 'Lato', sans-serif;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.ac-collection-form-inner {
    width: 100%;
}

/* Two Column Layout */
.ac-form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Form Rows */
.ac-form-row {
    margin-bottom: 30px;
}

.ac-form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ac-form-field {
    width: 100%;
}

.ac-form-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.ac-form-label.ac-slider-label {
    font-size: 16px;
    font-weight: 700;
}

/* Inputs */
.ac-form-input,
.ac-form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    background-color: transparent !important;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #000;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.ac-form-input:focus,
.ac-form-textarea:focus {
    outline: none;
    border-color: #C55A30;
    background-color: #FFFFFF !important;
}

.ac-form-input::placeholder {
    color: #666;
}

.ac-form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Delivery Tabs */
.ac-collection-tabs {
    display: flex;
    margin-bottom: 30px;
    border-radius: 6px;
    overflow: hidden;
}

.ac-tab {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.ac-tab input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ac-tab span {
    display: block;
    padding: 16px 20px;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    background-color: #E8E4E0;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ac-tab.active span,
.ac-tab input:checked + span {
    background-color: #C55A30;
    color: #fff;
}

/* Address Row */
.ac-address-row {
    margin-bottom: 30px;
}

.ac-address-text {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #000;
    margin: 0;
    line-height: 1.5;
}

/* Sliders */
.ac-slider-row {
    margin-bottom: 40px;
}

.ac-slider-container {
    position: relative;
    padding: 10px 0;
}

.ac-slider-track {
    position: relative;
    height: 4px;
    background-color: #D0CCC8;
    border-radius: 2px;
}

.ac-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #C55A30;
    border-radius: 2px;
    width: 75%;
}

.ac-slider-marks {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
}

.ac-slider-mark {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #fff;
    transform: translateX(-50%);
}

.ac-slider {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 44px;
    transform: translateY(-50%);
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    margin: 0;
    padding: 0;
}

.ac-slider-thumb {
    position: absolute;
    top: 2px;
    left: 75%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background-color: #C55A30;
    border-radius: 50%;
    pointer-events: none;
    transition: left 0.1s ease;
}

.ac-slider-thumb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background-color: transparent;
}

.ac-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #000;
}

/* Image Upload Grid */
.ac-upload-row {
    margin-bottom: 40px;
}

.ac-upload-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.ac-upload-box {
    position: relative;
    aspect-ratio: 1;
    background-color: #D0CCC8;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-upload-box:hover {
    background-color: #C0BCB8;
}

.ac-upload-box.dragover {
    background-color: #C55A30;
}

.ac-upload-box.has-image {
    background-color: transparent;
}

.ac-upload-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ac-upload-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-upload-icon {
    color: #fff;
    transition: color 0.2s ease;
}

.ac-upload-icon svg {
    display: block;
}

.ac-upload-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    display: none;
}

.ac-upload-box.has-image .ac-upload-preview {
    display: block;
}

.ac-upload-box.has-image .ac-upload-content {
    display: none;
}

.ac-upload-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background-color: #C55A30;
    color: #fff;
    padding: 0;
    border: none;
    border-radius: 25% !important;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.ac-upload-remove:hover {
    background-color: #FFFFFF;
}

.ac-upload-box.has-image .ac-upload-remove {
    display: flex;
}

/* Submit Button */
.ac-form-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}

.ac-submit-btn {
    display: inline-block;
    padding: 18px 40px;
    background-color: transparent;
    color: #000;
    border: 2px solid #000;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 220px;
}

.ac-submit-btn:hover {
    background-color: #000;
    color: #fff;
}

/* Error States */
.ac-form-input.error,
.ac-form-textarea.error {
    border-color: #E74C3C;
}

/* Phone Input Styling */
input[name="telefono"] {
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.5px;
}

input[name="telefono"]:valid {
    border-color: #27ae60;
}

input[name="telefono"]:focus:invalid:not(:placeholder-shown) {
    border-color: #E74C3C;
}

.ac-upload-grid.error .ac-upload-box {
    border: 2px solid #E74C3C;
}

/* Collection Form - Responsive Styles */
@media (max-width: 1200px) {
    .ac-collection-form {
        padding: 50px 40px;
    }
    
    .ac-form-columns {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .ac-form-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ac-collection-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .ac-upload-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ac-collection-form {
        padding: 20px;
    }
    
    .ac-collection-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .ac-form-row-two {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ac-form-row {
        margin-bottom: 20px;
    }
    
    .ac-form-label {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .ac-form-input,
    .ac-form-textarea {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .ac-tab span {
        padding: 14px 10px;
        font-size: 12px;
    }
    
    .ac-slider-labels {
        font-size: 12px;
    }
    
    .ac-upload-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .ac-form-submit-row {
        justify-content: center;
    }
    
    .ac-submit-btn {
        width: 80%;
        min-width: auto;
        padding: 16px 30px;
    }
    
}

@media (max-width: 480px) {
    .ac-collection-form {
        padding: 15px;
    }
    
    .ac-collection-title {
        font-size: 24px;
    }
    
    .ac-upload-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ac-upload-icon svg {
        width: 20px;
        height: 20px;
    }
    
}

/* ========================================
   Toast Notifications
   ======================================== */

.ac-toast {
    position: fixed;
    top: 100px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    transform: translateX(150%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
    line-height: 1.5;
}

.ac-toast--visible {
    transform: translateX(0);
}

.ac-toast--success {
    background-color: #27ae60;
}

.ac-toast--error {
    background-color: #e74c3c;
}

.ac-toast__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.ac-toast__message {
    flex: 1;
}

/* Form Loading State */
.ac-form-loading {
    position: relative;
    pointer-events: none;
}

.ac-form-loading::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(202, 202, 202, 0.7);
    z-index: 100;
}

/* Loading Spinner */
.ac-form-loading::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid #fff;
    border-top-color: #C55A30;
    border-radius: 50%;
    animation: ac-spin 1s linear infinite;
    z-index: 101;
}

@keyframes ac-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Toast Responsive Styles */
@media (max-width: 768px) {
    .ac-toast {
        top: auto;
        bottom: 30px;
        right: 20px;
        left: 20px;
        max-width: none;
        transform: translateY(150%);
    }
    
    .ac-toast--visible {
        transform: translateY(0);
    }
    
}

/* ========================================
   Trade-Up Popup Form
   ======================================== */

.ac-trade-up-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ac-trade-up-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ac-trade-up-popup {
    background-color: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ac-trade-up-popup-overlay.active .ac-trade-up-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close Button */
.ac-trade-up-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0;
    border-radius: 50%;
}

.ac-trade-up-popup-close:hover {
    color: #000;
    transform: rotate(90deg);
    background-color: #f5f5f5;
}

.ac-trade-up-popup-close svg {
    width: 20px;
    height: 20px;
}

/* Popup Header */
.ac-trade-up-popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.ac-trade-up-popup-title {
    font-family: 'Delight', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.ac-trade-up-popup-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Products Display */
.ac-trade-up-popup-products {
    background-color: #F5F1ED;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.ac-trade-up-popup-product {
    flex: 1;
    text-align: center;
}

.ac-trade-up-popup-product-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.ac-trade-up-popup-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ac-trade-up-popup-product-name {
    display: block;
    font-family: 'Delight', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}

.ac-trade-up-popup-arrow {
    color: #C55A30;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ac-trade-up-popup-arrow svg {
    width: 24px;
    height: 24px;
}

/* Conguaglio Display */
.ac-trade-up-popup-conguaglio {
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
    text-align: center;
}

.ac-trade-up-popup-conguaglio-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.ac-trade-up-popup-conguaglio-value {
    display: block;
    font-family: 'Delight', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #C55A30;
    line-height: 1.2;
}

/* Form Fields */
.ac-trade-up-popup-form {
    width: 100%;
}

.ac-trade-up-popup-field {
    margin-bottom: 20px;
}

.ac-trade-up-popup-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.ac-trade-up-popup-input,
.ac-trade-up-popup-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    background-color: transparent;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #000;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.ac-trade-up-popup-input:focus,
.ac-trade-up-popup-textarea:focus {
    outline: none;
    border-color: #C55A30;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(197, 90, 48, 0.1);
}

.ac-trade-up-popup-input::placeholder,
.ac-trade-up-popup-textarea::placeholder {
    color: #999;
}

.ac-trade-up-popup-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Error States */
.ac-trade-up-popup-input.error,
.ac-trade-up-popup-textarea.error {
    border-color: #E74C3C;
}

.ac-trade-up-popup-input.error:focus,
.ac-trade-up-popup-textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Submit Button */
.ac-trade-up-popup-submit {
    margin-top: 30px;
}

.ac-trade-up-popup-submit .ac-trade-up-button {
    width: 100%;
    min-width: auto;
}

.ac-trade-up-popup-submit .ac-trade-up-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading State for Popup Button */
.ac-trade-up-popup-submit .ac-trade-up-button.loading {
    position: relative;
    color: transparent;
}

.ac-trade-up-popup-submit .ac-trade-up-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ac-popup-spin 0.8s linear infinite;
}

@keyframes ac-popup-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Styles for Popup */
@media (max-width: 768px) {
    .ac-trade-up-popup-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .ac-trade-up-popup {
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        padding: 30px 20px;
        transform: translateY(100%);
    }
    
    .ac-trade-up-popup-overlay.active .ac-trade-up-popup {
        transform: translateY(0);
    }
    
    .ac-trade-up-popup-title {
        font-size: 24px;
    }
    
    .ac-trade-up-popup-products {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .ac-trade-up-popup-arrow {
        transform: rotate(90deg);
    }
    
    .ac-trade-up-popup-product-name {
        font-size: 13px;
    }
}

/* ========================================
   Nuovi Arrivi (New Arrivals) Widget
   ======================================== */

.ac-nuovi-arrivi-section {
    padding: 60px 0;
    background-color: #ffffff;
}

/* Header Styles */
.ac-nuovi-arrivi-header {
    margin-bottom: 40px;
}

.ac-nuovi-arrivi-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px 0 40px;
}

.ac-nuovi-arrivi-heading {
    font-family: "Delight", sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.2;
}

.ac-nuovi-arrivi-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.ac-nuovi-arrivi-arrow:hover {
    opacity: 0.7;
}

.ac-nuovi-arrivi-arrow svg {
    display: block;
}

/* Products Grid */

.ac-nuovi-arrivi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ac-nuovi-arrivi-grid .ac-product-card {
    margin: 0;
}

.ac-nuovi-arrivi-grid .ac-product-card-inner {
    position: relative;
}

/* Product badges wrapper */
.ac-nuovi-arrivi-grid .ac-product-badges-wrapper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Footer with Button */
.ac-nuovi-arrivi-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px 0 20px;
}

/* Border Button with Arrow - Orange Color */
.ac-nuovi-arrivi-button.arrow-btn {
    color: #C55A30;
}

/* Border Button with Arrow - Blog Slider (Black Color) */
.ac-blog-slider-button.arrow-btn {
    color: #000000;
}

.ac-blog-slider-button.arrow-btn a {
    color: #000000;
    text-decoration: none;
}

/* Product Placeholder for Editor */
.ac-product-placeholder {
    opacity: 0.8;
}

/* Progress Bar - Hidden on Desktop by default */
.ac-nuovi-arrivi-progress {
    display: none;
}

/* Nuovi Arrivi - Responsive Styles */
@media (max-width: 1024px) {
    .ac-nuovi-arrivi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .ac-nuovi-arrivi-heading {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .ac-nuovi-arrivi-section {
        padding: 40px 0 0;
    }

    .ac-nuovi-arrivi-title-row {
        padding: 0 20px;
    }
    
    .ac-nuovi-arrivi-heading {
        font-size: 28px;
    }
    
    .ac-nuovi-arrivi-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    /* Mobile Slider Styles */
    .ac-nuovi-arrivi-products {
        overflow: hidden;
        position: relative;
    }
    
    .ac-nuovi-arrivi-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 20px;
        padding: 0;
    }
    
    .ac-nuovi-arrivi-grid::-webkit-scrollbar {
        display: none;
    }
    
    .ac-nuovi-arrivi-grid .ac-product-card {
        flex: 0 0 100%;
        min-width: 100%;
        scroll-snap-align: start;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .ac-nuovi-arrivi-grid .ac-product-card:first-child {
        padding-left: 0;
    }
    
    .ac-nuovi-arrivi-grid .ac-product-card:last-child {
        padding-right: 0;
    }
    
    /* Progress Bar - Mobile Only */
    .ac-nuovi-arrivi-progress {
        display: block;
        width: calc(100% - 40px);
        height: 2px;
        background-color: #E5E5E5;
        margin: 24px 20px 0;
        position: relative;
        overflow: hidden;
    }
    
    .ac-nuovi-arrivi-progress-bar {
        height: 100%;
        background-color: #000000;
        transition: width 0.3s ease;
    }
    
    /* Footer aligned right on mobile */
    .ac-nuovi-arrivi-footer {
        justify-content: flex-end;
        padding: 0 20px;
        margin-top: 10px;
    }
    
    .ac-nuovi-arrivi-button.border-btn {
        font-size: 12px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .ac-nuovi-arrivi-heading {
        font-size: 24px;
    }
    
    .ac-nuovi-arrivi-grid .ac-product-card {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 0 8px;
    }
    
    .ac-nuovi-arrivi-grid .ac-product-card:first-child {
        padding-left: 0;
    }
    
    .ac-nuovi-arrivi-grid .ac-product-card:last-child {
        padding-right: 0;
    }
}

/* ========================================
   Nostra Selezione (Best Sellers) Widget
   ======================================== */

.ac-nostra-selezione-section {
    padding: 50px 0;
    background-color: #ffffff;
}

/* Header Styles */
.ac-nostra-selezione-header {
    margin-bottom: 20px;
}

.ac-nostra-selezione-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 0 40px 0 20px;
}

.ac-nostra-selezione-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ac-nostra-selezione-subtitle {
    font-family: "Lato", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ac-nostra-selezione-heading {
    font-family: "Delight", sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.2;
}

/* Category Tabs */
.ac-nostra-selezione-tabs {
    display: flex;
    align-items: center;
    gap: 32px;
}

.ac-nostra-selezione-tab {
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    background: none;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    position: relative;
}

.ac-nostra-selezione-tab:hover {
    color: #C55A30;
}

.ac-nostra-selezione-tab.active {
    color: #C55A30;
}

.ac-nostra-selezione-tabs-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.ac-nostra-selezione-tabs-arrow:hover {
    opacity: 0.7;
}

.ac-nostra-selezione-tabs-arrow svg {
    display: block;
}

/* Products Grid */
.ac-nostra-selezione-products {
    position: relative;
    min-height: 200px;
}

.ac-nostra-selezione-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.ac-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top-color: #C55A30;
    border-radius: 50%;
    animation: ac-nostra-selezione-spin 1s linear infinite;
}

@keyframes ac-nostra-selezione-spin {
    to {
        transform: rotate(360deg);
    }
}

.ac-nostra-selezione-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
}

.ac-nostra-selezione-grid.loading {
    opacity: 0.5;
}

.ac-nostra-selezione-grid .ac-product-card {
    margin: 0;
}

.ac-nostra-selezione-grid .ac-product-card-inner {
    position: relative;
}

/* Product badges wrapper */
.ac-nostra-selezione-grid .ac-product-badges-wrapper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Additional badge styles */
.ac-nostra-selezione-grid .ac-badge-bestseller {
    background-color: #C55A30;
    color: #ffffff;
}

.ac-nostra-selezione-grid .ac-badge-backstock {
    background-color: #C55A30;
    color: #ffffff;
}

.ac-nostra-selezione-grid .ac-badge-exdemo {
    background-color: transparent;
    border: 1px solid #C55A30;
    color: #C55A30;
}

/* Footer with Button */
.ac-nostra-selezione-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px 0 20px;
}

/* No products message */
.ac-nostra-selezione-grid .ac-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    color: #666666;
}

/* Product Placeholder for Editor */
.ac-nostra-selezione-grid .ac-product-placeholder {
    opacity: 0.8;
}

/* Progress Bar - Hidden on Desktop by default */
.ac-nostra-selezione-progress {
    display: none;
}

/* Nostra Selezione - Responsive Styles */
@media (max-width: 1200px) {
    .ac-nostra-selezione-tabs {
        gap: 20px;
    }
    
    .ac-nostra-selezione-tab {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .ac-nostra-selezione-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 0 20px;
    }
    
    .ac-nostra-selezione-tabs {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .ac-nostra-selezione-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .ac-nostra-selezione-heading {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .ac-nostra-selezione-section {
        padding: 40px 0 0;
    }
    
    .ac-nostra-selezione-header {
        margin-bottom: 30px;
    }
    
    .ac-nostra-selezione-title-row {
        padding: 0 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .ac-nostra-selezione-heading {
        font-size: 28px;
    }
    
    .ac-nostra-selezione-subtitle {
        font-size: 12px;
    }
    
    .ac-nostra-selezione-tabs {
        gap: 16px;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .ac-nostra-selezione-tab {
        font-size: 13px;
        padding: 6px 0;
    }
    
    /* Mobile Slider Styles */
    .ac-nostra-selezione-products {
        overflow: hidden;
        position: relative;
    }
    
    .ac-nostra-selezione-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 20px;
        padding: 0;
    }
    
    .ac-nostra-selezione-grid::-webkit-scrollbar {
        display: none;
    }
    
    .ac-nostra-selezione-grid .ac-product-card {
        flex: 0 0 100%;
        min-width: 100%;
        scroll-snap-align: start;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .ac-nostra-selezione-grid .ac-product-card:first-child {
        padding-left: 0;
    }
    
    .ac-nostra-selezione-grid .ac-product-card:last-child {
        padding-right: 0;
    }
    
    /* Progress Bar - Mobile Only */
    .ac-nostra-selezione-progress {
        display: block;
        width: calc(100% - 40px);
        height: 2px;
        background-color: #E5E5E5;
        margin: 24px 20px 0;
        position: relative;
        overflow: hidden;
    }
    
    .ac-nostra-selezione-progress-bar {
        height: 100%;
        background-color: #000000;
        transition: width 0.3s ease;
    }
    
    /* Footer aligned right on mobile */
    .ac-nostra-selezione-footer {
        justify-content: flex-end;
        padding: 0 20px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .ac-nostra-selezione-heading {
        font-size: 24px;
    }
    
    .ac-nostra-selezione-tabs {
        gap: 12px;
    }
    
    .ac-nostra-selezione-tab {
        font-size: 12px;
    }
    
    .ac-nostra-selezione-grid .ac-product-card {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 0 8px;
    }
    
    .ac-nostra-selezione-grid .ac-product-card:first-child {
        padding-left: 0;
    }
    
    .ac-nostra-selezione-grid .ac-product-card:last-child {
        padding-right: 0;
    }
}

/* ========================================
   Blog Posts Slider Widget
   ======================================== */

.ac-blog-slider-section {
    padding: 60px 0;
    background-color: #ffffff;
}

/* Header Styles */
.ac-blog-slider-header {
    margin-bottom: 50px;
    padding: 0 40px;
}

.ac-blog-slider-label {
    display: block;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.ac-blog-slider-heading {
    font-family: "Delight", sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: #000000;
    margin: 0 0 20px 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

.ac-blog-slider-description {
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.6;
    max-width: 900px;
    margin: 0;
}

/* Slider Wrapper */
.ac-blog-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    padding: 0 20px;
}

/* Slider Arrows */
.ac-blog-slider-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    flex-shrink: 0;
    color: #000000;
}

.ac-blog-slider-arrow:hover:not(:disabled) {
    opacity: 0.7;
}

.ac-blog-slider-arrow:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed;
}

.ac-blog-slider-arrow svg {
    display: block;
    width: 24px;
    height: 44px;
}

/* Slider Container */
.ac-blog-slider-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ac-blog-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
}

/* Blog Cards */
.ac-blog-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: calc(33.333% - 16px);
    background-color: #C55A30;
    border: 4px solid #C55A30;
    box-shadow: inset 0 0 0 4px #ffffff;
    position: relative;
    height: 420px; /* Fixed height for equal cards */
}

.ac-blog-card:nth-child(even) {
    background-color: #1A1A1A;
    border-color: #1A1A1A;
}

.ac-blog-card-inner {
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.ac-blog-card-title {
    font-family: "Delight", sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-height: 95px;
    overflow: hidden;
}

.ac-blog-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ac-blog-card-title a:hover {
    opacity: 0.8;
}

/* Card Content */
.ac-blog-card-content {
    font-family: "Lato", sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* Content Text Wrapper - fills available space */
.ac-blog-card-content-text {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Fade effect at bottom of content */
.ac-blog-card-content-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2em;
    pointer-events: none;
}

.ac-blog-card:nth-child(odd) .ac-blog-card-content-text::after {
    background: linear-gradient(to bottom, rgba(197, 90, 48, 0), rgba(197, 90, 48, 1));
}

.ac-blog-card:nth-child(even) .ac-blog-card-content-text::after {
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0), rgba(26, 26, 26, 1));
}

/* Spacer between content and read more button */
.ac-blog-card-fade-separator {
    height: 8px;
    flex-shrink: 0;
}

.ac-blog-card-content p {
    margin: 0 0 12px 0;
    color: #ffffff;
    text-align: justify;
}

.ac-blog-card-content p:last-child {
    margin-bottom: 0;
}

/* Converted headings in content (h1, h2, h3 only) - larger font size */
.ac-blog-card-content .ac-card-heading {
    display: block;
    font-family: "Delight", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 12px 0 8px 0;
}

/* Regular strong tags stay inline without special styling */
.ac-blog-card-content strong:not(.ac-card-heading) {
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
}

/* Ensure lists display properly */
.ac-blog-card-content ul,
.ac-blog-card-content ol {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.ac-blog-card-content ul {
    list-style-type: disc;
}

.ac-blog-card-content ol {
    list-style-type: decimal;
}

.ac-blog-card-content li {
    margin-bottom: 6px;
    color: #ffffff;
    line-height: 1.5;
}

/* Ensure paragraphs and lists have proper spacing */
.ac-blog-card-content p {
    margin: 0 0 10px 0;
}



/* Read More Link - Centered on new line, pushed to bottom */
.ac-blog-card-readmore {
    display: block;
    text-align: center;
    font-family: "Lato", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
    padding: 8px 0;
    flex-shrink: 0;
    margin-top: auto;
}

.ac-blog-card-readmore:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Footer Button */
.ac-blog-slider-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    padding: 0 40px;
}

/* Editor Preview Classes */
.ac-blog-card-orange {
    background-color: #C55A30;
    outline-color: #C55A30;
}

.ac-blog-card-dark {
    background-color: #1A1A1A;
    outline-color: #1A1A1A;
}

/* Blog Posts Slider - Responsive Styles */
@media (max-width: 1200px) {
    .ac-blog-card {
        flex: 0 0 calc(50% - 12px);
        min-width: calc(50% - 12px);
    }
    
    .ac-blog-slider-heading {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .ac-blog-slider-section {
        padding: 0;
    }
    
    .ac-blog-slider-header {
        padding: 0 20px;
        margin-bottom: 30px;
    }
    
    .ac-blog-slider-label {
        font-size: 12px;
    }
    
    .ac-blog-slider-heading {
        font-size: 36px;
    }
    
    .ac-blog-slider-description {
        font-size: 14px;
    }
    
    .ac-blog-slider-wrapper {
        padding: 0 10px;
        gap: 10px;
    }
    
    .ac-blog-slider-arrow svg {
        width: 24px;
        height: 44px;
    }
    
    .ac-blog-card {
        flex: 0 0 calc(100% - 0px);
        min-width: calc(100% - 0px);
        height: 380px;
    }
    
    .ac-blog-card-inner {
        padding: 20px;
    }
    
    .ac-blog-card-title {
        font-size: 22px;
        max-height: 80px;
    }
    
    .ac-blog-card-content {
        font-size: 13px;
    }
    
    .ac-blog-card-content-text {
        max-height: none;
    }
    
    .ac-blog-card-content .ac-card-heading,
    .ac-blog-card-content strong {
        font-size: 14px;
    }
    
    .ac-blog-card-readmore {
        padding: 6px 0;
        font-size: 12px;
    }
    
    .ac-blog-slider-footer {
        margin-top: 30px;
        padding: 0 0 0 20px;
    }
}

@media (max-width: 480px) {
    .ac-blog-slider-heading {
        font-size: 28px;
    }
    
    .ac-blog-slider-description {
        font-size: 13px;
    }
    
    .ac-blog-card-inner {
        padding: 20px;
    }
    
    .ac-blog-card-title {
        font-size: 16px;
        max-height: 60px;
    }
    
    .ac-blog-card-content-text {
        max-height: none;
    }
}