/* =========================================================
   SJ MUSIC CUSTOM — PRODUCT PAGE
   WooCommerce native HTML + visual customization only
   Header / footer are intentionally NOT touched.
   ========================================================= */

/* ---------- 01. PRODUCT WRAPPER ---------- */
body.single-product div.product {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0 80px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    column-gap: 64px;
    row-gap: 0;
    box-sizing: border-box;
}

body.single-product div.product::before,
body.single-product div.product::after {
    display: none !important;
}

/* ---------- 02. BREADCRUMB ---------- */
body.single-product .woocommerce-breadcrumb {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto 24px;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #777;
}

body.single-product .woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
}

body.single-product .woocommerce-breadcrumb a:hover {
    color: #111;
}

/* ---------- 03. GALLERY ---------- */
body.single-product .woocommerce-product-gallery {
    position: relative;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box;
}

body.single-product .woocommerce-product-gallery__wrapper {
    margin: 0 !important;
}

body.single-product .woocommerce-product-gallery__image {
    position: relative;
    width: 100%;
    min-height: 500px;
    margin: 0;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #f7f7f7;
    border-radius: 14px;
    overflow: hidden;
}

body.single-product .woocommerce-product-gallery__image a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.single-product .woocommerce-product-gallery__image img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 455px !important;
    margin: 0 !important;
    object-fit: contain;
}

/* Zoom icon */
body.single-product .woocommerce-product-gallery__trigger {
    top: 14px !important;
    right: 14px !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    z-index: 5;
}

/* ---------- 04. THUMBNAILS ---------- */
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    list-style: none;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    width: 76px !important;
    height: 76px !important;
    margin: 0 !important;
    float: none !important;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
    display: block;
    width: 76px !important;
    height: 76px !important;
    margin: 0 !important;
    padding: 5px !important;
    box-sizing: border-box;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 9px;
    opacity: .65;
    transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover {
    opacity: 1;
    transform: translateY(-1px);
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs .flex-active {
    opacity: 1;
    border-color: #111;
}

/* ---------- 05. SALE BADGE ---------- */
body.single-product div.product .onsale {
    top: 0 !important;
    left: -2px !important;
    right: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #fff !important;
    background: #a38b00 !important;
    border-radius: 50px !important;
    transform: translateY(-8px);
    z-index: 8;
}

/* ---------- 06. SUMMARY ---------- */
body.single-product div.product .summary {
    width: 100% !important;
    margin: 0 !important;
    padding: 2px 0 0 !important;
    float: none !important;
    box-sizing: border-box;
}

body.single-product div.product .product_title {
    margin: 0 0 18px !important;
    padding: 0 !important;
    font-family: Arial, sans-serif !important;
    font-size: 40px !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    letter-spacing: -.8px;
    color: #111 !important;
}

body.single-product div.product .summary .price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px !important;
    padding: 0 !important;
    font-family: Arial, sans-serif !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #111 !important;
}

body.single-product div.product .summary .price del {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #999 !important;
}

body.single-product div.product .summary .price del bdi {
    color: #999 !important;
}

body.single-product div.product .summary .price ins {
    color: #a38b00 !important;
    text-decoration: none !important;
}

body.single-product .woocommerce-product-details__short-description {
    margin: 0 0 26px !important;
    padding: 0 !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
    color: #555 !important;
}

body.single-product .woocommerce-product-details__short-description p {
    margin: 0 0 10px !important;
}

body.single-product .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0 !important;
}

/* ---------- 07. PURCHASE AREA ---------- */
body.single-product div.product .summary form.cart {
    width: 100%;
    margin: 0 !important;
    padding: 20px 0 0 !important;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    box-sizing: border-box;
    border-top: 1px solid #e5e5e5;
}

body.single-product div.product .summary form.cart::before,
body.single-product div.product .summary form.cart::after {
    display: none !important;
}

body.single-product div.product .quantity {
    width: 72px !important;
    margin: 0 !important;
    float: none !important;
}

body.single-product div.product .quantity .qty {
    width: 72px !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 7px !important;
    box-sizing: border-box;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    text-align: center;
    color: #111 !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
}

