/* ===== Header row ===== */
.cms-build-bundle .column.main {
    font-family: NespressoLucas, "Trebuchet MS", Helvetica, Arial, sans-serif !important;
}
.ps-boxes {
    display: grid;
    grid-template-columns: auto 18px auto 18px auto 1fr auto;
    align-items: start;
    gap: 12px;
    margin-bottom: 10px;
}
.ps-plus,
.ps-eq {
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34px;
    font-weight: 100;
}


/* ===== Image-only boxes ===== */

.ps-box.is-selected {
    border: 1px solid #111;
}

.ps-thumb-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}
.ps-box.is-selected .ps-thumb-wrap img,
.ps-box.is-filled .ps-thumb-wrap img {
    display: block;
}
.ps-cta {
    margin-top: 6px;
    background: none;
    border: 0;
    cursor: pointer;
    color: #a07c00;
    font-weight: 500;
    letter-spacing: 3px;
    font-size: 14px;
    line-height: 24px;
    padding: 0;
}

/* ===== Steps & cards ===== */

.bn-catname {
    margin: 0 0 10px;
    font-size: 14px;
    opacity: 0.8;
}
.bn-card {
    border: 1px solid #e5e5e5;
    padding: 14px;
    text-align: center;
    background: #fff;
}
.bn-card .bn-img img {
    max-height: 140px;
    width: 100%;
    object-fit: contain;
}
.bn-selected {
    background: #4f8a10;
}


/* Popup trigger */
.bn-plus {
    padding: 3px;
    color: #fff;
    border: 1px solid #3d8705;
    font-weight: 500;
    background: #3d8705;
    text-decoration: none;
    transition: 0.25s;
    outline: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 3px;
    min-width: 40px;
    cursor: pointer;
}
.bn-plus:hover,
.bn-plus:active,
.bn-plus:focus {
    color: #fff;
    border-color: #3d8705;
    background: #3d8705;
}

/* ===== Quantity Popup ===== */
#qty-popup {
    position: absolute;
    left: 64%;
    background: white;
    bottom: calc(25% + 8px);
    transform: translateX(-50%);
    z-index: 9999;
    display: none; /* JS will only toggle display */
}
.qp-inner {
    min-width: 220px;
}
.qp-grid {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.qp-btn {
    padding: 6px 10px;
    border-right: 1px solid #d5d5d5;
    background: transparent;
    width: auto;
    outline: none;
    border-radius: 0;
    font-weight: 300;
    margin-left: 0;
    font-size: 12px;
    color: #2e2e2e;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}
.qp-custom {
    margin-top: 8px;
    display: flex;
    gap: 0;
}
body .qp-custom input {
    flex: 1;
    padding: 14px 6px;
    border: 1px solid #d5d5d5 !important;
    appearance: none;
    color: #000;
    font-size: 13px;
    margin: 0;
    border-radius: 3px;
    box-shadow: none !important;
    outline: none;
}
#qp-ok {
    cursor: pointer;
    outline: none;
    border: 1px solid #3d8705;
    background: #3d8705;
    color: #fff;
    padding: 0 12px;
    max-width: 75px;
    font-size: 14px;
    font-weight: 200;
    margin-left: -3px;
    border-radius: 0;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* misc */
.ps-select-hint {
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: #a07c00;
}
.btn-shake {
    animation: shake 0.4s;
}
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Slot stacker (no page jump) */
.BundleContainerOverflow {
    max-height: none !important;
    overflow: visible !important;
    -webkit-overflow-scrolling: auto !important;
}
.bn-bundle {
    position: relative;
    transition: height 0.25s ease;
}
.bn-slot {
    opacity: 0;
    pointer-events: none;
    inset: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(8px);
    position: absolute;
}
.bn-slot.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    position: relative;
}
.bn-bundle:not(.bundle-ready) .bn-slot {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
}
.bn-grid {
    padding-bottom: 12px;
}

/* header sticky */
.nespresso-steps .ps-boxes {
    align-items: center;
}

/* cards etc. */
#machineBox {
    border: 1px solid #999;
}
.ps-cta {
    position: relative;
    top: 10px;
    outline: none;
}
.ps-add {
    text-align: center;
}
.MainBannerWithContent {
    max-width: 100%;
    position: relative;
}
.MainBannerWithContent .banner-heading {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    max-width: 98%;
}
.MainBannerWithContent .banner-heading h2 {
    font-size: 33px;
    letter-spacing: 8px;
    line-height: 1.13;
    max-width: 40vw;
    text-align: center;
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
}
.main_container_bundle_product {
    padding: 15px 0;
    display: inline-block;
    margin: 0;
    width: 100%;
    position: relative;
}
.bn-step-title {
    margin: 30px 20px 20px;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 3px;
    line-height: 24px;
    color: #000;
}
.bn-card {
    position: relative;
    width: auto !important;
    display: block !important;
}
.bn-name {
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 3px;
    line-height: 24px;
    font-weight: 700;
    margin: 1% auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 48px;
    -webkit-box-orient: vertical;
}
.bn-price {
    color: #3a7f1c;
    font-weight: 700;
    margin: 8px 0;
    font-size: 14px;
    letter-spacing: 2.5px;
}
.bn-select,
.bn-selected {
    border-radius: 5px;
    width: 45%;
    padding: 10px 25px;
    border: 0;
    cursor: pointer;
    background: #3d8705;
    color: #fff;
    font-weight: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
}
.bn-select:hover,
.bn-selected:hover,
.bn-select:focus,
.bn-selected:focus,
.bn-select:active,
.bn-selected:active {
    box-shadow: rgba(0, 0, 0, 0.3) 0 3px 3px 0;
    background: #3d8705;
    color: #fff;
}
.bn-back,
.bn-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    color: #000;
    width: 20%;
    border-radius: 3px;
    font-size: 20px;
    letter-spacing: 1px;
    padding: 11px 3px;
    border: 0;
    cursor: pointer;
    font-weight: 400;
    text-transform: capitalize;
    line-height: 21px;
    max-width: 20%;
    width: 100%;
}
.bn-back:hover,
.bn-next:hover,
.bn-back:active,
.bn-next:active,
.bn-back:focus,
.bn-next:focus {
    outline: none;
    background: #f3f3f3;
    color: #000;
}
.bn-card .price_icon {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 20px;
    align-items: center;
}
button.bn-next.product_selected {
    background: #fff;
    border: 1px solid #000;
}

