/* =========================================================
   Teddyworld – Single Product Page
   ========================================================= */

body.single-product {
    background: #fbf7f2;
    color: #2f1e14;
}

.single-product .site-main {
    overflow: visible;
}

.tw-product-page {
    padding: 24px 0 72px;
}

.tw-product-container {
    width: min(1180px, calc(100% - 32px));
}

.tw-single-product {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* =========================================================
   Header search – product pages only
   ========================================================= */

.single-product .tw-header-search-button {
    position: absolute;
    top: 16px;
    left: 52px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #392317;
    cursor: pointer;
}

.single-product .tw-header-search-button:hover,
.single-product .tw-header-search-button:focus-visible {
    background: #f3e9e0;
}

.single-product .tw-header-search-button svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.single-product .tw-header-product-search {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    display: flex;
    gap: 8px;
    width: min(410px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid #e5d8cd;
    border-radius: 14px;
    background: #fffdfb;
    box-shadow: 0 14px 38px rgba(66, 37, 19, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.single-product .tw-header-product-search.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.single-product .tw-header-product-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 43px;
    padding: 0 13px;
    border: 1px solid #e5d8cd;
    border-radius: 10px;
    background: #fff;
    color: #2f1e14;
    font: inherit;
}

.single-product .tw-header-product-search button {
    min-width: 76px;
    height: 43px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #5b2b12;
    color: #fff;
    font-weight: 800;
}

/* =========================================================
   Breadcrumbs
   ========================================================= */

.tw-product-breadcrumbs {
    max-width: 1100px;
    margin: 0 auto 24px;
}

.tw-product-breadcrumbs .woocommerce-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    color: #8b7364;
    font-size: 14px;
}

.tw-product-breadcrumbs .woocommerce-breadcrumb a {
    color: #8b7364;
}

.tw-product-breadcrumbs .woocommerce-breadcrumb a:hover {
    color: #5b2b12;
}

.tw-breadcrumb-separator {
    color: #a99383;
    font-size: 18px;
    line-height: 1;
}

/* =========================================================
   Top layout
   ========================================================= */

.tw-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(350px, .88fr);
    gap: 54px;
    align-items: start;
    direction: rtl;
}

.tw-product-gallery,
.tw-product-summary {
    min-width: 0;
}

.tw-product-summary {
    position: sticky;
    top: 104px;
    padding: 28px 0 0;
    direction: rtl;
}

/* =========================================================
   Gallery
   ========================================================= */

.tw-product-gallery .woocommerce-product-gallery {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

.tw-product-gallery .woocommerce-product-gallery__wrapper {
    margin: 0;
}

.tw-product-gallery .flex-viewport {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tw-product-gallery .woocommerce-product-gallery__image {
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
}

.tw-product-gallery .woocommerce-product-gallery__image a {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.tw-product-gallery .woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    object-fit: cover;
    object-position: center;
    box-shadow: none;
}

.tw-product-gallery .woocommerce-product-gallery__trigger {
    top: 18px !important;
    right: 18px !important;
    left: auto !important;
    display: grid !important;
    place-items: center;
    width: 46px !important;
    height: 46px !important;
    border: 1px solid #e2d4c8;
    border-radius: 50% !important;
    background: rgba(255, 253, 250, .94) !important;
    box-shadow: 0 5px 14px rgba(70, 38, 18, .08);
}

.tw-product-gallery .woocommerce-product-gallery__trigger::before {
    top: 13px !important;
    left: 13px !important;
    width: 14px !important;
    height: 14px !important;
    border-width: 2px !important;
}

.tw-product-gallery .woocommerce-product-gallery__trigger::after {
    top: 27px !important;
    left: 26px !important;
    width: 8px !important;
    height: 2px !important;
}

.tw-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin: 14px 0 0 !important;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.tw-product-gallery .flex-control-thumbs::-webkit-scrollbar {
    display: none;
}

.tw-product-gallery .flex-control-thumbs li {
    flex: 0 0 78px;
    width: 78px !important;
    float: none !important;
}

.tw-product-gallery .flex-control-thumbs img {
    width: 78px;
    height: 78px;
    padding: 4px;
    object-fit: contain;
    border: 1px solid #e6d9cf;
    border-radius: 12px;
    background: #f6eee6;
    opacity: .74;
}

.tw-product-gallery .flex-control-thumbs img.flex-active {
    border-color: #5b2b12;
    box-shadow: inset 0 0 0 1px #5b2b12;
    opacity: 1;
}

/* =========================================================
   Product title and price
   ========================================================= */

.tw-product-heading {
    margin-bottom: 20px;
}

.tw-product-heading h1 {
    margin: 0;
    color: #302015;
    font-size: clamp(30px, 3vw, 43px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.tw-product-price {
    margin-bottom: 27px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e8dbd0;
}

.tw-product-price .price,
.tw-product-purchase .woocommerce-variation-price .price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    color: #2d1c12 !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    line-height: 1.1;
}

.tw-product-price ins,
.tw-product-purchase .woocommerce-variation-price ins {
    order: -1;
    color: #2d1c12;
    text-decoration: none;
}

.tw-product-price ins .woocommerce-Price-amount,
.tw-product-purchase .woocommerce-variation-price ins .woocommerce-Price-amount {
    color: inherit;
    font-size: 34px !important;
    font-weight: 900 !important;
}

.tw-product-price del,
.tw-product-purchase .woocommerce-variation-price del {
    color: #8e8179;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    opacity: 1;
    text-decoration-thickness: 1.4px;
}

.tw-product-price del .woocommerce-Price-amount,
.tw-product-purchase .woocommerce-variation-price del .woocommerce-Price-amount {
    color: inherit;
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* =========================================================
   Variations and purchase controls
   ========================================================= */

.tw-product-purchase form.cart,
.tw-product-purchase form.variations_form,
.tw-product-purchase .woocommerce-variation-add-to-cart {
    display: block !important;
    width: 100%;
    margin: 0 !important;
}

.tw-product-purchase .variations {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse;
}

.tw-product-purchase .variations tbody,
.tw-product-purchase .variations tr,
.tw-product-purchase .variations th,
.tw-product-purchase .variations td {
    display: block;
    width: 100%;
    border: 0 !important;
}

.tw-product-purchase .variations tr {
    margin: 0 0 24px;
    padding: 0;
}

.tw-product-purchase .variations th,
.tw-product-purchase .variations td {
    padding: 0 !important;
    background: transparent !important;
    text-align: right;
}

.tw-product-purchase .variations th {
    margin-bottom: 11px;
}

.tw-product-purchase .variations label,
.tw-quantity-label {
    display: block;
    margin: 0;
    color: #5f4c40;
    font-size: 15px;
    font-weight: 700;
}

.tw-product-purchase .variations label::after {
    content: ':';
}

.tw-product-purchase .variations select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.tw-variation-swatches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
}

.tw-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    min-height: 46px;
    margin: 0;
    padding: 8px 16px;
    border: 1px solid #e3d6cb;
    border-radius: 9px;
    background: #fffdfb;
    color: #342219;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tw-swatch:hover {
    border-color: #7b4b30;
    transform: translateY(-1px);
}

.tw-swatch.is-selected {
    border-color: #5b2b12;
    box-shadow: inset 0 0 0 1px #5b2b12;
}

.tw-swatch.is-disabled {
    opacity: .34;
    cursor: not-allowed;
    text-decoration: line-through;
    transform: none;
}

.tw-variation-swatches--colors {
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 3px 2px 4px;
    scrollbar-width: none;
}

.tw-variation-swatches--colors::-webkit-scrollbar {
    display: none;
}

.tw-swatch--color {
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-color: #dfd2c7;
    border-radius: 50%;
    background: #fffdfb;
}

.tw-swatch--color::after {
    content: '';
    width: 27px;
    height: 27px;
    border: 1px solid rgba(52, 34, 25, .18);
    border-radius: 50%;
    background: var(--swatch-color, #ddd);
}

.tw-swatch--color.is-selected {
    border-color: #5b2b12;
    box-shadow: 0 0 0 2px #fbf7f2, 0 0 0 3px #5b2b12;
}

.tw-product-purchase .reset_variations {
    display: inline-block;
    margin-top: 9px;
    color: #8b7364;
    font-size: 12px;
    text-decoration: underline;
}

.tw-product-purchase .single_variation_wrap {
    margin-top: 4px;
}

.tw-product-purchase .woocommerce-variation-description {
    margin-bottom: 12px;
    color: #806f65;
    font-size: 14px;
    line-height: 1.7;
}

.tw-product-purchase .woocommerce-variation-price {
    display: none !important;
}

.tw-quantity-label {
    margin: 2px 0 11px;
}

.tw-product-purchase .quantity.tw-quantity-ready {
    display: grid !important;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    width: 218px;
    height: 58px;
    margin: 0 0 18px !important;
    overflow: hidden;
    border: 1px solid #dfd1c6;
    border-radius: 13px;
    background: #fffdfb;
    direction: ltr;
    float: none !important;
}

.tw-product-purchase .quantity.tw-quantity-ready .qty {
    width: 100% !important;
    height: 56px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #2f2017;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    appearance: textfield;
    box-shadow: none !important;
}

.tw-product-purchase .quantity.tw-quantity-ready .qty::-webkit-outer-spin-button,
.tw-product-purchase .quantity.tw-quantity-ready .qty::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.tw-qty-button {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #75685f;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.tw-qty-button:hover {
    background: #f5ede6;
    color: #5b2b12;
}

.tw-product-purchase .single_add_to_cart_button,
.tw-buy-now {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100% !important;
    min-height: 58px;
    margin: 0 !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    float: none !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-align: center;
}

.tw-product-purchase .single_add_to_cart_button {
    border: 1px solid #5b2b12 !important;
    background: #5b2b12 !important;
    color: #fff !important;
}

.tw-product-purchase .single_add_to_cart_button:hover {
    border-color: #45200d !important;
    background: #45200d !important;
}

.tw-buy-now {
    margin-top: 12px !important;
    border: 1px solid #5b2b12 !important;
    background: transparent !important;
    color: #5b2b12 !important;
}

.tw-buy-now:hover {
    background: #f3e9e0 !important;
}

.tw-buy-now svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

/* =========================================================
   Benefits
   ========================================================= */

.tw-product-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin: 38px 0 0;
    padding: 28px 0;
    border-top: 1px solid #e7dacf;
    border-bottom: 1px solid #e7dacf;
}

.tw-product-benefit {
    min-width: 0;
    padding: 0 28px;
    text-align: center;
}

.tw-product-benefit + .tw-product-benefit {
    border-right: 1px solid #e7dacf;
}

.tw-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    color: #6a3214;
}

.tw-benefit-icon svg {
    display: block;
    width: 31px;
    height: 31px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tw-product-benefit strong,
.tw-product-benefit small {
    display: block;
}

.tw-product-benefit strong {
    color: #332117;
    font-size: 15px;
    font-weight: 850;
}

.tw-product-benefit small {
    margin-top: 4px;
    color: #847469;
    font-size: 12px;
    line-height: 1.45;
}

/* =========================================================
   Accordions
   ========================================================= */

.tw-product-accordions {
    width: 100%;
    margin-top: 30px;
    border-top: 1px solid #e7dacf;
}

.tw-product-accordion {
    margin: 0;
    border-bottom: 1px solid #e7dacf;
}

.tw-product-accordion summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 18px 2px 18px 48px;
    color: #302016;
    font-size: 17px;
    font-weight: 850;
    cursor: pointer;
    list-style: none;
}

.tw-product-accordion summary::-webkit-details-marker {
    display: none;
}

.tw-product-accordion summary::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-68%) rotate(45deg);
    transition: transform .18s ease;
}

