
/* ==========================================================
   KAVIYAVIN THARIGAI
   PREMIUM WOOCOMMERCE SINGLE PRODUCT PAGE
   Blonwe Theme | Responsive CSS
   File: kt-product-page.css

   CSS ONLY — Existing PHP and JS are preserved.
   ========================================================== */

/* ---------------- BRAND VARIABLES ---------------- */

.single-product {
    --ktp-maroon: #2B0713;
    --ktp-dark: #24050F;
    --ktp-gold: #D7AE68;
    --ktp-cream: #FFF8EF;
    --ktp-soft-cream: #F5E9D5;
    --ktp-text: #49352F;
    --ktp-muted: #88766D;
    --ktp-border: rgba(43, 7, 19, 0.14);
    --ktp-white: #FFFFFF;

    color: var(--ktp-text);
    font-family: "Montserrat", Arial, sans-serif;
}

.single-product *,
.single-product *::before,
.single-product *::after {
    box-sizing: border-box;
}

.single-product img {
    max-width: 100%;
}

.single-product a {
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.single-product a:focus-visible,
.single-product button:focus-visible,
.single-product input:focus-visible,
.single-product select:focus-visible {
    outline: 2px solid var(--ktp-gold);
    outline-offset: 3px;
}

/* ---------------- PAGE CONTAINER ---------------- */

.single-product .content-wrapper {
    width: 100%;
    max-width: 1440px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 28px;
    padding-left: 28px;
}

.single-product .primary-column {
    min-width: 0;
}

.single-product .single-product-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    column-gap: clamp(28px, 3.5vw, 58px);
    row-gap: 48px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

/* ---------------- PRODUCT GALLERY ---------------- */

.single-product .single-product-wrapper > .product-gallery {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    align-self: start;
}

.single-product .product-gallery .woocommerce-product-gallery {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--ktp-cream);
    border: 1px solid var(--ktp-border);
    border-radius: 4px;
}

/* Preserve WooCommerce gallery structure and JS-controlled opacity.
   Do not force opacity: 1 before gallery initialization. */

.single-product .woocommerce-product-gallery__wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.single-product .woocommerce-product-gallery__wrapper
.woocommerce-product-gallery__image {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--ktp-cream);
}

.single-product .woocommerce-product-gallery__wrapper
.woocommerce-product-gallery__image a {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.single-product .woocommerce-product-gallery__wrapper
.woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: center;
    background: var(--ktp-cream);
    box-shadow: none;
}

/* Avoid stretching the main image into an incorrect fixed height. */

.single-product .woocommerce-product-gallery .flex-viewport {
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--ktp-cream);
}

.single-product .woocommerce-product-gallery
.woocommerce-product-gallery__image--placeholder {
    min-height: 300px;
    background: var(--ktp-soft-cream);
}

/* ---------------- SALE PERCENTAGE ---------------- */

.single-product .product-gallery .onsale,
.single-product .product-gallery .sale-percentage,
.single-product .product-gallery .percentage {
    border: 0;
    border-radius: 50%;
    background: var(--ktp-maroon);
    color: var(--ktp-cream);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

/* ---------------- GALLERY ZOOM ---------------- */

.single-product .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ktp-border);
    border-radius: 50%;
    background: var(--ktp-cream);
    color: var(--ktp-maroon);
    box-shadow: 0 3px 12px rgba(36, 5, 15, 0.10);
}

.single-product .woocommerce-product-gallery__trigger:hover {
    background: var(--ktp-maroon);
    color: var(--ktp-cream);
}

/* ---------------- GALLERY THUMBNAILS ---------------- */

.single-product .woocommerce-product-gallery
.flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.single-product .woocommerce-product-gallery
.flex-control-thumbs li {
    float: none;
    width: calc((100% - 30px) / 4);
    max-width: 110px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--ktp-border);
    border-radius: 3px;
    background: var(--ktp-white);
    cursor: pointer;
    transition: border-color 0.25s ease;
}

.single-product .woocommerce-product-gallery
.flex-control-thumbs li:hover {
    border-color: var(--ktp-gold);
}

.single-product .woocommerce-product-gallery
.flex-control-thumbs img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0;
    padding: 0;
    object-fit: cover;
    opacity: 0.78;
    transition: opacity 0.25s ease;
}