/* grid qty */
.qp-inner .qp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 0;
    list-style: none;
}

/* ===== CONFIGURABLE PRODUCT ENHANCEMENTS ===== */
/* Enhanced color swatch styles */
.configurable-options {
    margin: 8px 0;
}

.color-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    transition: opacity 0.2s ease;
}

.color-swatches {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border-color: #999;
}

.color-swatch.selected {
    border-color: #357e00;
    box-shadow: 0 0 0 3px rgba(53, 126, 0, 0.3);
    transform: scale(1.1);
}

.color-swatch.selected::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.more-colors {
    font-size: 10px;
    color: #666;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 12px;
    margin-left: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.more-colors:hover {
    background: #e5e5e5;
    transform: scale(1.05);
}

/* Price animation styles */
.bn-price {
    transition: all 0.3s ease;
}

/* Image transition styles */
.bn-img img {
    transition: opacity 0.3s ease;
}

/* ===== INTENSITY BAR STYLES ===== */
.intensity-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    gap: 2px;
}

.intensity-bar {
    width: 8px;
    height: 16px;
    display: inline-block;
    border-radius: 1px;
    transition: all 0.2s ease;
}

.intensity-bar.filled {
    background-color: #357e00;
    box-shadow: 0 1px 2px rgba(53, 126, 0, 0.3);
}

.intensity-bar.empty {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
}

.intensity-number {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin: 0 4px;
    min-width: 16px;
    text-align: center;
}

.product-attribute__intensity {
    margin: 8px 0;
    padding: 0;
}

/* Hover effects for intensity bars */
.bn-card:hover .intensity-bar.filled {
    background-color: #2d6a00;
    transform: scaleY(1.1);
}

.bn-card:hover .intensity-number {
    color: #357e00;
    font-weight: 700;
}

/* Responsive intensity bars */
@media (max-width: 768px) {
    .intensity-bar {
        width: 6px;
        height: 14px;
    }
    
    .intensity-number {
        font-size: 12px;
        margin: 0 2px;
    }
}

@media (max-width: 480px) {
    .intensity-bar {
        width: 5px;
        height: 12px;
    }
    
    .intensity-number {
        font-size: 11px;
        margin: 0 1px;
    }
}

/* ===== FINAL OVERRIDE ===== */
/* JS sets top/left; ensure no CSS overrides it; keep popup viewport-relative */
/* Mobile */
@media (max-width: 767px) {
    .ps-plus,
    .ps-eq {
        display: none;
    }
    .ps-box {
        width: 65px;
        height: 65px;
        padding: 0;
    }
    .ps-boxes {
        min-height: unset;
        display: flex;
    }
    .ps-add {
        text-align: center;
        min-width: unset;
        font-size: 12px;
        width: auto;
    }
    .ps-total-compact {
        display: none;
    }
    .ps-thumb-wrap {
        min-height: 65px;
    }
    .SelectyourmachineWrapper .nespresso-steps {
        padding: 0 15px 5px;
        width: 100%;
    }
    .MainBannerWithContent img.lazyload.pagebuilder-mobile-only.loaded {
        object-fit: cover;
        max-height: 450px;
        min-height: 390px;
    }
    .nespresso-steps.nespresso-sticky {
        top: 50px;
    }
    .BundleContainerOverflow .bn-bundle .bn-card .bn-img img {
        width: 170px;
        margin-inline: auto;
        object-fit: contain;
    }
    .BundleContainerOverflow .bn-bundle .bn-card {
        padding: 14px 8px;
        border: 1px solid #d6d6d6;
    }
    .ps-cta {
        font-size: 12px;
        letter-spacing: 2px;
    }

    /* Mobile configurable product enhancements */
    .color-swatch {
        width: 24px;
        height: 24px;
    }

    .color-swatches {
        gap: 4px;
    }

    .configurable-options {
        margin: 6px 0;
    }

    .color-label {
        font-size: 11px;
    }
}

