/* ============================================
   MJ Fashion Gallery — Product Detail Page
   ============================================ */

/* --- Product Page Wrapper --- */

/* CRITICAL: Override parent theme contentSize (645px) constraint
   WordPress sets --wp--style--global--content-size: 645px from parent theme.json
   This limits wp-block-post-content to 645px wide. We need 1280px for product pages. */

/* Override the CSS custom property on product pages */
body.single-product {
    --wp--style--global--content-size: 1280px;
    --wp--style--global--wide-size: 1340px;
}

.single-product .wp-block-post-content {
    max-width: 1280px !important;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
    width: 100%;
}
/* Override parent theme spacing on product pages */
.single-product .mj-product-page {
    padding: 0 !important;
    max-width: 100% !important;
}
.single-product .mj-product-page.is-layout-flow {
    margin: 0;
    padding: 0;
    max-width: 100% !important;
}
.single-product .wp-block-post-content.is-layout-flow {
    margin: 0 auto;
    padding: 0 32px;
    max-width: 1280px !important;
    width: 100%;
}
/* Ensure the content area has white background */
.single-product .wp-block-group.mj-product-page {
    background: #ffffff;
}
/* Remove parent theme global padding on product pages */
.single-product .wp-block-group.has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* Override WordPress layout constraints on product pages */
.single-product .wp-block-post-content .wp-block-group {
    max-width: 100%;
}
/* Prevent is-layout-constrained from limiting width */
.single-product .is-layout-constrained {
    max-width: 1280px !important;
}

/* --- Breadcrumb --- */
.mj-product-breadcrumb {
    padding: 16px 0;
    font-size: 0.82rem;
    color: #888;
}
.mj-product-breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}
.mj-product-breadcrumb a:hover {
    color: #e91e63;
}
.mj-product-breadcrumb .breadcrumb-sep {
    margin: 0 8px;
    color: #ccc;
}
.mj-product-breadcrumb .breadcrumb-current {
    color: #1a1a1a;
    font-weight: 500;
}

/* --- Main Product Section (Two Columns) --- */
.mj-product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 16px 0 48px;
    align-items: start;
}

/* ============================================
   LEFT COLUMN — Image Gallery (Custom Carousel)
   ============================================ */

.mj-product-gallery {
    position: sticky;
    top: 100px;
}

/* --- Hide WooCommerce default gallery --- */
.mj-product-gallery .woocommerce-product-gallery {
    display: none !important;
}

/* --- Custom Carousel --- */
.mj-gallery {
    position: relative;
    user-select: none;
}

/* Main Image Container */
.mj-gallery-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
    aspect-ratio: 1 / 1;
    cursor: zoom-in;
}
.mj-gallery-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.mj-gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.mj-gallery-slide.active {
    opacity: 1;
    z-index: 2;
}
.mj-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Arrows */
.mj-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
}
.mj-gallery:hover .mj-gallery-arrow {
    opacity: 1;
}
.mj-gallery-arrow:hover {
    background: #e91e63;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}
.mj-gallery-arrow svg {
    width: 18px;
    height: 18px;
}
.mj-gallery-prev {
    left: 12px;
}
.mj-gallery-next {
    right: 12px;
}

/* Dots Indicator */
.mj-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 0;
}
.mj-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}
.mj-gallery-dot.active {
    background: #e91e63;
    transform: scale(1.3);
}
.mj-gallery-dot:hover {
    background: #e91e63;
}

/* Thumbnail Strip */
.mj-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mj-gallery-thumbs::-webkit-scrollbar {
    display: none;
}
.mj-gallery-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
    background: #f9f9f9;
    padding: 0;
}
.mj-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.55;
    transition: opacity 0.2s;
}
.mj-gallery-thumb.active {
    border-color: #e91e63;
}
.mj-gallery-thumb.active img,
.mj-gallery-thumb:hover img {
    opacity: 1;
}
.mj-gallery-thumb:hover {
    border-color: #e91e63;
}

/* Sale badge on gallery */
.mj-gallery-sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 5px 14px;
    background: #e91e63;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

