/* =========================================
   K DISHA NX - PREMIUM SINGLE PRODUCT PAGE
   ========================================= */

body.single-product {
    background: #fff;
}

/* Main Product Area */
.single-product div.product {
    max-width: 1500px;
    margin: 0 auto;
    padding: 45px 45px 25px;
}

/* Product Image Gallery */
.single-product div.product .woocommerce-product-gallery {
    width: 48%;
    margin-right: 5%;
}

.single-product .woocommerce-product-gallery__wrapper {
    border-radius: 14px;
    overflow: hidden;
    background: #faf7f3;
}

.single-product .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Right Product Information */
.single-product div.product .summary {
    width: 47%;
    padding: 15px 10px;
}

/* Product Title */
.single-product .product_title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    line-height: 1.12;
    font-weight: 600;
    color: #171717;
    margin: 0 0 14px;
}

/* Price */
.single-product div.product p.price,
.single-product div.product span.price {
    font-size: 30px;
    font-weight: 700;
    color: #c20f18;
    margin: 10px 0 25px;
}

/* Product Information heading */
.single-product .summary h2,
.single-product .summary h3 {
    color: #181818;
    margin-top: 20px;
}

/* Product Details Box */
.single-product .kdn-product-details {
    margin: 25px 0;
    padding: 25px 28px;
    background: #fbf8f4;
    border: 1px solid #eadfd5;
    border-radius: 14px;
    line-height: 1.8;
}

.single-product .kdn-product-details h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    margin: 0 0 18px;
}

/* Quantity */
.single-product form.cart .quantity input.qty {
    width: 70px;
    height: 52px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 17px;
    text-align: center;
}

/* Add To Cart */
.single-product div.product form.cart .button,
.single-product .single_add_to_cart_button {
    min-height: 52px;
    padding: 0 32px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .4px;
    cursor: pointer;
}

.single-product div.product form.cart .button:hover {
    background: #c20f18 !important;
}

/* Product Meta */
.single-product .product_meta {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 15px;
    color: #666;
}

/* Description / Reviews */
.single-product .woocommerce-tabs {
    max-width: 1500px;
    margin: 35px auto 0;
    padding: 0 45px 45px;
    clear: both;
}

.single-product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #e5e5e5 !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
}

.single-product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: 0 !important;
    margin-right: 30px !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
    padding: 15px 0 !important;
    font-size: 17px;
    font-weight: 600;
}

.single-product .woocommerce-tabs .panel {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
}

/* REMOVE OLD THEME SIDEBAR */
.single-product #secondary,
.single-product .widget-area,
.single-product aside.widget-area {
    display: none !important;
}

/* Main content full width */
.single-product #primary,
.single-product .content-area,
.single-product main.site-main {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}

/* Related Products */
.single-product .related.products {
    max-width: 1500px;
    margin: 20px auto 60px;
    padding: 0 45px;
    clear: both;
}

.single-product .related.products > h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    margin-bottom: 30px;
}

/* WooCommerce notices */
.single-product .woocommerce-message {
    max-width: 1410px;
    margin: 20px auto !important;
    border-radius: 8px;
}

