
/* Joom Modern Product UI */

body.single-product,
body.single-product .site,
body.single-product .site-main {
    background: transparent !important;
}

a.added_to_cart,
a.added_to_cart.wc-forward,
body.single-product .woocommerce-message a.button.wc-forward {
    display: none !important;
}

.joom-product-container {
    max-width: 1240px;
    margin: 40px auto;
    padding: 0 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #222;
}

.joom-product-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 991px) {
    .joom-product-layout {
        flex-direction: column;
    }
}

/* Gallery Section */
.joom-product-gallery {
    flex: 1;
    max-width: 550px;
    position: static;
    top: auto;
}

.joom-gallery-wrapper {
    display: flex;
    gap: 15px;
}

.joom-thumbnails-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 60px;
    flex-shrink: 0;
}

.joom-thumb-item {
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 0;
}

.joom-thumb-item.active {
    border: 2px solid #0f172a;
}

.joom-thumb-item img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.joom-main-image {
    width: 486px;
    height: 486px;
    aspect-ratio: 1 / 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

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

/* Gallery Navigation Arrows */
.joom-gallery-nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none; /* Allow clicks through to the image for swiping */
    z-index: 10;
}

.joom-gallery-arrow {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto; /* Re-enable clicks for buttons */
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    color: #0f172a;
    font-size: 16px;
    padding: 0 !important;
}

.joom-gallery-arrow i {
    line-height: 1;
    display: block;
}

.joom-gallery-arrow:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: #FA3434;
}

.joom-gallery-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.joom-image-nav {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 13px;
}

/* Summary Section */
.joom-product-summary {
    flex: 1;
    padding-top: 10px;
}

.joom-product-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.joom-actions-top {
    display: flex;
    gap: 12px;
}

/* Hide mobile image overlay version on desktop */
.joom-product-gallery .joom-actions-top {
    display: none;
}

.joom-breadcrumb {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 0;
    flex: 1;
}

.joom-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}
.joom-breadcrumb a:hover {
    color: #0f172a;
}

.joom-product-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #0f172a;
    letter-spacing: -0.5px;
}

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

.joom-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #FA3434;
}

.joom-rating-score {
    font-weight: 800;
    color: #0f172a;
    font-size: 16px;
}

.joom-sales-count {
    color: #64748b;
    font-size: 14px;
    border-left: 1px solid #e2e8f0;
    padding-left: 10px;
    font-weight: 500;
}

.joom-price-section {
    border-top: none !important;
    padding-top: 25px;
    margin-bottom: 0;
}

.joom-price-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.joom-price-content {
    flex: 1;
}

.joom-button-content {
    flex: 0 0 172px;
    padding-top: 10px;
}

.joom-price-label {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 0px;
    line-height: 1.2;
}

.joom-price-value {
    color: #000;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1;
}

.joom-price-sub {
    font-size: 14px;
    color: #757575;
    margin-bottom: 12px;
}

.joom-select-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid #d1fae5;
    box-sizing: border-box;
    cursor: pointer;
}

.joom-badge-arrow {
    font-size: 10px;
    color: #999;
    margin-left: 2px;
}

.joom-select-text {
    font-weight: 800;
    font-size: 13px;
    color: #000;
}

.joom-select-sub {
    color: #f64343;
    font-style: italic;
    font-weight: 700;
    font-size: 13px;
}

.joom-badge-delivery-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: nowrap;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
}

.joom-delivery-dates.joom-delivery-dates-inline {
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #059669;
    background: #ecfdf5;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 12px;
    gap: 6px;
    border: 1px solid #d1fae5;
    box-sizing: border-box;
    min-width: 0;
    flex: 0 1 auto;
    width: fit-content;
}

.joom-delivery-date-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add to Cart styling override */
.joom-button-content .single_add_to_cart_button {
    width: 100% !important;
    background: #FF4747 !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border: none !important;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.joom-button-content form.cart {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
}

.joom-button-content .variations {
    margin-bottom: 10px;
    width: 100%;
}

/* Reviews Section */
.joom-reviews-container {
    border-top: 1px solid #eee;
    margin-top: 30px; /* Reduced from 50px for better vertical rhythm and SEO */
    padding-top: 30px; /* Reduced from 40px */
}

.joom-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

.joom-review-count {
    color: #888;
}

.joom-verified-only-msg {
    font-size: 13px;
    color: #8b90a6;
    background: #f8f9fa;
    padding: 8px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #eee;
}

.joom-verified-only-msg i {
    color: #ffb800;
}

.joom-rating-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.joom-rating-big {
    font-size: 36px;
    font-weight: 800;
}