body.single-product div.product .summary .single_add_to_cart_button {
    width: 100% !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    box-sizing: border-box;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #fff !important;
    background: #151515 !important;
    border: 0 !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

body.single-product div.product .summary .single_add_to_cart_button:hover {
    color: #fff !important;
    background: #000 !important;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(0,0,0,.10);
}

/* ---------- 08. WHATSAPP BUTTON ---------- */
body.single-product .sj-music-whatsapp-button {
    width: 100%;
    min-height: 52px;
    margin: 12px 0 0 !important;
    padding: 0 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #fff !important;
    background: #25d366 !important;
    border: 0 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

body.single-product .sj-music-whatsapp-button:hover {
    color: #fff !important;
    background: #20bd5a !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37,211,102,.20);
}

/* ---------- 09. WISHLIST ---------- */
body.single-product .yith-wcwl-add-to-wishlist {
    margin: 16px 0 0 !important;
    padding: 16px 0 !important;
    border-top: 1px solid #e5e5e5;
}

body.single-product .yith-wcwl-add-to-wishlist a {
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    color: #333 !important;
    text-decoration: none !important;
}

body.single-product .yith-wcwl-add-to-wishlist a:hover {
    color: #000 !important;
}

/* ---------- 10. PRODUCT META ---------- */
body.single-product div.product .product_meta {
    margin: 0 !important;
    padding: 15px 0 0 !important;
    font-family: Arial, sans-serif !important;
    font-size: 11px !important;
    line-height: 1.75 !important;
    color: #777 !important;
    border-top: 1px solid #e5e5e5;
}

body.single-product div.product .product_meta > span {
    display: block;
    margin-bottom: 3px;
}

body.single-product div.product .product_meta a {
    color: #555 !important;
    text-decoration: none !important;
}

body.single-product div.product .product_meta a:hover {
    color: #111 !important;
}

/* ---------- 11. TABS ---------- */
body.single-product .woocommerce-tabs {
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0;
    margin: 72px 0 0 !important;
    padding: 0 !important;
    clear: both;
    box-sizing: border-box;
}

body.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #d9d9d9;
    list-style: none;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after {
    display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
    display: block;
    margin: 0;
    padding: 11px 16px;
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    color: #777 !important;
    text-decoration: none !important;
    background: #f4f4f4;
    border: 1px solid #dedede;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
    color: #111 !important;
    background: #fff !important;
    border-color: #d9d9d9;
}

body.single-product .woocommerce-tabs .panel {
    margin: 0 !important;
    padding: 30px 0 0 !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #555 !important;
}

body.single-product .woocommerce-tabs .panel h2 {
    margin: 0 0 16px !important;
    padding: 0 !important;
    font-family: Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #111 !important;
}

body.single-product .woocommerce-tabs .panel p {
    margin: 0 0 14px !important;
}

/* ---------- 12. REVIEWS ---------- */
body.single-product #reviews .commentlist {
    margin: 0;
    padding: 0;
}

body.single-product #reviews .commentlist li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

body.single-product #reviews #review_form_wrapper {
    margin-top: 28px;
}

/* ---------- 13. RELATED PRODUCTS ---------- */
body.single-product .related.products {
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0;
    margin: 78px 0 0 !important;
    padding: 0 !important;
    clear: both;
    box-sizing: border-box;
}

body.single-product .related.products > h2 {
    margin: 0 0 28px !important;
    padding: 0 !important;
    font-family: Arial, sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center;
    color: #111 !important;
}

body.single-product .related.products ul.products {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
    list-style: none !important;
}

body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after {
    display: none !important;
    content: none !important;
}

body.single-product .related.products ul.products li.product {
    width: auto !important;
    min-width: 0 !important;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    box-sizing: border-box;
}

body.single-product .related.products ul.products li.product > a:first-child {
    display: block !important;
    width: 100%;
    margin: 0 !important;
}

body.single-product .related.products ul.products li.product a img {
    display: block !important;
    width: 100% !important;
    height: 190px !important;
    max-width: 100% !important;
    margin: 0 0 13px !important;
    padding: 14px !important;
    box-sizing: border-box;
    object-fit: contain !important;
    background: #f7f7f7 !important;
    border-radius: 10px !important;
}

body.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
    min-height: 40px;
    margin: 0 0 7px !important;
    padding: 0 !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #111 !important;
}

body.single-product .related.products ul.products li.product .price {
    display: block !important;
    margin: 0 0 13px !important;
    padding: 0 !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #111 !important;
}

