/* ==========================================================
   TOP WATCH DEALS — WOOCOMMERCE
   Clean global product/store presentation
   ========================================================== */

.twd-woocommerce-main {
    min-height: 70vh;
    padding: 30px 0 72px;
    background: #f8f6f1;
}

.twd-shop-container {
    width: min(calc(100% - 48px), 1320px);
    margin-inline: auto;
}

/* ---------- Breadcrumb ---------- */

.woocommerce .woocommerce-breadcrumb {
    margin: 0 0 28px;
    color: #777;
    font-size: 14px;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #555;
    text-decoration: none;
}

/* ==========================================================
   SINGLE PRODUCT — TOP AREA
   ========================================================== */

body.single-product .woocommerce div.product {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(380px, .92fr);
    column-gap: 58px;
    align-items: start;
}

body.single-product .woocommerce div.product::before,
body.single-product .woocommerce div.product::after {
    display: none;
}

/* ==========================================================
   GALLERY — KEEP WOOCOMMERCE SLIDER/LIGHTBOX
   ========================================================== */

body.single-product .woocommerce div.product
.woocommerce-product-gallery {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.single-product .woocommerce-product-gallery
.flex-viewport {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5dfd4;
    border-radius: 14px;
}

body.single-product .woocommerce-product-gallery
.woocommerce-product-gallery__wrapper {
    margin: 0;
}

body.single-product .woocommerce-product-gallery
.woocommerce-product-gallery__image {
    background: #fff;
}

body.single-product .woocommerce-product-gallery
.woocommerce-product-gallery__image a {
    display: block;
}

body.single-product .woocommerce-product-gallery
.woocommerce-product-gallery__image img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: 650px;
    margin: 0 auto;
    object-fit: contain;
}

/* thumbnails */

body.single-product .woocommerce-product-gallery
.flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 0 !important;
    padding: 0 !important;
}

body.single-product .woocommerce-product-gallery
.flex-control-thumbs li {
    float: none !important;
    width: 76px !important;
    margin: 0 !important;
    list-style: none;
}

body.single-product .woocommerce-product-gallery
.flex-control-thumbs img {
    display: block;
    width: 76px !important;
    height: 76px !important;
    object-fit: cover;
    background: #fff;
    border: 1px solid #ddd5c8;
    border-radius: 8px;
    opacity: .65;
    cursor: pointer;
}

body.single-product .woocommerce-product-gallery
.flex-control-thumbs img:hover,
body.single-product .woocommerce-product-gallery
.flex-control-thumbs img.flex-active {
    border-color: #bd8b2d;
    opacity: 1;
}

/* sale badge */

body.single-product .woocommerce span.onsale {
    top: 14px;
    left: 14px;
    z-index: 5;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 7px 13px;
    background: #c99a37;
    border-radius: 999px;
    color: #111;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .07em;
    text-transform: uppercase;
}

/* ==========================================================
   PRODUCT INFORMATION
   ========================================================== */

body.single-product .woocommerce div.product .summary {
    float: none !important;
    width: 100% !important;
    max-width: 520px;
    margin: 0 !important;
    padding: 10px 0 0;
}

body.single-product .woocommerce div.product
.summary .product_title {
    margin: 0 0 18px;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 3vw, 47px);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -.025em;
}

/* main product price */

body.single-product .woocommerce div.product
.summary > p.price,
body.single-product .woocommerce div.product
.summary > span.price {
    display: block;
    margin: 0 0 24px;
    color: #a87512;
    font-size: 29px;
    font-weight: 800;
    line-height: 1.25;
}

/* ==========================================================
   PREMIUM BUY BOX
   ========================================================== */

body.single-product .woocommerce div.product
.summary form.cart {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 22px;
    padding: 22px;

    background: #fff;
    border: 1px solid #e1d9cc;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,.055);
}

/* variations */

body.single-product .woocommerce div.product
.summary form.cart table.variations {
    display: table;
    width: 100%;
    margin: 0 0 16px;
    border: 0;
    border-collapse: separate;
}

body.single-product .woocommerce div.product
.summary form.cart table.variations tbody {
    display: table-row-group;
}

body.single-product .woocommerce div.product
.summary form.cart table.variations tr {
    display: table-row;
}

body.single-product .woocommerce div.product
.summary form.cart table.variations th {
    width: 78px;
    padding: 0 14px 0 0 !important;
    border: 0;
    color: #171717;
    font-size: 15px;
    font-weight: 750;
    text-align: left;
    vertical-align: middle;
}

body.single-product .woocommerce div.product
.summary form.cart table.variations td {
    width: auto !important;
    padding: 0 !important;
    border: 0;
    vertical-align: middle;
}

body.single-product .woocommerce div.product
.summary form.cart select {
    display: block;
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 0 42px 0 14px;

    appearance: auto;
    background: #fff;
    border: 1px solid #d4ccbf;
    border-radius: 8px;

    color: #171717;
    font: inherit;
    font-size: 15px;
}

body.single-product .woocommerce div.product
.summary form.cart .reset_variations {
    display: inline-block;
    margin-top: 8px;
    color: #8a641e;
    font-size: 12px;
    text-decoration: none;
}

/* selected variation price */

body.single-product .woocommerce div.product
.summary .single_variation_wrap {
    width: 100%;
}

body.single-product .woocommerce div.product
.summary .woocommerce-variation-price {
    margin: 8px 0 14px;
}

body.single-product .woocommerce div.product
.summary .woocommerce-variation-price .price {
    color: #a87512;
    font-size: 22px;
    font-weight: 800;
}

/* quantity + cart */

body.single-product .woocommerce div.product
.summary .woocommerce-variation-add-to-cart {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: stretch;
    margin-top: 17px;
}

body.single-product .woocommerce div.product
.summary .quantity {
    float: none !important;
    width: 70px;
    margin: 0 !important;
}

body.single-product .woocommerce div.product
.summary .quantity .qty {
    display: block;
    width: 70px;
    height: 52px;
    box-sizing: border-box;
    margin: 0;

    background: #fff;
    border: 1px solid #d4ccbf;
    border-radius: 8px;

    color: #111;
    font-size: 16px;
    text-align: center;
}

/* ADD TO CART */

