/* Native WooCommerce markup stays intact. The shared header/footer sit outside this scope. */
body.tg-shop #fl-main-content {
    --tg-shop-line: #dedfd8;
    font-family: "TG DM Sans", Arial, sans-serif;
    color: #161816;
    background: #fff;
}

body.tg-shop:not(.tg-shop-builder) #fl-main-content > .container {
    width: 89%;
    max-width: 1320px;
    padding-inline: 0;
}

body.tg-shop:not(.tg-shop-builder) #fl-main-content > .container > .row {
    margin-inline: 0;
}

body.tg-shop:not(.tg-shop-builder) #fl-main-content > .container > .row > .fl-content {
    margin-block: 32px 80px;
    padding-inline: 0;
}

body.tg-shop #fl-main-content :is(h1, h2, h3, h4, .price, .button, input, select, textarea, label) {
    font-family: "TG DM Sans", Arial, sans-serif;
}

body.tg-shop #fl-main-content :is(h1, h2, h3, h4) {
    font-weight: 700;
    letter-spacing: -.045em;
    text-transform: none;
}

body.tg-shop #fl-main-content .woocommerce-breadcrumb {
    margin: 0 0 28px;
    color: #60665c;
    font-size: 14px;
    line-height: 1.7;
}

body.tg-shop #fl-main-content .woocommerce-breadcrumb a {
    color: #42483e;
    text-decoration: underline;
    text-decoration-color: #c8cbc1;
    text-underline-offset: 3px;
}

body.tg-shop #fl-main-content .woocommerce-products-header {
    margin: 0 0 36px;
    padding: clamp(30px, 4.5vw, 58px);
    border-bottom: 4px solid #ffca28;
    background: #161816;
    color: #fff;
}

body.tg-shop #fl-main-content .woocommerce-products-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 4.4vw, 60px);
    line-height: 1.08;
}

body.tg-shop #fl-main-content .woocommerce-products-header :is(p, .term-description, .page-description) {
    max-width: 710px;
    margin: 20px 0 0;
    color: #e5e7df;
    font-size: 18px;
    line-height: 1.65;
}

body.tg-shop #fl-main-content .woocommerce-products-header a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

body.tg-shop #fl-main-content .woocommerce-result-count {
    margin: 12px 20px 24px 0;
    color: #5b6055;
    font-size: 15px;
}

body.tg-shop #fl-main-content .woocommerce-ordering {
    max-width: 100%;
    margin: 0 0 24px;
}

body.tg-shop #fl-main-content .woocommerce-ordering select {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 10px 36px 10px 14px;
    font-size: 15px;
}

/* Override the native four-column floats, including the original /shop/ module. */
body.tg-shop #fl-main-content ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    clear: both;
    margin: 0 0 38px;
    padding: 0;
}

body.tg-shop #fl-main-content ul.products::before,
body.tg-shop #fl-main-content ul.products::after {
    content: none;
}

body.tg-shop #fl-main-content ul.products > li.product {
    display: flex;
    flex-direction: column;
    float: none;
    clear: none;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0;
    padding: 0 0 24px;
    border: 1px solid var(--tg-shop-line);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    text-align: left;
    transition: border-color .15s ease;
}

body.tg-shop #fl-main-content ul.products > li.product:hover {
    border-color: #aaaf9f;
}

body.tg-shop #fl-main-content ul.products > li.product > a.woocommerce-LoopProduct-link,
body.tg-shop #fl-main-content ul.products > li.product-category > a {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: #161816;
    text-decoration: none;
}

body.tg-shop #fl-main-content ul.products > li.product img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.35;
    margin: 0 0 8px;
    padding: 18px;
    object-fit: contain;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eeeee8;
}

body.tg-shop #fl-main-content ul.products :is(.woocommerce-loop-product__title, .woocommerce-loop-category__title) {
    margin: 16px 24px 12px;
    padding: 0;
    color: #161816;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}

body.tg-shop #fl-main-content ul.products .price {
    display: block;
    margin: auto 24px 0;
    padding-top: 8px;
    color: #161816;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
}

body.tg-shop #fl-main-content .price del {
    color: #60665c;
    font-weight: 400;
}

body.tg-shop #fl-main-content .price ins {
    background: transparent;
    color: #161816;
    text-decoration: none;
}

body.tg-shop #fl-main-content ul.products > li.product > :is(.button, .added_to_cart),
body.tg-shop #fl-main-content ul.products > li.product .star-rating {
    align-self: flex-start;
    margin: 18px 24px 0;
    max-width: calc(100% - 48px);
}

body.tg-shop #fl-main-content ul.products .added_to_cart {
    color: #161816;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

body.tg-shop #fl-main-content ul.products .woocommerce-loop-category__title .count {
    display: inline-block;
    padding: 3px 7px;
    background: #f4f4f0;
    color: #5b6055;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    vertical-align: middle;
}