/* --- Lightbox Overlay --- */
.mj-gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.mj-gallery-lightbox.open {
    display: flex;
    animation: mj-lb-fade-in 0.25s ease;
}
@keyframes mj-lb-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.mj-gallery-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 5;
}
.mj-gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.mj-gallery-lightbox-close svg {
    width: 24px;
    height: 24px;
}
.mj-gallery-lightbox-img {
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}
.mj-gallery-lightbox-nav {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}
.mj-gallery-lightbox-nav button {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}
.mj-gallery-lightbox-nav button:hover {
    border-color: #e91e63;
    background: rgba(233, 30, 99, 0.2);
}
.mj-gallery-lightbox-nav button svg {
    width: 20px;
    height: 20px;
}

/* Mobile gallery adjustments */
@media (max-width: 768px) {
    .mj-product-gallery {
        position: static;
        margin: 0 -16px;
    }
    .mj-gallery-arrow {
        width: 34px;
        height: 34px;
        opacity: 1;
    }
    .mj-gallery-prev {
        left: 8px;
    }
    .mj-gallery-next {
        right: 8px;
    }
    .mj-gallery-thumb {
        width: 60px;
        height: 60px;
    }
}
@media (max-width: 480px) {
    .mj-product-gallery {
        margin: 0 -16px;
    }
    .mj-gallery-thumb {
        width: 52px;
        height: 52px;
    }
}

/* ============================================
   RIGHT COLUMN — Product Info
   ============================================ */

.mj-product-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Brand Name */
.mj-product-brand {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e91e63;
    margin-bottom: 8px;
}
.mj-product-brand a {
    color: #e91e63;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.mj-product-brand a:hover {
    opacity: 0.8;
}

/* Product Title */
.mj-product-info .product_title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 12px;
}

/* Rating */
.mj-product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.mj-product-rating .star-rating {
    font-size: 1rem;
    color: #f5a623;
}
.mj-product-rating .star-rating span::before {
    color: #f5a623;
}
.mj-product-rating .review-link {
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}
.mj-product-rating .review-link:hover {
    color: #e91e63;
}
.mj-product-rating .verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #4caf50;
    font-weight: 500;
}

/* Price */
.mj-product-price {
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.mj-product-price .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.mj-product-price .price del {
    font-size: 1.1rem;
    color: #999;
    font-weight: 400;
}
.mj-product-price .price ins {
    text-decoration: none;
    color: #e91e63;
}
.mj-product-price .price .woocommerce-price-suffix {
    font-size: 0.85rem;
    color: #888;
    font-weight: 400;
}
/* Sale Badge */
.mj-product-price .mj-sale-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #fff3e0;
    color: #e65100;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Stock Status */
.mj-product-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}
.mj-product-stock.in-stock {
    color: #4caf50;
}
.mj-product-stock.out-of-stock {
    color: #e53935;
}
.mj-product-stock .stock-icon {
    width: 16px;
    height: 16px;
}

/* Short Description */
.mj-product-short-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}
.mj-product-short-desc p {
    margin: 0 0 8px;
}
.mj-product-short-desc p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Add to Cart Section
   ============================================ */

.mj-product-cart-section {
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
}

/* Quantity + Add to Cart + Buy Now row */
.mj-cart-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: stretch;
}
.mj-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.mj-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 48px;
    border: none;
    background: #f5f5f5;
    color: #1a1a1a;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0;
}
.mj-qty-btn:hover {
    background: #e8e8e8;
}
.mj-quantity-selector .qty {
    width: 52px;
    height: 48px;
    text-align: center;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    font-size: 1rem;
    font-weight: 600;
    background: #ffffff;
    padding: 0;
    -moz-appearance: textfield;
}
.mj-quantity-selector .qty::-webkit-inner-spin-button,
.mj-quantity-selector .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button — deep dark, secondary CTA */
.mj-add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}
.mj-add-to-cart-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.mj-add-to-cart-btn:active {
    transform: translateY(0);
}
.mj-add-to-cart-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.mj-add-to-cart-btn.added {
    background: #4caf50;
    pointer-events: none;
}