body.single-product .woocommerce div.product
.summary .single_add_to_cart_button,
body.single-product .woocommerce div.product
.summary button.single_add_to_cart_button.button.alt {
    float: none !important;
    flex: 1 1 auto;
    width: auto;
    min-height: 52px;
    margin: 0 !important;
    padding: 0 24px !important;

    background: linear-gradient(135deg,#e5b64f,#c58c23) !important;
    border: 1px solid #c6922d !important;
    border-radius: 8px !important;

    color: #0b0b0b !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 50px;
    text-align: center;

    box-shadow: none !important;
    cursor: pointer;
}

body.single-product .woocommerce div.product
.summary .single_add_to_cart_button:hover,
body.single-product .woocommerce div.product
.summary button.single_add_to_cart_button.button.alt:hover {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}

/* WooCommerce correctly disables this until required variation selected */

body.single-product .woocommerce div.product
.summary .single_add_to_cart_button.disabled,
body.single-product .woocommerce div.product
.summary .single_add_to_cart_button:disabled,
body.single-product .woocommerce div.product
.summary .single_add_to_cart_button.wc-variation-selection-needed {
    background: #ead7aa !important;
    border-color: #ddc48b !important;
    color: #766849 !important;
    opacity: 1 !important;
    cursor: not-allowed;
}

/* metadata */

body.single-product .woocommerce div.product
.summary .product_meta {
    margin: 22px 0 0;
    padding: 18px 0 0;

    border-top: 1px solid #ddd6ca;

    color: #777;
    font-size: 13px;
    line-height: 1.8;
}

body.single-product .woocommerce div.product
.summary .product_meta > span {
    display: block;
}

body.single-product .woocommerce div.product
.summary .product_meta a {
    color: #93691b;
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================
   DESCRIPTION / SPECIFICATIONS
   ========================================================== */

body.single-product .woocommerce div.product
.woocommerce-tabs {
    grid-column: 1 / -1;
    clear: both;
    width: 100%;
    margin-top: 62px;
}

body.single-product .woocommerce div.product
.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0 0 13px;
    border-bottom: 1px solid #ddd6ca;
}

body.single-product .woocommerce div.product
.woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce div.product
.woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce div.product
.woocommerce-tabs ul.tabs li::after {
    display: none;
}

body.single-product .woocommerce div.product
.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

body.single-product .woocommerce div.product
.woocommerce-tabs ul.tabs li a {
    padding: 0 0 11px;
    color: #666;
    font-weight: 750;
    text-decoration: none;
}

body.single-product .woocommerce div.product
.woocommerce-tabs ul.tabs li.active a {
    color: #111;
    border-bottom: 2px solid #c9952e;
}

body.single-product .woocommerce div.product
.woocommerce-tabs .panel {
    margin: 0;
    padding: 34px 0 0;
    color: #444;
    font-size: 16px;
    line-height: 1.75;
}

body.single-product .woocommerce div.product
.woocommerce-tabs .panel > h2:first-child {
    display: none;
}

body.single-product .woocommerce-tabs h2,
body.single-product .woocommerce-tabs h3 {
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
}

body.single-product .woocommerce-tabs h2 {
    margin: 30px 0 12px;
    font-size: 30px;
}

body.single-product .woocommerce-tabs h3 {
    margin: 26px 0 10px;
    font-size: 23px;
}

body.single-product .woocommerce-tabs p {
    max-width: 1000px;
}

body.single-product .woocommerce-tabs table {
    width: min(100%, 900px);
    margin: 22px 0 32px;
    border: 1px solid #e2dbcf;
    border-collapse: collapse;
    background: #fff;
}

body.single-product .woocommerce-tabs table th,
body.single-product .woocommerce-tabs table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ece6dc;
    text-align: left;
}

body.single-product .woocommerce-tabs table th {
    width: 34%;
    background: #f3eee4;
    color: #171717;
    font-weight: 750;
}

/* ==========================================================
   RELATED / UPSELLS
   ========================================================== */

body.single-product .woocommerce div.product .related,
body.single-product .woocommerce div.product .upsells {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 52px;
}

body.single-product .related > h2,
body.single-product .upsells > h2 {
    margin-bottom: 24px;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 20px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 13px;

    background: #fff;
    border: 1px solid #e5ded3;
    border-radius: 10px;
}

.woocommerce ul.products li.product img {
    border-radius: 7px;
}

.woocommerce ul.products li.product .price {
    color: #a87512;
    font-weight: 800;
}

/* no generic sidebar */