body.tg-shop #fl-main-content .tg-shop-category-copy {
    margin: 0 24px;
    color: #5b6055;
    font-size: 16px;
    line-height: 1.55;
}

/* Beaver's product wrapper is retained, including its native stock labels. */
body.tg-shop #fl-main-content .uabb-woo-product-wrapper {
    display: flex;
    flex: 1;
    flex-direction: column;
    border: 0;
    background: #fff;
}

body.tg-shop #fl-main-content .uabb-woo-products-summary-wrap {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 24px 0;
    text-align: left;
}

body.tg-shop #fl-main-content .uabb-woo-products-summary-wrap :is(.woocommerce-loop-product__title, .price, .button, .added_to_cart) {
    margin-inline: 0;
}

body.tg-shop #fl-main-content .uabb-woo-products-summary-wrap .button {
    margin-top: 18px;
}

body.tg-shop #fl-main-content .uabb-loop-product__link {
    color: #161816;
    text-decoration: none;
}

body.tg-shop #fl-main-content .uabb-woo-product-category {
    color: #60665c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

body.tg-shop #fl-main-content .uabb-out-of-stock {
    background: #161816;
    color: #fff;
    font: 700 14px/1.5 "TG DM Sans", Arial, sans-serif;
}

body.tg-shop #fl-main-content :is(a.button, button.button, input.button, #respond input#submit) {
    min-height: 48px;
    padding: 14px 19px;
    border: 1px solid #ffca28;
    border-radius: 2px;
    background: #ffca28;
    box-shadow: none;
    color: #161816;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    white-space: normal;
}

body.tg-shop #fl-main-content :is(a.button, button.button, input.button, #respond input#submit):hover {
    border-color: #161816;
    background: #161816;
    color: #fff;
}

body.tg-shop #fl-main-content :is(button.button:disabled, button.button.disabled, a.button.disabled, input.button:disabled) {
    opacity: .55;
    cursor: not-allowed;
}

body.tg-shop #fl-main-content a.button.loading {
    padding-right: 42px;
}

body.tg-shop #fl-main-content :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #007295;
    outline-offset: 4px;
}

body.tg-shop #fl-main-content .woocommerce-pagination ul {
    border: 0;
}

body.tg-shop #fl-main-content .woocommerce-pagination ul li {
    margin: 4px;
    border: 1px solid var(--tg-shop-line);
}

body.tg-shop #fl-main-content .woocommerce-pagination ul li :is(a, span) {
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
    color: #161816;
}

body.tg-shop #fl-main-content .woocommerce-pagination ul li :is(a:hover, .current) {
    background: #ffca28;
    color: #161816;
}

/* Retain gallery sizing/slider transforms and all WooCommerce tab visibility logic. */
body.tg-shop.single-product #fl-main-content div.product > .woocommerce-product-gallery {
    width: 49%;
    margin-bottom: 40px;
}

body.tg-shop.single-product #fl-main-content div.product > .summary {
    width: 45%;
    margin-bottom: 48px;
}

body.tg-shop #fl-main-content .woocommerce-product-gallery__wrapper {
    border: 1px solid var(--tg-shop-line);
    background: #fff;
}

body.tg-shop #fl-main-content .woocommerce-product-gallery .flex-control-thumbs {
    margin-top: 12px;
}

body.tg-shop #fl-main-content .woocommerce-product-gallery .flex-control-thumbs li {
    padding: 5px;
}

body.tg-shop #fl-main-content .woocommerce-product-gallery .flex-control-thumbs img {
    border: 1px solid var(--tg-shop-line);
}

body.tg-shop #fl-main-content .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
    border-color: #af8500;
}

body.tg-shop #fl-main-content .summary .product_title {
    margin: 0 0 22px;
    font-size: clamp(32px, 3.2vw, 47px);
    line-height: 1.08;
}

body.tg-shop #fl-main-content .summary > .price {
    margin: 0 0 24px;
    color: #161816;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.4;
}

body.tg-shop #fl-main-content .woocommerce-product-details__short-description {
    color: #4f554b;
    font-size: 17px;
    line-height: 1.7;
}

body.tg-shop #fl-main-content .woocommerce-product-details__short-description blockquote {
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 0;
    border-left: 3px solid #ffca28;
    background: #f4f4f0;
    color: #161816;
    font-size: 18px;
    font-style: normal;
    line-height: 1.55;
}

body.tg-shop #fl-main-content .stock {
    color: #4f5944;
    font-size: 15px;
    font-weight: 700;
}

body.tg-shop #fl-main-content .out-of-stock {
    color: #8a352d;
}

body.tg-shop #fl-main-content .summary form.cart {
    margin: 28px 0;
}

body.tg-shop #fl-main-content .summary form.cart:not(.variations_form):not(.grouped_form) {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