/* Buy Now Button — full-width, primary CTA */
.mj-buy-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    background: #e91e63;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    flex: 1;
}
.mj-buy-now-btn:hover {
    background: #c2185b;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.35);
}
.mj-buy-now-btn:active {
    transform: translateY(0);
}
.mj-buy-now-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================
   Secondary CTA Buttons
   ============================================ */

.mj-secondary-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

/* WhatsApp Button */
.mj-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.15s ease;
    white-space: nowrap;
}
.mj-whatsapp-btn:hover {
    background: #1da851;
    color: #ffffff;
    transform: translateY(-1px);
}
.mj-whatsapp-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Phone Call Button */
.mj-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
.mj-call-btn:hover {
    border-color: #e91e63;
    color: #e91e63;
    background: #fef7f9;
}
.mj-call-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Share / Wishlist Row */
.mj-product-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.mj-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: none;
    color: #666;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
}
.mj-action-btn:hover {
    color: #e91e63;
}
.mj-action-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Trust Badges (below CTAs)
   ============================================ */

.mj-product-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
}
.mj-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #555;
    line-height: 1.4;
}
.mj-trust-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #4caf50;
}
.mj-trust-item strong {
    display: block;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.8rem;
}

/* ============================================
   Delivery Info
   ============================================ */

.mj-delivery-info {
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
}
.mj-delivery-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}
.mj-delivery-row:last-child {
    margin-bottom: 0;
}
.mj-delivery-row svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #e91e63;
}
.mj-delivery-row strong {
    color: #1a1a1a;
}

/* Payment Methods */
.mj-payment-methods {
    padding: 16px 0;
}
.mj-payment-label {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 8px;
}
.mj-payment-icons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mj-payment-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #666;
    background: #fafafa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Product Tabs / Accordion
   ============================================ */

.mj-product-tabs {
    padding: 48px 0;
    border-top: 1px solid #e8e8e8;
    margin-top: 16px;
}

/* Desktop: Tabs */
@media (min-width: 769px) {
    .mj-tabs-nav {
        display: flex;
        gap: 0;
        border-bottom: 2px solid #e8e8e8;
        margin-bottom: 28px;
    }
    .mj-tab-btn {
        padding: 12px 24px;
        background: transparent;
        border: none;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        font-size: 0.9rem;
        font-weight: 600;
        color: #888;
        cursor: pointer;
        transition: color 0.2s ease, border-color 0.2s ease;
    }
    .mj-tab-btn:hover {
        color: #1a1a1a;
    }
    .mj-tab-btn.active {
        color: #e91e63;
        border-bottom-color: #e91e63;
    }
    .mj-tab-panel {
        display: none;
        animation: mj-fade-in 0.3s ease;
    }
    .mj-tab-panel.active {
        display: block;
    }
    .mj-accordion-item {
        display: none;
    }
}

@keyframes mj-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab content styling */
.mj-tab-panel h2,
.mj-tab-panel h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
}
.mj-tab-panel p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin: 0 0 12px;
}
.mj-tab-panel ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}
.mj-tab-panel ul li {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    padding: 4px 0 4px 24px;
    position: relative;
}
.mj-tab-panel ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e91e63;
}
.mj-tab-panel ol {
    padding-left: 0;
    counter-reset: mj-step;
    list-style: none;
}
.mj-tab-panel ol li {
    counter-increment: mj-step;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    padding: 8px 0 8px 44px;
    position: relative;
}
.mj-tab-panel ol li::before {
    content: counter(mj-step);
    position: absolute;
    left: 0;
    top: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fce4ec;
    color: #e91e63;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ingredients highlight */
.mj-ingredient-highlight {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #fce4ec;
    border-radius: 4px;
    color: #e91e63;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================================
   Reviews Section
   ============================================ */

/* Reviews (inside tab/accordion) */
.mj-reviews-inline {
    padding: 8px 0 0;
}
.mj-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.mj-reviews-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.mj-reviews-summary {
    display: flex;
    align-items: center;
    gap: 16px;
}
.mj-reviews-avg {
    text-align: center;
}
.mj-reviews-avg-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}
.mj-reviews-avg .star-rating {
    font-size: 0.9rem;
    margin-top: 4px;
}
.mj-reviews-count {
    font-size: 0.85rem;
    color: #888;
}
.mj-reviews-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mj-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #888;
}
.mj-rating-bar-label {
    width: 32px;
    text-align: right;
}
.mj-rating-bar {
    width: 120px;
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
}
.mj-rating-bar-fill {
    height: 100%;
    background: #f5a623;
    border-radius: 3px;
    transition: width 0.3s ease;
}
.mj-rating-bar-percent {
    width: 28px;
}