/* Mobile */
@media (max-width: 768px) {

    .single-product div.product {
        padding: 20px 18px;
    }

    .single-product div.product .woocommerce-product-gallery,
    .single-product div.product .summary {
        width: 100%;
        margin: 0;
        float: none;
    }

    .single-product div.product .summary {
        padding-top: 25px;
    }

    .single-product .product_title {
        font-size: 34px;
    }

    .single-product .woocommerce-tabs,
    .single-product .related.products {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* =========================================
   REMOVE DEFAULT SIDEBAR / OLD WIDGETS
   ========================================= */

body.single-product #secondary,
body.single-product .widget-area,
body.single-product .sidebar,
body.single-product .site-sidebar,
body.single-product .primary-sidebar,
body.single-product .secondary,
body.single-product aside,
body.single-product .woocommerce-sidebar {
    display: none !important;
}

/* Full width product content */
body.single-product #primary,
body.single-product .content-area,
body.single-product .site-content,
body.single-product main,
body.single-product main.site-main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* Remove excessive empty space */
body.single-product .site-content {
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* =========================================================
   K DISHA NX - CUSTOM SINGLE PRODUCT TEMPLATE FIX
   ========================================================= */

.kdn-single-product-page {
    background: #fff;
    padding: 34px 0 0;
}

.kdn-single-wrap {
    width: min(1500px, calc(100% - 70px));
    margin: 0 auto;
}

/* Breadcrumb */
.kdn-single-breadcrumb {
    margin-bottom: 24px;
    color: #777;
    font-size: 14px;
}

/* Main two-column layout */
.kdn-single-main {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: 55px;
    align-items: start;
}

/* Gallery */
.kdn-single-gallery {
    min-width: 0;
}

.kdn-single-gallery .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.kdn-single-gallery .woocommerce-product-gallery__wrapper {
    margin: 0 !important;
    border-radius: 16px;
    overflow: hidden;
    background: #faf7f3;
}

.kdn-single-gallery .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 720px !important;
    object-fit: contain !important;
    display: block;
    background: #faf7f3;
}

/* Thumbnails */
.kdn-single-gallery .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px !important;
    padding: 0 !important;
}

.kdn-single-gallery .flex-control-thumbs li {
    width: 100% !important;
    float: none !important;
    list-style: none;
}

.kdn-single-gallery .flex-control-thumbs img {
    width: 100% !important;
    height: 110px !important;
    object-fit: cover !important;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
}

.kdn-single-gallery .flex-control-thumbs img.flex-active {
    border-color: #b80f0f;
}

/* Right summary */
.kdn-single-summary {
    padding: 16px 0 0;
}

.kdn-single-title {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    line-height: 1.08;
    color: #171717;
}

.kdn-single-price {
    margin-bottom: 26px;
    font-size: 30px;
    font-weight: 700;
    color: #b80f0f;
}

.kdn-single-price .amount {
    color: #b80f0f !important;
}

/* Product specification card */
.kdn-spec-card {
    background: #fffaf5;
    border: 1px solid #eadfd5;
    border-radius: 14px;
    padding: 24px 26px;
    margin: 0 0 22px;
}

.kdn-spec-kicker {
    color: #b80f0f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.7px;
    margin-bottom: 7px;
}

.kdn-spec-card h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
}

.kdn-spec-grid {
    border-top: 1px solid #eadfd5;
}

.kdn-spec-row {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #eadfd5;
}

.kdn-spec-label {
    font-weight: 700;
    color: #333;
}

.kdn-spec-value {
    color: #62584f;
    line-height: 1.55;
}

/* Buy area */
.kdn-buy-box {
    margin-top: 20px;
}

.kdn-buy-box form.cart {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
}

.kdn-buy-box .quantity .qty {
    width: 80px !important;
    height: 54px !important;
    border: 1px solid #ddd3ca !important;
    border-radius: 7px !important;
    text-align: center;
    font-size: 17px;
}

.kdn-buy-box .single_add_to_cart_button {
    min-height: 54px !important;
    padding: 0 34px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #111 !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: .3px;
}

.kdn-buy-box .single_add_to_cart_button:hover {
    background: #b80f0f !important;
}

/* Book Now */
.kdn-book-now {
    width: 100%;
    min-height: 56px;
    margin-top: 12px;
    border: 0;
    border-radius: 7px;
    background: #b80f0f;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
}

.kdn-book-now:hover {
    background: #8f0b0b;
}

/* Meta */
.kdn-product-meta {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eee4da;
    color: #666;
    font-size: 14px;
}

/* Description section */
.kdn-single-description {
    margin-top: 55px;
    padding: 42px 0;
    border-top: 1px solid #eee4da;
    background: #fff;
}

.kdn-description-inner {
    max-width: 1100px;
}

.kdn-description-inner h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
}

.kdn-description-text {
    font-size: 17px;
    line-height: 1.8;
    color: #554d47;
}

/* Related products */
.kdn-related-section {
    padding: 10px 0 60px;
}

.kdn-related-section .related.products > h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
}

/* Mobile */
@media (max-width: 900px) {
    .kdn-single-wrap {
        width: calc(100% - 30px);
    }

    .kdn-single-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .kdn-single-gallery .woocommerce-product-gallery__image img {
        height: auto !important;
        max-height: 720px;
    }

    .kdn-single-title {
        font-size: 38px;
    }
}

@media (max-width: 560px) {
    .kdn-spec-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .kdn-single-title {
        font-size: 32px;
    }

    .kdn-single-gallery .flex-control-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .kdn-single-gallery .flex-control-thumbs img {
        height: 82px !important;
    }

    .kdn-buy-box form.cart {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .kdn-buy-box .single_add_to_cart_button {
        flex: 1;
    }
}