.joom-review-filters {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping to avoid horizontal scroll */
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.joom-filter-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    color: #475569;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.joom-filter-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}

.joom-filter-btn.active {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ---- Final Pixel Tuning (Reference Match) ---- */
.joom-product-container {
    max-width: 1300px;
    padding: 0 1.5rem;
    margin: 14px auto 0;
    color: #111;
}

.joom-top-breadcrumb {
    font-size: 12px;
    line-height: 1.35;
    color: #8f95a8;
    margin: 0 0 14px;
}

.joom-top-breadcrumb a {
    color: #8f95a8;
    text-decoration: none;
}

.joom-top-breadcrumb .delimiter {
    margin: 0 6px;
    color: #c0c4d0;
}

.joom-product-layout {
    display: grid;
    grid-template-columns: minmax(640px, 1fr) minmax(560px, 760px);
    gap: 30px;
    align-items: start;
}

.joom-gallery-wrapper {
    gap: 14px;
}

.joom-thumbnails-vertical {
    width: 86px;
    gap: 10px;
}

.joom-thumb-item {
    border-radius: 12px;
    background: #f3f4f8;
    border: 1px solid #eceef3;
    padding: 0;
}

.joom-thumb-item.active {
    border: 2px solid #181818;
}

.joom-main-image {
    width: 486px;
    height: 486px;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: #f3f4f8;
    border: 1px solid #eceef3;
    flex-shrink: 0;
}

.joom-image-nav {
    left: 14px;
    bottom: 14px;
    font-size: 13px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.joom-title-row {
    position: relative;
    margin-bottom: 4px;
}

.joom-product-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    color: #111;
    padding-right: 136px;
}

.joom-actions-top {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 14px;
}

.joom-share-btn-round {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 1px solid #dbdee6 !important;
    font-size: 16px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    color: #111827 !important;
}

.joom-rating-row {
    margin: 4px 0 8px;
    gap: 10px;
}

.joom-rating-score {
    font-size: 16px;
    line-height: 1;
}

.joom-sales-count {
    font-size: 16px;
    color: #8b90a6;
    border: 0;
    padding: 0;
}

.joom-price-section {
    border-top: 1px solid #d9dce4;
    padding: 20px 0 0;
    margin: 0;
}

.joom-price-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.joom-price-label,
.joom-price-value,
.joom-price-value .woocommerce-Price-amount {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 500;
    color: #111;
    margin: 0;
}

.joom-price-sub {
    margin: 8px 0 10px;
    font-size: 12px;
    line-height: 1.3;
    color: #8b90a5;
}

.joom-price-value ins {
    text-decoration: none !important;
}

.joom-select-badge {
    background: #ecfdf5;
    border-radius: 12px;
    padding: 6px 10px;
    border: 1px solid #d1fae5;
    box-sizing: border-box;
    gap: 4px;
}

.joom-select-text {
    font-size: 14px;
    font-weight: 500;
}

.joom-select-sub {
    font-size: 14px;
    font-weight: 500;
}

.joom-badge-arrow {
    font-size: 14px;
    line-height: 1;
    color: #a5aabc;
}

.joom-button-content {
    flex: 0 0 172px;
    padding-top: 8px;
}

.joom-button-content form.cart {
    margin: 0;
}

.joom-button-content .quantity,
.joom-button-content table.variations,
.joom-button-content .single_variation_wrap .woocommerce-variation-price,
.joom-button-content .single_variation_wrap .woocommerce-variation-description,
.joom-button-content .single_variation_wrap .quantity {
    display: none !important;
}

/* Display WooCommerce Stock Status */
.joom-button-content .stock {
    display: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin: 0 0 10px 0 !important;
    width: 100% !important;
    line-height: 1.2 !important;
}

.joom-button-content .single_variation_wrap .woocommerce-variation,
.joom-button-content .single_variation_wrap .woocommerce-variation-availability {
    display: block !important;
}

.joom-button-content .single_add_to_cart_button {
    width: 100% !important;
    height: 48px;
    padding: 0 !important;
    border-radius: 12px !important;
    background: #ff4757 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.2);
    border: none !important;
}

.joom-button-content .single_add_to_cart_button:hover {
    background: #ff3838 !important;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
    transform: translateY(-1px);
}

.joom-promo-card {
    background: #fff5f6;
    border-radius: 20px;
    padding: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px dashed #fca5a5;
    box-shadow: inset 0 0 20px rgba(250,52,52,0.02);
}

.joom-lightning-icon {
    font-size: 20px;
    color: #FA3434;
}

.joom-promo-header strong {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    color: #FA3434;
}

.joom-promo-card p {
    font-size: 13px;
    line-height: 1.3;
    margin: 8px 0 16px;
    color: #475569;
}

.joom-stock-text {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
    font-weight: 600;
}

.joom-stock-bar {
    height: 8px;
    border-radius: 100px;
    background: #fecaca;
    overflow: hidden;
}

.joom-stock-progress {
    height: 100%;
    display: block;
    border-radius: 100px;
    background: linear-gradient(90deg, #f87171 0%, #FA3434 100%);
}

.joom-variations-labels {
    font-size: 15px;
    line-height: 1.3;
    color: #64748b;
    margin: 0 0 10px;
    font-weight: 600;
}

.joom-variations-labels strong {
    color: #0f172a;
    font-weight: 700;
}

.joom-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 20px;
}

.joom-swatch {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    background: #f8fafc;
    border: 2px solid transparent;
    padding: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    position: relative;
}

.joom-swatch.active {
    border: 2px solid #0f172a;
    padding: 4px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

.joom-swatch:hover {
    border-color: #cbd5e1;
}

.joom-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px !important;
    display: block;
}

.joom-swatch-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #444;
}

.joom-size-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.joom-size-badge {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    background: #ffffff;
    color: #475569;
    transition: all 0.2s ease;
    display: inline-block;
}

.joom-size-badge.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.joom-size-badge:hover,
.joom-size-badge.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

/* Trust Card */
.joom-trust-card {
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 24px;
    background: #fff;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.02);
}

.joom-trust-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.joom-trust-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 20px 0;
}