.tw-product-accordion[open] summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.tw-accordion-content {
    padding: 0 2px 24px;
    color: #66574d;
    font-size: 15px;
    line-height: 1.9;
}

.tw-accordion-content > :first-child {
    margin-top: 0;
}

.tw-accordion-content > :last-child {
    margin-bottom: 0;
}

.tw-product-faq p + p {
    margin-top: 17px;
}

.tw-product-faq strong {
    color: #3a281e;
}

/* =========================================================
   Related products
   ========================================================= */

.tw-related-products {
    padding-top: 2px;
}

.tw-related-products .related > h2 {
    display: none;
}

.tw-related-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 !important;
}

.tw-related-products ul.products::before,
.tw-related-products ul.products::after {
    display: none !important;
}

.tw-related-products ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    padding: 7px 7px 14px !important;
    overflow: hidden;
    border: 1px solid #eadfd6;
    border-radius: 15px;
    background: #fffdfb;
    text-align: right;
}

.tw-related-products ul.products li.product a img {
    width: 100%;
    margin: 0 0 12px !important;
    aspect-ratio: 1 / 1.08;
    padding: 6px;
    border-radius: 11px;
    background: #f5ede5;
    object-fit: contain;
}

.tw-related-products ul.products li.product .woocommerce-loop-product__title,
.tw-related-products ul.products li.product .price,
.tw-related-products ul.products li.product .button {
    margin-right: 8px !important;
    margin-left: 8px !important;
}