/* Individual Reviews */
.mj-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mj-review-card {
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
}
.mj-review-card:last-child {
    border-bottom: none;
}
.mj-review-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.mj-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fce4ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #e91e63;
    flex-shrink: 0;
}
.mj-review-meta {
    flex: 1;
}
.mj-review-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
}
.mj-review-date {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 2px;
}
.mj-review-rating {
    margin-bottom: 8px;
}
.mj-review-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.mj-review-body {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}
.mj-review-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #4caf50;
    font-weight: 500;
    margin-top: 8px;
}

/* Write Review Button */
.mj-write-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid #e91e63;
    color: #e91e63;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.mj-write-review-btn:hover {
    background: #e91e63;
    color: #ffffff;
}

/* ============================================
   Related Products / You May Also Like
   ============================================ */

.mj-related-section {
    padding: 48px 0 64px;
    border-top: 1px solid #e8e8e8;
}
.mj-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.mj-related-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.mj-related-subtitle {
    font-size: 0.95rem;
    color: #888;
    margin: 4px 0 0;
}
.mj-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Related Product Card */
.mj-product-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.mj-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: #e8e8e8;
}
.mj-product-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f9f9f9;
    overflow: hidden;
}
.mj-product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.mj-product-card:hover .mj-product-card-img img {
    transform: scale(1.05);
}
.mj-product-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mj-badge-sale {
    background: #e91e63;
    color: #ffffff;
}
.mj-badge-new {
    background: #4caf50;
    color: #ffffff;
}
.mj-product-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.mj-product-card-brand {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e91e63;
    margin-bottom: 4px;
}
.mj-product-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mj-product-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.mj-product-card-rating .star-rating {
    font-size: 0.75rem;
}
.mj-product-card-rating .count {
    font-size: 0.75rem;
    color: #aaa;
}
.mj-product-card-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.mj-product-card-price .amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
}
.mj-product-card-price del .amount {
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
}
.mj-product-card-price ins {
    text-decoration: none;
    color: #e91e63;
}
.mj-product-card-price ins .amount {
    color: #e91e63;
}
.mj-product-card-atc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: #e91e63;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 10px;
    text-decoration: none;
}
.mj-product-card-atc:hover {
    background: #c2185b;
    color: #ffffff;
}
.mj-product-card-atc svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Sticky Add to Cart Bar
   ============================================ */