body.tg-shop #fl-main-content .summary form.cart .quantity {
    float: none;
    margin: 0 12px 12px 0;
}

body.tg-shop #fl-main-content .quantity input.qty {
    width: 86px;
    min-height: 50px;
    padding: 10px;
    border: 1px solid #bfc4b8;
    border-radius: 2px;
    color: #161816;
    font-size: 16px;
    text-align: center;
}

body.tg-shop #fl-main-content .summary form.cart .single_add_to_cart_button {
    float: none;
    min-height: 50px;
    max-width: 100%;
}

body.tg-shop #fl-main-content .product_meta {
    padding-top: 20px;
    border-top: 1px solid var(--tg-shop-line);
    color: #60665c;
    font-size: 13px;
    line-height: 1.7;
}

body.tg-shop #fl-main-content .product_meta > span {
    display: block;
    margin-bottom: 5px;
}

body.tg-shop #fl-main-content .product_meta a {
    color: #161816;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.tg-shop #fl-main-content div.product .woocommerce-tabs {
    clear: both;
    margin-top: 35px;
}

body.tg-shop #fl-main-content div.product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 32px;
    padding: 0 0 12px;
    overflow: visible;
    border-bottom: 1px solid var(--tg-shop-line);
}

body.tg-shop #fl-main-content div.product .woocommerce-tabs ul.tabs::before,
body.tg-shop #fl-main-content div.product .woocommerce-tabs ul.tabs li::before,
body.tg-shop #fl-main-content div.product .woocommerce-tabs ul.tabs li::after {
    content: none;
}

body.tg-shop #fl-main-content div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: 1px solid var(--tg-shop-line);
    border-radius: 2px;
    background: #f4f4f0;
    box-shadow: none;
}

body.tg-shop #fl-main-content div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 13px 18px;
    color: #161816;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

body.tg-shop #fl-main-content div.product .woocommerce-tabs ul.tabs li.active {
    border-color: #161816;
    background: #161816;
}

body.tg-shop #fl-main-content div.product .woocommerce-tabs ul.tabs li.active a {
    color: #fff;
}

body.tg-shop #fl-main-content .woocommerce-Tabs-panel {
    margin-bottom: 48px;
    padding: 0;
    border: 0;
    box-shadow: none;
    font-size: 17px;
    line-height: 1.75;
}

body.tg-shop #fl-main-content :is(.woocommerce-Tabs-panel, .related, .upsells) h2 {
    margin: 0 0 24px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
}

body.tg-shop #fl-main-content .woocommerce-Tabs-panel :is(ul, ol) {
    padding-left: 24px;
}

body.tg-shop #fl-main-content .woocommerce-Tabs-panel li {
    margin-bottom: 7px;
}

body.tg-shop #fl-main-content :is(table.shop_attributes, table.shop_table) {
    width: 100%;
    border: 1px solid var(--tg-shop-line);
    border-collapse: collapse;
    border-radius: 0;
    background: #fff;
    color: #161816;
    font-size: 16px;
}

body.tg-shop #fl-main-content :is(table.shop_attributes, table.shop_table) :is(th, td) {
    padding: 16px 18px;
    border-color: var(--tg-shop-line);
    line-height: 1.6;
}

body.tg-shop #fl-main-content table.shop_attributes th {
    width: 28%;
    min-width: 145px;
    background: #f4f4f0;
    font-size: 14px;
}

body.tg-shop #fl-main-content table.shop_attributes td {
    font-style: normal;
}

body.tg-shop #fl-main-content table.shop_attributes td p {
    padding: 0;
}

body.tg-shop #fl-main-content :is(.related, .upsells) {
    clear: both;
    padding-top: 38px;
    border-top: 1px solid var(--tg-shop-line);
}

/* Preserve Woo validation, checkout payment controls, responsive table labels and notices. */
body.tg-shop #fl-main-content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
    margin-bottom: 28px;
    border-top-color: #b18700;
    background: #f4f4f0;
    color: #161816;
    font-size: 16px;
    line-height: 1.65;
}

body.tg-shop #fl-main-content :is(.woocommerce-message, .woocommerce-info)::before {
    color: #856500;
}

body.tg-shop #fl-main-content .woocommerce-error {
    border-top-color: #a33b32;
}

body.tg-shop #fl-main-content .woocommerce-error::before {
    color: #a33b32;
}

body.tg-shop #fl-main-content :is(.woocommerce-cart-form, .cart_totals, .woocommerce-checkout, .woocommerce-MyAccount-content) {
    font-size: 16px;
}

body.tg-shop #fl-main-content table.shop_table .product-thumbnail img {
    width: 88px;
    max-width: none;
    background: #fff;
}

body.tg-shop #fl-main-content table.shop_table .product-name a {
    color: #161816;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #bcc1b5;
    text-underline-offset: 3px;
}