.tw-related-products ul.products li.product .woocommerce-loop-product__title {
    min-height: 41px;
    padding: 0 !important;
    color: #342219;
    font-size: 14px !important;
    line-height: 1.45;
}

.tw-related-products ul.products li.product .price {
    color: #4f250f !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

.tw-related-products ul.products li.product .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 16px);
    min-height: 38px;
    padding: 8px !important;
    border-radius: 9px;
    background: #5b2b12;
    color: #fff;
    font-size: 12px;
}

/* WooCommerce elements intentionally hidden in this version */
.single-product .woocommerce-product-rating,
.single-product .woocommerce-tabs,
.single-product .product_meta,
.single-product .stock.in-stock,
.single-product .upsells.products {
    display: none !important;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 920px) {
    .tw-product-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr);
        gap: 30px;
    }

    .tw-product-summary {
        padding-top: 12px;
    }

    .tw-related-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   Mobile
   ========================================================= */

/* Safety: prevent inline SVG icons from inheriting page dimensions */
.tw-buy-now svg {
    flex: 0 0 21px;
    width: 21px !important;
    height: 21px !important;
    max-width: 21px !important;
    max-height: 21px !important;
    fill: currentColor;
}

.tw-benefit-icon svg {
    flex: 0 0 31px;
    width: 31px !important;
    height: 31px !important;
    max-width: 31px !important;
    max-height: 31px !important;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 767px) {
    .single-product .tw-header-search-button,
    .single-product .tw-header-product-search {
        display: none !important;
    }

    .tw-product-page {
        padding: 0 0 46px;
    }

    .tw-product-container,
    .tw-single-product,
    .tw-product-layout {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .tw-product-breadcrumbs {
        display: none;
    }

    .tw-product-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .tw-product-gallery {
        order: 1;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .tw-product-gallery .woocommerce-product-gallery,
    .tw-product-gallery .flex-viewport,
    .tw-product-gallery .woocommerce-product-gallery__wrapper,
    .tw-product-gallery .woocommerce-product-gallery__image,
    .tw-product-gallery .woocommerce-product-gallery__image a {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .tw-product-gallery .woocommerce-product-gallery__image img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1.04;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        object-fit: cover;
        object-position: center;
        box-shadow: none;
    }

    .tw-product-gallery .woocommerce-product-gallery__trigger {
        top: 12px !important;
        right: 12px !important;
        width: 42px !important;
        height: 42px !important;
    }

    .tw-product-gallery .flex-control-thumbs {
        gap: 7px;
        margin: 10px 14px 0 !important;
    }

    .tw-product-gallery .flex-control-thumbs li {
        flex-basis: 60px;
        width: 60px !important;
    }

    .tw-product-gallery .flex-control-thumbs img {
        width: 60px;
        height: 60px;
        border-radius: 9px;
    }

    .tw-product-summary {
        position: static;
        order: 2;
        width: 100%;
        padding: 22px 18px 0;
    }

    .tw-product-heading {
        margin-bottom: 12px;
    }

    .tw-product-heading h1 {
        font-size: 23px;
        line-height: 1.22;
    }

    .tw-product-price {
        margin-bottom: 22px;
        padding-bottom: 22px;
    }

    .tw-product-price .price,
    .tw-product-purchase .woocommerce-variation-price .price {
        gap: 11px;
        font-size: 28px !important;
    }

    .tw-product-price ins .woocommerce-Price-amount,
    .tw-product-purchase .woocommerce-variation-price ins .woocommerce-Price-amount {
        font-size: 28px !important;
    }

    .tw-product-price del,
    .tw-product-purchase .woocommerce-variation-price del {
        font-size: 15px;
    }

    .tw-product-purchase .variations tr {
        margin-bottom: 20px;
    }

    .tw-product-purchase .variations label,
    .tw-quantity-label {
        font-size: 14px;
    }

    .tw-variation-swatches {
        gap: 8px;
    }

    .tw-swatch {
        flex: 1 1 calc(33.333% - 6px);
        min-width: 0;
        min-height: 44px;
        padding: 8px 9px;
        font-size: 13px;
    }

    .tw-variation-swatches--colors {
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        padding: 3px 2px 5px;
    }

    .tw-swatch--color {
        flex: 0 0 34px;
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
    }

    .tw-swatch--color::after {
        width: 24px;
        height: 24px;
    }

    .tw-product-purchase .quantity.tw-quantity-ready {
        grid-template-columns: 48px 1fr 48px;
        width: 100%;
        max-width: 205px;
        height: 54px;
        margin-bottom: 16px !important;
        border-radius: 12px;
    }

    .tw-product-purchase .quantity.tw-quantity-ready .qty {
        height: 52px !important;
        font-size: 17px;
    }

    .tw-product-purchase .single_add_to_cart_button,
    .tw-buy-now {
        min-height: 54px;
        border-radius: 11px !important;
        font-size: 16px !important;
    }

    .tw-buy-now svg {
        width: 20px !important;
        height: 20px !important;
    }

    .tw-product-benefits {
        margin-top: 28px;
        padding: 22px 12px;
    }

    .tw-product-benefit {
        padding: 0 7px;
    }

    .tw-benefit-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 8px;
    }

    .tw-benefit-icon svg {
        width: 27px !important;
        height: 27px !important;
    }

    .tw-product-benefit strong {
        font-size: 11px;
        line-height: 1.35;
    }

    .tw-product-benefit small {
        margin-top: 3px;
        font-size: 9px;
        line-height: 1.4;
    }

    .tw-product-accordions {
        margin-top: 18px;
        padding: 0 16px;
        border-top: 0;
    }

    .tw-product-accordion:first-child {
        border-top: 1px solid #e7dacf;
    }

    .tw-product-accordion summary {
        min-height: 59px;
        padding: 15px 1px 15px 36px;
        font-size: 15px;
    }

    .tw-product-accordion summary::after {
        left: 5px;
        width: 7px;
        height: 7px;
    }

    .tw-accordion-content {
        padding-bottom: 20px;
        font-size: 14px;
        line-height: 1.85;
    }

    .tw-related-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tw-related-products ul.products li.product .woocommerce-loop-product__title {
        min-height: 38px;
        font-size: 12px !important;
    }
}

@media (max-width: 370px) {
    .tw-product-summary {
        padding-inline: 14px;
    }

    .tw-product-benefits {
        padding-inline: 6px;
    }

    .tw-product-benefit {
        padding-inline: 4px;
    }

    .tw-swatch--color {
        flex-basis: 32px;
        width: 32px;
        min-width: 32px;
        height: 32px;
        min-height: 32px;
    }

    .tw-swatch--color::after {
        width: 22px;
        height: 22px;
    }
}


/* =========================================================
   Teddyworld – Related products (clean final version)
   ========================================================= */

body.single-product .tw-related-products,
body.single-product .related.products {
    width: 100%;
    margin: 0;
    padding: 2px 0 0;
}

body.single-product .tw-related-products .related > h2,
body.single-product .related.products > h2 {
    display: none !important;
}

body.single-product .tw-related-products ul.products,
body.single-product .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-product .tw-related-products ul.products::before,
body.single-product .tw-related-products ul.products::after,
body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after {
    display: none !important;
}

body.single-product .tw-related-products ul.products li.product,
body.single-product .related.products ul.products li.product {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: right !important;
}

body.single-product .tw-related-products .astra-shop-thumbnail-wrap,
body.single-product .tw-related-products .astra-shop-summary-wrap,
body.single-product .related.products .astra-shop-thumbnail-wrap,
body.single-product .related.products .astra-shop-summary-wrap {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-product .tw-related-products .astra-shop-thumbnail-wrap,
body.single-product .related.products .astra-shop-thumbnail-wrap {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 15px !important;
}

body.single-product .tw-related-products .astra-shop-summary-wrap,
body.single-product .related.products .astra-shop-summary-wrap {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    padding: 12px 2px 0 !important;
}

body.single-product .tw-related-products ul.products li.product img,
body.single-product .related.products ul.products li.product img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1.06 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: #f5eee7 !important;
    object-fit: cover !important;
    object-position: center !important;
    box-shadow: none !important;
}

body.single-product .tw-related-products .ast-woo-product-category,
body.single-product .tw-related-products .product-category,
body.single-product .tw-related-products .posted_in,
body.single-product .tw-related-products .tw-shop-category,
body.single-product .tw-related-products .tw-shop-product-category,
body.single-product .related.products .ast-woo-product-category,
body.single-product .related.products .product-category,
body.single-product .related.products .posted_in,
body.single-product .related.products .tw-shop-category,
body.single-product .related.products .tw-shop-product-category {
    display: none !important;
}

body.single-product .tw-related-products .onsale,
body.single-product .related.products .onsale {
    display: none !important;
}

body.single-product .tw-related-products .star-rating,
body.single-product .tw-related-products .woocommerce-product-rating,
body.single-product .related.products .star-rating,
body.single-product .related.products .woocommerce-product-rating {
    display: none !important;
}

body.single-product .tw-related-products a.woocommerce-LoopProduct-link,
body.single-product .related.products a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    color: inherit !important;
}