.joom-trust-icon {
    width: 48px;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 24px;
    background: #ecfdf5;
    border-radius: 50%;
    line-height: 1;
}

.joom-delivery-section {
    margin: 0;
}

.joom-delivery-text {
    flex: 1;
}

.joom-delivery-title,
.joom-trust-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.joom-delivery-dates {
    font-size: 14px;
    color: #64748b;
    margin: 4px 0 0;
    font-weight: 500;
}

.joom-payment-section .joom-trust-content {
    flex: 1;
}

.joom-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.joom-payment-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid #d4d7df;
    background: #fff;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.joom-payment-pill.paypal { color: #0d5bd0; }
.joom-payment-pill.visa { color: #1a40c8; }
.joom-payment-pill.master,
.joom-payment-pill.maestro { color: #ea4335; }
.joom-payment-pill.apple { color: #111; }
.joom-payment-pill.gpay { color: #4a4f5a; }

.joom-guarantee-header .joom-trust-title i {
    font-size: 14px;
    margin-left: 6px;
    color: #94a3b8;
}

.joom-guarantee-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.joom-guarantee-col {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.joom-guarantee-item {
    font-size: 14.5px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.joom-guarantee-item i {
    color: #10b981;
    font-size: 14px;
}

.joom-meta-card {
    margin-top: 20px !important;
    margin-bottom: 20px;
    padding: 24px;
    background: #f8fafc;
    border: none;
    border-radius: 20px;
}

.joom-meta-title {
    margin: 0 0 20px;
    padding-bottom: 16px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}

.joom-meta-list {
    display: grid;
    gap: 14px;
}

.joom-meta-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 0;
}

.joom-meta-label {
    font-size: 15px;
    color: #64748b;
    white-space: nowrap;
    font-weight: 500;
}

.joom-meta-dots {
    flex: 1;
    border-bottom: 2px dotted #cbd5e1;
    transform: translateY(-5px);
    min-width: 40px;
}

.joom-meta-value {
    max-width: 58%;
    text-align: right;
    font-size: 15px;
    color: #0f172a;
    font-weight: 600;
}

.joom-meta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.joom-meta-link {
    display: inline-block;
    margin-top: 16px;
    color: #FA3434;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.joom-meta-link:hover {
    color: #e62e2e;
}

.joom-desc-title {
    margin-top: 20px;
    border-top: 1px solid #e0e3eb;
    padding-top: 16px;
}

.joom-desc-preview {
    margin: 0;
    font-size: 16px;
    line-height: 1.32;
    color: #111;
}

/* Similar Products Section */
.joom-similar-products {
    background: transparent;
    margin-top: 10px;
    padding: 20px 0;
}

.joom-similar-products .joom-product-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.joom-similar-title {
    margin: 0 0 20px;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.similar-products-grid .product-image,
.top-picks-grid .product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f3f4f8;
    position: relative;
}

.similar-products-grid .product-image img,
.top-picks-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-products-grid .product-badge,
.top-picks-grid .product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4757;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.similar-products-grid .product-badge.featured,
.top-picks-grid .product-badge.featured {
    background: #2ed573;
}

.similar-products-grid .product-info,
.top-picks-grid .product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.similar-products-grid .product-title,
.top-picks-grid .product-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 8px;
    min-height: auto;
    color: #222;
}

.similar-products-grid .product-title a,
.top-picks-grid .product-title a {
    color: #222;
    text-decoration: none;
}

.similar-products-grid .product-title a:hover,
.top-picks-grid .product-title a:hover {
    color: #ff4757;
}

.similar-products-grid .product-rating,
.top-picks-grid .product-rating {
    font-size: 12px;
    margin-bottom: 6px;
    gap: 2px;
}

.similar-products-grid .star,
.top-picks-grid .star {
    font-size: 11px;
}

.similar-products-grid .review-count,
.top-picks-grid .review-count {
    font-size: 11px;
    color: #8b8f9a;
}

.similar-products-grid .product-price,
.top-picks-grid .product-price {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ff4757;
}

.similar-products-grid .product-description,
.top-picks-grid .product-description {
    display: none;
}

.similar-products-grid .product-actions,
.top-picks-grid .product-actions {
    margin-top: auto;
    gap: 6px;
}

.similar-products-grid .btn-add-cart,
.top-picks-grid .btn-add-cart {
    flex: 1;
    padding: 6px;
    font-size: 12px;
    height: 32px;
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.similar-products-grid .btn-add-cart:hover,
.top-picks-grid .btn-add-cart:hover {
    background: #ff3838;
}

/* Top Picks Section */
.joom-top-picks-section {
    background: transparent;
    margin-top: 10px;
    padding: 20px 0;
}

.joom-top-picks-section .joom-product-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.joom-top-picks-title {
    margin: 0 0 20px;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}


.joom-reviews-container {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 0;
    position: relative !important;
}

.joom-section-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.joom-rating-summary {
    gap: 10px;
    margin: 8px 0 12px;
}

.joom-rating-big {
    font-size: 22px;
    font-weight: 600;
}

.joom-review-filters {
    margin-bottom: 14px;
}

.joom-review-list {
    display: grid;
    gap: 12px;
    margin-top: 15px;
    max-height: 800px;
    overflow-y: auto;
    padding-right: 8px;
}

.joom-review-list::-webkit-scrollbar {
    width: 6px;
}

.joom-review-list::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

.joom-review-item {
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 14px 16px;
    background: #ffffff;
    margin-bottom: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.joom-review-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.joom-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.joom-review-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.joom-review-avatar {
    font-size: 20px;
    color: #94a3b8;
    display: block;
}

.joom-review-author {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
}

.joom-review-author::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 50%;
    margin: 0 10px;
}

.joom-verified-owner {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.joom-review-date {
    font-size: 11px;
    color: #64748b;
}

.joom-review-stars {
    margin-bottom: 8px;
}

.joom-review-stars .star-rating {
    font-size: 11px !important;
}

.joom-review-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #334155;
}

@media (max-width: 1200px) {
    .joom-product-layout {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .joom-product-title {
        font-size: 16px;
    }

    .joom-rating-score,
    .joom-sales-count,
    .joom-price-label,
    .joom-price-value,
    .joom-price-value .woocommerce-Price-amount,
    .joom-price-sub,
    .joom-select-text,
    .joom-select-sub,
    .joom-promo-header strong,
    .joom-promo-card p,
    .joom-stock-text,
    .joom-variations-labels,
    .joom-size-badge,
    .joom-section-title {
        font-size: 14px;
    }

    .joom-button-content .single_add_to_cart_button {
        height: 44px;
        font-size: 14px !important;
        border-radius: 12px !important;
    }

    .joom-swatch {
        width: 66px;
        height: 66px;
    }

    .joom-delivery-title,
    .joom-trust-title {
        font-size: 20px;
    }

    .joom-delivery-dates {
        font-size: 16px;
    }

    .joom-trust-card {
        border-radius: 18px;
        padding: 14px;
    }

    .joom-guarantee-grid {
        grid-template-columns: 1fr;
    }

    .joom-meta-title {
        font-size: 20px;
    }

    .joom-meta-label,
    .joom-meta-value,
    .joom-meta-link {
        font-size: 16px;
    }

    .joom-meta-value {
        max-width: 62%;
    }

}

@media (max-width: 768px) {
    .joom-similar-products {
        margin-top: 10px;
        padding: 15px 0;
    }

    .joom-similar-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .joom-top-picks-section {
        margin-top: 10px;
        padding: 15px 0;
    }

    .joom-top-picks-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    /* Mobile: Full width for Similar Products and Top Picks */
    .joom-similar-products .joom-product-container,
    .joom-top-picks-section .joom-product-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .joom-product-container {
        padding: 0 0.5rem;
    }
}

/* Responsive refinements for single product (non-destructive overrides) */
@media (max-width: 1024px) {
    .joom-product-container {
        padding: 0 1rem;
    }

    .joom-product-layout {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .joom-reviews-container {
        margin-top: 0 !important;
    }

    .joom-trust-card {
        margin-top: 0 !important;
    }

    .joom-product-gallery {
        max-width: 100%;
    }

    .joom-main-image {
        width: 100%;
        max-width: 640px;
        height: auto;
    }

    .joom-title-row {
        margin-bottom: 8px;
    }

    .joom-product-title {
        padding-right: 0;
    }

    .joom-actions-top {
        position: static;
        margin-top: 10px;
    }
}

@media (max-width: 1264px) {
    .joom-price-main-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .joom-button-content {
        flex: 1;
        width: 100%;
        padding-top: 0;
    }
}

@media (max-width: 900px) {
    .joom-product-container {
        padding: 0 1rem;
        max-width: 100%;
    }

    .joom-product-layout {
        gap: 20px;
    }

    .joom-product-gallery {
        max-width: 100%;
    }

    .joom-main-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        max-width: none;
    }

    .joom-gallery-wrapper {
        gap: 10px;
    }

    .joom-thumbnails-vertical {
        width: 60px;
        gap: 8px;
    }

    .joom-button-content .single_add_to_cart_button {
        height: 50px;
        font-size: 16px !important;
    }

    .joom-section-title {
        font-size: 18px;
    }

    .joom-reviews-container {
        margin-top: 30px;
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .joom-product-container {
        margin-top: 10px;
        padding: 0 0.75rem;
        max-width: 100%;
    }

    .joom-product-layout {
        display: grid;
        grid-template-columns: 1fr;
    }

    .joom-product-gallery {
        display: contents;
    }

    .joom-gallery-wrapper {
        grid-row: 1;
    }

    .joom-reviews-container {
        grid-row: 3;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }

    .joom-product-summary {
        grid-row: 2;
        display: flex;
        flex-direction: column;
    }

    .joom-title-row {
        order: 1;
        display: block;
    }

    .joom-rating-row {
        order: 2;
        flex-wrap: wrap;
        margin: 4px 0 8px;
        gap: 8px;
    }

    .joom-price-section {
        order: 3;
        padding: 16px 0 0;
        margin: 0;
    }

    .joom-promo-card {
        order: 4;
        background: #fff5f6;
        border-radius: 14px;
        padding: 14px;
        margin-top: 10px;
        margin-bottom: 16px;
        border: 1px solid #ffe8ea;
    }

    .joom-promo-header strong {
        font-size: 14px;
        font-weight: 700;
    }

    .joom-promo-card p {
        font-size: 13px;
        line-height: 1.4;
    }

    .joom-variations-labels {
        order: 5;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #111;
    }

    .joom-color-swatches {
        order: 5;
    }

    .joom-size-badges {
        order: 6;
        gap: 8px;
        margin-bottom: 18px;
    }

    .joom-meta-card {
        order: 7;
        border-radius: 14px;
        padding: 14px;
        margin-top: 16px;
        background: #f8f9fb;
        border: 1px solid #e8eaf0;
    }

    .joom-trust-card {
        order: 8;
        border: 1px solid #d9dde7;
        border-radius: 14px;
        padding: 14px;
        margin-top: 16px;
        margin-bottom: 20px;
        background: #fff;
    }

    .joom-gallery-wrapper {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .joom-thumbnails-vertical {
        width: 100%;
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .joom-thumb-item {
        min-width: 60px;
        width: 60px;
        border-radius: 10px;
    }

    .joom-main-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        position: relative;
    }

    .joom-product-title {
        font-size: 17px;
        line-height: 1.4;
        font-weight: 600;
        padding-right: 0;
        letter-spacing: -0.2px;
    }

    .joom-actions-top {
        position: absolute;
        top: 12px;
        right: 12px;
        flex-direction: column;
        gap: 8px;
        z-index: 10;
        display: none; /* Hide by default in summary row on mobile */
    }

    .joom-product-gallery .joom-actions-top {
        display: flex !important;
        position: absolute;
        top: 12px !important;
        right: 12px !important;
        left: auto !important;
        bottom: auto !important;
    }
    
    /* Hide desktop buttons, show only image overlay version on mobile */
    .joom-actions-desktop {
        display: none !important;
    }

    .joom-share-btn-round {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        border: none !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #111827 !important;
    }

    .joom-rating-score {
        font-size: 15px;
        font-weight: 600;
    }

    .joom-sales-count {
        font-size: 14px;
    }

    .joom-price-label {
        font-size: 13px;
    }

    .joom-price-value,
    .joom-price-value .woocommerce-Price-amount {
        font-size: 22px;
        font-weight: 700;
    }

    .joom-price-sub {
        font-size: 12px;
        margin-top: 6px;
    }

    .joom-button-content .single_add_to_cart_button {
        height: 50px;
        font-size: 16px !important;
        font-weight: 700 !important;
        border-radius: 14px !important;
    }

    .joom-swatch {
        width: 68px;
        height: 68px;
        border-radius: 12px;
    }

    .joom-swatch img {
        border-radius: 9px;
    }

    .joom-size-badge {
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 12px;
    }

    .joom-trust-row {
        gap: 12px;
    }

    .joom-trust-icon {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
        font-size: 24px;
        color: #09896f;
    }

    .joom-trust-divider {
        margin: 12px 0;
        background: #e6e9f0;
    }

    .joom-delivery-title,
    .joom-trust-title {
        font-size: 14px;
        font-weight: 700;
        color: #09896f;
    }

    .joom-delivery-dates {
        font-size: 12px;
        margin-top: 3px;
        color: #8288a0;
    }

    .joom-payment-methods {
        gap: 7px;
        margin-top: 9px;
    }

    .joom-payment-pill {
        min-height: 24px;
        padding: 4px 10px;
        font-size: 13px;
        border-radius: 10px;
        font-weight: 700;
        border: 1px solid #d4d7df;
        background: #fff;
    }

    .joom-guarantee-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 12px;
    }

    .joom-guarantee-col {
        padding: 10px 12px;
        border-radius: 12px;
        gap: 8px;
        background: #f1f3f8;
    }

    .joom-guarantee-item {
        font-size: 13px;
        font-weight: 400;
        gap: 8px;
    }

    .joom-guarantee-item i {
        font-size: 11px;
        color: #09896f;
    }

    .joom-guarantee-header .joom-trust-title i {
        font-size: 11px;
    }

    .joom-meta-title {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e0e3eb;
    }

    .joom-meta-label,
    .joom-meta-value {
        font-size: 13px;
    }

    .joom-meta-row {
        padding: 8px 0;
    }

    .joom-meta-link {
        font-size: 13px;
        font-weight: 600;
        color: #09896f;
        margin-top: 12px;
    }

    .similar-products-grid,
    .top-picks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .similar-products-grid .btn-add-cart,
    .top-picks-grid .btn-add-cart {
        font-size: 0;
}


    .similar-products-grid .btn-add-cart i,
    .top-picks-grid .btn-add-cart i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .joom-price-label,
    .joom-price-value,
    .joom-price-value .woocommerce-Price-amount {
        font-size: 16px;
    }

    .joom-select-badge {
        padding: 5px 8px;
    }

    .joom-select-text,
    .joom-select-sub {
        font-size: 12px;
    }

    .joom-badge-arrow {
        font-size: 12px;
    }

    .joom-swatch {
        width: 56px;
        height: 56px;
    }

    .similar-products-grid,
    .top-picks-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Modal Styling */
.joom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999 !important;
}

.joom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75) !important;
    cursor: pointer;
}

.joom-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000000;
}

/* Wider modal for full description */
#joom-description-modal .joom-modal-content {
    max-width: 800px;
}

.joom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e6e9f0;
}

.joom-modal-header h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
    color: #111;
}

.joom-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.joom-modal-close:hover {
    color: #ffffff;
}

.joom-modal-body {
    padding: 20px 24px;
}

.joom-characteristics-full {
    display: grid;
    gap: 12px;
}

.joom-characteristics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.joom-characteristics-row:last-child {
    border-bottom: none;
}

.joom-char-label {
    font-size: 16px;
    font-weight: 500;
    color: #7f859d;
}

.joom-char-value {
    font-size: 16px;
    font-weight: 500;
    color: #111;
}

.joom-description-full {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.joom-description-full p {
    margin: 0 0 12px;
}

.joom-description-full p:last-child {
    margin-bottom: 0;
}

.joom-description-full img,
.joom-description-full iframe {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .joom-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .joom-modal-header {
        padding: 16px 16px;
    }

    .joom-modal-header h2 {
        font-size: 18px;
    }

    .joom-modal-body {
        padding: 16px 16px;
    }

    .joom-characteristics-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .joom-thumbnails-vertical {
        display: none !important;
    }

    .joom-gallery-wrapper {
        display: block !important;
    }

    /* Fixed mobile gaps for Characteristics and delivery boxes */
    .joom-meta-card {
        margin-top: 15px !important; 
        margin-bottom: 15px !important;
        padding: 12px !important;
    }

    .joom-reviews-container {
        margin-top: 15px !important;
    }

    .joom-trust-card {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        padding: 12px !important;
    }

    .joom-price-section {
        margin-bottom: 15px !important;
        padding-bottom: 0 !important;
    }
}

/* Professional Reviews & Write Review Box Styles */
.joom-reviews-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .joom-reviews-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .joom-write-review-btn {
        width: 100%;
        justify-content: center;
        padding: 14px !important;
        font-size: 15px !important;
    }

    .joom-review-filters {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding-left: 0;
        box-sizing: border-box;
    }

    .joom-filter-btn {
        flex-shrink: 0;
    }

    .joom-review-list {
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
    }

    .joom-review-item {
        padding: 15px;
        margin-bottom: 10px;
    }

    .joom-review-head {
        flex-wrap: nowrap !important;
        align-items: flex-start;
        gap: 8px;
    }

    .joom-review-date {
        width: auto !important;
        white-space: nowrap;
        text-align: right;
        font-size: 11px;
        order: unset !important;
    }

    .joom-modal-content {
        width: 95% !important;
        margin: 5% auto !important;
        padding: 15px !important;
    }

    .joom-form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }
}