/* ===== Simple Product Modal ===== */
.pdm {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: none;
}
.pdm.is-open {
    display: block;
    overflow: auto;
}
.pdmbackdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.pdmdialog {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    padding: 18px;
}
.pdmclose {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #000;
    cursor: pointer;
    font-size: 22px;
    padding: 0px 2px 3px 5px;
    line-height: 1px;
}
.pdmgrid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}
.pdmmedia {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdmmedia img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 380px;
}
.pdmtitle {
    margin: 0 0 8px;
    font-size: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.pdmprice {
    font-size: 20px;
    color: #3a7f1c;
    font-weight: 700;
    margin: 8px 0 16px;
}
@media (max-width: 900px) {
    .pdmdialog {
        margin: 20px 12px;
        padding: 14px;
    }
    .pdmgrid {
        grid-template-columns: 1fr;
    }
    .pdm__media img {
        max-height: 300px;
    }
}

.product-view-attribute-descriptions{
    font-size: 14px;
    line-height: 30px;
    width: 100%;
    box-sizing: border-box;
    float: left;
    margin-bottom: 1em;
}

/* ===== PRODUCT DETAILS POPUP STYLES ===== */
.product-details-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10020;
    display: none;
    overflow-y: auto;
}

.product-details-popup.is-open {
    display: block;
}

.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.popup-dialog {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: popupSlideIn 0.4s ease-out;
    border: 1px solid #e9ecef;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.popup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

/* Media Gallery Section */
.popup-media-section {
    background: #f8f9fa;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.main-image-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    min-height: 400px;
}

.main-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.main-product-image:hover {
    transform: scale(1.05);
}

.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.image-zoom-overlay.active {
    display: flex;
}

.zoomed-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.thumbnail-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    border-color: #357e00;
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: #357e00;
    box-shadow: 0 0 0 2px rgba(53, 126, 0, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Product Information Section */
.popup-info-section {
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 80vh;
}

.product-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 16px;
    height: 16px;
    color: #ffc107;
}

.star.empty {
    color: #ddd;
}

.rating-text {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #357e00;
    margin: 10px 0;
}

.product-description,
.product-short-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.product-short-description {
    font-weight: 500;
    color: #333;
}

/* Key Features */
.key-features {
    margin: 20px 0;
}

.key-features h3 {
    font-size: 18px;
    font-weight: 700;
    color: #357e00;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #357e00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

/* Color Selection */
.color-selection {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.color-selection h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.color-swatches-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.popup-color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.popup-color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: #999;
}

.popup-color-swatch.selected {
    border-color: #357e00;
    box-shadow: 0 0 0 4px rgba(53, 126, 0, 0.3);
    transform: scale(1.1);
}

.popup-color-swatch.selected::after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* Bundle Options */
.bundle-options {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.bundle-option {
    margin-bottom: 15px;
}

.bundle-option-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.bundle-selection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
}

.selection-name {
    font-size: 14px;
    color: #333;
}

.selection-qty {
    font-size: 12px;
    color: #666;
}

/* Action Buttons */
.popup-actions {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.popup-select-btn,
.popup-selected-btn {
    width: 100%;
    padding: 18px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popup-select-btn {
    background: #357e00;
    color: white;
    border: 2px solid #357e00;
}

.popup-select-btn:hover {
    background: #2d6a00;
    border-color: #2d6a00;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(53, 126, 0, 0.4);
}

.popup-select-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(53, 126, 0, 0.3);
}

.popup-selected-btn {
    background: #28a745;
    color: white;
    cursor: default;
    border: 2px solid #28a745;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .popup-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .popup-content {
        grid-template-columns: 1fr;
    }
    
    .popup-media-section {
        order: 2;
        padding: 15px;
    }
    
    .popup-info-section {
        order: 1;
        padding: 20px;
        max-height: none;
    }
    
    .main-image-container {
        min-height: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .popup-dialog {
        margin: 5px;
        border-radius: 8px;
    }
    
    .popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .product-price {
        font-size: 20px;
    }
    
    .popup-select-btn,
    .popup-selected-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .thumbnail-item {
        width: 50px;
        height: 50px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        min-height: auto;
    }
    
    .main-image-container {
        min-height: 250px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .features-grid {
        gap: 10px;
    }
    
    .feature-item {
        padding: 8px;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .feature-text {
        font-size: 12px;
    }
}