/**
 * Theme Name:     Divi Child
 * Author:         Elegant Themes
 * Template:       Divi5
 * Text Domain:    divi-child
 */

/* =====================================================
   FIX DIVI TEXT MODULE WRAPPING SHORTCODES
   ===================================================== */

/* Kill Divi paragraph spacing around shortcodes */
.et_pb_text_inner p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure Divi text module doesn't add spacing */
.et_pb_text,
.et_pb_text_inner {
    padding: 0 !important;
}

/* =====================================================
   PRODUCT IMAGE WRAPPER
   ===================================================== */

.wtspp-images {
    display: inline-block;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
}

.wtspp-images img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 820px;
    height: auto;
}

/* =====================================================
   ORDER IMAGE (REPLACES "+ Order")
   ===================================================== */

.wtspp-order {
    display: inline-block;
    width: 140px;
    height: 140px;
    background-image: url("https://3rdstonedesign.edesignerz.com/wp-content/uploads/order-2.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0 !important;
    line-height: 0 !important;
    cursor: pointer;
}

/* Accessibility label */
.wtspp-order::after {
    content: "Order";
    position: absolute;
    left: -9999px;
}

.wtspp-order:hover {
    opacity: 0.85;
}

/* =====================================================
   COLOR SWATCHES + SIZE WRAPS
   ===================================================== */

.wtspp-swatch-wrap,
.wtspp-size-wrap {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0 !important;
}

/* Sizes need breathing room BELOW swatches */
.wtspp-size-wrap {
    margin-top: 12px !important;
}

/* =====================================================
   SIZE BUTTONS
   ===================================================== */

.wtspp-size-btn {
    all: unset;
    cursor: pointer;
    color: #7c6254;
    font-weight: 600;
    font-size: 36px;
    text-transform: uppercase;
    line-height: 1;
}

/* Optional comma styling (safe) */
.wtspp-size-btn::after {
    content: ", ";
}

.wtspp-size-btn:last-child::after {
    content: "";
}

/* =====================================================
   ZOOM (MAGNIFYING GLASS) BUTTON
   ===================================================== */

.wtspp-zoom-btn {
    width: 36px;
    height: 36px;
    background-image: url("https://3rdstonedesign.edesignerz.com/wp-content/uploads/magnifying-glass.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* =====================================================
   HARD RESET — ADD TO CART IMAGE BUTTON
   ===================================================== */

.woocommerce button.wtspp-add-to-cart-img,
.woocommerce-page button.wtspp-add-to-cart-img {
    all: unset;
    display: inline-block;
    cursor: pointer;
}

/* Kill Divi/Woo pseudo elements */
.woocommerce button.wtspp-add-to-cart-img::before,
.woocommerce button.wtspp-add-to-cart-img::after,
.woocommerce-page button.wtspp-add-to-cart-img::before,
.woocommerce-page button.wtspp-add-to-cart-img::after {
    display: none !important;
    content: none !important;
}

/* Image inside add-to-cart */
.woocommerce button.wtspp-add-to-cart-img img,
.woocommerce-page button.wtspp-add-to-cart-img img {
    display: block !important;
    width: 140px !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* =====================================================
   COLOR SWATCH BUTTONS (CSS COLORS)
   ===================================================== */

.wtspp-swatch-btn {
    all: unset;
    cursor: pointer;
}

.wtspp-swatch-color {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.25);
    box-sizing: border-box;
}

.wtspp-swatch-btn:hover .wtspp-swatch-color {
    border-color: #000;
}

.wtspp-swatch-btn.is-selected .wtspp-swatch-color {
    outline: 2px solid #000;
    outline-offset: 2px;
}
/* GLOBAL boxed layout wood background (ALL pages) */
html body.et_boxed_layout {
    background-color: transparent !important;
    background-image: url('https://3rdstonedesign.edesignerz.com/wp-content/uploads/bg3.jpg') !important;
    background-repeat: repeat !important;
    background-position: top left !important;
    background-size: auto !important;
    background-attachment: scroll !important;
}

/* Ensure inner container never forces white */
html body.et_boxed_layout #page-container {
    background: transparent !important;
}

/* WooCommerce Cart – Proceed to Checkout button */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background-color: #7b6651 !important;   /* brown tone */
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 600;
    padding: 22px 28px;
    border-radius: 6px;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: none;
    border: none;
    transition: all 0.25s ease;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #000000 !important;
	padding: 22px 28px;
    color: #ffffff !important;
}

#add_payment_method table.cart img, .woocommerce-cart table.cart img, .woocommerce-checkout table.cart img {
    width: 132px !important;
    box-shadow: none;
}