.joom-write-review-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.joom-write-review-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.joom-review-media {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.joom-review-img-box {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #f8f9fb;
}

.joom-review-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pagination */
.joom-reviews-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f2f7;
}

.joom-pagi-btn {
    background: #111827;
    border: 1px solid #111827;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    transition: all 0.2s ease;
}

.joom-pagi-btn:hover:not(.disabled) {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.joom-pagi-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #111827;
}

.joom-pagi-info {
    font-size: 14px;
    color: #7f859d;
    font-weight: 500;
}

/* Form Styles */
.joom-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.joom-rating-input input { display: none; }
.joom-rating-input label {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
}

.joom-rating-input input:checked ~ label,
.joom-rating-input label:hover,
.joom-rating-input label:hover ~ label {
    color: #f59e0b; /* Premium Golden Yellow */
}

.joom-form-group {
    margin-bottom: 20px;
}

.joom-form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.joom-pro-form input[type="text"],
.joom-pro-form input[type="email"],
.joom-pro-form textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.joom-pro-form textarea {
    resize: vertical;
}

.joom-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 0;
}

.joom-pro-form input:focus,
.joom-pro-form textarea:focus {
    background: #ffffff;
    border-color: #FA3434;
    box-shadow: 0 0 0 3px rgba(250, 52, 52, 0.1);
}

