/* =============================================================================
   Ideabox Add to Cart Popup — Frontend CSS
   Design: Full-bleed image left, dark right panel, yellow CTA
   ============================================================================= */

/* ── Overlay ──────────────────────────────────────────────────────────────── */
.ideabox-atc-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.72);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Use flex when shown (JS sets display via fadeIn — we override to flex) */
.ideabox-atc-popup-overlay.ideabox-visible {
    display: flex !important;
}

/* ── Container: two-column card ──────────────────────────────────────────── */
.ideabox-atc-popup-container {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 780px;
    min-height: 440px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
    animation: ideabox-zoom-in 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    background: #111111;
}

@keyframes ideabox-zoom-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1);    }
}

/* ── Close button ────────────────────────────────────────────────────────── */
.ideabox-atc-popup-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    padding: 4px 6px;
    opacity: 0.75;
    transition: opacity 0.2s;
}
.ideabox-atc-popup-close:hover { opacity: 1; }



/* ── Left column: product image ──────────────────────────────────────────── */


.ideabox-atc-popup-image-wrapper{
    padding: 50px;
}

.ideabox-atc-popup-image {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: none;
    padding: 32px;
    box-sizing: border-box;
}

.ideabox-atc-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-height: 380px;
}

/* ── Right column: content ───────────────────────────────────────────────── */
.ideabox-atc-popup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 36px 32px;
    background: #111111;
    color: #ffffff;
    justify-content: center;
    gap: 0;
}

/* ── Header: eyebrow + title ─────────────────────────────────────────────── */
.ideabox-atc-popup-header {
    margin-bottom: 16px;
}

.ideabox-atc-popup-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FDCC07;           /* yellowish — same family as CTA */
    margin: 0 0 8px;
}

.ideabox-atc-popup-header h3 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #ffffff;
    margin: 0;
}

/* ── Short description ───────────────────────────────────────────────────── */
.ideabox-atc-popup-short-desc {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,0.65);
    margin: 0 0 20px;
}
.ideabox-atc-popup-short-desc p { margin: 0; }

/* ── Price ───────────────────────────────────────────────────────────────── */
.ideabox-atc-popup-price {
    font-size: 26px;
    font-weight: 700;
    color: #FDCC07;           /* yellowish */
    margin: 0 0 28px;
    line-height: 1;
}
.ideabox-atc-popup-price .amount { color: inherit; }
.ideabox-atc-popup-price del     { opacity: 0.45; font-size: 0.7em; margin-right: 6px; }
.ideabox-atc-popup-price ins     { text-decoration: none; }

/* ── Quantity / attributes ───────────────────────────────────────────────── */
.ideabox-atc-popup-quantity,
.ideabox-atc-popup-attributes {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 20px;
}
.ideabox-atc-popup-attributes ul {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}
.ideabox-atc-popup-attributes li { margin-bottom: 4px; }

/* ── Action buttons ──────────────────────────────────────────────────────── */
.ideabox-atc-popup-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.ideabox-atc-btn-checkout,
.ideabox-atc-btn-shop {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
    box-sizing: border-box;
}
.ideabox-atc-btn-checkout:hover,
.ideabox-atc-btn-shop:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Checkout: yellow fill */
.ideabox-atc-btn-checkout {
    background-color: #FDCC07;
    color: #111111;
}

/* View Cart: dark outlined */
.ideabox-atc-btn-shop {
    background-color: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255,255,255,0.35);
}
.ideabox-atc-btn-shop:hover {
    border-color: rgba(255,255,255,0.7);
    color: #ffffff;
}

/* ── Shipping notice ─────────────────────────────────────────────────────── */
.ideabox-atc-popup-shipping {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}
.ideabox-atc-popup-shipping svg {
    flex-shrink: 0;
    opacity: 0.55;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 620px) {
    .ideabox-atc-popup-overlay { padding: 0; align-items: flex-end; }
    .ideabox-atc-popup-container {
        flex-direction: column;
        max-width: 100%;
        min-height: auto;
        border-radius: 16px 16px 0 0;
        animation: ideabox-slide-up 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    }
    @keyframes ideabox-slide-up {
        from { opacity: 0; transform: translateY(40px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .ideabox-atc-popup-image {
        flex: none;
        width: 100%;
        max-width: 100%;
        padding: 28px 24px 16px;
        min-height: auto;
        background: none;
    }
    .ideabox-atc-popup-image img {
        width: auto;
        max-width: 100%;
        max-height: 240px;
        margin: 0 auto;
        display: block;
        object-fit: contain;
    }
    .ideabox-atc-popup-content { padding: 20px 24px 32px; }
    .ideabox-atc-popup-header h3 { font-size: 22px; }
}
