/* =========================================================
   Full-width breadcrumb bar (breaks out of content container)
   ========================================================= */

.single-product .woocommerce-breadcrumb {
    display: block;
    width: 100vw;
    box-sizing: border-box;
    /* shift left to viewport edge, keep text padded to original position */
    margin-left:  calc(-1 * (100vw - 100%) / 2);
    padding-left: calc((100vw - 100%) / 2 + 15px);
    padding-right: calc((100vw - 100%) / 2 + 15px);
    padding-top: 6px;
    padding-bottom: 6px;
    background-color: #f6f6e0;
    font-size: 11px;
    color: #555;
    border-bottom: 1px solid #e0ddd0;
}

.single-product .woocommerce-breadcrumb a {
    color: #535308;
}

/* =========================================================
   Title bar — rendered outside entry-content via generate_before_content
   hook, so no viewport-breakout needed; width:100% fills the column.
   ========================================================= */

.pbg-product-title {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 30px 20px;
    background-color: #c0bcad;
    margin-bottom: 2rem;
}

.pbg-product-title h1.product_title {
    font-size: 24px !important;
    font-weight: normal !important;
    color: #333333 !important;
    margin: 0 !important;
    font-family: Arial, sans-serif;
    line-height: normal;
    text-align: center;
}

/* =========================================================
   Right sidebar — 200 px fixed width
   Content area fills the rest
   ========================================================= */

.single-product #right-sidebar,
.single-product .sidebar-secondary {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    flex: 0 0 200px !important;
}

.single-product #inside-right-sidebar {
    width: 200px !important;
}

/* Override any customizer percentage width on the content area */
.single-product .site-content .content-area,
.single-product #primary {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* =========================================================
   Hide default WooCommerce elements replaced by our layout
   ========================================================= */

.single-product .woocommerce-product-gallery {
    display: none !important;
}

.single-product div.product > .summary.entry-summary {
    display: none !important;
}

.single-product .woocommerce-tabs {
    display: none !important;
}

.single-product .entry-header {
    display: none !important;
}

/* =========================================================
   PBG Product Layout
   ========================================================= */

.pbg-product-layout {
    padding: 0 0 20px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    color: #333;
}

/* Prevent any theme flex on div.product from conflicting */
.single-product .woocommerce div.product {
    display: block !important;
}

/* Two-column row: description left, image right */
.pbg-product-main {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Left: description */
.pbg-col-left {
    flex: 1;
    min-width: 0;
}

.pbg-col-left .pbg-short-desc p {
    font-style: italic;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}

.pbg-col-left .pbg-desc-text p {
    font-size: 12px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 8px;
}

/* Right: product image */
.pbg-col-right {
    flex: 0 0 185px;
    width: 185px;
}

.pbg-product-img {
    margin-bottom: 6px;
}

.pbg-product-img img {
    width: 173px !important;
    height: 173px !important;
    object-fit: cover;
    border: 1px solid #ccc;
    display: block;
}

.pbg-enlarge-hint {
    font-size: 10px;
    color: #666;
    text-align: center;
    margin: 0;
}

/* =========================================================
   Bordered cart box
   ========================================================= */

.pbg-cart-section {
    border: 1px solid #333;
    border-radius: 5px;
    padding: 8px 12px;
    display: inline-block;
    min-width: 240px;
    margin-bottom: 20px;
}

.pbg-cart-row {
    display: flex;
    align-items: center;
    padding: 2px 0;
    font-size: 12px;
}

.pbg-cart-label {
    font-weight: bold;
    min-width: 52px;
    margin-right: 6px;
}

.pbg-cart-section .price {
    font-size: 12px;
    color: #333;
}

.pbg-cart-section form.cart {
    border: none !important;
    padding: 0 !important;
    background: none !important;
    margin: 4px 0 0 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pbg-cart-section form.cart::before {
    content: 'Qty';
    font-weight: bold;
    min-width: 52px;
    margin-right: 6px;
    font-size: 12px;
}

.pbg-cart-section form.cart .quantity {
    display: flex;
    align-items: center;
}

.pbg-cart-section form.cart .qty {
    width: 50px;
    padding: 3px 5px;
    font-size: 12px;
}

.pbg-cart-section form.cart .single_add_to_cart_button {
    padding: 4px 14px;
    font-size: 12px;
}

/* =========================================================
   Features & Benefits table
   ========================================================= */

.pbg-features-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #c0bcad;
    clear: both;
}

.pbg-features-section > h3 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
}

.pbg-features-section .pbg-features-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.pbg-features-section .pbg-features-table thead th {
    background-color: #c0bcad;
    color: #333;
    padding: 6px 10px;
    text-align: left;
    font-weight: bold;
}

.pbg-features-section .pbg-features-table tbody td {
    padding: 6px 10px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.pbg-features-section .pbg-features-table tbody td:first-child {
    font-weight: bold;
    width: 35%;
}

.pbg-features-section .pbg-features-table tbody tr:nth-child(even) td {
    background-color: #f5f5f0;
}

.pbg-features-section .pbg-features-table tbody tr:last-child td {
    border-bottom: none;
}

/* =========================================================
   Related products
   ========================================================= */

.single-product .related.products {
    margin-top: 30px;
    clear: both;
}

/* =========================================================
   Mobile overrides
   ========================================================= */

@media (max-width: 768px) {
    .pbg-product-title {
        margin-left: 0 !important;
    }

    .pbg-product-main {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .pbg-features-table {
        padding-right: 10px;
     }
}