.joom-upload-zone {
    border: 2px dashed #e0e3eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    color: #7f859d;
}

.joom-upload-zone:hover {
    border-color: #111;
    background: #f8f9fb;
}

.joom-upload-zone input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    opacity: 0;
    cursor: pointer;
}

.joom-upload-zone i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.joom-submit-review {
    width: 100%;
    background: #FA3434;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(250, 52, 52, 0.2);
    min-height: 54px;
    margin-bottom: 10px;
}

.joom-submit-review:hover {
    background: #e62e2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(250, 52, 52, 0.3);
}

@media (max-width: 600px) {
    .joom-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.joom-upload-preview {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.joom-preview-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.joom-report-modal-content {
    width: 95%;
    max-width: 500px;
    padding: 10px;
}

.joom-report-modal-header {
    border-bottom: 0;
    padding-bottom: 12px;
    text-align: center;
}

.joom-report-modal-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.joom-report-modal-body {
    padding-top: 0;
}

.joom-report-issue-form {
    display: grid;
    gap: 12px;
}

.joom-report-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.joom-report-option:hover {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transform: translateY(-1px);
}

.joom-report-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.joom-report-radio {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: #ffffff;
    flex-shrink: 0;
}

.joom-report-text {
    font-size: 15px;
    line-height: 1.4;
    color: #475569;
    font-weight: 600;
}

.joom-report-option input:checked ~ .joom-report-text {
    color: #0f172a;
}

.joom-report-option input:checked + .joom-report-radio {
    border-color: #FA3434;
    background: #FA3434;
    box-shadow: inset 0 0 0 4px #fff;
}

.joom-report-option:has(input:checked) {
    background: #fff5f5;
    border-color: #fca5a5;
}

.joom-report-continue {
    margin-top: 20px;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: #e2e8f0;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 54px;
    transition: all 0.3s ease;
}

.joom-report-continue:not(:disabled) {
    background: #0f172a;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.joom-report-continue:not(:disabled):hover {
    background: #FA3434;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(250, 52, 52, 0.25);
}

@media (max-width: 768px) {
    .joom-report-radio {
        width: 22px;
        height: 22px;
    }

    .joom-report-text {
        font-size: 14px;
    }

    .joom-report-option {
        padding: 12px 14px;
    }

    .joom-report-continue {
        font-size: 15px;
        border-radius: 14px;
        padding: 14px;
    }
}

/* Small mobile overflow guard (align with Similar Products stable behavior) */
@media (max-width: 600px) {
    body.single-product,
    body.single-product .site,
    body.single-product .site-main,
    body.single-product .joom-product-container {
        overflow-x: hidden;
    }

    body.single-product .joom-product-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .joom-product-container,
    .joom-product-layout,
    .joom-product-gallery,
    .joom-product-summary,
    .joom-gallery-wrapper,
    .joom-main-image,
    .joom-price-main-row,
    .joom-price-content,
    .joom-reviews-container,
    .joom-review-list,
    .joom-review-item {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .joom-review-head {
        flex-wrap: wrap !important;
        min-width: 0;
    }

    .joom-review-author-info,
    .joom-review-author,
    .joom-review-text {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    body.single-product .joom-product-summary,
    body.single-product .joom-reviews-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* No Products Found UI - Box Style */
.mj-no-products-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
}

.mj-no-products-icon {
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
    opacity: 0.8;
}

.mj-no-products-icon svg {
    width: 100%;
    height: 100%;
}

.mj-no-products-found h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #111827;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0px;
    line-height: 1.2;
    font-family: inherit;
}

/* Single Product Share Modal + Clickability Fix (non-destructive overrides) */
body.single-product .joom-actions-top {
    z-index: 30;
    pointer-events: auto;
}

body.single-product .joom-share-btn-round {
    position: relative;
    z-index: 31;
    pointer-events: auto;
}

body.single-product .joom-share-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    background: transparent;
}

body.single-product .joom-share-modal.open {
    display: flex;
}

body.single-product .joom-share-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

body.single-product .joom-share-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    padding: 26px 18px 18px;
    max-width: 430px;
    width: min(92vw, 430px);
}

body.single-product .joom-share-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.single-product .joom-share-close:hover {
    color: #fa3434;
}

body.single-product .joom-share-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: #ffeaea;
    color: #fa3434;
    border-radius: 50%;
    font-size: 20px;
}

