/* ==========================================================================
   CURATED COMBOS - ELEMENTOR CONTAINER-READY WOOCOMMERCE WIDGET
   ========================================================================== */

.cc-curated-combos {
    --cc-primary: #a9783f;
    --cc-primary-dark: #8d6333;
    --cc-text: #382a22;
    --cc-muted: #766d67;
    --cc-border: #e4dfd8;
    --cc-card-bg: #ffffff;
    --cc-page-bg: #f8f2e9;
    --cc-badge-text: #ffffff;
    --cc-save-bg: #e7eceb;
    --cc-save-text: #566464;
    --cc-content-max-width: 100%;

    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: var(--cc-page-bg);
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    position: relative;
    min-width: 0; /* Prevents flex container overflow */
}

.cc-curated-combos,
.cc-curated-combos *,
.cc-curated-combos *::before,
.cc-curated-combos *::after {
    box-sizing: border-box;
}

.elementor-widget-curated_combos_woocommerce .elementor-widget-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.cc-section-heading {
    width: 100%;
    max-width: var(--cc-content-max-width, 700px);
    margin: 0 auto 45px;
    text-align: center;
    min-width: 0;
}

.cc-subtitle {
    display: block;
    margin-bottom: 10px;
    color: var(--cc-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cc-section-heading .cc-main-heading,
.cc-section-heading h2 {
    margin: 0 0 12px;
    color: var(--cc-text);
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 3.8vw, 50px);
    font-weight: 600;
    font-style: italic;
    line-height: 1.2;
    word-break: break-word;
}

.cc-section-heading .cc-header-desc,
.cc-section-heading p {
    margin: 0;
    color: var(--cc-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ==========================================================================
   FILTER BAR (CATEGORY & BADGE FILTERS)
   ========================================================================== */
.cc-filter-wrapper {
    width: 100%;
    max-width: var(--cc-content-max-width, 1280px);
    margin: 0 auto 40px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--cc-border);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(80, 55, 35, 0.04);
    min-width: 0;
}

.cc-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.cc-filter-label {
    color: var(--cc-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-right: 4px;
}

.cc-filter-btn {
    appearance: none;
    -webkit-appearance: none;
    padding: 7px 16px;
    background: transparent;
    border: 1px solid var(--cc-border);
    border-radius: 50px;
    color: var(--cc-text);
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.cc-filter-btn:hover {
    border-color: var(--cc-primary);
    color: var(--cc-primary);
    transform: translateY(-1px);
}

.cc-filter-btn.active {
    background: var(--cc-primary);
    color: #ffffff;
    border-color: var(--cc-primary);
    box-shadow: 0 4px 12px rgba(169, 120, 63, 0.25);
}

/* ==========================================================================
   COMBOS GRID
   ========================================================================== */
.cc-combos-grid {
    width: 100%;
    max-width: var(--cc-content-max-width, 1280px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    position: relative;
    min-width: 0;
}

.cc-no-combos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: var(--cc-muted);
    font-size: 14px;
    font-style: italic;
}

/* ==========================================================================
   COMBO CARD
   ========================================================================== */
.cc-combo-card {
    position: relative;
    width: 100%;
    min-height: 520px;
    padding: 34px 28px 28px;
    display: flex;
    flex-direction: column;
    background: var(--cc-card-bg);
    border: 1px solid var(--cc-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(80, 55, 35, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.35s ease;
    min-width: 0;
    opacity: 1;
}

.cc-combo-card:hover {
    transform: translateY(-8px);
    border-color: rgba(169, 120, 63, 0.4);
    box-shadow: 0 18px 45px rgba(80, 55, 35, 0.12);
}

/* ==========================================================================
   BADGE
   ========================================================================== */
.cc-badge {
    position: absolute;
    top: 20px;
    right: 22px;
    z-index: 5;
    padding: 8px 16px;
    background: var(--cc-primary);
    color: var(--cc-badge-text);
    border-radius: 50px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(100, 65, 25, 0.15);
    pointer-events: none;
    white-space: nowrap;
}

/* ==========================================================================
   COMBO IMAGES & PLUS SEPARATOR
   ========================================================================== */
.cc-combo-images {
    width: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: nowrap;
}

.cc-product-image {
    width: 108px;
    height: 108px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #f5efe9;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 12px rgba(30, 20, 15, 0.22);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    position: relative;
}

.cc-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.cc-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cc-combo-card:hover .cc-product-image {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(30, 20, 15, 0.28);
}

.cc-combo-card:hover .cc-product-image img {
    transform: scale(1.08);
}

.cc-plus {
    color: var(--cc-primary);
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-2px);
    user-select: none;
    flex-shrink: 0;
}

/* ==========================================================================
   COMBO CONTENT
   ========================================================================== */
.cc-combo-content {
    text-align: center;
    padding: 6px 4px 18px;
    width: 100%;
}

.cc-combo-content h3 {
    margin: 0 0 10px;
    color: var(--cc-text);
    font-family: 'Playfair Display', serif;
    font-size: clamp(21px, 1.8vw, 27px);
    font-weight: 600;
    font-style: italic;
    line-height: 1.3;
    word-break: break-word;
}

.cc-combo-content h3 span {
    color: inherit;
}

.cc-combo-content h3 em {
    color: var(--cc-primary);
    font-style: normal;
    padding: 0 3px;
}

.cc-description {
    max-width: 320px;
    margin: 0 auto;
    color: var(--cc-muted);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.65;
    word-break: break-word;
}

/* ==========================================================================
   PRICING AREA
   ========================================================================== */
.cc-pricing {
    width: 100%;
    margin-top: auto;
    padding: 22px 0 14px;
    border-top: 1px solid var(--cc-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cc-old-price {
    color: #8a827d;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.cc-current-price {
    color: var(--cc-primary);
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cc-save-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    background: var(--cc-save-bg);
    color: var(--cc-save-text);
    border-radius: 50px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==========================================================================
   DIVIDER & ACTIONS
   ========================================================================== */
.cc-divider {
    width: 100%;
    height: 1px;
    background: var(--cc-border);
    margin-bottom: 20px;
}

.cc-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Add to Cart Button */
.cc-add-cart-btn {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    background: var(--cc-primary);
    color: #ffffff;
    border: 1px solid var(--cc-primary);
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
    white-space: nowrap;
}

.cc-add-cart-btn:hover {
    background: var(--cc-primary-dark);
    border-color: var(--cc-primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

.cc-add-cart-btn.loading {
    opacity: 0.75;
    pointer-events: none;
}

.cc-add-cart-btn.loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: cc-spin 0.6s linear infinite;
    margin-left: 6px;
}

.cc-add-cart-btn.added {
    background: #1a3c34;
    border-color: #1a3c34;
}

@keyframes cc-spin {
    to { transform: rotate(360deg); }
}

/* Details Button */
.cc-details-btn {
    display: inline-flex;
    padding: 4px 10px;
    color: var(--cc-primary);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.cc-details-btn::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--cc-primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.cc-details-btn:hover {
    color: var(--cc-primary-dark);
    letter-spacing: 1.9px;
}

.cc-details-btn:hover::after {
    width: calc(100% - 10px);
}

/* Filter state */
.cc-combo-card.cc-hidden {
    display: none !important;
}

.cc-combo-card.cc-animating {
    animation: ccFadeIn 0.35s ease forwards;
}

@keyframes ccFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
    .cc-combos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .cc-combo-card {
        min-height: 490px;
    }
}

@media (max-width: 767px) {
    .cc-section-heading {
        margin-bottom: 25px;
    }

    .cc-section-heading .cc-main-heading,
    .cc-section-heading h2 {
        font-size: 30px;
    }

    .cc-combos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cc-combo-card {
        min-height: auto;
        padding: 26px 20px 22px;
    }

    .cc-product-image {
        width: 90px;
        height: 90px;
    }

    .cc-combo-images {
        gap: 12px;
        min-height: 110px;
    }

    .cc-combo-content h3 {
        font-size: 22px;
    }

    .cc-current-price {
        font-size: 26px;
    }
}

@media (max-width: 420px) {
    .cc-product-image {
        width: 76px;
        height: 76px;
    }

    .cc-combo-images {
        gap: 8px;
    }

    .cc-plus {
        font-size: 22px;
    }

    .cc-combo-content h3 {
        font-size: 19px;
    }

/* ==========================================================================
   POPUP MODAL (VIEW COMBO DETAILS)
   ========================================================================== */
.cc-modal-backdrop {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: rgba(30, 22, 16, 0.68) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    box-sizing: border-box;
}

.cc-modal-backdrop.cc-modal-open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.cc-modal-container {
    position: relative;
    width: 100%;
    max-width: 820px;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.92) translateY(18px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.cc-modal-backdrop.cc-modal-open .cc-modal-container {
    transform: scale(1) translateY(0);
}

.cc-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f4f0eb;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #4a3d35;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.cc-modal-close:hover {
    background: var(--cc-primary, #a9783f);
    color: #ffffff;
    transform: rotate(90deg);
}

.cc-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    min-height: 420px;
    align-items: stretch;
}

.cc-modal-image-col {
    width: 100%;
    height: 100%;
    min-height: 380px;
    position: relative;
    background: #fbf8f4;
    overflow: hidden;
}

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

.cc-modal-content-col {
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.cc-modal-subtitle {
    display: block;
    color: var(--cc-primary, #a9783f);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cc-modal-title {
    margin: 0 0 16px;
    color: var(--cc-text, #2e2118);
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 600;
    font-style: italic;
    line-height: 1.25;
    word-break: break-word;
}

.cc-modal-title span {
    color: inherit;
}

.cc-modal-title em {
    color: var(--cc-primary, #a9783f);
    font-style: normal;
    padding: 0 3px;
}

.cc-modal-description {
    margin: 0 0 24px;
    color: var(--cc-muted, #6a615b);
    font-size: 13px;
    line-height: 1.75;
    word-break: break-word;
}

.cc-modal-pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.cc-modal-old-price {
    color: #9c948e;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    text-decoration: line-through;
}

.cc-modal-price {
    color: var(--cc-primary, #a9783f);
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cc-modal-add-cart-btn {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 20px;
    background: var(--cc-primary, #a9783f);
    color: #ffffff;
    border: 1px solid var(--cc-primary, #a9783f);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.cc-modal-add-cart-btn:hover {
    background: var(--cc-primary-dark, #8d6333);
    border-color: var(--cc-primary-dark, #8d6333);
    transform: translateY(-2px);
}

.cc-modal-add-cart-btn.loading {
    opacity: 0.75;
    pointer-events: none;
}

.cc-modal-add-cart-btn.loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: cc-spin 0.6s linear infinite;
    margin-left: 6px;
}

.cc-modal-add-cart-btn.added {
    background: #1a3c34;
    border-color: #1a3c34;
}

/* ==========================================================================
   MODAL RESPONSIVE
   ========================================================================== */
@media (max-width: 767px) {
    .cc-modal-container {
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 14px;
    }

    .cc-modal-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .cc-modal-image-col {
        height: 220px;
        min-height: 220px;
    }

    .cc-modal-content-col {
        padding: 26px 22px 30px;
    }

    .cc-modal-title {
        font-size: 24px;
    }

    .cc-modal-price {
        font-size: 26px;
    }

    .cc-modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