body.single-product .related.products ul.products li.product .price del {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #999 !important;
}

body.single-product .related.products ul.products li.product .price ins {
    text-decoration: none !important;
}

body.single-product .related.products ul.products li.product a.button,
body.single-product .related.products ul.products li.product a.add_to_cart_button {
    width: 100% !important;
    min-height: 42px !important;
    margin: auto 0 0 !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    color: #111 !important;
    background: #f1f1f1 !important;
    border: 0 !important;
    border-radius: 7px !important;
    text-decoration: none !important;
    transition: transform .2s ease, background .2s ease;
}

body.single-product .related.products ul.products li.product a.button:hover,
body.single-product .related.products ul.products li.product a.add_to_cart_button:hover {
    color: #111 !important;
    background: #e4e4e4 !important;
    transform: translateY(-1px);
}

/* ---------- 14. TABLET ---------- */
@media (max-width: 900px) {
    body.single-product .woocommerce-breadcrumb {
        width: calc(100% - 32px);
        margin-bottom: 20px;
    }

    body.single-product div.product {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 12px;
        padding-bottom: 60px;
    }

    body.single-product .woocommerce-product-gallery__image {
        min-height: 430px;
    }

    body.single-product .woocommerce-product-gallery__image img {
        max-height: 395px !important;
    }

    body.single-product div.product .summary {
        padding-top: 36px !important;
    }

    body.single-product div.product .product_title {
        font-size: 34px !important;
    }

    body.single-product .related.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ---------- 15. MOBILE ---------- */
@media (max-width: 600px) {
    body.single-product .woocommerce-breadcrumb {
        width: calc(100% - 24px);
        margin-bottom: 16px;
        font-size: 11px;
        white-space: normal;
    }

    body.single-product div.product {
        width: calc(100% - 24px);
        padding-top: 8px;
        padding-bottom: 44px;
    }

    body.single-product .woocommerce-product-gallery__image {
        min-height: 320px;
        padding: 18px;
        border-radius: 11px;
    }

    body.single-product .woocommerce-product-gallery__image img {
        max-height: 300px !important;
    }

    body.single-product .woocommerce-product-gallery__trigger {
        top: 10px !important;
        right: 10px !important;
        width: 38px !important;
        height: 38px !important;
    }

    body.single-product .woocommerce-product-gallery .flex-control-thumbs {
        gap: 7px;
    }

    body.single-product .woocommerce-product-gallery .flex-control-thumbs li,
    body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
        width: 60px !important;
        height: 60px !important;
    }

    body.single-product div.product .summary {
        padding-top: 28px !important;
    }

    body.single-product div.product .product_title {
        margin-bottom: 15px !important;
        font-size: 28px !important;
        line-height: 1.12 !important;
        letter-spacing: -.4px;
    }

    body.single-product div.product .summary .price {
        margin-bottom: 18px !important;
        font-size: 20px !important;
    }

    body.single-product .woocommerce-product-details__short-description {
        margin-bottom: 22px !important;
        font-size: 13px !important;
        line-height: 1.7 !important;
    }

    body.single-product div.product .summary form.cart {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 8px;
    }

    body.single-product div.product .quantity,
    body.single-product div.product .quantity .qty {
        width: 72px !important;
    }

    body.single-product .sj-music-whatsapp-button {
        min-height: 50px;
    }

    body.single-product .woocommerce-tabs {
        margin-top: 52px !important;
    }

    body.single-product .woocommerce-tabs ul.tabs {
        gap: 4px;
    }

    body.single-product .woocommerce-tabs ul.tabs li a {
        padding: 9px 11px;
        font-size: 12px !important;
    }

    body.single-product .woocommerce-tabs .panel {
        padding-top: 24px !important;
        font-size: 13px !important;
        line-height: 1.7 !important;
    }

    body.single-product .woocommerce-tabs .panel h2 {
        font-size: 20px !important;
    }

    body.single-product .related.products {
        margin-top: 54px !important;
    }

    body.single-product .related.products > h2 {
        margin-bottom: 20px !important;
        font-size: 22px !important;
    }

    body.single-product .related.products ul.products {
        grid-template-columns: 1fr !important;
        gap: 26px !important;
    }

    body.single-product .related.products ul.products li.product a img {
        height: 220px !important;
    }
}
