/* ==========================================================================
   Single Product Page Stylesheet (aora-child)
   ========================================================================== */

body.single-product {
    background: #f8f6f1 !important;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    color: #1c1a17;
}

/* Hide theme default breadcrumbs and page titles on single product */
body.single-product #tbay-breadcrumb,
body.single-product .tbay-breadcrumb,
body.single-product .tbay-page-title,
body.single-product .page-header {
    display: none !important;
}

/* Custom Product Breadcrumb */
.custom-product-breadcrumb {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8a8378;
    margin-bottom: 25px;
    padding: 0;
}
.custom-product-breadcrumb a {
    color: #8a8378;
    text-decoration: none;
    transition: color 0.2s ease;
}
.custom-product-breadcrumb a:hover {
    color: #1c1a17;
}
.custom-product-breadcrumb span {
    color: #1c1a17;
}

/* Hide AR Buttons specifically */
.btn-ar,
.ar-button,
.see-it-on-your-wall-ar,
.view-in-ar-btn,
.ar-model-viewer,
#ar-button {
    display: none !important;
}

/* Product Main Section Layout */
body.single-product .single-main-content {
    max-width: 1340px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* Product Gallery Container */
body.single-product .image-mains {
    background: #f0ece1;
    border-radius: 6px;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

body.single-product .image-mains img {
    border-radius: 2px;
    box-shadow: 0 16px 36px rgba(28,26,23,0.16), 0 4px 12px rgba(0,0,0,0.08);
    max-height: 520px;
    object-fit: contain;
}

/* Hide top-level title wrapper so title displays strictly on the right side */
body.single-product .top-single-product {
    display: none !important;
}

/* Product Title & Details inside Right Side Summary */
body.single-product .summary.entry-summary .entry-title,
body.single-product .summary.entry-summary h1.product_title {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #1c1a17 !important;
    line-height: 1.25 !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.01em !important;
}

body.single-product .summary .price {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1c1a17 !important;
    margin-bottom: 20px !important;
}

body.single-product .woocommerce-product-details__short-description {
    font-size: 13.5px;
    line-height: 1.65;
    color: #5a544c;
    margin-bottom: 25px;
}

/* Variation Attribute Pills (Size & Frame) */
table.variations {
    width: 100%;
    margin-bottom: 5px;
    border-collapse: collapse;
}

table.variations td,
table.variations th {
    padding: 6px 0;
    border: none;
    background: transparent;
    display: block;
    width: 100%;
}

table.variations label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1c1a17;
    margin-bottom: 8px;
    display: block;
}

.custom-attribute-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

/* Hide native selects and common theme/plugin variation swatch wrappers */
table.variations td.value select,
table.variations td.value ul,
table.variations td.value .variable-items-wrapper,
table.variations td.value .wvs-container,
table.variations td.value .tbay-swatches-wrapper,
table.variations td.value .tawcvs-swatches,
table.variations td.value .vi-wpvs-variation-wrap,
table.variations td.value .wvs-pro-wrapper,
table.variations td.value .tbay-swatches,
table.variations td.value .woo-variation-swatches,
table.variations td.value .wvs-style-squared,
table.variations td.value .wvs-style-rounded,
table.variations td.value .swatches-select {
    display: none !important;
}

.attr-pill {
    padding: 10px 18px;
    border: 1px solid #dcd8ce;
    background: #ffffff;
    color: #26221e;
    font-size: 13px;
    font-weight: 400;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.attr-pill:hover {
    border-color: #1c1a17;
}

.attr-pill.active {
    border: 1.5px solid #1c1a17;
    font-weight: 600;
    background: #faf9f6;
    color: #1c1a17;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Action Buttons Container (To handle quantity and buttons properly if they share a parent) */
body.single-product .woocommerce-variation-add-to-cart,
body.single-product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

body.single-product .woocommerce-variation-add-to-cart .quantity,
body.single-product form.cart .quantity {
    width: 100% !important;
    margin-bottom: 20px !important;
}

/* Add to Cart Button */
body.single-product .single_add_to_cart_button {
    width: calc(50% - 8px) !important;
    height: 54px !important;
    background: #1c1a17 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin: 0 !important;
    transition: background 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.single-product .single_add_to_cart_button:hover {
    background: #33302b !important;
}

/* Buy Now Button */
body.single-product .tbay-buy-now,
body.single-product .buy-now,
body.single-product button.tbay-buy-now,
body.single-product .wc-buy-now-btn {
    width: calc(50% - 8px) !important;
    height: 54px !important;
    background: linear-gradient(90deg, rgb(252, 124, 54), rgb(255, 153, 0)) !important;
    color: rgb(42, 16, 6) !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin: 0 !important;
    transition: opacity 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

body.single-product .tbay-buy-now:hover,
body.single-product .buy-now:hover,
body.single-product button.tbay-buy-now:hover,
body.single-product .wc-buy-now-btn:hover {
    opacity: 0.92 !important;
    color: rgb(42, 16, 6) !important;
}

/* Related & Upsell Products Image Uniform Sizing */
body.single-product .related.products img,
body.single-product .related-products img,
body.single-product .upsells img,
body.single-product .up-sells img,
body.single-product section.related img,
body.single-product .related.products .product-block img,
body.single-product .related.products a img,
body.single-product .related.products .tbay-image-loaded {
    width: 100% !important;
    height: 250px !important;
    max-height: 250px !important;
    min-height: 250px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 4px !important;
}

body.single-product .related.products .product-image,
body.single-product .related.products .image-group,
body.single-product .related.products .product-block .image,
body.single-product .related.products .thumbnail-wrapper,
body.single-product section.related .product-image {
    height: 250px !important;
    overflow: hidden !important;
    border-radius: 4px !important;
/* Hide "Select options" / "Add to Cart" buttons on Related & Upsell products on Single Product page */
body.single-product .related .add-cart,
body.single-product .related .add_to_cart_button,
body.single-product .related .product_type_variable,
body.single-product .related .product_type_simple,
body.single-product .related .title-cart,
body.single-product .related a.button,
body.single-product .related .button,
body.single-product .related-products .add-cart,
body.single-product .related-products .add_to_cart_button,
body.single-product .related-products .product_type_variable,
body.single-product .related-products .title-cart,
body.single-product .related-products a.button,
body.single-product .related-products .button,
body.single-product .products .add-cart,
body.single-product .products .product-block .add-cart,
body.single-product .products .product-block .button,
body.single-product .products .product-block .add_to_cart_button,
body.single-product .products .product-block .product_type_variable,
body.single-product .upsells .add-cart,
body.single-product .upsells .add_to_cart_button,
body.single-product .upsells .product_type_variable,
body.single-product .up-sells .add-cart,
body.single-product .up-sells .add_to_cart_button,
body.single-product section.related .add-cart,
body.single-product section.related .add_to_cart_button,
body.single-product section.related .product_type_variable,
.single-product .product-block .add-cart,
.single-product .product-block .add_to_cart_button,
.single-product .product-block .product_type_variable,
.single-product .product-block a.button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* ==========================================================================
   Product Data Sections (Description & Additional Info)
   ========================================================================== */

body.single-product .woocommerce-tabs {
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 45px !important;
    margin-top: 50px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
    border: none !important;
}

/* Headings */
body.single-product .woocommerce-tabs h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1c1a17 !important;
    margin-bottom: 20px !important;
    margin-top: 40px !important;
    font-family: 'Inter', Helvetica, Arial, sans-serif !important;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel:first-child h2,
body.single-product .woocommerce-tabs > h2:first-child {
    margin-top: 0 !important;
}

/* Description Paragraphs */
body.single-product .woocommerce-tabs p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #555555 !important;
    margin-bottom: 20px !important;
}

/* Attributes Table */
body.single-product table.shop_attributes {
    border: none !important;
    border-top: 1px solid #eeeeee !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

body.single-product table.shop_attributes th,
body.single-product table.shop_attributes td {
    padding: 18px 20px !important;
    border-bottom: 1px solid #eeeeee !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background: transparent !important;
    font-size: 15px !important;
}

body.single-product table.shop_attributes th {
    font-weight: 600 !important;
    color: #1c1a17 !important;
    width: 220px !important;
    text-align: left !important;
}

body.single-product table.shop_attributes td {
    color: #555555 !important;
    font-style: normal !important;
}

body.single-product table.shop_attributes td p {
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    body.single-product .woocommerce-tabs {
        padding: 25px !important;
        margin-top: 30px !important;
    }
    body.single-product table.shop_attributes th,
    body.single-product table.shop_attributes td {
        display: block !important;
        width: 100% !important;
    }
    body.single-product table.shop_attributes th {
        border-bottom: none !important;
        padding-bottom: 5px !important;
    }
    body.single-product table.shop_attributes td {
        padding-top: 0 !important;
    }
}