.single-product .woocommerce-product-gallery
.flex-control-thumbs img.flex-active,
.single-product .woocommerce-product-gallery
.flex-control-thumbs img:hover {
    opacity: 1;
}

/* Theme thumbnail slider wrapper */

.single-product .klb-flexslider-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 14px;
    overflow: hidden;
}

.single-product .klb-flexslider-thumbnail .flex-viewport {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.single-product .klb-flexslider-thumbnail .flex-control-thumbs {
    margin-top: 0;
}

/* ---------------- PRODUCT DETAILS ---------------- */

.single-product .single-product-wrapper > .product-detail {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    align-self: start;
}

.single-product .product-detail-inner {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.single-product .product-detail-inner .summary {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ---------------- PRODUCT TITLE ---------------- */

.single-product .product-detail .product_title,
.single-product .product-detail h1.product_title {
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--ktp-border);
    color: var(--ktp-maroon);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(32px, 3vw, 43px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.1px;
    overflow-wrap: anywhere;
}

/* ---------------- RATING ---------------- */

.single-product .product-detail .woocommerce-product-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.single-product .product-detail .star-rating {
    color: var(--ktp-gold);
}

.single-product .product-detail .woocommerce-review-link {
    color: var(--ktp-muted);
    font-size: 12px;
    text-decoration: none;
}

/* ---------------- PRICE ---------------- */

.single-product .product-detail p.price,
.single-product .product-detail span.price {
    display: block;
    margin: 0 0 16px;
    color: var(--ktp-maroon);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(23px, 2.1vw, 29px);
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.single-product .product-detail .price del {
    margin-right: 8px;
    color: #9B8C84;
    font-size: 0.66em;
    font-weight: 400;
    opacity: 0.9;
}

.single-product .product-detail .price ins {
    color: var(--ktp-maroon);
    text-decoration: none;
}

.single-product .product-detail .price .woocommerce-Price-amount {
    white-space: normal;
}

/* ---------------- PRODUCT DESCRIPTION ---------------- */

.single-product .product-detail .woocommerce-product-details__short-description {
    margin: 0 0 22px;
    color: var(--ktp-text);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.85;
}

.single-product .product-detail .woocommerce-product-details__short-description p {
    margin: 0 0 12px;
}

/* ---------------- VARIATIONS FORM ---------------- */

.single-product .product-detail form.variations_form {
    width: 100%;
    margin: 22px 0 0;
}

.single-product .product-detail table.variations {
    width: 100%;
    margin: 0 0 20px;
    border: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.single-product .product-detail table.variations tr,
.single-product .product-detail table.variations th,
.single-product .product-detail table.variations td {
    border: 0;
    background: transparent;
}

.single-product .product-detail table.variations th.label {
    display: block;
    width: 100%;
    margin: 0 0 7px;
    padding: 0;
    text-align: left;
}

.single-product .product-detail table.variations th.label label {
    color: var(--ktp-maroon);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.4px;
}

.single-product .product-detail table.variations td.value {
    display: block;
    width: 100%;
    padding: 0;
}

.single-product .product-detail table.variations select,
.single-product .product-detail form.cart select,
.single-product .product-detail select#pa_size {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 42px 12px 14px;
    border: 1px solid var(--ktp-border);
    border-radius: 3px;
    background-color: var(--ktp-white);
    color: var(--ktp-maroon);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: none;
    cursor: pointer;
}

.single-product .product-detail table.variations select:focus,
.single-product .product-detail form.cart select:focus {
    border-color: var(--ktp-gold);
    outline: none;
    box-shadow: 0 0 0 2px rgba(215, 174, 104, 0.18);
}

.single-product .product-detail .reset_variations {
    display: inline-block;
    margin-top: 8px;
    color: var(--ktp-muted);
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-product .product-detail .woocommerce-variation {
    margin: 12px 0;
}

.single-product .product-detail .woocommerce-variation-price {
    margin: 0 0 8px;
    color: var(--ktp-maroon);
    font-size: 20px;
    font-weight: 700;
}

.single-product .product-detail .woocommerce-variation-availability {
    margin: 8px 0;
    font-size: 12px;
}

.single-product .product-detail .stock {
    color: #557047;
    font-size: 12px;
    font-weight: 600;
}

.single-product .product-detail .stock.out-of-stock {
    color: #A52835;
}

/* ---------------- CART FORM ---------------- */

.single-product .product-detail form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 24px 0 20px;
    padding: 0;
}

.single-product .product-detail form.cart .quantity {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 46px;
    margin: 0;
    border: 1px solid var(--ktp-border);
    border-radius: 3px;
    background: var(--ktp-white);
}

.single-product .product-detail form.cart .quantity input.qty {
    width: 58px;
    max-width: 58px;
    min-height: 44px;
    margin: 0;
    padding: 8px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ktp-maroon);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    box-shadow: none;
}

.single-product .product-detail form.cart button.single_add_to_cart_button,
.single-product .product-detail form.cart .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    gap: 8px;
    min-width: 160px;
    min-height: 46px;
    margin: 0;
    padding: 13px 24px;
    border: 1px solid var(--ktp-maroon);
    border-radius: 3px;
    background: var(--ktp-maroon);
    color: var(--ktp-cream);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.6px;
    text-align: center;
    text-transform: uppercase;
    box-shadow: none;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.single-product .product-detail form.cart button.single_add_to_cart_button:hover,
.single-product .product-detail form.cart .single_add_to_cart_button:hover {
    border-color: var(--ktp-gold);
    background: var(--ktp-gold);
    color: var(--ktp-dark);
}

.single-product .product-detail form.cart
.single_add_to_cart_button.disabled,
.single-product .product-detail form.cart
.single_add_to_cart_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------------- WISHLIST / META ---------------- */

/* Style common wishlist links without inventing or duplicating controls. */

.single-product .product-detail .yith-wcwl-add-to-wishlist,
.single-product .product-detail .tinv-wraper {
    margin: 12px 0;
}

.single-product .product-detail .yith-wcwl-add-to-wishlist a,
.single-product .product-detail .tinv-wraper a {
    color: var(--ktp-maroon);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.single-product .product-detail .yith-wcwl-add-to-wishlist a:hover,
.single-product .product-detail .tinv-wraper a:hover {
    color: #9C7040;
}

.single-product .product-detail .product_meta {
    margin: 22px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--ktp-border);
    color: var(--ktp-muted);
    font-size: 11px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.single-product .product-detail .product_meta a {
    color: var(--ktp-maroon);
    text-decoration: none;
}

.single-product .product-detail .product_meta a:hover {
    color: #9C7040;
}

/* ---------------- PRODUCT CONTENT / TABS ---------------- */

.single-product .single-product-wrapper > .product-content {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 12px 0 0;
}

.single-product .product-content .woocommerce-tabs {
    width: 100%;
    margin: 0 0 38px;
    padding: 0;
}

.single-product .product-content .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--ktp-border);
}

.single-product .product-content .woocommerce-tabs ul.tabs::before,
.single-product .product-content .woocommerce-tabs ul.tabs::after {
    display: none;
}

.single-product .product-content .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.single-product .product-content .woocommerce-tabs ul.tabs li::before,
.single-product .product-content .woocommerce-tabs ul.tabs li::after {
    display: none;
}

.single-product .product-content .woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 8px 0;
    color: var(--ktp-muted);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 19px;
    font-weight: 600;
}

.single-product .product-content .woocommerce-tabs ul.tabs li.active a,
.single-product .product-content .woocommerce-tabs ul.tabs li a:hover {
    color: var(--ktp-maroon);
}

.single-product .product-content .woocommerce-Tabs-panel {
    margin: 0;
    padding: 22px 0;
    color: var(--ktp-text);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.9;
}

.single-product .product-content .woocommerce-Tabs-panel h2 {
    margin: 0 0 16px;
    color: var(--ktp-maroon);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 27px;
    font-weight: 600;
}

/* ---------------- RELATED / UPSELL PRODUCTS ---------------- */

.single-product .product-content .related,
.single-product .product-content .up-sells {
    width: 100%;
    margin: 34px 0 0;
    padding: 0;
}

.single-product .product-content .related > h2,
.single-product .product-content .up-sells > h2 {
    margin: 0 0 22px;
    color: var(--ktp-maroon);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 600;
    line-height: 1.25;
}

.single-product .product-content .related ul.products,
.single-product .product-content .up-sells ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.single-product .product-content .related ul.products::before,
.single-product .product-content .related ul.products::after,
.single-product .product-content .up-sells ul.products::before,
.single-product .product-content .up-sells ul.products::after {
    display: none;
}

.single-product .product-content .related ul.products li.product,
.single-product .product-content .up-sells ul.products li.product {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 14px;
    overflow: hidden;
    border: 1px solid var(--ktp-border);
    border-radius: 4px;
    background: var(--ktp-white);
    box-shadow: 0 3px 14px rgba(36, 5, 15, 0.04);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.single-product .product-content .related ul.products li.product:hover,
.single-product .product-content .up-sells ul.products li.product:hover {
    border-color: rgba(215, 174, 104, 0.8);
    box-shadow: 0 8px 22px rgba(36, 5, 15, 0.08);
}

.single-product .product-content .related ul.products li.product img,
.single-product .product-content .up-sells ul.products li.product img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 0 12px;
    object-fit: cover;
    background: var(--ktp-cream);
}

.single-product .product-content .related ul.products li.product .woocommerce-loop-product__title,
.single-product .product-content .up-sells ul.products li.product .woocommerce-loop-product__title {
    margin: 0 12px 8px;
    padding: 0;
    color: var(--ktp-maroon);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

.single-product .product-content .related ul.products li.product .price,
.single-product .product-content .up-sells ul.products li.product .price {
    display: block;
    margin: 0 12px 12px;
    color: var(--ktp-maroon);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.single-product .product-content .related ul.products li.product .price del,
.single-product .product-content .up-sells ul.products li.product .price del {
    color: var(--ktp-muted);
    font-weight: 400;
}

.single-product .product-content .related ul.products li.product .price ins,
.single-product .product-content .up-sells ul.products li.product .price ins {
    text-decoration: none;
}

/* ---------------- RESPONSIVE TABLET ---------------- */

@media (max-width: 1024px) {
    .single-product .content-wrapper {
        padding-right: 22px;
        padding-left: 22px;
    }

    .single-product .single-product-wrapper {
        column-gap: 24px;
        row-gap: 38px;
    }

    .single-product .product-detail .product_title,
    .single-product .product-detail h1.product_title {
        font-size: clamp(29px, 3.5vw, 37px);
    }

    .single-product .product-content .related ul.products,
    .single-product .product-content .up-sells ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

/* ---------------- RESPONSIVE MOBILE ---------------- */

@media (max-width: 767px) {
    .single-product .content-wrapper {
        padding-right: 15px;
        padding-left: 15px;
    }

    .single-product .single-product-wrapper {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 26px;
    }

    .single-product .single-product-wrapper > .product-gallery,
    .single-product .single-product-wrapper > .product-detail,
    .single-product .single-product-wrapper > .product-content {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

    .single-product .product-detail .product_title,
    .single-product .product-detail h1.product_title {
        margin-bottom: 14px;
        padding-bottom: 14px;
        font-size: clamp(29px, 7vw, 36px);
    }

    .single-product .product-detail p.price,
    .single-product .product-detail span.price {
        font-size: 24px;
    }

    .single-product .product-detail .woocommerce-product-details__short-description {
        font-size: 13px;
        line-height: 1.8;
    }

    .single-product .woocommerce-product-gallery__trigger {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .single-product .woocommerce-product-gallery
    .flex-control-thumbs {
        gap: 8px;
        margin-top: 10px;
    }

    .single-product .woocommerce-product-gallery
    .flex-control-thumbs li {
        width: calc((100% - 24px) / 4);
    }

    .single-product .product-detail form.cart {
        gap: 10px;
        margin-top: 20px;
    }

    .single-product .product-detail form.cart .quantity {
        min-height: 44px;
    }

    .single-product .product-detail form.cart .quantity input.qty {
        min-height: 42px;
    }

    .single-product .product-detail form.cart button.single_add_to_cart_button,
    .single-product .product-detail form.cart .single_add_to_cart_button {
        flex: 1 1 150px;
        min-width: 0;
        min-height: 44px;
        padding: 12px 14px;
    }

    .single-product .product-content .woocommerce-tabs ul.tabs {
        gap: 18px;
    }

    .single-product .product-content .woocommerce-tabs ul.tabs li a {
        font-size: 17px;
    }

    .single-product .product-content .related ul.products,
    .single-product .product-content .up-sells ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .single-product .product-content .related ul.products li.product .woocommerce-loop-product__title,
    .single-product .product-content .up-sells ul.products li.product .woocommerce-loop-product__title {
        margin-right: 9px;
        margin-left: 9px;
        font-size: 17px;
    }

    .single-product .product-content .related ul.products li.product .price,
    .single-product .product-content .up-sells ul.products li.product .price {
        margin-right: 9px;
        margin-left: 9px;
        font-size: 11px;
    }
}

/* ---------------- SMALL MOBILE ---------------- */

@media (max-width: 380px) {
    .single-product .content-wrapper {
        padding-right: 11px;
        padding-left: 11px;
    }

    .single-product .product-detail form.cart {
        align-items: stretch;
    }

    .single-product .product-detail form.cart .quantity {
        flex: 0 0 auto;
    }

    .single-product .product-detail form.cart button.single_add_to_cart_button,
    .single-product .product-detail form.cart .single_add_to_cart_button {
        flex: 1 1 120px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 10px;
    }

    .single-product .product-content .related ul.products,
    .single-product .product-content .up-sells ul.products {
        gap: 10px;
    }
}

/* ---------------- ACCESSIBILITY ---------------- */

@media (prefers-reduced-motion: reduce) {
    .single-product *,
    .single-product *::before,
    .single-product *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================
   KT PRODUCT GALLERY THUMBNAILS FIX
   ADD THIS AT THE END OF EXISTING CSS
========================================================== */

.single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    float: none;
    width: 80px;
    max-width: 80px;
    flex: 0 0 80px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    border: 1px solid rgba(43, 7, 19, 0.14);
    border-radius: 3px;
    background: #FFFFFF;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    display: block;
    width: 100%;
    height: 100px;
    margin: 0;
    padding: 0;
    object-fit: cover;
    opacity: 1;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li::before,
.single-product .woocommerce-product-gallery .flex-control-thumbs li::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 767px) {
    .single-product .woocommerce-product-gallery .flex-control-thumbs {
        gap: 8px;
        margin-top: 10px;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs li {
        width: 65px;
        max-width: 65px;
        flex-basis: 65px;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs li img {
        height: 82px;
    }
}

/* ==========================================================
   KAVIYAVIN THARIGAI
   SINGLE PRODUCT PAGE — REFERENCE DESIGN FIX
   ========================================================== */

/* ---------- MAIN PRODUCT LAYOUT ---------- */

.single-product .single-product-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
    column-gap: 42px !important;
    row-gap: 24px !important;
    align-items: start !important;
}

/* ---------- PRODUCT GALLERY ---------- */

.single-product .single-product-wrapper > .product-gallery {
    width: 100% !important;
    min-width: 0 !important;
}

.single-product .product-gallery .woocommerce-product-gallery {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 130px !important;
    column-gap: 18px !important;
    align-items: start !important;
    overflow: visible !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* Main image */

.single-product .woocommerce-product-gallery .flex-viewport {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 600px !important;
    overflow: hidden !important;
    border-radius: 5px !important;
    background: #FFF8EF !important;
}

.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image {
    width: 100% !important;
    height: 600px !important;
}

.single-product .woocommerce-product-gallery__image a {
    display: block !important;
    width: 100% !important;
    height: 600px !important;
}

.single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 600px !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* ---------- RIGHT SIDE THUMBNAILS ---------- */

.single-product .woocommerce-product-gallery .flex-control-thumbs {
    grid-column: 2 !important;
    grid-row: 1 !important;

    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 18px !important;

    width: 130px !important;
    height: 600px !important;
    margin: 0 !important;
    padding: 0 !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;
    list-style: none !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    float: none !important;
    flex: 0 0 160px !important;

    width: 130px !important;
    max-width: 130px !important;
    height: 160px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid rgba(43, 7, 19, 0.14) !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    opacity: 1 !important;
    border-radius: 4px !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    border: 2px solid #D7AE68 !important;
}

/* Remove unwanted thumbnail slider spacing */

.single-product .klb-flexslider-thumbnail {
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* ---------- PRODUCT INFORMATION ---------- */

.single-product .single-product-wrapper > .product-detail {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
}

.single-product .product-detail-inner,
.single-product .product-detail-inner .summary {
    width: 100% !important;
    max-width: 100% !important;
}

/* Product title */

.single-product .product-detail .product_title {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 42px !important;
    line-height: 1.2 !important;
    color: #2B0713 !important;
    margin-bottom: 18px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(43, 7, 19, 0.12) !important;
}

/* Price */

.single-product .product-detail p.price,
.single-product .product-detail span.price {
    font-family: "Montserrat", sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2B0713 !important;
}

/* Description */

.single-product .product-detail .woocommerce-product-details__short-description {
    font-family: "Montserrat", sans-serif !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: #49352F !important;
    margin: 18px 0 24px !important;
}

/* Add to cart and wishlist */

.single-product .product-detail form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 14px !important;
}

.single-product .product-detail .single_add_to_cart_button {
    background: #2B0713 !important;
    color: #FFF8EF !important;
    border: 1px solid #2B0713 !important;
    min-height: 50px !important;
}

.single-product .product-detail .single_add_to_cart_button:hover {
    background: #D7AE68 !important;
    color: #24050F !important;
    border-color: #D7AE68 !important;
}

/* ---------- DESCRIPTION / ADDITIONAL INFO / REVIEWS ---------- */

.single-product .single-product-wrapper > .product-content {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    margin-top: -8px !important;
    padding-top: 0 !important;
}

.single-product .product-content .woocommerce-tabs {
    width: 100% !important;
    margin: 0 !important;
}

.single-product .product-content .woocommerce-tabs ul.tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    border-bottom: 1px solid #D7AE68 !important;
    padding-bottom: 10px !important;
}

.single-product .product-content .woocommerce-tabs ul.tabs li a {
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
    color: #2B0713 !important;
}

.single-product .product-content .woocommerce-Tabs-panel {
    padding: 18px 0 !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
}

/* ---------- RESPONSIVE TABLET ---------- */

@media (max-width: 1024px) {

    .single-product .single-product-wrapper {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        column-gap: 24px !important;
    }

    .single-product .product-gallery .woocommerce-product-gallery {
        grid-template-columns: minmax(0, 1fr) 95px !important;
        gap: 12px !important;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs {
        width: 95px !important;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs li {
        width: 95px !important;
        max-width: 95px !important;
        height: 125px !important;
        flex-basis: 125px !important;
    }

    .single-product .woocommerce-product-gallery .flex-viewport,
    .single-product .woocommerce-product-gallery__wrapper,
    .single-product .woocommerce-product-gallery__image,
    .single-product .woocommerce-product-gallery__image a,
    .single-product .woocommerce-product-gallery__image img {
        height: 500px !important;
    }
}

/* ---------- RESPONSIVE MOBILE ---------- */

@media (max-width: 767px) {

    .single-product .single-product-wrapper {
        grid-template-columns: minmax(0, 1fr) !important;
        row-gap: 28px !important;
    }

    .single-product .single-product-wrapper > .product-gallery,
    .single-product .single-product-wrapper > .product-detail,
    .single-product .single-product-wrapper > .product-content {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .single-product .product-gallery .woocommerce-product-gallery {
        grid-template-columns: minmax(0, 1fr) 75px !important;
        gap: 10px !important;
    }

    .single-product .woocommerce-product-gallery .flex-viewport,
    .single-product .woocommerce-product-gallery__wrapper,
    .single-product .woocommerce-product-gallery__image,
    .single-product .woocommerce-product-gallery__image a,
    .single-product .woocommerce-product-gallery__image img {
        height: 430px !important;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs {
        width: 75px !important;
        height: 430px !important;
        gap: 10px !important;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs li {
        width: 75px !important;
        max-width: 75px !important;
        height: 105px !important;
        flex-basis: 105px !important;
    }

    .single-product .product-detail .product_title {
        font-size: 34px !important;
    }

    .single-product .product-content .woocommerce-tabs ul.tabs {
        gap: 14px !important;
        overflow-x: auto !important;
    }

    .single-product .product-content .woocommerce-tabs ul.tabs li a {
        font-size: 12px !important;
        white-space: nowrap !important;
    }
}

/* ---------- SMALL MOBILE ---------- */

@media (max-width: 480px) {

    .single-product .product-gallery .woocommerce-product-gallery {
        grid-template-columns: minmax(0, 1fr) 62px !important;
        gap: 8px !important;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs {
        width: 62px !important;
        height: 360px !important;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs li {
        width: 62px !important;
        max-width: 62px !important;
        height: 88px !important;
        flex-basis: 88px !important;
    }

    .single-product .woocommerce-product-gallery .flex-viewport,
    .single-product .woocommerce-product-gallery__wrapper,
    .single-product .woocommerce-product-gallery__image,
    .single-product .woocommerce-product-gallery__image a,
    .single-product .woocommerce-product-gallery__image img {
        height: 360px !important;
    }
}


/* ==========================================
   RELATED PRODUCTS BELOW RECENTLY VIEWED
========================================== */

/* Related products section */
.single-product .related.products {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    position: relative !important;
    margin-top: 50px !important;
    margin-bottom: 40px !important;
}

/* Recently viewed products */
.single-product .recently-viewed-products,
.single-product section.cross-sells {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    position: relative !important;
    margin-bottom: 40px !important;
}

/* Related products heading */
.single-product .related.products > h2 {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 36px !important;
    font-weight: 600 !important;
    color: #2B0713 !important;
    margin-bottom: 25px !important;
}

/* Desktop product grid */
.single-product .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .single-product .related.products ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .single-product .related.products {
        margin-top: 35px !important;
    }

    .single-product .related.products > h2 {
        font-size: 28px !important;
    }

    .single-product .related.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

/* ==========================================================
   KT PRODUCT LIGHTBOX — FULLSCREEN RESPONSIVE FIX
========================================================== */

/* Fullscreen lightbox background */
.single-product .pswp,
.pswp {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #000 !important;
    z-index: 999999 !important;
}

/* Main lightbox container */
.pswp__scroll-wrap {
    position: absolute !important;
    inset: 0 !important;
    overflow: hidden !important;
}

/* Image slide positioning */
.pswp__container {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Image proper center alignment */
.pswp__item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pswp__zoom-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform-origin: center center !important;
}

/* Actual product image */
.pswp__img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    width: auto !important;
    height: auto !important;

    max-width: 90vw !important;
    max-width: 90dvw !important;

    max-height: 90vh !important;
    max-height: 90dvh !important;

    object-fit: contain !important;
    object-position: center center !important;
}

/* Navigation arrows — vertical center */
.pswp__button--arrow--left,
.pswp__button--arrow--right {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 50px !important;
    height: 50px !important;

    z-index: 999999 !important;
    background-color: transparent !important;
    opacity: 1 !important;
}

/* Left arrow */
.pswp__button--arrow--left {
    left: 20px !important;
    right: auto !important;
}

/* Right arrow */
.pswp__button--arrow--right {
    right: 20px !important;
    left: auto !important;
}

/* Close button */
.pswp__button--close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
}

/* Counter */
.pswp__counter {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 999999 !important;
    color: #fff !important;
    font-size: 14px !important;
}

/* ---------- TABLET ---------- */

@media (max-width: 1024px) {
    .pswp__img {
        max-width: 88vw !important;
        max-width: 88dvw !important;
        max-height: 88vh !important;
        max-height: 88dvh !important;
    }

    .pswp__button--arrow--left {
        left: 12px !important;
    }

    .pswp__button--arrow--right {
        right: 12px !important;
    }
}

/* ---------- MOBILE ---------- */

@media (max-width: 767px) {
    .pswp__img {
        max-width: 94vw !important;
        max-width: 94dvw !important;
        max-height: 82vh !important;
        max-height: 82dvh !important;
    }

    .pswp__button--arrow--left,
    .pswp__button--arrow--right {
        width: 38px !important;
        height: 44px !important;
    }

    .pswp__button--arrow--left {
        left: 5px !important;
    }

    .pswp__button--arrow--right {
        right: 5px !important;
    }

    .pswp__button--close {
        top: 10px !important;
        right: 10px !important;
    }

    .pswp__counter {
        top: 14px !important;
        left: 12px !important;
        font-size: 12px !important;
    }
}

/* ---------- SMALL MOBILE ---------- */

@media (max-width: 480px) {
    .pswp__img {
        max-width: 96vw !important;
        max-width: 96dvw !important;
        max-height: 78vh !important;
        max-height: 78dvh !important;
    }
}

/* ============================================
   KT WISHLIST DUPLICATE REMOVE + POPUP FONT FIX
============================================ */

/* REMOVE FIRST DUPLICATE WISHLIST LINK */
.single-product .product-detail-inner .yith-wcwl-add-to-wishlist {
    display: none !important;
}

/* Keep wishlist counter / secondary wishlist area visible */
.single-product .product-detail-inner .tinv-wraper {
    display: block !important;
}

/* WISHLIST POPUP - FONT FAMILY */
.yith-wcwl-popup-message,
.yith-wcwl-popup-message *,
.yith-wcwl-add-to-wishlist-popup,
.yith-wcwl-add-to-wishlist-popup *,
#yith-wcwl-popup-message,
#yith-wcwl-popup-message *,
.tinvwl_added_to_wishlist,
.tinvwl_added_to_wishlist *,
.woocommerce-message,
.woocommerce-message * {
    font-family: "Montserrat", sans-serif !important;
}

/* Popup content */
.yith-wcwl-popup-message,
#yith-wcwl-popup-message {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
}

/* Popup buttons */
.yith-wcwl-popup-message a,
.yith-wcwl-popup-message button,
#yith-wcwl-popup-message a,
#yith-wcwl-popup-message button,
.tinvwl_added_to_wishlist a,
.tinvwl_added_to_wishlist button {
    font-family: "Montserrat", sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

/* Popup View Wishlist / Close buttons */
.yith-wcwl-popup-message a,
#yith-wcwl-popup-message a {
    letter-spacing: 0.2px !important;
    text-decoration: none !important;
}

/* Popup product name */
.yith-wcwl-popup-message strong,
#yith-wcwl-popup-message strong {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 700 !important;
}

/* Popup buttons hover */
.yith-wcwl-popup-message a:hover,
#yith-wcwl-popup-message a:hover {
    opacity: 0.9 !important;
}

/* Mobile popup */
@media (max-width: 767px) {
    .yith-wcwl-popup-message,
    #yith-wcwl-popup-message {
        font-size: 13px !important;
    }

    .yith-wcwl-popup-message a,
    #yith-wcwl-popup-message a {
        font-size: 12px !important;
    }
}

/* =====================================================
   KT PHOTO GALLERY LIGHTBOX - FINAL POSITION FIX
   DO NOT OVERRIDE PHOTOSWIPE TRANSFORMS
===================================================== */

/* Fullscreen background */
.pswp {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    background: #000 !important;
    z-index: 999999 !important;
}

/* Reset PhotoSwipe layout */
.pswp__scroll-wrap {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

/* IMPORTANT: Don't change container/item transforms */
.pswp__container {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
}

/* Slide */
.pswp__item {
    position: absolute !important;
    display: block !important;
    overflow: hidden !important;
}

/* Image wrapper - preserve PhotoSwipe positioning */
.pswp__zoom-wrap {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    transform-origin: 0 0 !important;
}

/* Main image */
.pswp__img {
    position: absolute !important;
    display: block !important;

    max-width: 100% !important;
    max-height: 100% !important;

    width: auto !important;
    height: auto !important;

    object-fit: contain !important;
    object-position: center !important;

    /* IMPORTANT: Remove previous manual positioning */
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
}

/* Navigation arrows */
.pswp__button--arrow--left,
.pswp__button--arrow--right {
    position: absolute !important;
    top: 50% !important;
    margin-top: -25px !important;
    transform: none !important;

    width: 50px !important;
    height: 50px !important;

    z-index: 999999 !important;
    opacity: 1 !important;
    background-color: transparent !important;
}

.pswp__button--arrow--left {
    left: 15px !important;
    right: auto !important;
}

.pswp__button--arrow--right {
    right: 15px !important;
    left: auto !important;
}

/* Close button */
.pswp__button--close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 999999 !important;
}

/* Image counter */
.pswp__counter {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 999999 !important;
    color: #fff !important;
}

/* ---------- MOBILE ---------- */

@media (max-width: 767px) {

    .pswp__button--arrow--left {
        left: 5px !important;
    }

    .pswp__button--arrow--right {
        right: 5px !important;
    }

    .pswp__button--arrow--left,
    .pswp__button--arrow--right {
        width: 40px !important;
        height: 45px !important;
        margin-top: -22px !important;
    }

    .pswp__button--close {
        top: 8px !important;
        right: 8px !important;
    }

    .pswp__counter {
        top: 12px !important;
        left: 12px !important;
        font-size: 12px !important;
    }
}
