/**
 * SINGLE PRODUCT PAGE
 **/
body.single-product .content {
    padding: 10px !important
}

body.single-product .entry {
    margin-bottom: 10px !important;
}

/* gradient background with colors */
body.single-product {
    min-height: 100vh !important;
    position: relative !important;
}

body.single-product::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 300px !important;
    z-index: 0 !important;
}

/* Container with modern spacing and centering */
body.single-product .site-inner {
    position: relative !important;
    z-index: 1 !important;
    max-width: 1400px !important;
    margin: 141px auto !important;
    padding: 0 30px !important;
}

/* Hide entry meta */
body.single-product .entry-header .entry-meta {
    display: none !important;
}

/* Beautiful modern title */
body.single-product .entry-title {
    color: #1c3a4d !important;
    text-align: center !important;
    font-size: 36px !important;
    font-weight: 300 !important;
    letter-spacing: 2px !important;
    margin: 0 0 30px 0 !important;
    padding: 40px 0 !important;
    position: relative !important;
}

body.single-product .entry-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 50% !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, #a68a3d, transparent) !important;
}

/* product container */
body.single-product .woocommerce div.product {
    margin: 0 auto 80px auto !important;
    max-width: 100% !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    align-items: start !important;
    overflow: hidden !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px;
    box-shadow:
            0 25px 50px rgba(0, 0, 0, 0.08),
            0 12px 20px rgba(0, 0, 0, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

body.single-product .woocommerce div.product::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #9b8a3a, #A68A3D, #b8a347, #9b8a3a) !important;
    border-radius: 24px 24px 0 0; !important;
    opacity: 0.9 !important;
}

/* Product Gallery with side thumbnails */
body.single-product .woocommerce div.product .woocommerce-product-gallery {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    align-items: flex-start !important;
    left: 50px !important;
}

.woocommerce-product-gallery__wrapper img.wp-post-image {
    max-width: 350px !important;
}

body.single-product .woocommerce div.product div.images {
    margin-left: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    height: 60px;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: #1c3a4d;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #fff !important
}

body.single-product .woocommerce-product-gallery {
    position: relative !important;
}

body.single-product .woocommerce-product-gallery .flex-viewport {
    border-radius: 18px !important;
    overflow: hidden !important;
    padding: 20px !important;
    position: relative !important;
    margin-bottom: 20px !important;
    max-width: 420px !important;
    width: 100% !important;
    transition: all 0.4s ease !important;
}

body.single-product .woocommerce-product-gallery__image.flex-active-slide {
    min-width: 400px !important;
}

body.single-product .woocommerce-product-gallery img {
    width: 100% !important;
    height: auto !important;
    border-radius: 14px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

.woocommerce span.onsale {
    display: none !important;
}

form.woocommerce-product-search {
    display: flex;
}

/* Subtle image hover enhancement */
body.single-product .woocommerce-product-gallery__trigger {
    position: absolute !important;
    top: 85% !important;
    left: 23% !important;
    z-index: 100 !important;
    background: #9b8a3a !important;
    backdrop-filter: blur(10px) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 39px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::after,
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::before {
    border: 2px solid #fff !important;
    background: none !important;
}

body.single-product .woocommerce-product-gallery__trigger:hover {
    background: #1c3a4d !important;
    color: #fff !important;
    transform: scale(1.05) !important;
}

/* Modern thumbnail gallery - vertical on left side */
body.single-product .woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 40px 0 !important;
    list-style: none !important;
    padding: 0 !important;
    order: -1 !important;
    width: 80px !important;
    flex-shrink: 0 !important;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li {
    border: 2px solid transparent !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 6px !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li:hover,
body.single-product .woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li.flex-active {
    border-color: #9b8a3a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(155, 138, 58, 0.15) !important;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img {
    border-radius: 6px !important;
    transition: transform 0.3s ease !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Product Details - with flex ordering for proper layout */
body.single-product .woocommerce div.product .summary.entry-summary {
    padding: 10px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Ensure cart form doesn't overflow and arrange elements properly */
body.single-product .woocommerce div.product .summary.entry-summary .cart {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    order: 5 !important;
}

tr.wc-block-cart-items__header {
    display: none !important;
}

body.single-product .cart * {
    box-sizing: border-box !important;
}

/* Product title in summary section - multiple selectors to ensure it shows */
body.single-product .summary .product_title,
body.single-product .summary h1,
body.single-product .summary .entry-title {
    color: #1a365d !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    margin: 0 0 30px 0 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    text-align: left !important;
}

body.single-product .summary .product_title::after,
body.single-product .summary h1::after,
body.single-product .summary .entry-title::after {
    content: '' !important;
    display: block !important;
    width: 60px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #a68a3d, transparent) !important;
    margin: 15px 0 0 0 !important;
}

/* Product title styling  */
body.single-product .summary .product_title {
    color: #2c3e50 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.3px !important;
    position: relative !important;
}

body.single-product .summary .product_title::after {
    content: '' !important;
    display: block !important;
    width: 40px !important;
    height: 2px !important;
    background: linear-gradient(90deg, #9b8a3a, transparent) !important;
    margin: 12px 0 0 0 !important;
}

/* Short description ordering */
body.single-product .woocommerce-product-details__short-description {
   order: 6 !important;
}

/* Professional price display */
body.single-product .price {
    font-size: 32px !important;
    font-weight: 300 !important;
    color: #9b8a3a !important;
    margin: 0 0 24px 0 !important;
    position: relative !important;
    display: inline-block !important;
    max-width: 100% !important;
    letter-spacing: 0.5px !important;
    order: 1 !important;
}

body.single-product .price::before {
    content: '' !important;
    position: absolute !important;
    bottom: -8px !important;
    left: 0 !important;
    width: 60% !important;
    height: 1px !important;
    background: linear-gradient(90deg, #9b8a3a, transparent) !important;
}

body.single-product .woocommerce div.product .summary.entry-summary p.stock {
display: none;
}


/* Add to Cart button - positioned first */
body.single-product .single_add_to_cart_button {
    background: linear-gradient(135deg, #9b8a3a, #b8a347) !important;
    color: white !important;
    padding: 16px 32px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(155, 138, 58, 0.25) !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 280px !important;
    box-sizing: border-box !important;
    order: 1 !important;
}

body.single-product .single_add_to_cart_button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.5s !important;
}

body.single-product .single_add_to_cart_button:hover::before {
    left: 100% !important;
}

body.single-product .single_add_to_cart_button:hover {
    box-shadow: 0 6px 20px rgba(155, 138, 58, 0.35) !important;
    background: linear-gradient(135deg, #8a7b33, #a6943f) !important;
}

/* Product meta badges */
body.single-product .product_meta {
    margin-top: 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    flex-direction: column;
    align-items: flex-start;
    order: 6 !important;
}


body.single-product .woocommerce-product-details__short-description p {
    width: fit-content;
    margin-bottom: 0 !important;
}

body.single-product .woocommerce-product-details__short-description p,
body.single-product .tagged_as,
body.single-product .posted_in,
body.single-product .sku_wrapper {
    background: rgba(248, 250, 252, 0.8) !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    font-size: 16px !important;
    color: #64748b !important;
    font-weight: 700 !important;
}

body.single-product .sku,
body.single-product .posted_in a,
body.single-product .tagged_as a{
    color: #2c3e50 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    transition: color 0.3s ease !important;
}

body.single-product .tagged_as a:hover,
body.single-product .posted_in a:hover {
    color: #8a7b33 !important;
}

/*  Tabs Design */
body.single-product .woocommerce-tabs {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    position: relative !important;
    max-width: 1200px !important;
    width: 92% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    display: block !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    transition: all 0.4s ease !important;
}

/* Force full width break for tabs */
body.single-product .woocommerce-tabs::after {
    content: '' !important;
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    clear: both !important;
}

body.single-product .woocommerce-tabs::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    opacity: 0.9 !important;
}

body.single-product .woocommerce-tabs ul.tabs {
    display: flex !important;
    background: rgba(248, 250, 252, 0.8) !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
    position: relative !important;
    max-height: 58px;
}

body.single-product .woocommerce-tabs ul.tabs li {
    flex: 1 !important;
    margin: 0 !important;
    position: relative !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 15px 12px !important;
    text-align: center !important;
    color: #64748b !important;
    font-weight: 500 !important;
    font-size: 18px !important;
    text-decoration: none !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

body.single-product .woocommerce-tabs ul.tabs li a::before {
    content: '' !important;
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) scaleX(0) !important;
    width: 65% !important;
    height: 1px !important;
    background: #1c3a4d !important;
    transition: transform 0.3s ease !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li a:hover {
    color: #1c3a4d !important;
}


body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none;
}

body.single-product .woocommerce-tabs ul.tabs li.active a::before,
body.single-product .woocommerce-tabs ul.tabs li a:hover::before {
    transform: translateX(-50%) scaleX(1) !important;
}

body.single-product .woocommerce-tabs .wc-tab {
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 40px !important;
    border: none !important;
}

body.single-product .woocommerce-tabs h2 {
    display: none;
}

body.single-product .related.products > h2 {
    color: #1e293b !important;
    font-size: 32px !important;
    font-weight: 300 !important;
    margin: 0 0 25px 0 !important;
    text-align: center !important;
    letter-spacing: 1px !important;
}

body.single-product .related.products > h2 {
    border-bottom: none !important;
}

body.single-product .woocommerce-tabs p {
    font-size: 20px !important;
    line-height: 1.8 !important;
    color: #475569 !important;
    text-align: justify !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}


/* Related Products */
body.single-product .related.products {
    margin: 60px auto 80px auto !important;
    max-width: 1200px !important;
    width: 92% !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 15px !important;
    padding: 40px !important;
    box-sizing: border-box !important;
    display: block !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    position: relative !important;
    overflow: hidden !important;
}

.woocommerce table.shop_attributes th {
    font-weight: 500 !important;
    text-transform: none !important;
    width: 200px !important;
}

/* Force Related Products to new line */
body.single-product .related.products::before {
    content: '' !important;
    display: block !important;
    width: 100% !important;
    height: 1px !important;
    clear: both !important;
}

body.single-product .related.products > h2 {
    text-align: center !important;
    padding-bottom: 20px !important;
}

body.single-product .related.products ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 40px !important;
    overflow-x: auto !important;
    border-radius: 5px !important;
    box-shadow: rgb(208 213 218 / 68%) 3px 3px 6px 0px inset, rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset !important;
}

body.single-product .related.products li.product {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 8px !important;
    padding: 24px !important;
    text-align: center !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
}

body.single-product .related.products li.product:hover {
    border-color: #9b8a3a !important;
    box-shadow: 0 15px 35px rgba(155, 138, 58, 0.15), 0 8px 16px rgba(0,0,0,0.08) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

body.single-product .related.products img {
    width: 100% !important;
    max-width: 150px !important;
    height: auto !important;
    margin: 0 auto 15px !important;
    display: block !important;
    border-radius: 5px !important;
    border: 1px solid #f9fbfd !important;
}

body.single-product .related.products .woocommerce-loop-product__title {
    font-size: 18px !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
    color: #1c3a4d !important;
    font-weight: 500 !important;
}

body.single-product .related.products .price {
    font-size: 16px !important;
    color: #a68a3d !important;
    font-weight: bold !important;
    margin: 10px 0 !important;
}


a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart.added {
display: none !important;
}

body.single-product .related.products .added_to_cart,
body.single-product .related.products .add_to_cart_button {
    background: linear-gradient(135deg, #9b8a3a, #b8a347) !important;
    color: white !important;
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(155, 138, 58, 0.25) !important;
}

body.single-product .related.products .add_to_cart_button:hover {
    background: linear-gradient(135deg, #8a7b33, #a6943f) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(155, 138, 58, 0.35) !important;
}

/* Hide Comments Completely */
body.single-product #respond,
body.single-product #comments,
body.single-product .comment-respond,
body.single-product .comments-area {
    display: none !important;
}