.woocommerce-page .widget-area,
.woocommerce-page #secondary {
    display: none !important;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    .twd-shop-container {
        width: min(calc(100% - 30px),1320px);
    }

    body.single-product .woocommerce div.product {
        display: block;
    }

    body.single-product .woocommerce div.product .summary {
        max-width: none;
        margin-top: 30px !important;
    }

    body.single-product .woocommerce-product-gallery
    .flex-control-thumbs li {
        width: 68px !important;
    }

    body.single-product .woocommerce-product-gallery
    .flex-control-thumbs img {
        width: 68px !important;
        height: 68px !important;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 560px) {

    .twd-woocommerce-main {
        padding-top: 18px;
    }

    body.single-product .woocommerce div.product
    .summary .product_title {
        font-size: 32px;
    }

    body.single-product .woocommerce div.product
    .summary > p.price,
    body.single-product .woocommerce div.product
    .summary > span.price {
        font-size: 24px;
    }

    body.single-product .woocommerce div.product
    .summary form.cart {
        padding: 17px;
    }

    body.single-product .woocommerce div.product
    .summary form.cart table.variations,
    body.single-product .woocommerce div.product
    .summary form.cart table.variations tbody,
    body.single-product .woocommerce div.product
    .summary form.cart table.variations tr,
    body.single-product .woocommerce div.product
    .summary form.cart table.variations th,
    body.single-product .woocommerce div.product
    .summary form.cart table.variations td {
        display: block;
        width: 100% !important;
    }

    body.single-product .woocommerce div.product
    .summary form.cart table.variations th {
        margin-bottom: 7px;
        padding: 0 !important;
    }

    body.single-product .woocommerce div.product
    .summary .woocommerce-variation-add-to-cart {
        display: flex;
    }

    body.single-product .woocommerce-product-gallery
    .flex-control-thumbs li {
        width: 58px !important;
    }

    body.single-product .woocommerce-product-gallery
    .flex-control-thumbs img {
        width: 58px !important;
        height: 58px !important;
    }

    body.single-product .woocommerce div.product
    .woocommerce-tabs ul.tabs {
        gap: 18px;
        overflow-x: auto;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   TWD GLOBAL PRODUCT SUMMARY — LOCKED
   Gallery intentionally untouched
   ========================================================== */

body.single-product .summary.entry-summary {
    float: none !important;
    width: 100% !important;
    max-width: 540px !important;
    margin: 0 !important;
    padding: 10px 0 0 !important;
}

/* TITLE */

body.single-product .summary.entry-summary h1.product_title {
    margin: 0 0 18px !important;
    padding: 0 !important;
    color: #111 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 46px !important;
    font-weight: 600 !important;
    line-height: 1.06 !important;
    letter-spacing: -.025em !important;
}

/* PRICE */

body.single-product .summary.entry-summary > p.price {
    display: block !important;
    margin: 0 0 26px !important;
    padding: 0 !important;
    color: #a87512 !important;
    font-size: 29px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

/* BUY BOX */

body.single-product .summary.entry-summary form.variations_form.cart {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 22px !important;
    padding: 24px !important;

    background: #fff !important;
    border: 1px solid #dfd6c8 !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 34px rgba(0,0,0,.055) !important;
}

/* VARIATION TABLE */

body.single-product .summary.entry-summary
form.variations_form table.variations {
    display: table !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
}

body.single-product .summary.entry-summary
form.variations_form table.variations tbody {
    display: table-row-group !important;
}

body.single-product .summary.entry-summary
form.variations_form table.variations tr {
    display: table-row !important;
}

body.single-product .summary.entry-summary
form.variations_form table.variations th.label {
    display: table-cell !important;
    width: 82px !important;
    padding: 0 15px 0 0 !important;
    border: 0 !important;

    color: #171717 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-align: left !important;
    vertical-align: middle !important;
}

body.single-product .summary.entry-summary
form.variations_form table.variations td.value {
    display: table-cell !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    vertical-align: middle !important;
}

/* SELECT */

body.single-product .summary.entry-summary
form.variations_form table.variations select {
    display: block !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 0 42px 0 15px !important;

    background-color: #fff !important;
    border: 1px solid #d3cabd !important;
    border-radius: 8px !important;

    color: #171717 !important;
    font-family: inherit !important;
    font-size: 15px !important;
}

/* RESET LINK */

body.single-product .summary.entry-summary
form.variations_form .reset_variations {
    display: inline-block !important;
    margin: 7px 0 0 !important;
    color: #956b1c !important;
    font-size: 12px !important;
    text-decoration: none !important;
}

/* VARIATION PRICE */

body.single-product .summary.entry-summary
.single_variation_wrap {
    width: 100% !important;
}

body.single-product .summary.entry-summary
.woocommerce-variation-price {
    margin: 4px 0 14px !important;
}

body.single-product .summary.entry-summary
.woocommerce-variation-price .price {
    color: #a87512 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
}

/* QUANTITY + ADD TO CART */

body.single-product .summary.entry-summary
.woocommerce-variation-add-to-cart {
    display: flex !important;
    width: 100% !important;
    gap: 11px !important;
    align-items: stretch !important;
    margin-top: 18px !important;
}

body.single-product .summary.entry-summary
.woocommerce-variation-add-to-cart .quantity {
    float: none !important;
    flex: 0 0 72px !important;
    width: 72px !important;
    margin: 0 !important;
}

body.single-product .summary.entry-summary
.woocommerce-variation-add-to-cart .quantity input.qty {
    display: block !important;
    width: 72px !important;
    height: 54px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 6px !important;

    background: #fff !important;
    border: 1px solid #d3cabd !important;
    border-radius: 8px !important;

    color: #111 !important;
    font-size: 16px !important;
    text-align: center !important;
}

/* BUTTON — selected variation */

body.single-product .summary.entry-summary
button.single_add_to_cart_button.button.alt {
    float: none !important;
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    height: 54px !important;
    min-height: 54px !important;

    margin: 0 !important;
    padding: 0 24px !important;

    background: linear-gradient(135deg,#e6b74f,#c68d23) !important;
    border: 1px solid #c4932f !important;
    border-radius: 8px !important;

    color: #0b0b0b !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 52px !important;
    text-align: center !important;

    opacity: 1 !important;
    box-shadow: none !important;
}

/* Correctly disabled until colour/variation chosen */

body.single-product .summary.entry-summary
button.single_add_to_cart_button.button.alt.disabled,
body.single-product .summary.entry-summary
button.single_add_to_cart_button.button.alt:disabled,
body.single-product .summary.entry-summary
button.single_add_to_cart_button.button.alt.wc-variation-selection-needed {
    background: #ead7aa !important;
    border-color: #ddc48b !important;
    color: #766849 !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

/* Hover only when usable */

body.single-product .summary.entry-summary
button.single_add_to_cart_button.button.alt:not(.disabled):not(:disabled):hover {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}

/* META */

body.single-product .summary.entry-summary .product_meta {
    margin: 22px 0 0 !important;
    padding: 18px 0 0 !important;

    border-top: 1px solid #ddd5c8 !important;

    color: #777 !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
}

body.single-product .summary.entry-summary .product_meta > span {
    display: block !important;
}

body.single-product .summary.entry-summary .product_meta a {
    color: #94691a !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* MOBILE */

@media (max-width: 900px) {

    body.single-product .summary.entry-summary {
        max-width: none !important;
        margin-top: 30px !important;
    }

    body.single-product .summary.entry-summary h1.product_title {
        font-size: clamp(34px,7vw,44px) !important;
    }
}

@media (max-width: 560px) {

    body.single-product .summary.entry-summary h1.product_title {
        font-size: 32px !important;
    }

    body.single-product .summary.entry-summary
    form.variations_form.cart {
        padding: 18px !important;
    }

    body.single-product .summary.entry-summary
    form.variations_form table.variations,
    body.single-product .summary.entry-summary
    form.variations_form table.variations tbody,
    body.single-product .summary.entry-summary
    form.variations_form table.variations tr,
    body.single-product .summary.entry-summary
    form.variations_form table.variations th.label,
    body.single-product .summary.entry-summary
    form.variations_form table.variations td.value {
        display: block !important;
        width: 100% !important;
    }

    body.single-product .summary.entry-summary
    form.variations_form table.variations th.label {
        margin-bottom: 7px !important;
        padding: 0 !important;
    }
}


/* TWD PRODUCT TOP COLUMNS — FINAL */
@media (min-width: 901px) {

    body.single-product .woocommerce div.product {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(420px, .92fr) !important;
        column-gap: 58px !important;
        align-items: start !important;
    }

    body.single-product .woocommerce div.product
    .woocommerce-product-gallery {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
    }

    body.single-product .woocommerce div.product
    .summary.entry-summary {
        grid-column: 2 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        align-self: start !important;
    }

    body.single-product .woocommerce div.product
    .woocommerce-tabs,
    body.single-product .woocommerce div.product
    .related,
    body.single-product .woocommerce div.product
    .upsells {
        grid-column: 1 / -1 !important;
    }
}


/* ==========================================================
   TWD PRODUCT DESKTOP POSITION — LOCKED
   WooCommerce product element itself has product classes;
   there is no outer .woocommerce wrapper around div.product.
   ========================================================== */

@media (min-width: 901px) {

    body.single-product div.product.type-product {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(400px, .92fr) !important;
        column-gap: 58px !important;
        row-gap: 0 !important;
        align-items: start !important;
        width: 100% !important;
    }

    body.single-product div.product.type-product
    > .woocommerce-product-gallery {
        float: none !important;
        clear: none !important;
        display: block !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.single-product div.product.type-product
    > .summary.entry-summary {
        float: none !important;
        clear: none !important;
        display: block !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: 540px !important;
        min-width: 0 !important;
        margin: 0 !important;
        justify-self: start !important;
        align-self: start !important;
    }

    body.single-product div.product.type-product
    > .woocommerce-tabs,
    body.single-product div.product.type-product
    > .upsells,
    body.single-product div.product.type-product
    > .related {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }
}


/* ==========================================================
   TWD PRODUCT DETAILS — SEPARATION FROM TOP SECTION
   ========================================================== */

@media (min-width: 901px) {

    body.single-product div.product.type-product
    > .woocommerce-tabs {
        margin-top: 56px !important;
    }

}


/* ==========================================================
   TWD SHOP / PRODUCT ARCHIVE TOOLBAR
   Shop + category archives only.
   ========================================================== */

body.woocommerce-shop .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
    float: none !important;
    margin: 0 !important;
    color: #6f6a61;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

body.woocommerce-shop .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_tag .woocommerce-ordering {
    float: none !important;
    margin: 0 !important;
}

body.woocommerce-shop .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.tax-product_tag .woocommerce-ordering select {
    min-width: 230px;
    height: 48px;
    padding: 0 46px 0 16px;

    border: 1px solid #ddd5c8;
    border-radius: 9px;

    background-color: #fff;
    color: #171717;

    font: inherit;
    font-size: 14px;
    font-weight: 650;

    cursor: pointer;
    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

body.woocommerce-shop .woocommerce-ordering select:hover,
body.tax-product_cat .woocommerce-ordering select:hover,
body.tax-product_tag .woocommerce-ordering select:hover {
    border-color: #c99a37;
}

body.woocommerce-shop .woocommerce-ordering select:focus,
body.tax-product_cat .woocommerce-ordering select:focus,
body.tax-product_tag .woocommerce-ordering select:focus {
    border-color: #c99a37;
    box-shadow: 0 0 0 3px rgba(201,154,55,.12);
}

/* Put result count and sorting on one premium toolbar row. */
body.woocommerce-shop .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
}

body.woocommerce-shop .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_tag .woocommerce-ordering {
    display: block;
}

/* Space before product grid. */
body.woocommerce-shop ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
    clear: both !important;
    margin-top: 30px !important;
}

/* Mobile toolbar. */
@media (max-width: 700px) {

    body.woocommerce-shop .woocommerce-result-count,
    body.tax-product_cat .woocommerce-result-count,
    body.tax-product_tag .woocommerce-result-count {
        display: block;
        min-height: 0;
        margin-bottom: 12px !important;
    }

    body.woocommerce-shop .woocommerce-ordering,
    body.tax-product_cat .woocommerce-ordering,
    body.tax-product_tag .woocommerce-ordering {
        width: 100%;
    }

    body.woocommerce-shop .woocommerce-ordering select,
    body.tax-product_cat .woocommerce-ordering select,
    body.tax-product_tag .woocommerce-ordering select {
        width: 100%;
        min-width: 0;
    }

    body.woocommerce-shop ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        margin-top: 22px !important;
    }
}


/* ==========================================================
   TWD PREMIUM SHOP DISCOVERY
   Main Shop page only
   ========================================================== */

body.woocommerce-shop .twd-shop-discovery {
    width: 100%;
    margin: 0 0 38px;
}

body.woocommerce-shop .twd-shop-discovery__intro {
    max-width: 720px;
    margin-bottom: 38px;
}

body.woocommerce-shop .twd-shop-discovery__eyebrow,
body.woocommerce-shop .twd-shop-discovery__heading span {
    color: #a87512;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

body.woocommerce-shop .twd-shop-discovery__intro h1 {
    margin: 8px 0 10px;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.025em;
}

body.woocommerce-shop .twd-shop-discovery__intro p {
    max-width: 650px;
    margin: 0;
    color: #6e6961;
    font-size: 16px;
    line-height: 1.7;
}

body.woocommerce-shop .twd-shop-discovery__section {
    margin-top: 28px;
}

body.woocommerce-shop .twd-shop-discovery__heading {
    margin-bottom: 13px;
}

body.woocommerce-shop .twd-shop-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
}

body.woocommerce-shop .twd-shop-category-card {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 0 20px;

    border: 1px solid #ded6c9;
    border-radius: 10px;

    background: #fff;

    color: #171717;
    text-decoration: none;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

body.woocommerce-shop .twd-shop-category-card:hover {
    transform: translateY(-2px);
    border-color: #c99a37;
    box-shadow: 0 9px 25px rgba(0,0,0,.055);
}

body.woocommerce-shop .twd-shop-category-card__name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 600;
}

body.woocommerce-shop .twd-shop-category-card__arrow {
    color: #b98520;
    font-size: 21px;
}

body.woocommerce-shop .twd-shop-brands {
    padding-bottom: 28px;
    border-bottom: 1px solid #ddd5c8;
}

body.woocommerce-shop .twd-shop-brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

body.woocommerce-shop .twd-shop-brand-list a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;

    padding: 0 16px;

    border: 1px solid #dcd4c7;
    border-radius: 999px;

    background: #fff;

    color: #171717;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;

    transition:
        background .18s ease,
        border-color .18s ease;
}

body.woocommerce-shop .twd-shop-brand-list a:hover {
    border-color: #c99a37;
    background: #fbf7ee;
}

body.woocommerce-shop .twd-shop-brand-list a span {
    color: #a87512;
}

/* Keep native WooCommerce toolbar below discovery section. */

body.woocommerce-shop .woocommerce-result-count {
    margin-top: 4px !important;
}

body.woocommerce-shop .woocommerce-ordering {
    margin-top: 4px !important;
}

/* Responsive */

@media (max-width: 900px) {

    body.woocommerce-shop .twd-shop-category-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 560px) {

    body.woocommerce-shop .twd-shop-discovery {
        margin-bottom: 28px;
    }

    body.woocommerce-shop .twd-shop-discovery__intro {
        margin-bottom: 28px;
    }

    body.woocommerce-shop .twd-shop-discovery__intro h1 {
        font-size: 38px;
    }

    body.woocommerce-shop .twd-shop-category-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    body.woocommerce-shop .twd-shop-category-card {
        min-height: 62px;
    }
}


/* TWD SHOP HEADER — FINAL POLISH */

body.woocommerce-shop .twd-woocommerce-main {
    padding-top: 34px;
}

body.woocommerce-shop .twd-shop-discovery {
    margin-top: 0;
}

body.woocommerce-shop .twd-shop-discovery__intro {
    margin-top: 0;
}

@media (max-width: 560px) {
    body.woocommerce-shop .twd-woocommerce-main {
        padding-top: 24px;
    }
}


/* ==========================================================
   TWD SHOP CATALOGUE — FINAL
   Main shop only
   ========================================================== */

/* Result count */

body.woocommerce-shop .woocommerce-result-count {
    float: left !important;
    margin: 13px 0 28px !important;

    color: #706a61;
    font-size: 14px;
    font-weight: 650;
    line-height: 46px;
}


/* Sorting */

body.woocommerce-shop .woocommerce-ordering {
    float: right !important;
    width: auto !important;
    margin: 13px 0 28px !important;
}

body.woocommerce-shop .woocommerce-ordering select {
    width: 230px !important;
    height: 46px !important;

    padding: 0 42px 0 15px;

    border: 1px solid #d9d1c4;
    border-radius: 8px;

    background-color: #fff;

    color: #252525;
    font-size: 14px;
    font-weight: 650;

    cursor: pointer;
}


/* Clear toolbar before catalogue */

body.woocommerce-shop ul.products {
    clear: both !important;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

    gap: 22px !important;

    width: 100% !important;
    margin: 0 !important;
}


/* Product cards */

body.woocommerce-shop ul.products li.product {
    float: none !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 14px 14px 18px !important;

    box-sizing: border-box;

    border: 1px solid #e3dccf;
    border-radius: 12px;

    background: #fff;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

body.woocommerce-shop ul.products li.product:hover {
    transform: translateY(-3px);
    border-color: #d2b06b;
    box-shadow: 0 14px 34px rgba(0,0,0,.07);
}


/* Product image */

body.woocommerce-shop ul.products li.product a img {
    display: block;

    width: 100% !important;
    aspect-ratio: 1 / 1;

    margin: 0 0 17px !important;

    object-fit: contain;

    border-radius: 8px;

    background: #fff;
}


/* Product title */

body.woocommerce-shop ul.products li.product
.woocommerce-loop-product__title {

    min-height: 48px;

    margin: 0 5px 8px !important;
    padding: 0 !important;

    color: #171717;

    font-family: inherit;
    font-size: 16px !important;
    font-weight: 750;
    line-height: 1.42;
}


/* Price */

body.woocommerce-shop ul.products li.product .price {
    display: block;

    margin: 0 5px 17px !important;

    color: #a87512 !important;

    font-size: 17px !important;
    font-weight: 800 !important;
}


/* Product CTA */

body.woocommerce-shop ul.products li.product .button {
    display: inline-flex;

    min-height: 43px;

    align-items: center;
    justify-content: center;

    margin: 0 5px !important;
    padding: 0 18px !important;

    border: 1px solid #d6a23a;
    border-radius: 7px;

    background: linear-gradient(
        135deg,
        #e7b953,
        #ca9229
    );

    color: #111 !important;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease;
}

body.woocommerce-shop ul.products li.product .button:hover {
    border-color: #111;
    background: #111;

    color: #fff !important;
}


/* Sale badge */

body.woocommerce-shop ul.products li.product .onsale {
    top: 12px !important;
    right: 12px !important;
    left: auto !important;

    min-width: auto !important;
    min-height: auto !important;

    margin: 0 !important;
    padding: 7px 11px !important;

    border-radius: 999px;

    background: #c99a37;

    color: #111;

    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: .05em;

    text-transform: uppercase;
}


/* Tablet */

@media (max-width: 1000px) {

    body.woocommerce-shop ul.products {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}


/* Small tablet */

@media (max-width: 760px) {

    body.woocommerce-shop ul.products {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    body.woocommerce-shop .woocommerce-result-count,
    body.woocommerce-shop .woocommerce-ordering {
        float: none !important;
        width: 100% !important;
    }

    body.woocommerce-shop .woocommerce-result-count {
        margin: 5px 0 10px !important;
        line-height: 1.5;
    }

    body.woocommerce-shop .woocommerce-ordering {
        margin: 0 0 24px !important;
    }

    body.woocommerce-shop .woocommerce-ordering select {
        width: 100% !important;
    }
}


/* Mobile */

@media (max-width: 480px) {

    body.woocommerce-shop ul.products {
        grid-template-columns: 1fr !important;
    }
}



/* ==========================================================
   TWD CUSTOMER AREA — CART / CHECKOUT / MY ACCOUNT
   Scoped only to customer-commerce pages.
   ========================================================== */

/* ----------------------------------------------------------
   SHARED
   ---------------------------------------------------------- */

body.woocommerce-cart .twd-shop-container,
body.woocommerce-checkout .twd-shop-container,
body.woocommerce-account .twd-shop-container {
    padding-top: 42px;
    padding-bottom: 72px;
}

body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce,
body.woocommerce-account .woocommerce {
    color: #171717;
}

body.woocommerce-cart h1,
body.woocommerce-cart h2,
body.woocommerce-cart h3,
body.woocommerce-checkout h1,
body.woocommerce-checkout h2,
body.woocommerce-checkout h3,
body.woocommerce-account h1,
body.woocommerce-account h2,
body.woocommerce-account h3 {
    color: #111;
}

body.woocommerce-cart button,
body.woocommerce-cart .button,
body.woocommerce-checkout button,
body.woocommerce-checkout .button,
body.woocommerce-account button,
body.woocommerce-account .button {
    border-radius: 8px !important;
}


/* ----------------------------------------------------------
   CART — WOOCOMMERCE BLOCKS
   ---------------------------------------------------------- */

body.woocommerce-cart .wp-block-woocommerce-cart {
    margin: 0;
}

body.woocommerce-cart .wc-block-cart {
    gap: 48px;
}

body.woocommerce-cart .wc-block-cart-items {
    border-collapse: separate;
}

body.woocommerce-cart .wc-block-cart-items__row {
    background: #fff;
}

body.woocommerce-cart .wc-block-cart-item__image img {
    border-radius: 8px;
}

body.woocommerce-cart .wc-block-cart-item__product {
    padding-left: 18px !important;
}

body.woocommerce-cart .wc-block-components-product-name {
    color: #111 !important;
    font-weight: 750;
    text-decoration: none !important;
}

body.woocommerce-cart .wc-block-components-product-price {
    color: #a87512;
    font-weight: 750;
}

body.woocommerce-cart .wc-block-components-quantity-selector {
    border-color: #d9d1c5 !important;
    border-radius: 8px !important;
}

body.woocommerce-cart .wc-block-cart__sidebar {
    padding-left: 0 !important;
}

body.woocommerce-cart .wc-block-cart__totals-title {
    font-weight: 800 !important;
    letter-spacing: .02em;
}

body.woocommerce-cart .wc-block-components-totals-wrapper {
    border-color: #ded7cb !important;
}

body.woocommerce-cart .wc-block-components-totals-footer-item {
    font-weight: 800;
}

body.woocommerce-cart
.wc-block-cart__submit-container
.wc-block-components-button {
    min-height: 58px;
    border: 1px solid #c79531 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg,#e8bb58,#c9932c) !important;
    color: #111 !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

body.woocommerce-cart
.wc-block-cart__submit-container
.wc-block-components-button:hover {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}


/* ----------------------------------------------------------
   CHECKOUT — WOOCOMMERCE BLOCKS
   ---------------------------------------------------------- */

body.woocommerce-checkout .wp-block-woocommerce-checkout {
    margin: 0;
}


body.woocommerce-checkout
.wc-block-components-checkout-step__heading {
    margin-bottom: 18px;
}

body.woocommerce-checkout
.wc-block-components-checkout-step__title {
    color: #111;
    font-weight: 750;
}

body.woocommerce-checkout
.wc-block-components-text-input input,
body.woocommerce-checkout
.wc-block-components-combobox-control input,
body.woocommerce-checkout
.wc-block-components-address-form input,
body.woocommerce-checkout
.wc-block-components-address-form select {
    border-color: #d5cec2 !important;
    border-radius: 8px !important;
    background: #fff !important;
}

body.woocommerce-checkout
.wc-block-components-text-input input:focus,
body.woocommerce-checkout
.wc-block-components-combobox-control input:focus {
    border-color: #c9932c !important;
    box-shadow: 0 0 0 1px #c9932c !important;
}

body.woocommerce-checkout
.wc-block-checkout__sidebar {
    background: #fff;
    border: 1px solid #e1d9cd;
    border-radius: 12px;
    overflow: hidden;
}

body.woocommerce-checkout
.wc-block-components-order-summary {
    margin: 0;
}

body.woocommerce-checkout
.wc-block-components-order-summary-item__image img {
    border-radius: 6px;
}

body.woocommerce-checkout
.wc-block-components-product-name {
    color: #111 !important;
    font-weight: 700;
}

body.woocommerce-checkout
.wc-block-components-totals-wrapper {
    border-color: #e0d9ce !important;
}

body.woocommerce-checkout
.wc-block-components-totals-footer-item {
    font-weight: 800;
}

body.woocommerce-checkout
.wc-block-components-checkout-place-order-button {
    min-height: 58px;
    border: 1px solid #c79531 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg,#e8bb58,#c9932c) !important;
    color: #111 !important;
    font-weight: 800 !important;
}

body.woocommerce-checkout
.wc-block-components-checkout-place-order-button:hover {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}


/* ----------------------------------------------------------
   MY ACCOUNT
   ---------------------------------------------------------- */

body.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 260px minmax(0,1fr);
    gap: 38px;
    align-items: start;
}

body.woocommerce-account
.woocommerce-MyAccount-navigation {
    float: none;
    width: 100%;
    margin: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #e3dbcf;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.035);
}

body.woocommerce-account
.woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-account
.woocommerce-MyAccount-navigation li {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-account
.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 13px 15px;
    border-radius: 7px;
    color: #333;
    font-weight: 700;
    text-decoration: none;
    transition:
        background .18s ease,
        color .18s ease;
}

body.woocommerce-account
.woocommerce-MyAccount-navigation li.is-active a {
    background: #111;
    color: #fff;
}

body.woocommerce-account
.woocommerce-MyAccount-navigation a:hover {
    background: #f3ede2;
    color: #8e6517;
}

body.woocommerce-account
.woocommerce-MyAccount-navigation li.is-active a:hover {
    background: #111;
    color: #fff;
}

body.woocommerce-account
.woocommerce-MyAccount-content {
    float: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 30px 32px;
    background: #fff;
    border: 1px solid #e3dbcf;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.035);
    font-size: 16px;
    line-height: 1.7;
}

body.woocommerce-account
.woocommerce-MyAccount-content > *:first-child {
    margin-top: 0;
}

body.woocommerce-account
.woocommerce-MyAccount-content a {
    color: #8f6719;
    font-weight: 650;
}

body.woocommerce-account
.woocommerce-MyAccount-content table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

body.woocommerce-account
.woocommerce-MyAccount-content table th,
body.woocommerce-account
.woocommerce-MyAccount-content table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e5ded3;
    text-align: left;
}

body.woocommerce-account
.woocommerce-MyAccount-content input[type="text"],
body.woocommerce-account
.woocommerce-MyAccount-content input[type="email"],
body.woocommerce-account
.woocommerce-MyAccount-content input[type="password"],
body.woocommerce-account
.woocommerce-MyAccount-content input[type="tel"],
body.woocommerce-account
.woocommerce-MyAccount-content select,
body.woocommerce-account
.woocommerce-MyAccount-content textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #d5cec2;
    border-radius: 8px;
    background: #fff;
}

body.woocommerce-account
.woocommerce-MyAccount-content .button {
    min-height: 46px;
    padding: 0 22px !important;
    border: 1px solid #c79531 !important;
    background: linear-gradient(135deg,#e8bb58,#c9932c) !important;
    color: #111 !important;
    font-weight: 800 !important;
}


/* ----------------------------------------------------------
   LOGIN / REGISTER
   ---------------------------------------------------------- */

body.woocommerce-account:not(.logged-in)
.woocommerce {
    display: block;
    max-width: 1100px;
    margin-inline: auto;
}

body.woocommerce-account
.woocommerce-form-login,
body.woocommerce-account
.woocommerce-form-register {
    padding: 28px !important;
    background: #fff;
    border: 1px solid #e3dbcf !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.035);
}


/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 900px) {

    body.woocommerce-cart .twd-shop-container,
    body.woocommerce-checkout .twd-shop-container,
    body.woocommerce-account .twd-shop-container {
        padding-top: 28px;
        padding-bottom: 52px;
    }

    body.woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    body.woocommerce-account
    .woocommerce-MyAccount-navigation {
        padding: 8px;
    }

    body.woocommerce-account
    .woocommerce-MyAccount-navigation ul {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    body.woocommerce-account
    .woocommerce-MyAccount-navigation li {
        flex: 0 0 auto;
    }

    body.woocommerce-account
    .woocommerce-MyAccount-navigation a {
        white-space: nowrap;
    }

    body.woocommerce-account
    .woocommerce-MyAccount-content {
        padding: 24px;
    }
}

@media (max-width: 560px) {

    body.woocommerce-account
    .woocommerce-MyAccount-content {
        padding: 20px 17px;
    }

    body.woocommerce-account
    .woocommerce-MyAccount-content table {
        font-size: 14px;
    }

    body.woocommerce-account
    .woocommerce-MyAccount-content table th,
    body.woocommerce-account
    .woocommerce-MyAccount-content table td {
        padding: 10px 8px;
    }

    body.woocommerce-cart
    .wc-block-cart__submit-container
    .wc-block-components-button,
    body.woocommerce-checkout
    .wc-block-components-checkout-place-order-button {
        min-height: 54px;
    }
}



/* ==========================================================
   TWD CUSTOMER DESKTOP COLUMNS — FINAL
   Positioning only. Mobile remains stacked.
   ========================================================== */

@media (min-width: 901px) {

    /* CART */
    body.woocommerce-cart
    .wc-block-cart {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1.65fr)
            minmax(360px, .85fr) !important;
        column-gap: 56px !important;
        align-items: start !important;
    }

    body.woocommerce-cart
    .wc-block-cart__main {
        grid-column: 1 !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
    }

    body.woocommerce-cart
    .wc-block-cart__sidebar {
        grid-column: 2 !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
    }


    /* MY ACCOUNT */
    body.woocommerce-account
    .woocommerce {
        display: grid !important;
        grid-template-columns:
            280px
            minmax(0, 1fr) !important;
        column-gap: 38px !important;
        align-items: start !important;
    }

    body.woocommerce-account
    .woocommerce-MyAccount-navigation {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: auto !important;
        float: none !important;
        margin: 0 !important;
    }

    body.woocommerce-account
    .woocommerce-MyAccount-content {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        float: none !important;
        margin: 0 !important;
    }
}



/* ==========================================================
   TWD — CHECKOUT + ACCOUNT FINAL POLISH
   ========================================================== */

/* Give account pages breathing room below site header */
body.woocommerce-account .twd-shop-container {
    padding-top: 46px !important;
    padding-bottom: 60px !important;
}


/* Account action buttons */
body.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-button,
body.woocommerce-account
.woocommerce-MyAccount-content
.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 190px !important;
    min-height: 52px !important;

    padding: 12px 24px !important;
    margin: 0 !important;

    line-height: 1.2 !important;
    text-align: center !important;
    vertical-align: middle !important;

    border-radius: 10px !important;
}


@media (max-width: 900px) {

    body.woocommerce-checkout .twd-shop-container,
    body.woocommerce-account .twd-shop-container {
        width: auto !important;
        padding-top: 28px !important;
    }

    body.woocommerce-account
    .woocommerce-MyAccount-content
    .woocommerce-button,
    body.woocommerce-account
    .woocommerce-MyAccount-content
    .button {
        min-width: 0 !important;
    }
}



/* ==========================================================
   TWD — FINAL CART + CHECKOUT LAYOUT
   ========================================================== */

body.woocommerce-cart .twd-shop-container,
body.woocommerce-checkout .twd-shop-container {
    width: min(calc(100% - 108px), 1780px) !important;
    max-width: 1780px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 52px !important;
    padding-bottom: 70px !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

@media (min-width: 901px) {

    /* CART */
    body.woocommerce-cart .wc-block-cart {
        width: 100% !important;
        max-width: none !important;
        display: grid !important;
        grid-template-columns:
            minmax(0, 1.75fr)
            minmax(400px, .95fr) !important;
        column-gap: 72px !important;
        align-items: start !important;
        margin: 0 !important;
    }

    body.woocommerce-cart .wc-block-cart__main {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.woocommerce-cart .wc-block-cart__sidebar {
        grid-column: 2 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
    }


/* ==========================================================
   TWD CHECKOUT — REMOVE DUPLICATE OUTER SUMMARY CARD
   Cosmetic only. Layout untouched.
   ========================================================== */

body.woocommerce-checkout .wc-block-checkout__sidebar {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}


/* ==========================================================
   TWD — CART + MY ACCOUNT HEADER BREATHING ROOM
   Spacing only. Checkout untouched.
   ========================================================== */

body.woocommerce-cart .twd-shop-container,
body.woocommerce-account .twd-shop-container {
    padding-top: 52px !important;
}

@media (max-width: 900px) {
    body.woocommerce-cart .twd-shop-container,
    body.woocommerce-account .twd-shop-container {
        padding-top: 30px !important;
    }
}


/* ==========================================================
   TWD — CART + MY ACCOUNT REAL HEADER SPACING
   Targets actual page wrapper.
   Checkout intentionally untouched.
   ========================================================== */

@media (min-width: 901px) {

    body.woocommerce-cart #primary.site-main,
    body.woocommerce-account #primary.site-main {
        padding-top: 48px !important;
    }

}

@media (max-width: 900px) {

    body.woocommerce-cart #primary.site-main,
    body.woocommerce-account #primary.site-main {
        padding-top: 28px !important;
    }

}



/* ==========================================================
   TWD — ACCOUNT AUTH PAGE POLISH
   Login heading alignment + Lost Password card only.
   ========================================================== */

/* Logged-out account page heading aligns with auth card */
body.woocommerce-account:not(.logged-in) .woocommerce > h2 {
    width: min(100%, 1130px);
    margin: 0 auto 22px;
}

/* Lost password form gets same premium card treatment */
body.woocommerce-account
form.woocommerce-ResetPassword.lost_reset_password {
    width: min(100%, 1130px);
    margin: 0 auto;
    padding: 54px 46px;
    background: #fff;
    border: 1px solid #e1d9cd;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05);
}

/* Keep reset explanation readable */
body.woocommerce-account
form.woocommerce-ResetPassword.lost_reset_password > p:first-child {
    max-width: 720px;
    margin: 0 0 32px;
    line-height: 1.5;
}

/* Reset field uses available card width */
body.woocommerce-account
form.woocommerce-ResetPassword.lost_reset_password
.form-row-first {
    float: none;
    width: 100%;
    max-width: 620px;
    margin: 0 0 24px;
}

body.woocommerce-account
form.woocommerce-ResetPassword.lost_reset_password
input.input-text {
    width: 100%;
    min-height: 48px;
}

/* TWD gold reset button */
body.woocommerce-account
form.woocommerce-ResetPassword.lost_reset_password
button.woocommerce-Button {
    min-height: 52px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #efbd54, #d39a28);
    border: 1px solid #c9932c;
    border-radius: 10px;
    color: #111;
    font-weight: 750;
    line-height: 1.2;
}

/* Mobile */
@media (max-width: 900px) {
    body.woocommerce-account:not(.logged-in) .woocommerce > h2 {
        width: auto;
        margin-left: 0;
        margin-right: 0;
    }

    body.woocommerce-account
    form.woocommerce-ResetPassword.lost_reset_password {
        width: auto;
        margin: 0;
        padding: 30px 24px;
    }
}


/* ==========================================================
   TWD — LOGGED-OUT ACCOUNT LAYOUT FIX
   Prevent dashboard navigation grid affecting auth pages.
   Logged-in My Account untouched.
   ========================================================== */

@media (min-width: 901px) {

    body.woocommerce-account:not(.logged-in) .woocommerce {
        display: block !important;
    }

    body.woocommerce-account:not(.logged-in)
    .woocommerce > h2 {
        width: min(100%, 1130px) !important;
        margin: 0 auto 22px !important;
    }

    body.woocommerce-account:not(.logged-in)
    form.woocommerce-form-login.login,
    body.woocommerce-account:not(.logged-in)
    form.woocommerce-ResetPassword.lost_reset_password {
        width: min(100%, 1130px) !important;
        max-width: 1130px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
}



/* ==========================================================
   TWD — FINAL MOBILE PRODUCT TABS + CART
   Mobile presentation only.
   Checkout intentionally untouched.
   ========================================================== */

@media (max-width: 560px) {

    /* PRODUCT TABS — clean separated controls */
    body.single-product .woocommerce div.product
    .woocommerce-tabs ul.tabs {
        display: flex !important;
        width: 100% !important;
        gap: 8px !important;
        padding: 0 0 14px !important;
        overflow-x: auto;
        scrollbar-width: none;
        border-bottom: 1px solid #e2dbcf;
    }

    body.single-product .woocommerce div.product
    .woocommerce-tabs ul.tabs::-webkit-scrollbar {
        display: none;
    }

    body.single-product .woocommerce div.product
    .woocommerce-tabs ul.tabs li {
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.single-product .woocommerce div.product
    .woocommerce-tabs ul.tabs li a {
        display: block !important;
        padding: 10px 13px !important;
        border: 1px solid #e2dbcf !important;
        border-radius: 7px !important;
        background: #fff !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    body.single-product .woocommerce div.product
    .woocommerce-tabs ul.tabs li.active a {
        color: #111 !important;
        border-color: #c9952e !important;
        background: #fbf8f2 !important;
    }


    /* CART — use proper mobile container width */
    body.woocommerce-cart .twd-shop-container {
        width: calc(100% - 28px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart,
    body.woocommerce-cart .wc-block-cart,
    body.woocommerce-cart .wc-block-cart__main,
    body.woocommerce-cart .wc-block-cart__sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Let product information shrink/wrap instead of pushing price out */
    body.woocommerce-cart .wc-block-cart-item__product {
        min-width: 0 !important;
        padding-left: 10px !important;
    }

    body.woocommerce-cart .wc-block-components-product-name {
        display: block !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.35;
    }

    /* Keep images sensible on narrow phones */
    body.woocommerce-cart .wc-block-cart-item__image {
        min-width: 0 !important;
    }

    body.woocommerce-cart .wc-block-cart-item__image img {
        max-width: 72px !important;
        height: auto !important;
    }

    /* Prevent price/discount text creating artificial width */
    body.woocommerce-cart .wc-block-components-product-price,
    body.woocommerce-cart .wc-block-components-sale-badge {
        max-width: 100% !important;
    }
}