body.single-product .joom-share-title {
    font-size: 22px;
    font-weight: 700;
    color: #fa3434;
    margin: 0 0 14px;
    text-align: center;
    line-height: 1.2;
}

body.single-product .joom-share-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

body.single-product .joom-share-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

body.single-product .joom-share-option:hover {
    background: #ffeaea;
    border-color: #fa3434;
    color: #fa3434;
}

body.single-product .joom-share-link-section {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

body.single-product .joom-share-link-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    background: #f9fafb;
    height: 40px;
}

body.single-product .joom-share-copy-btn {
    background: #fa3434;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

body.single-product .joom-share-copy-btn:hover {
    background: #d32f2f;
}

@media (max-width: 768px) {
    body.single-product .joom-share-content {
        width: min(94vw, 560px);
        padding: 22px 16px;
    }

    body.single-product .joom-share-option {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
    }
}

/* Share Modal UI Refinement (additive overrides only) */
body.single-product .joom-share-modal {
    background: transparent;
}

body.single-product .joom-share-content {
    max-width: 430px;
    width: min(92vw, 430px);
    border-radius: 18px;
    padding: 26px 18px 18px;
}

body.single-product .joom-share-title {
    margin: 0 0 14px;
    text-align: center;
    font-size: 22px;
    line-height: 1.2;
    color: #fa3434;
}

body.single-product .joom-share-options {
    justify-content: center;
    gap: 8px;
}

body.single-product .joom-share-option {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
}

body.single-product .joom-share-option span {
    color: inherit;
}

body.single-product .joom-share-link-section {
    margin-top: 14px;
}

body.single-product .joom-share-link-input {
    height: 40px;
}

body.single-product .joom-share-copy-btn {
    height: 40px;
    border-radius: 10px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    body.single-product .joom-share-content {
        width: min(94vw, 360px);
        padding: 20px 14px 14px;
    }

    body.single-product .joom-share-option {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        border-radius: 10px;
    }

    body.single-product .joom-share-link-section {
        flex-direction: column;
    }

    body.single-product .joom-share-copy-btn {
        width: 100%;
    }
}

/* =================================================
   FREQUENTLY BOUGHT TOGETHER
   ================================================= */
.joom-fbt-title {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.8px;
    position: relative;
    display: inline-block;
}
.joom-fbt-wrapper {
    margin-top: 30px;
    padding-top: 40px;
    border-top: 1px dashed #e2e8f0;
}
.joom-fbt-inner {
    display: grid;
    grid-template-columns: auto 1fr 250px;
    gap: 32px;
    align-items: stretch;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.04), inset 0 0 0 2px #ffffff;
}
.joom-fbt-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px;
}
.joom-fbt-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}
.joom-fbt-img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    border: 4px solid #ffffff;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.joom-fbt-img:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 16px 40px rgba(250,52,52,0.15);
    border-color: #fff5f5;
    z-index: 2;
}
.joom-fbt-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.joom-fbt-img.joom-fbt-disabled {
    opacity: 0.3;
    filter: grayscale(100%) blur(1px);
    box-shadow: none;
    transform: scale(0.95);
}
.joom-fbt-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #FA3434;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(250,52,52,0.12);
    z-index: 2;
}
.joom-fbt-img-wrap:last-child .joom-fbt-plus {
    display: none;
}
.joom-fbt-list {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}
.joom-fbt-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    color: #334155;
    cursor: pointer;
    padding: 14px 20px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.joom-fbt-item:hover {
    transform: translateX(6px);
    border-color: #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.joom-fbt-item > div {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.joom-fbt-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: #f8fafc;
}
.joom-fbt-item input[type="checkbox"]:checked {
    background: #FA3434;
    border-color: #FA3434;
}
.joom-fbt-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.joom-fbt-item input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.joom-fbt-item-title {
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.4;
    flex: 1;
}
.joom-fbt-item-title:hover {
    color: #FA3434;
}
.joom-fbt-item-price {
    font-weight: 800;
    color: #0f172a;
    font-size: 16px;
    white-space: nowrap;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 10px;
    flex-shrink: 0;
}
.joom-fbt-checkout {
    background: #0f172a;
    padding: 24px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    justify-content: center;
    align-items: center;
    align-self: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
}
.joom-fbt-checkout::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(250,52,52,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.joom-fbt-total-label {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}
.joom-fbt-total-price {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
}
.joom-fbt-total-price .woocommerce-Price-amount,
.joom-fbt-total-price bdi,
.joom-fbt-total-price .amount {
    color: #ffffff !important;
}
.joom-fbt-add-btn {
    width: 100%;
    background: #FA3434;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(250, 52, 52, 0.3);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}
.joom-fbt-add-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(250, 52, 52, 0.4);
    background: #ff4747;
}
.joom-fbt-add-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}
.joom-fbt-add-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
@media (max-width: 1150px) {
    .joom-fbt-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
@media (max-width: 768px) {
    .joom-fbt-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .joom-fbt-inner {
        display: flex;
        flex-direction: column;
        padding: 24px 16px;
        border-radius: 24px;
        gap: 20px;
    }
    .joom-fbt-images {
        justify-content: center;
        width: 100%;
    }
    .joom-fbt-img {
        width: 76px;
        height: 76px;
        border-width: 3px;
    }
    .joom-fbt-item {
        padding: 14px 16px;
    }
    .joom-fbt-item > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .joom-fbt-item-title {
        font-size: 14px;
    }
    .joom-fbt-item-price {
        font-size: 15px;
        padding: 4px 10px;
    }
    .joom-fbt-checkout {
        width: 100%;
        padding: 24px 20px;
        align-self: stretch;
    }
}