.mj-sticky-atc {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #ffffff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-width: 100%;
}
.mj-sticky-atc.visible {
    transform: translateY(0);
}
.mj-sticky-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.mj-sticky-info {
    flex: 1;
    min-width: 0;
}
.mj-sticky-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mj-sticky-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e91e63;
}
.mj-sticky-price del {
    font-size: 0.8rem;
    color: #999;
    font-weight: 400;
    margin-right: 6px;
}
.mj-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 28px;
    background: #e91e63;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.mj-sticky-btn:hover {
    background: #c2185b;
}
.mj-sticky-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .mj-product-main {
        gap: 32px;
    }
    .mj-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .single-product .wp-block-post-content {
        padding: 0 16px;
    }

    /* Single column layout */
    .mj-product-main {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 8px 0 32px;
    }
    .mj-product-gallery {
        position: static;
        margin: 0 -16px;
    }
    .mj-product-gallery .woocommerce-product-gallery__image img {
        aspect-ratio: 1 / 1;
    }
    .mj-product-gallery .flex-control-thumbs {
        padding: 0 16px;
    }

    /* Product info */
    .mj-product-info .product_title {
        font-size: 1.35rem;
        margin-top: 16px;
    }
    .mj-product-price .price {
        font-size: 1.4rem;
    }
    .mj-product-trust {
        grid-template-columns: 1fr 1fr;
    }

    /* CTAs */
    .mj-secondary-ctas {
        grid-template-columns: 1fr 1fr;
    }
    .mj-buy-now-btn {
        flex: 1;
        height: 44px;
        font-size: 0.82rem;
        letter-spacing: 0.5px;
    }

    /* Accordion for mobile (tabs hidden) */
    .mj-tabs-nav {
        display: none;
    }
    .mj-tab-panel {
        display: none !important;
    }
    .mj-accordion-item {
        display: block;
        border-bottom: 1px solid #e8e8e8;
    }
    .mj-accordion-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 0;
        background: transparent;
        border: none;
        font-size: 0.95rem;
        font-weight: 600;
        color: #1a1a1a;
        cursor: pointer;
        text-align: left;
    }
    .mj-accordion-header:hover {
        color: #e91e63;
    }
    .mj-accordion-icon {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }
    .mj-accordion-item.open .mj-accordion-icon {
        transform: rotate(180deg);
    }
    .mj-accordion-content {
        display: none;
        padding-bottom: 16px;
    }
    .mj-accordion-item.open .mj-accordion-content {
        display: block;
        animation: mj-fade-in 0.3s ease;
    }

    /* Related products */
    .mj-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .mj-related-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Reviews */
    .mj-reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .mj-reviews-summary {
        width: 100%;
    }
    .mj-rating-bar {
        flex: 1;
    }

    /* Sticky bar mobile */
    .mj-sticky-atc {
        padding: 10px 16px;
        gap: 12px;
    }
    .mj-sticky-name {
        max-width: 120px;
    }
    .mj-sticky-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .mj-product-main {
        padding: 0 0 24px;
    }
    .mj-product-gallery {
        margin: 0 -16px;
    }
    .mj-product-info .product_title {
        font-size: 1.2rem;
    }
    .mj-product-price .price {
        font-size: 1.25rem;
    }
    .mj-cart-row {
        flex-direction: row;
    }
    .mj-buy-now-btn {
        height: 44px;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
    .mj-add-to-cart-btn,
    .mj-buy-now-btn {
        width: auto;
    }
    .mj-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .mj-product-card-body {
        padding: 10px 12px 14px;
    }
    .mj-product-card-name {
        font-size: 0.82rem;
    }
    .mj-sticky-thumb {
        display: none;
    }
}

/* ============================================
   WooCommerce Default Overrides
   ============================================ */

/* Hide WooCommerce default single product layout elements */
.single-product .woocommerce-product-gallery {
    max-width: 100%;
    width: 100% !important;
    float: none !important;
    opacity: 1 !important;
}
.single-product div.product {
    display: contents;
}
.single-product div.product .woocommerce-product-gallery {
    width: 100% !important;
}
.single-product div.product .summary {
    width: 100% !important;
    float: none !important;
}

/* Reset WooCommerce's default product layout */
.single-product div.product::before,
.single-product div.product::after {
    display: none;
}

/* Ensure WooCommerce notices show above content */
.single-product .woocommerce-notices-wrapper {
    margin-bottom: 16px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 32px;
}
/* Hide sale flash in gallery */
.single-product .woocommerce-product-gallery .onsale {
    display: none;
}
/* Hide any WooCommerce default elements we've replaced with custom ones */
.single-product .woocommerce-product-details__short-description {
    display: none;
}
.single-product .summary .price {
    display: none;
}
.single-product .summary .woocommerce-product-rating {
    display: none;
}
.single-product #reviews {
    display: none;
}
.single-product .woocommerce-Reviews-title {
    display: none;
}
.single-product #review_form_wrapper {
    display: none;
}
.single-product .related.products,
.single-product .up-sells.products {
    display: none;
}
/* Hide WooCommerce tabs we replaced with accordion */
.single-product .woocommerce-tabs {
    display: none;
}
/* Hide default product meta (SKU, categories) */
.single-product .product_meta {
    display: none;
}