body.tg-shop #fl-main-content table.shop_table .actions .coupon .input-text {
    width: 190px;
    max-width: 100%;
}

body.tg-shop #fl-main-content :is(.cart_totals, #order_review) h2,
body.tg-shop #fl-main-content .woocommerce-checkout h3 {
    font-size: 29px;
    line-height: 1.2;
}

body.tg-shop #fl-main-content :is(.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon) {
    padding: 24px;
    border: 1px solid var(--tg-shop-line);
    border-radius: 0;
    background: #f4f4f0;
}

body.tg-shop #fl-main-content .woocommerce form .form-row label {
    color: #31372c;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

body.tg-shop #fl-main-content :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: #161816;
}

body.tg-shop #fl-main-content .select2-container .select2-selection--single {
    min-height: 48px;
    border-color: #c7cbc5;
    border-radius: 2px;
    background: #fff;
}

body.tg-shop #fl-main-content .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 10px 34px 10px 14px;
    color: #161816;
    font-size: 16px;
    line-height: 26px;
}

body.tg-shop #fl-main-content .select2-container .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 8px;
}

body.tg-shop #fl-main-content #payment {
    border: 1px solid var(--tg-shop-line);
    border-radius: 0;
    background: #f4f4f0;
    color: #161816;
}

body.tg-shop #fl-main-content #payment div.payment_box {
    background: #e5e7de;
    color: #161816;
}

body.tg-shop #fl-main-content #payment div.payment_box::before {
    border-bottom-color: #e5e7de;
}

body.tg-shop #fl-main-content .woocommerce-MyAccount-navigation ul {
    padding: 0;
    border: 1px solid var(--tg-shop-line);
    list-style: none;
}

body.tg-shop #fl-main-content .woocommerce-MyAccount-navigation li + li {
    border-top: 1px solid var(--tg-shop-line);
}

body.tg-shop #fl-main-content .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 13px 18px;
    color: #161816;
    text-decoration: none;
}

body.tg-shop #fl-main-content .woocommerce-MyAccount-navigation .is-active a {
    background: #ffca28;
    font-weight: 700;
}

@media (max-width: 1000px) {
    body.tg-shop #fl-main-content ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
    body.tg-shop.woocommerce-shop #fl-main-content ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
    body.tg-shop #fl-main-content ul.products :is(.woocommerce-loop-product__title, .woocommerce-loop-category__title) {
        font-size: 21px;
    }
}

@media (max-width: 850px) {
    body.tg-shop.single-product #fl-main-content div.product > :is(.woocommerce-product-gallery, .summary) {
        float: none;
        width: 100%;
    }
    body.tg-shop.single-product #fl-main-content div.product > .woocommerce-product-gallery {
        max-width: 620px;
        margin-inline: auto;
    }
    body.tg-shop #fl-main-content .summary .product_title {
        max-width: 700px;
    }
    body.tg-shop.woocommerce-shop #fl-main-content ul.products {
        grid-template-columns: 1fr;
    }
    body.tg-shop.woocommerce-shop #fl-main-content ul.products li.product img {
        max-height: 340px;
    }
}

@media (max-width: 600px) {
    body.tg-shop:not(.tg-shop-builder) #fl-main-content > .container > .row > .fl-content {
        margin-block: 24px 52px;
    }
    body.tg-shop #fl-main-content .woocommerce-breadcrumb {
        margin-bottom: 22px;
        font-size: 13px;
    }
    body.tg-shop #fl-main-content .woocommerce-products-header {
        margin-bottom: 26px;
        padding: 28px 24px;
    }
    body.tg-shop #fl-main-content .woocommerce-products-header :is(p, .term-description, .page-description) {
        font-size: 16px;
    }
    body.tg-shop #fl-main-content :is(.woocommerce-result-count, .woocommerce-ordering) {
        float: none;
        width: 100%;
        margin: 0 0 18px;
    }
    body.tg-shop #fl-main-content ul.products {
        grid-template-columns: 1fr;
    }
    body.tg-shop #fl-main-content ul.products li.product img {
        max-height: 350px;
    }
    body.tg-shop #fl-main-content :is(table.shop_attributes, table.shop_table) :is(th, td) {
        padding: 12px 10px;
        overflow-wrap: anywhere;
    }
    body.tg-shop #fl-main-content table.shop_attributes th {
        min-width: 0;
        font-size: 12px;
    }
    body.tg-shop #fl-main-content div.product .woocommerce-tabs ul.tabs li a {
        padding: 11px 13px;
        font-size: 14px;
    }
    body.tg-shop #fl-main-content .woocommerce-message .button {
        float: none;
        display: block;
        width: fit-content;
        margin-bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.tg-shop #fl-main-content ul.products > li.product {
        transition: none;
    }
}
