/*
 Theme Name: Twenty Sixteen Child
 Template: twentysixteen
*/



/* TT_SHOP_OPTIONS_CSS */
/* Hide WooCommerce breadcrumbs on shop page */
body.tt-shop-hide-breadcrumbs .woocommerce-breadcrumb,
body.tt-shop-hide-breadcrumbs .breadcrumb {
    display: none !important;
}

/* Make shop title large to match E-books style */
body.tt-shop-title-large .woocommerce-products-header__title,
body.tt-shop-title-large .page-title {
    font-size: 48px !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    margin: 0 0 28px !important;
}

/* Hide add to cart buttons in product loop on shop page */
body.tt-shop-hide-loop-add-to-cart ul.products li.product .button,
body.tt-shop-hide-loop-add-to-cart ul.products li.product .added_to_cart {
    display: none !important;
}

/* Hide catalog ordering widget ("Ordenação padrão") */
body.tt-shop-hide-ordering .woocommerce-ordering,
body.tt-shop-hide-ordering form.woocommerce-ordering {
    display: none !important;
}

/* Slight spacing fix when hiding ordering */
body.tt-shop-hide-ordering .woocommerce-products-header {
    padding-right: 0 !important;
}

/* Make sure layout remains sane on small screens */
@media (max-width: 768px) {
    body.tt-shop-title-large .woocommerce-products-header__title,
    body.tt-shop-title-large .page-title {
        font-size: 32px !important;
    }
}

/* END_TT_SHOP_OPTIONS_CSS */




/* TT_SHOP_RESULT_AND_BREADCRUMB_CSS */
/* Hide the WooCommerce result count on shop page when enabled */
body.tt-shop-hide-result-count .woocommerce-result-count {
    display: none !important;
}

/* Style the custom back link replacing breadcrumb on product page */
.tt-product-back {
    margin-bottom: 12px;
    font-size: 15px;
}
.tt-product-back a {
    color: #6b6b6b;
    text-decoration: none;
    border-bottom: 1px dotted rgba(0,0,0,0.06);
    padding-bottom: 2px;
}
.tt-product-back a:hover {
    color: #222;
    text-decoration: underline;
}

/* Also hide default breadcrumb on product page to avoid duplication */
.single-product .woocommerce-breadcrumb,
.single-product .breadcrumb {
    display: none !important;
}

/* Slight spacing adjustment so the back link aligns */
.single-product .tt-product-back {
    margin-left: 0;
}

/* END_TT_SHOP_RESULT_AND_BREADCRUMB_CSS */




/* TT_RESPONSIVE_FIXES_V3 */
/* Prevent horizontal overflow specifically on single product pages (mobile) */

/* Ensure product images never overflow their containers */
.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery img,
.single-product .entry-content img,
.single-product .summary img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Ensure gallery wrapper doesn't force extra width */
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper {
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Prevent layout elements from creating horizontal scroll */
.single-product body,
.single-product html,
.single-product .site,
.single-product .site-content,
.single-product .content-area,
.single-product .site-main {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* If any element uses large negative margins, constrain them on small screens */
@media (max-width: 768px) {
    .single-product .site-content,
    .single-product .content-area,
    .single-product .site-main {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    /* Make sure the product summary stacks nicely */
    .single-product .woocommerce-product-gallery,
    .single-product .woocommerce-product-details__short-description,
    .single-product .summary {
        width: 100% !important;
        margin: 0 auto !important;
    }
}

/* Safety: hide any accidental horizontal overflow on very small devices */
@media (max-width: 420px) {
    html, body { overflow-x: hidden !important; }
}

/* END_TT_RESPONSIVE_FIXES_V3 */