body.single-product .tw-related-products .woocommerce-loop-product__title,
body.single-product .related.products .woocommerce-loop-product__title {
    min-height: 44px !important;
    margin: 0 !important;
    padding: 12px 2px 0 !important;
    color: #2d2018 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    text-align: right !important;
}

body.single-product .tw-related-products .price,
body.single-product .related.products .price {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    min-height: 30px !important;
    margin: auto 0 0 !important;
    padding: 8px 2px 0 !important;
    color: #54270f !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    text-align: right !important;
}

body.single-product .tw-related-products .price ins,
body.single-product .related.products .price ins {
    color: #54270f !important;
    text-decoration: none !important;
}

body.single-product .tw-related-products .price del,
body.single-product .related.products .price del {
    color: #9e8e83 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

body.single-product .tw-related-products ul.products li.product .button,
body.single-product .related.products ul.products li.product .button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 40px !important;
    margin: 11px 0 0 !important;
    padding: 9px 10px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #5b2b12 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    box-shadow: none !important;
}

body.single-product .tw-related-products ul.products li.product .button:hover,
body.single-product .related.products ul.products li.product .button:hover {
    background: #421c09 !important;
    color: #fff !important;
}

@media (max-width: 900px) {
    body.single-product .tw-related-products ul.products,
    body.single-product .related.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

@media (max-width: 600px) {
    body.single-product .tw-related-products,
    body.single-product .related.products {
        padding-inline: 0 !important;
    }

    body.single-product .tw-related-products ul.products,
    body.single-product .related.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.single-product .tw-related-products .astra-shop-summary-wrap,
    body.single-product .related.products .astra-shop-summary-wrap {
        padding-top: 9px !important;
    }

    body.single-product .tw-related-products .woocommerce-loop-product__title,
    body.single-product .related.products .woocommerce-loop-product__title {
        min-height: 40px !important;
        padding-top: 9px !important;
        font-size: 12px !important;
    }

    body.single-product .tw-related-products .price,
    body.single-product .related.products .price {
        font-size: 14px !important;
    }

    body.single-product .tw-related-products ul.products li.product .button,
    body.single-product .related.products ul.products li.product .button {
        min-height: 38px !important;
        font-size: 11px !important;
    }
}