/* ===== Cart page heading ===== */
.pw-cart-page-heading {
    padding-top: 36px;
    padding-bottom: 10px;
    text-align: center;
}

.pw-cart-page-heading h1 {
    margin: 0;
    color: var(--color-dark-ink);
    font-size: 24px !important;
    line-height: 1.2;
}

/* ===== Checkout / Billing (theme overrides) ===== */
.woocommerce-billing-fields {
    background: #fff;
    border: 1px solid var(--color-gray-250);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}
.woocommerce-billing-fields h3 {
    margin: 0 0 .75rem;
    font-size: 16px !important;
    color: var(--color-dark-ink);
    font-weight: 700;
}
.woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-billing-fields__field-wrapper .form-row-wide {
    display: block;
    margin-bottom: .75rem;
}
.woocommerce-billing-fields__field-wrapper label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 700;
    color: var(--color-gray-700);
}
.woocommerce-billing-fields__field-wrapper input[type="text"],
.woocommerce-billing-fields__field-wrapper input[type="tel"],
.woocommerce-billing-fields__field-wrapper input[type="email"],
.woocommerce-billing-fields__field-wrapper textarea,
.woocommerce-billing-fields__field-wrapper select {
    width: 100%;
    padding: .6rem .75rem;
    border-radius: 8px;
    border: 1px solid var(--color-gray-300);
    background: #fff;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-text-main);
    box-shadow: none;
}
.woocommerce-billing-fields__field-wrapper textarea {
    min-height: 100px;
    resize: vertical;
}
/* Specific IDs from our theme override */
#billing_full_name,
#billing_phone,
#billing_address_1,
#order_comments {
    box-sizing: border-box;
}
.woocommerce-checkout .form-row .required {
    color: var(--color-red);
}

/* Payment area (compact, aligned) */
.woocommerce-checkout .woocommerce-checkout-payment {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--color-gray-250);
    background: #fff;
}
.woocommerce-checkout .payment_methods {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

@media (min-width: 900px) {
    .woocommerce-billing-fields { padding: 1.25rem; }
    .woocommerce-checkout .woocommerce-checkout-payment { padding: 1.25rem; }
}

@media (max-width: 600px) {
    .woocommerce-billing-fields { padding: .75rem; }
    .woocommerce-billing-fields__field-wrapper .form-row-half { width: 100%; }
}
.wpcf7-form .cf7-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.wpcf7-form .upload-text {
    flex: 1 1 auto;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}


/* ===== WooCommerce blocks ===== */

/* Product archives */
.pw-product-archive {
    padding: 0;
    background: #fff;
}

.pw-product-archive-head {
    padding: 0;
    border-top: 1px solid var(--header-gold);
    border-bottom: 1px solid var(--header-gold);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .22) 0%, rgba(255, 255, 255, .96) 17%, #fff 50%, rgba(255, 255, 255, .96) 83%, rgba(0, 0, 0, .22) 100%),
        #f4f4f4;
}

.pw-product-archive-head__inner {
    width: min(1440px, calc(100% - 64px));
    min-height: clamp(230px, 18vw, 300px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 50%) minmax(420px, 50%);
    align-items: center;
    background-position: 23% center;
    background-size: auto 86%;
    background-repeat: no-repeat;
}

.pw-product-archive-head__content {
    grid-column: 2;
    max-width: 620px;
    padding: 1.6rem 2rem 1.6rem 1.25rem;
}

.pw-product-archive-head__inner--compact {
    min-height: clamp(110px, 10vw, 150px);
    grid-template-columns: 1fr;
}

.pw-product-archive-head__inner--compact .pw-product-archive-head__content {
    grid-column: 1;
    max-width: none;
    padding: 1.5rem 2rem;
    text-align: center;
}

.pw-product-archive-head__inner--compact .pw-product-archive-head__title {
    margin: 0;
    font-size: 24px;
}

.pw-product-archive-head__title {
    margin: 0 0 .55rem;
    color: var(--color-dark-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.05;
}

.pw-product-archive-head__sapo h1,
.pw-product-archive-head__sapo h2,
.pw-product-archive-head__sapo h3 {
    margin: 0 0 .55rem;
    color: var(--color-dark-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.05;
}

.pw-product-archive-head__sapo {
    color: var(--color-gray-700);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}

.pw-product-archive-head__sapo p {
    margin: 0 0 .65rem;
}

.pw-product-archive-head__sapo p:last-child {
    margin-bottom: 0;
}

.pw-product-archive-head__sapo a,
.pw-product-archive-head__sapo .panda-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(34px, 2.8vw, 44px);
    margin-top: .25rem;
    padding: .35rem clamp(1rem, 1.7vw, 1.45rem);
    border-radius: 999px;
    background: var(--header-gold);
    color: #111;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.pw-product-archive__body {
    padding-top: 1.6rem;
}

.pw-product-archive-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.pw-product-cat-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 0 18px 2rem 0;
    border-right: 2px solid #dedede;
    color: #111;
}

.pw-product-cat-sidebar__group {
    margin: 0 0 1.05rem;
}

.pw-product-cat-sidebar__group summary {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .45rem;
    color: #111;
    cursor: pointer;
    list-style: none;
}

.pw-product-cat-sidebar__group summary::-webkit-details-marker {
    display: none;
}

.pw-product-cat-sidebar__group h2 {
    margin: 0 0 .45rem;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.08;
}

.pw-product-cat-sidebar__group summary a,
.pw-product-cat-sidebar__group h2 a {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.08;
    text-decoration: none;
}

.pw-product-cat-sidebar__toggle {
    width: .65rem;
    height: .65rem;
    order: 2;
    margin-left: auto;
    flex: 0 0 .65rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .18s ease;
}

.pw-product-cat-sidebar__group.has-no-children > summary .pw-product-cat-sidebar__toggle {
    visibility: hidden;
}

.pw-product-cat-sidebar__group[open] > summary .pw-product-cat-sidebar__toggle {
    transform: rotate(45deg);
}

.pw-product-cat-sidebar__group ul {
    display: grid;
    gap: .08rem;
    margin: 0;
    padding: 0 0 0 1.1rem;
    list-style: none;
}

.pw-product-cat-sidebar__group li a {
    display: block;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.14;
    text-decoration: none;
}

.pw-product-cat-sidebar__group li a::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin: 0 .45rem .06em 0;
    border-top: .28em solid transparent;
    border-bottom: .28em solid transparent;
    border-left: .42em solid currentColor;
}

.pw-product-cat-sidebar__group li.is-current a {
    color: #ef3340;
    font-weight: 700;
}

.pw-product-archive-listing {
    min-width: 0;
}

.pw-product-empty {
    display: flex;
    min-height: 320px;
    padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #fffaf0 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pw-product-empty__icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--header-gold);
    color: var(--color-dark-ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    place-items: center;
}

.pw-product-empty__title {
    margin: 0 0 .65rem;
    color: var(--color-dark-ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.pw-product-empty__message {
    max-width: 620px;
    margin: 0 0 1.35rem;
    color: var(--color-gray-700);
    font-size: 16px;
    line-height: 1.65;
}

.pw-product-empty__button {
    display: inline-flex;
    min-height: 44px;
    padding: .7rem 1.35rem;
    border-radius: 999px;
    background: var(--color-primary, #ef0016);
    color: #fff;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pw-product-empty__button:hover {
    color: #fff;
    filter: brightness(.92);
}

.pw-product-archive .woocommerce-products-header {
    margin-bottom: 1.25rem;
    text-align: center;
}

.pw-product-archive .woocommerce-products-header__title {
    margin: 0;
    color: var(--color-dark-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.pw-product-archive .term-description {
    max-width: 860px;
    margin: .75rem auto 0;
    color: var(--color-gray-700);
    line-height: 1.65;
}

.pw-product-archive .woocommerce-result-count {
    margin: 0 0 1rem;
    color: var(--color-gray-700);
}

.pw-product-archive .woocommerce-ordering {
    margin: 0 0 1rem;
    text-align: right;
}

.pw-product-archive .woocommerce-ordering select {
    min-width: 220px;
    padding: .55rem .75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text-main);
}

.pw-product-archive .block--list_posts > .foot {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 0;
}

.pw-product-archive .block--list_posts > .foot .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: .55rem 1.35rem;
    border-radius: 999px;
    background: var(--header-gold);
    color: #111;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.pw-product-archive .block--list_posts > .foot .btn:hover,
.pw-product-archive .block--list_posts > .foot .btn:focus {
    background: var(--header-navy);
    color: var(--header-gold);
}

.pw-product-archive .block--list_posts > .foot .btn.is-loading {
    pointer-events: none;
    opacity: .72;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products.pw-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(1rem, 1.8vw, 1.8rem) clamp(1rem, 1.6vw, 1.5rem);
}

.woocommerce ul.products li.product.pw-product-card {
    display: block;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    clear: none !important;
    min-width: 0;
}

.pw-product-card__image {
    display: block;
}

.woocommerce ul.products li.product.pw-product-card .pw-product-card__image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
    background: #fff;
}

.pw-product-card__title {
    min-width: 0;
    min-height: 2.25em;
    margin: .45rem 0 .35rem;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.12;
}

.pw-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.pw-product-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .55rem;
    color: #111;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.2;
    min-width: 0;
}

.pw-product-card__chip::before {
    flex: 0 0 18px;
    width: 18px;
    font-size: 18px !important;
    text-align: center;
}

.pw-product-card__chip,
.pw-product-card__quantity {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pw-product-card__quote {
    flex: 0 0 auto;
}

.pw-product-card__chip,
.pw-product-card__quantity {
    display: inline-flex;
    align-items: center;
    gap: .18rem;
    white-space: nowrap;
}

.pw-product-card__chip {
    font-size: 16px !important;
}

.pw-product-card__chip::before,
.pw-product-card__quantity::before,
.pw-product-card__quote::before {
    display: inline-block;
    color: #111;
    font-size: 16px;
    line-height: 1;
}

.pw-product-card__chip--size::before { content: "↔"; }
.pw-product-card__chip--material::before { content: "▰"; }
.pw-product-card__chip--speed::before { content: "▣"; }
.pw-product-card__quantity::before { content: "▥"; }
.pw-product-card__quote::before {
    content: "▧";
    color: #ef3340;
}

.pw-product-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .42rem;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    min-width: 0;
}

.pw-product-card__quote {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    min-height: 26px;
    padding: .15rem .55rem;
    border: 1.5px solid #ef3340;
    border-radius: 8px;
    color: #ef3340;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.woocommerce nav.woocommerce-pagination {
    margin-top: 4rem;
}

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: .6rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid #ef3340;
    border-radius: 50%;
    color: #ef3340;
    background: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #ef3340;
    color: #fff;
}

.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products li.product a {
    color: inherit;
    text-decoration: none;
}

.woocommerce ul.products li.product img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    background: var(--color-gray-225);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: .65rem 0 .35rem;
    color: var(--color-dark-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.woocommerce ul.products li.product .price {
    display: block;
    color: var(--color-red);
    font-weight: 700;
}

.woocommerce ul.products li.product .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: .65rem;
    padding: .55rem .85rem;
    border-radius: 8px;
    background: var(--color-red);
    color: #fff;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .pw-product-archive-layout {
        grid-template-columns: 240px minmax(0, 1fr);
    }

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

@media (max-width: 820px) {
    .pw-product-archive-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .pw-product-cat-sidebar {
        position: static;
        border-right: 0;
        border-bottom: 2px solid #dedede;
        max-height: 18rem;
        overflow-y: auto;
        padding: 1rem;
        background: #fafafa;
        border: 1px solid #dedede;
        border-radius: .5rem;
    }

    .pw-product-cat-sidebar__group {
        margin-bottom: .9rem;
    }

    .pw-product-cat-sidebar__group h2 {
        font-size: 16px;
        line-height: 1.2;
        margin-bottom: .35rem;
    }

    .pw-product-cat-sidebar__group ul {
        gap: .15rem;
    }

    .pw-product-cat-sidebar__group li a {
        font-size: 14px;
        line-height: 1.35;
    }

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

    .woocommerce ul.products.pw-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem .85rem;
    }

    .woocommerce ul.products li.product.pw-product-card {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .pw-product-card__title {
        min-height: 2.4em;
        margin: .45rem 0 .3rem;
    }

    .pw-product-card__meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: .18rem;
        line-height: 1.25;
    }

    .pw-product-card__chip,
    .pw-product-card__quantity {
        white-space: normal;
    }

    .pw-product-card__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: .35rem;
        margin-top: .35rem;
    }

    .pw-product-card__quote {
        width: 100%;
        justify-content: center;
        min-height: 1.8rem;
        padding: .22rem .35rem;
        border-radius: .45rem;
    }

    .pw-product-archive-head__inner {
        width: min(100% - 32px, 760px);
        min-height: 260px;
        grid-template-columns: 1fr;
        background-position: center top;
        background-size: auto 56%;
    }

    .pw-product-archive-head__content {
        grid-column: 1;
        max-width: none;
        margin-left: auto;
        padding: 8.5rem 1.25rem 1.25rem;
    }
}

@media (max-width: 560px) {
    .pw-product-archive {
        padding: 0;
    }

    .pw-product-archive .woocommerce-products-header__title {
        font-size: 16px;
    }

    .pw-product-archive-head__inner {
        width: 100%;
        min-height: 360px;
        background-position: center top;
        background-size: auto 48%;
    }

    .pw-product-archive-head__inner.pw-product-archive-head__inner--compact {
        min-height: 120px;
        background: none;
    }

    .pw-product-archive-head__inner--compact .pw-product-archive-head__content {
        padding: 1.25rem 1rem;
        background: transparent;
        align-self: center;
    }

    .pw-product-archive-head__inner--compact .pw-product-archive-head__title {
        font-size: 24px;
    }

    .pw-product-archive-head__content {
        max-width: none;
        margin: 0;
        padding: 9.4rem 1rem 1.15rem;
        background: rgba(255, 255, 255, .88);
        align-self: end;
    }

    .pw-product-archive-head__title,
    .pw-product-archive-head__sapo h1,
    .pw-product-archive-head__sapo h2,
    .pw-product-archive-head__sapo h3 {
        font-size: 16px;
        line-height: 1.18;
    }

    .pw-product-archive-head__sapo {
        font-size: 14px;
        line-height: 1.42;
    }

    .pw-product-archive-head__sapo p {
        margin-bottom: .55rem;
    }

    .pw-product-archive-head__sapo a,
    .pw-product-archive-head__sapo .panda-cta-btn {
        min-height: 2.1rem;
        padding: .35rem 1rem;
        font-size: 16px;
    }
}

/* ===== WooCommerce: Cart styles ===== */
.woocommerce { color: var(--text-main); }

.cart-page-section {
    width: min(1320px, calc(100% - 2rem));
    margin: 1.5rem auto;
}

.cart-page-section .block--html > .content {
    width: 100%;
}

.cart-page-section .cart-empty,
.cart-page-section .woocommerce-info {
    margin: 0 0 .8rem;
    padding: .85rem 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: .5rem;
    background: #fff;
    color: var(--color-gray-700);
    font-size: 16px !important;
    line-height: 1.45;
}

.cart-page-section .return-to-shop {
    margin: 0;
}

.cart-page-section .return-to-shop .button {
    display: inline-flex;
    min-height: 2.3rem;
    align-items: center;
    justify-content: center;
    padding: .45rem 1rem;
    border-radius: 999px;
    background: var(--header-gold);
    color: #111;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.2;
}

.woocommerce-cart .main {
    display: block;
}

.woocommerce .woocommerce-cart-form {
    background: #fff;
    border: 1px solid var(--color-gray-300);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(10, 14, 24, 0.04);
}

.shop_table { width: 100%; border-collapse: collapse; }

.shop_table thead th {
    background: var(--color-gray-225);
    color: var(--color-gray-700);
    font-weight: 700;
    font-size: 16px;
    padding: 1rem .75rem;
    text-align: center;
    border-bottom: 1px solid var(--color-gray-275);
}

.shop_table thead th.product-remove { width: 56px; }
.shop_table thead th.product-thumbnail { width: 110px; }
.shop_table thead th.product-name { text-align: left; }
.shop_table thead th.product-price,
.shop_table thead th.product-quantity,
.shop_table thead th.product-subtotal { text-align: center; }

.shop_table tbody tr { border-bottom: 1px solid var(--color-gray-275); }
.shop_table td { padding: .85rem .75rem; vertical-align: middle; }

.product-remove { text-align: center; }
.product-remove .remove { color: var(--color-gray-600); font-size: 16px; padding: .25rem .5rem; border-radius: 8px; }

.product-thumbnail img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; display: block; }

.product-name a { color: var(--color-navy); font-weight: 700; display: inline-block; }
.product-name { text-align: left; }

.product-price, .product-subtotal { font-weight: 700; color: var(--color-navy); text-align: right; }

.product-quantity { text-align: center; min-width: 140px; }
.product-quantity .pw-qty-buttons {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 999px;
    overflow: hidden;
    box-sizing: border-box;
    border: 2px solid var(--header-gold);
    background: #fff;
}

/* Clustered single-pill appearance: left button, number, right button */
.pw-qty-btn {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}
.pw-qty-btn:first-child { border-right: 1px solid rgba(0,0,0,0.06); }
.pw-qty-btn:last-child { border-left: 1px solid rgba(0,0,0,0.06); }
.pw-qty-btn:hover, .pw-qty-btn:focus { background: var(--header-gold); color: #000; }
.pw-qty-buttons input[type="number"] {
    width: 38px;
    height: 24px;
    box-sizing: border-box;
    border: 0;
    padding: 0 .35rem;
    text-align: center;
    font-weight: 700;
    background: transparent;
    color: var(--color-navy);
}

.actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.actions .coupon { display:flex; gap:.5rem; align-items:center; }
.actions .coupon input.input-text { border-radius: 999px; padding: .5rem .75rem; border: 2px solid var(--header-gold); background: #fff; }
.actions .coupon .button { margin-left:0; }
.actions .button[name="update_cart"] { background: var(--color-gold); color:#000; border-radius: 999px; padding: .6rem 1rem; font-weight:700; }

.cart-collaterals .cart_totals { border: 1px solid var(--color-gray-300); background: #fff; padding: 1.25rem; border-radius: 18px; box-shadow: 0 10px 30px rgba(10, 14, 24, 0.03); margin-top: 1rem; }
.cart-collaterals .cart_totals h2 { margin-top: 0; font-size: 16px; }
.cart-collaterals .shop_table { margin: 0; }
.cart-collaterals .shop_table th { padding: .75rem .5rem; font-weight:700; color:var(--color-gray-600); width: 40%; text-align:left; }
.cart-collaterals .shop_table td { text-align:right; padding: .75rem .5rem; }
.cart-collaterals .shop_table tr:not(.order-total) td { color: var(--color-gray-700); }
.cart-collaterals .order-total strong { font-size: 16px; color: var(--color-navy); }

.wc-proceed-to-checkout .checkout-button { background: var(--color-gold); border-radius: 999px; padding: .9rem 1.25rem; color: #000; font-weight: 700; display: inline-block; }

@media (max-width: 768px) {
    .shop_table thead { display: none; }
    .shop_table tbody td { display: block; padding: .6rem 0; border-bottom: 1px solid var(--color-gray-275); }
    .shop_table tbody td[data-title]::before { content: attr(data-title) ": "; font-weight:700; color:var(--color-gray-700); display:inline-block; width:110px; }
    .product-thumbnail { margin-bottom: .5rem; }
    .cart-collaterals { margin-top: 1rem; }
    .cart-collaterals .shop_table th, .cart-collaterals .shop_table td { text-align: left; }
    .wc-proceed-to-checkout .checkout-button { width: 100%; text-align:center; }
}

/* End: WooCommerce: Cart styles */

/* Checkout injected on cart page: make it visually consistent with cart/collaterals */
.cart-checkout-wrapper { margin-top: 1rem; }
.cart-checkout-wrapper .woocommerce-checkout,
.cart-checkout-wrapper .woocommerce {
    background: #fff;
    border: 1px solid var(--color-gray-300);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(10, 14, 24, 0.03);
}

/* Grid layout for cart + checkout on the same page */
.pw-cart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.pw-cart-left, .pw-cart-right {
    width: 100%;
}

/* Hide checkout's internal order review when rendered in left column to avoid duplicate */
.pw-cart-left .woocommerce-checkout #order_review,
.pw-cart-left .woocommerce-checkout .woocommerce-checkout-review-order,
.pw-cart-left .woocommerce-checkout .order_review {
    display: none !important;
}

@media (min-width: 992px) {
    .pw-cart-grid { grid-template-columns: 1fr 460px; align-items:start; }
    .pw-cart-left { order: 1; }
    .pw-cart-right { order: 2; }
}

/* Form field visuals inside checkout */
.cart-checkout-wrapper .woocommerce form .input-text,
.cart-checkout-wrapper .woocommerce form input[type="text"],
.cart-checkout-wrapper .woocommerce form input[type="email"],
.cart-checkout-wrapper .woocommerce form input[type="tel"],
.cart-checkout-wrapper .woocommerce form input[type="number"],
.cart-checkout-wrapper .woocommerce form select,
.cart-checkout-wrapper .woocommerce form textarea {
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    color: var(--text-main);
    box-shadow: none;
}

.cart-checkout-wrapper .woocommerce form .form-row { margin-bottom: .75rem; }
.cart-checkout-wrapper .woocommerce .button, .cart-checkout-wrapper .woocommerce input.button {
    background: var(--color-gold);
    color: #000;
    border-radius: 999px;
    padding: .7rem 1rem;
    font-weight: 700;
}

@media (min-width: 992px) {
    /* Stack cart above checkout: cart is full width, checkout sits below and centers */
    .cart-checkout-wrapper { width: 100%; float: none; margin: 1rem 0 0 0; }
    .woocommerce .woocommerce-cart-form { margin-right: 0; }
    .cart-checkout-wrapper .woocommerce-checkout { max-width: 760px; margin: 0 auto; }
}


/* Cart item attributes styling */
.pw-cart-attributes,
.pw-cart-default-attributes {
    list-style: none;
    margin: .5rem 0 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.pw-cart-attributes li,
.pw-cart-default-attributes li {
    color: var(--color-gray-700);
    font-size: 16px;
}
.pw-cart-default-attributes li small { color: var(--color-gray-600); }

/* Custom attributes (popup) formatting */
.pw-cart-attrs-wrap { margin-top: .5rem; }
/* Hide the title for compact attributes display */
.pw-cart-attrs-title { display: none; }
.pw-cart-attributes--custom { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.pw-cart-attributes--custom li { display: inline-flex; align-items: center; gap: .35rem; background: var(--color-gray-225); padding: .25rem .5rem; border-radius: 999px; border: 1px solid var(--color-gray-275); font-size: 14px !important; color: var(--color-gray-700); }
.pw-cart-attributes--custom li > span { font-size: 14px !important; line-height: 1.4; }
.pw-attr-key { font-weight: 700; color: var(--color-navy); }
.pw-attr-sep { color: var(--color-gray-500); margin: 0 .1rem; }
.pw-attr-value { color: var(--color-gray-700); }

/* Cart totals column styling */
.cart-totals-summary { padding: 1rem; }
.cart-totals-title { margin: 0 0 .75rem; font-size: 16px; }
.cart-totals-mini { width: 100%; border-collapse: collapse; }
.cart-totals-mini th { text-align: left; font-weight: 700; padding: .25rem 0; width: 40%; color: var(--color-gray-700); }
.cart-totals-mini td { text-align: right; padding: .25rem 0; color: var(--color-gray-700); }
.cart-totals-cta { margin-top: .75rem; }
.cart-totals-cell { vertical-align: top; padding: 1rem; text-align: right; }
.cart-totals-amount { display: inline-block; font-weight: 700; font-size: 16px; color: var(--color-navy); }

@media (max-width: 768px) {
    .cart-totals-cell { text-align: left; padding-top: .75rem; }
    .cart-totals-summary { padding: .75rem 0; }
}

/* ===== WooCommerce: Product description ===== */
.block--product-details {
    background: #fff;
    border: 1px solid var(--color-gray-300);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.block--product-details .head .title {
    display: block;
    background: var(--color-gold);
    color: #111;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    line-height: 2;
    letter-spacing: 0.3px;
}

.block--product-details .content {
    --pw-description-max-height: 1990px;
    position: relative;
    padding: 1rem;
    max-height: var(--pw-description-max-height);
    overflow: hidden;
}

.block--product-details .content p {
    margin: 0 0 1rem;
}

/* Make view-more buttons consistent across templates */
.view-more {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 60%, #fff 100%);
    height: 160px;
    display: flex;
    align-items: end;
    justify-content: center;
    cursor: s-resize;
}
.view-more:hover {
    background-color: unset;
    color: var(--color-gold-deep);
}
.view-more input {
    display: none;
}
.view-more::after {
    content: 'XEM THÊM \25BC';
}
.view-more:has(input:checked) {
    position: static;
    cursor: n-resize;
    background: none;
    height: 50px;
}
.view-more:has(input:checked)::after {
    content: 'RÚT GỌN \25B2';
}
*:has(.view-more input:checked) {
    max-height: none;
}

.block--product-details.is-expanded .content {
    max-height: none;
}

.block--product-details.is-expanded .content::after {
    display: none;
}

/* ===== WooCommerce: Product specs ===== */
.block--product-specs {
    border: 2px solid #f6c33a;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
}

.block--product-specs .head .title {
    display: block;
    background: var(--color-gold);
    color: #111;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    line-height: 2;
    letter-spacing: 0.3px;
}

.block--product-specs .content {
    padding: 0;
    background: #fff;
}

#pw-product-specs {
    display: grid;
    grid-template-columns: auto 1fr;
    border-left: 1px solid var(--color-gold);
    border-right: 1px solid var(--color-gold);
    max-height: 180px;
    overflow-y: scroll;
    transition: all 0.3s ease;
    /* Track */
    &::-webkit-scrollbar {
        width: .5rem;
        box-sizing: border-box;
    }

    /* Nền phía sau */
    &::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    /* Thanh kéo */
    &::-webkit-scrollbar-thumb {
        background: var(--color-gold);
        border: 1.5px solid #f1f1f1;
    }

    /* Hover */
    &::-webkit-scrollbar-thumb:hover {
        background: var(--color-gold-deep); /* màu bạn muốn */
    }
}
#pw-product-specs.is-open {
    max-height: 100vh;
    overflow-y: auto;
    border-width: 2px;
}

#pw-product-specs div:nth-child(4n+1),
#pw-product-specs div:nth-child(4n+2) {
    background-color: #f5f5f5;
}

.pw-product-specs__label {
    padding: 0.5rem;
    font-weight: 500;
    border: 1px solid var(--color-gold);
}

.pw-product-specs__value {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid var(--color-gold);
}

.pw-product-specs__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid #111;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex: 0 0 auto;
    cursor: help;
}

.pw-product-summary .pw-product-specs__toggle {
    display: flex !important;
    width: 100%;
    height: 12px !important;
    min-height: 12px !important;
    padding: 0 !important;
    border-radius: 0 0 .5rem .5rem !important;
    cursor: pointer;
}

.pw-product-summary .pw-product-specs__toggle::before {
    content: "▼";
    font-size: 8px;
    line-height: 1;
}

.pw-product-summary .pw-product-specs__toggle[aria-expanded="true"]::before {
    content: "▲";
}

@media (max-width: 768px) {

    .pw-product-specs__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .pw-product-specs__label {
        border-right: 0;
        border-bottom: 2px solid #f6c33a;
    }

    .pw-product-specs__value {
        justify-content: flex-start;
    }

}

/* ===== WooCommerce: Product gallery (Swiper) ===== */
.pw-product-gallery {
    display: grid;
    align-self: start;
    width: 100%;
    max-width: 100%;
    gap: 12px;
}

.pw-product-gallery__main {
    border-radius: 18px;
    overflow: hidden;
    background: #f4f4f4;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 100%;
}

.pw-product-gallery__main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    width: 100% !important;
}

.pw-product-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pw-product-gallery__thumbs {
    height: 76px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.pw-product-gallery__thumbs .swiper-wrapper {
    align-items: start;
}

.pw-product-gallery__thumbs .swiper-slide {
    width: 76px !important;
    height: 76px !important;
    flex: 0 0 76px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0.7;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.pw-product-gallery__thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--color-gold);
}

.pw-product-gallery__thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 640px) {

    .pw-product-gallery__thumbs {
        height: 58px;
    }

    .pw-product-gallery__thumbs .swiper-slide {
        width: 58px !important;
        height: 58px !important;
        flex-basis: 58px;
    }

}

/* ===== WooCommerce: Product summary ===== */
.pw-product-summary {
    position: relative;
}
.pw-product-summary .content {
    display: grid;
    gap: .8rem;
    align-content: space-between;
    height: 100%;
}

.pw-product-summary .product-title {
    font-size: 18px;
    line-height: 1.15;
    margin: 0;
    font-weight: 700;
    color: #111;
}

.pw-product-summary__commerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .15rem .65rem;
}

.pw-product-summary__commerce .product-price {
    color: #e60012;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.05;
}

.pw-product-summary__commerce .product-price--contact {
    font-size: 18px;
}

.pw-product-summary__sold-badge {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    align-self: center;
    padding: .2rem .45rem;
    border-radius: 999px;
    background: #f1f1f1;
    color: #666;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.2;
}

.pw-product-summary__commerce .product-ratting {
    grid-column: 2;
    grid-row: 2;
    color: #d99c00;
    font-size: 14px;
    text-align: right;
}

.pw-product-summary__commerce .pw-rating__text {
    font-size: 14px;
}

.pw-product-summary__quick-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #222;
    font-size: 14px !important;
    line-height: 1.3;
}

.pw-product-summary__quick-meta li {
    min-width: 0;
    font-size: 14px !important;
}

.pw-product-summary__quick-meta li > * {
    font-size: 14px !important;
}

.pw-product-summary__quick-meta strong {
    font-weight: 700 !important;
}

.pw-product-summary__quick-meta li::before {
    content: "•";
    margin-right: .3rem;
    color: #111;
    font-weight: 700;
}

.pw-product-summary__order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .45rem;
    align-items: center;
}

.pw-product-summary__quantity-label {
    font-size: 14px;
    font-weight: 600;
}

.pw-product-summary__order-row .pw-cart__actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
}

.pw-product-summary__order-row > .pw-qty-buttons {
    border: 1px solid #ddd;
    border-radius: 0;
}

.pw-product-summary__order-row > .pw-qty-buttons .pw-qty-btn,
.pw-product-summary__order-row > .pw-qty-buttons input[type="number"] {
    height: 30px;
}

.pw-product-summary__order-row > .pw-qty-buttons .pw-qty-btn {
    width: 34px;
    border-radius: 0 !important;
    background: transparent !important;
}

.pw-product-summary__order-row > .pw-qty-buttons input[type="number"] {
    width: 48px;
}

.pw-product-summary__order-row .pw-buy-now,
.pw-product-summary__order-row .pw-custom-print {
    min-height: 48px !important;
    height: 48px !important;
    padding: .25rem .5rem !important;
    font-size: 16px !important;
    line-height: 1.15;
    white-space: nowrap;
    text-transform: uppercase;
}

.pw-product-summary__order-row .pw-buy-now img,
.pw-product-summary__order-row .pw-custom-print img {
    width: 22px;
    height: 22px;
}

.pw-product-summary__order-row .pw-cart__actions .pw-buy-now:not(.pw-custom-print) {
    border: 2px solid var(--header-gold) !important;
    background: var(--header-gold) !important;
    color: var(--color-dark-ink) !important;
    box-shadow: 0 4px 12px rgba(246, 195, 58, .28);
}

.pw-product-summary__order-row .pw-cart__actions .pw-buy-now:not(.pw-custom-print) img {
    filter: brightness(0) saturate(100%);
}

.pw-product-summary__order-row .pw-cart__actions .pw-custom-print {
    border: 2px solid var(--color-red) !important;
    background: var(--color-red) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(230, 0, 18, .22);
}

.pw-product-summary__order-row .pw-cart__actions .pw-custom-print .fa-print {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
}

.pw-product-summary__order-row .pw-cart__actions .pw-buy-now:not(.pw-custom-print):hover,
.pw-product-summary__order-row .pw-cart__actions .pw-buy-now:not(.pw-custom-print):focus-visible {
    border-color: var(--color-gold-deep) !important;
    background: var(--color-gold-deep) !important;
}

.pw-product-summary__order-row .pw-cart__actions .pw-custom-print:hover,
.pw-product-summary__order-row .pw-cart__actions .pw-custom-print:focus-visible {
    border-color: #b8000e !important;
    background: #b8000e !important;
}

.pw-product-summary .product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.pw-product-summary .product-price .pw-unit {
    color: #111;
    font-weight: 500;
}

.pw-product-summary .product-price del {
    color: #8c8c8c;
    font-weight: 500;
    font-size: 16px;
    order: 2;
}

.pw-product-summary .product-price ins {
    text-decoration: none;
    color: #e60012;
    font-weight: 700;
    font-size: 16px;
    order: 1;
}

.pw-product-summary .product-price ins .woocommerce-Price-currencySymbol {
    font-size: 16px;
    color: #111;
    font-weight: 500;
    margin-left: 0.1rem;
}

.pw-product-summary .product-price del .woocommerce-Price-amount {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.pw-product-summary .product-price del .woocommerce-Price-currencySymbol,
.pw-product-summary .product-price del .pw-unit {
    color: #8c8c8c;
    font-weight: 500;
}

.pw-product-summary .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.pw-product-summary .star-rating::before {
    color: #f3c623;
}

.pw-product-summary .star-rating span::before {
    color: #f3c623;
}

.pw-product-summary .woocommerce-product-details__short-description {
    color: var(--color-gray-600);
    font-size: 16px;
    margin: 0;
}

.pw-product-summary .woocommerce-product-details__short-description p {
    margin: 0 0 0.5rem;
}

.pw-product-summary .product_meta {
    display: grid;
    gap: 0.5rem;
    font-size: 16px;
}

.pw-product-summary .product_meta > span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.pw-product-summary .product_meta > span span,
.pw-product-summary .product_meta > span a {
    font-weight: 500;
    color: #111;
}

.pw-product-summary .pw-cart {
    display: grid;
    gap: 0.75rem;
}

.pw-cart__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pw-cart__label {
    font-weight: 700;
}


.pw-cart__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    align-items: center;
}

.pw-buy-now,
.pw-custom-print {
    border: 2px solid var(--color-gold);
    font-size: 16px;
    border-radius: 999px;
    font-weight: 700;
    gap: .5rem;
}

.pw-buy-now img,
.pw-custom-print img {
    width: 20px;
    height: 20px;
}

.pw-custom-print {
    color: #000;
    font-weight: 700;
    border-radius: 999px;
    padding: 0 1rem;
    line-height: 2;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pw-custom-print:hover {
    background: var(--color-gold-deep);
}

/* Ensure buy-now anchor matches button appearance */
.pw-buy-now,
.button.pw-buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    line-height: 2;
    text-decoration: none;
    color: inherit;
    background: var(--color-gold);
    border-color: var(--color-gold);
    cursor: pointer;
}
.pw-buy-now:hover,
.button.pw-buy-now:hover {
    background: var(--color-gold-deep);
}

/* ===== WooCommerce: Product head layout (section/block) ===== */
.pw-product-head .container {
    display: grid;
    grid-template-columns: 550px 1fr 255px;
    gap: 1rem;
    align-items: stretch;
}

.pw-product-head .block {
    min-width: 0;
}

.pw-product-head .pw-product-gallery {
    max-width: 100%;
}

.pw-product-summary .wpcf7,
.pw-product-summary .cf7-wrap,
.pw-product-summary .codedropz-upload-handler,
.pw-product-summary .cf7-field,
.pw-product-summary .cf7-row,
.pw-product-summary .cf7-submit {
    max-width: 100%;
    box-sizing: border-box;
}

.pw-product-summary .wpcf7 {
    width: 100%;
    overflow: hidden;
}

.pw-product-summary .cf7-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pw-product-summary .cf7-field input,
.pw-product-summary .cf7-field textarea {
    max-width: 100%;
    box-sizing: border-box;
}

.pw-product-head .pw-product-info {
    display: grid;
    align-content: space-between;
    gap: 1rem;
    margin: 0;
}

.pw-product-head .pw-product-info__card {
    margin-bottom: 0;
}

.pw-product-head .pw-product-gallery__main,
.pw-product-head .pw-product-gallery__thumbs .swiper-slide,
.pw-product-head .pw-product-info__card,
.pw-product-head .pw-product-info__card--dashed,
.pw-product-head .pw-product-summary .single_add_to_cart_button {
    border-radius: 0.5rem;
}

@media (max-width: 1405px) and (min-width: 1101px) {

    .pw-product-head .container {
        grid-template-columns: minmax(0, 1fr) 430px 220px;
        gap: 1rem;
    }

}

@media (max-width: 1100px) {

    .pw-product-head .container {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

}

@media (max-width: 640px) {
    .pw-product-head .container {
        gap: 1rem;
    }

    .pw-product-gallery {
        gap: .75rem;
    }

    .pw-product-gallery__main {
        border-radius: .55rem;
    }

    .pw-product-summary .content {
        gap: .75rem;
    }

    .pw-product-summary .product-title {
        font-size: 16px !important;
        line-height: 1.18;
    }

    .pw-product-summary__quick-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .pw-product-summary__order-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .pw-product-summary__order-row .pw-cart__actions {
        grid-column: 1 / -1;
    }

    .pw-cart__actions {
        grid-template-columns: 1fr;
        gap: .55rem;
    }

    .pw-buy-now,
    .pw-custom-print {
        min-height: 2.35rem;
        font-size: 16px !important;
        line-height: 1.2;
    }

    .pw-product-summary .cf7-row {
        grid-template-columns: 1fr;
    }
}

/* ===== WooCommerce: Product info blocks ===== */
.pw-product-info__card {
    background: #fff4c7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.pw-product-info__card--dashed {
    background: #fffdf4;
    border: 2px dashed #f2c33a;
    box-shadow: none;
}

.pw-product-info__head {
    background: #f6c33a;
    color: #111;
    font-weight: 700;
    font-size: 16px;
    padding: .5rem .75rem;
    line-height: 1.35;
    text-align: center;
}

.pw-product-info__list {
    list-style: none;
    margin: 0;
    padding: .75rem;
    display: grid;
    gap: .625rem;
}

.pw-product-info__list li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: .5rem;
    align-items: start;
    font-size: 16px !important;
    font-weight: 500;
    color: #111;
}

.pw-product-info__list li > span:not(.pw-product-info__icon) {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.pw-product-info__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-height: 24px;
    font-size: 16px;
}

.pw-product-info__content {
    padding: .85rem .9rem 1rem;
    font-size: 16px !important;
}

.pw-product-info__hotline {
    font-weight: 700;
    font-size: 16px !important;
    line-height: 1.5;
    margin: 0 0 .8rem;
}

.pw-product-info__links {
    display: grid;
    gap: .45rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pw-product-info__links li {
    display: flex;
    align-items: flex-start;
    font-size: 16px !important;
    line-height: 1.5;
}

.pw-product-info__links li::before {
    content: ">";
    flex: 0 0 auto;
    margin-right: 0.5rem;
    font-weight: 700;
}

/* ===== WooCommerce: Single product long description ===== */
body.single-product .main:has(> .right) {
    width: min(1288px, calc(100% - 2rem));
    margin-right: auto;
    margin-left: auto;
    grid-template-columns: minmax(0, 1fr) 400px;
}

.pw-product-specs-sidebar .product-description {
    overflow: hidden;
    border: 1px solid var(--header-gold);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 4px 14px rgb(17 24 39 / 6%);
}

.pw-product-specs-sidebar .product-description__body > .title {
    padding: .55rem .875rem;
    background: var(--header-gold);
    color: var(--color-dark-ink);
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.pw-product-specs-sidebar #pw-product-specs {
    grid-template-columns: minmax(112px, 42%) minmax(0, 58%);
    max-height: none;
    overflow: visible;
    border: 0;
    font-size: 16px !important;
    background: #fff;
}

.pw-product-specs-sidebar .pw-product-specs__label,
.pw-product-specs-sidebar .pw-product-specs__value {
    min-width: 0;
    padding: .65rem .75rem;
    border: 0;
    border-bottom: 1px solid rgb(246 195 58 / 72%);
    font-size: 16px !important;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.pw-product-specs-sidebar .pw-product-specs__label {
    align-items: flex-start;
    border-right: 1px solid rgb(246 195 58 / 72%);
    color: #262626;
    font-weight: 600;
}

.pw-product-specs-sidebar .pw-product-specs__value {
    align-items: flex-start;
    color: #3f3f46;
}

.pw-product-specs-sidebar #pw-product-specs div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.pw-product-specs-sidebar #pw-product-specs div:nth-child(4n + 1),
.pw-product-specs-sidebar #pw-product-specs div:nth-child(4n + 2) {
    background: #fafafa;
}

.pw-product-specs-sidebar #pw-product-specs div:nth-child(4n + 3),
.pw-product-specs-sidebar #pw-product-specs div:nth-child(4n + 4) {
    background: #fff;
}

.pw-product-specs-sidebar .pw-product-specs__toggle {
    display: none !important;
}

.product-single-description {
    padding: 0;
}

.product-single-description > .container {
    margin-top: 0;
    margin-bottom: 0;
}

.product-single-description .block--product_single_description {
    overflow: hidden;
    border: 1px solid var(--header-gold);
    border-radius: .5rem;
    background: #fff;
}

.product-single-description .block--product_single_description > .head .title {
    display: block;
    margin: 0;
    padding: .32rem 1rem;
    border-radius: .45rem .45rem 0 0;
    background: var(--header-gold);
    color: #111;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.product-single-description .block--product_single_description > .content {
    position: relative;
}

.pw-product-detail-content {
    position: relative;
}

.pw-product-detail-content__inner {
    position: relative;
    max-height: 540px;
    overflow: hidden;
    padding: 1rem 1.15rem 3.25rem;
    color: #222;
    font-size: 16px !important;
    line-height: 1.55;
}

.pw-product-detail-content__inner::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 7rem;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 72%);
}

.pw-product-detail-content:has(.pw-product-detail-content__more input:checked) .pw-product-detail-content__inner {
    max-height: none;
    padding-bottom: 1rem;
}

.pw-product-detail-content:has(.pw-product-detail-content__more input:checked) .pw-product-detail-content__inner::after {
    display: none;
}

.pw-product-detail-content__inner h2,
.pw-product-detail-content__inner h3,
.pw-product-detail-content__inner h4 {
    margin: .95rem 0 .4rem;
    color: #111;
    font-weight: 700;
    line-height: 1.3;
}

.pw-product-detail-content__inner h2 { font-size: 16px !important; }
.pw-product-detail-content__inner h3 { font-size: 16px !important; }
.pw-product-detail-content__inner h4 { font-size: 16px !important; }

.pw-product-detail-content__inner p,
.pw-product-detail-content__inner ul,
.pw-product-detail-content__inner ol {
    margin: 0 0 .7rem;
}

.pw-product-detail-content__inner li {
    margin: 0 0 .28rem;
}

.pw-product-detail-content__more {
    position: absolute;
    right: 0;
    bottom: .45rem;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.pw-product-detail-content__more input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pw-product-detail-content__more span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #d3392f;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.3;
}

.pw-product-detail-content__more span::after {
    content: "∨∨";
    letter-spacing: .08em;
}

.pw-product-detail-content:has(.pw-product-detail-content__more input:checked) .pw-product-detail-content__more {
    position: static;
    padding: .25rem 0 .8rem;
}

.pw-product-detail-content:has(.pw-product-detail-content__more input:checked) .pw-product-detail-content__more span::after {
    content: "∧∧";
}

@media (max-width: 900px) {
    .pw-product-detail-content__inner {
        max-height: 480px;
        padding: .85rem .9rem 3rem;
        font-size: 16px !important;
        line-height: 1.5;
    }
}

@media (max-width: 1100px) {
    body.single-product .main:has(> .right) {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===== WooCommerce: Single product reviews ===== */
.product-single-reviews {
    padding: 0;
}

.foot-product-section {
    width: min(1320px, calc(100% - 2rem));
    margin: 1rem auto 0;
}

.product-single-reviews > .container {
    margin-top: 1rem;
    margin-bottom: 0;
}

.product-single-reviews .block--product_single_reviews > .head {
    display: none;
}

.pw-product-reviews {
    color: #222;
    font-size: 16px !important;
}

.pw-product-reviews__expert {
    display: flex;
    gap: .85rem;
    align-items: center;
    padding: .55rem .75rem;
    border-radius: .25rem;
    background: #eef0f2;
}

.pw-product-reviews__avatar,
.pw-product-reviews__item-avatar {
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #d8d8d8;
}

.pw-product-reviews__avatar {
    width: 4.25rem;
    height: 4.25rem;
}

.pw-product-reviews__avatar img,
.pw-product-reviews__item-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pw-product-reviews__avatar span,
.pw-product-reviews__item-avatar span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}

.pw-product-reviews__expert-body strong {
    display: block;
    margin-bottom: .15rem;
    color: #111;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.25;
}

.pw-product-reviews__expert-body p {
    margin: 0;
    color: #555;
    font-size: 16px !important;
    line-height: 1.45;
}

.pw-product-reviews__count {
    margin: 1rem 0 .8rem;
    padding-left: .65rem;
    border-left: .18rem solid #f01f2c;
    color: #111;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.35;
}

.pw-product-reviews__panel {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: .7rem 1.4rem;
    align-items: center;
    padding: 1.35rem 1.5rem 1.15rem;
    border: 1px solid #e5e5e5;
    border-radius: .25rem;
    background: #fff;
}

.pw-product-reviews__score {
    color: #ff8a00;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.pw-product-reviews__score span {
    font-size: 16px !important;
}

.pw-product-reviews__score .pw-product-reviews__score-empty {
    display: inline-block;
    color: #555;
    font-weight: 700;
    line-height: 1.35;
}

.pw-product-reviews__bars {
    display: grid;
    gap: .18rem;
    max-width: 21rem;
}

.pw-product-reviews__bar {
    display: grid;
    grid-template-columns: 2.4rem minmax(7rem, 1fr) 5.4rem;
    gap: .45rem;
    align-items: center;
    color: #111;
    font-size: 14px !important;
    line-height: 1.25;
}

.pw-product-reviews__bar i {
    position: relative;
    display: block;
    height: .32rem;
    overflow: hidden;
    border-radius: 99px;
    background: #eeeeee;
}

.pw-product-reviews__bar b {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: #f36c21;
}

.pw-product-reviews__bar em {
    color: #444;
    font-style: normal;
}

.pw-product-reviews__submit {
    grid-column: 2;
    justify-self: start;
    min-height: 2rem;
    padding: 0 .95rem;
    border: 0;
    border-radius: .25rem;
    background: #e51f2b;
    color: #fff;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

.pw-product-reviews__form {
    margin-top: .75rem;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: .25rem;
}

.pw-product-reviews__form .comment-reply-title,
.pw-product-reviews__form .form-submit {
    margin: 0;
}

.pw-product-reviews__form input,
.pw-product-reviews__form select,
.pw-product-reviews__form textarea {
    width: 100%;
    min-height: 2.35rem;
    margin-bottom: .55rem;
    padding: .45rem .65rem;
    border: 1px solid #ddd;
    border-radius: .25rem;
    font-size: 16px !important;
}

.pw-product-reviews__list {
    display: grid;
    gap: .9rem;
    margin-top: 1rem;
}

.pw-product-reviews__empty {
    margin: 0;
    padding: .9rem 1rem;
    border: 1px dashed #d8d8d8;
    border-radius: .25rem;
    background: #fafafa;
    color: #555;
    font-size: 16px !important;
    line-height: 1.5;
}

.pw-product-reviews__item {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
}

.pw-product-reviews__item-avatar {
    width: 3rem;
    height: 3rem;
}

.pw-product-reviews__stars {
    color: #f6a600;
    font-size: 14px !important;
    line-height: 1.2;
    letter-spacing: .02em;
}

.pw-product-reviews__item strong,
.pw-product-reviews__item span {
    color: #333;
    font-size: 14px !important;
    line-height: 1.35;
}

.pw-product-reviews__item p {
    margin: .15rem 0 0;
    color: #444;
    font-size: 16px !important;
    font-style: italic;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .product-single-reviews > .container {
        margin-top: .85rem;
    }

    .pw-product-reviews__expert {
        align-items: flex-start;
        padding: .65rem;
    }

    .pw-product-reviews__avatar {
        width: 3.4rem;
        height: 3.4rem;
    }

    .pw-product-reviews__panel {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .pw-product-reviews__score {
        text-align: left;
    }

    .pw-product-reviews__submit {
        grid-column: auto;
    }

    .pw-product-reviews__bar {
        grid-template-columns: 2.25rem minmax(5rem, 1fr) 4.8rem;
    }
}

/* === WooCommerce: Product Specs === */
.pw-product-specs__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    background: #1e8e3e;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: help;
}
.pw-product-tooltip {
    position: fixed;
    z-index: 9999;
    max-width: 260px;
    background: #23282d;
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}
.pw-product-tooltip.is-visible {
    opacity: 1;
}
.pw-product-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #23282d;
}

/* Add-to-cart popup section */
.pw-add-to-cart-popup {
    background: linear-gradient(180deg, #fff 0%, #fff 100%);
    border-top: 6px solid var(--color-gold);
    padding: 1.25rem 0;
}
.pw-add-to-cart-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 1.25rem;
    align-items: stretch;
    margin-top: 0;
    margin-bottom: 0;
}
.pw-add-to-cart-left .pw-promo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: .65rem;
    box-shadow: 0 8px 30px rgba(15,19,40,0.08);
}
.pw-add-to-cart-right {
    display: flex;
    flex-direction: column;
    height: var(--pw-atc-media-height, auto);
    min-height: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}
.pw-form-title {
    margin: 0;
    padding: 0 0 .55rem;
    font-size: 16px !important;
    line-height: 1.25;
    background: transparent;
    border-radius: 0;
    color: var(--color-dark-ink);
    font-weight: 700;
    text-align: center;
}
.pw-quick-quote {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    padding: 0;
    scrollbar-width: thin;
}
.pw-quick-quote .pw-row {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: .5rem;
    align-items: center;
    margin-bottom: .38rem;
}
.pw-quick-quote input,
.pw-quick-quote select,
.pw-quick-quote textarea {
    flex: 1 1 0;
    border: 2px solid var(--header-gold);
    min-width: 0;
}
.pw-quick-quote textarea { border-radius: 12px; padding: .5rem .75rem; height: auto; }
.pw-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: .75rem;
    margin: .65rem 0 0;
    padding: .65rem 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,.86), #fff 35%);
    z-index: 2;
}
.pw-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.25rem;
    padding: .35rem .65rem;
    border-radius: .45rem;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.2;
}
.pw-actions .btn-ghost {
    background: transparent;
    border: 2px solid var(--color-red);
    color: var(--color-red);
}
.pw-actions .btn-primary {
    background: var(--color-red);
    color: #fff;
}
@media (max-width: 900px) {
    .pw-add-to-cart-inner { grid-template-columns: 1fr; }
}

/* Popup/backdrop behaviour */
.pw-atc-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    padding: 1rem;
    overflow: auto;
}
.pw-atc-backdrop.is-open { display: flex; }
.pw-atc-popup {
    position: relative;
    max-width: 1100px;
    width: 100%;
    max-height: calc(100dvh - 2rem);
    overflow: visible;
    border-radius: .9rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    transform: translateY(0);
}
.pw-atc-close {
    position: absolute;
    right: -14px;
    top: -14px;
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    background: var(--color-dark-ink) !important;
    border: 2px solid var(--header-gold) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.32) !important;
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    cursor: pointer;
    z-index: 10;
}
.pw-atc-close:hover,
.pw-atc-close:focus-visible {
    background: #b42318 !important;
    border-color: #fff !important;
    color: #fff !important;
}

/* Attribute sections inside add-to-cart popup */
.pw-attr-title {
    margin-bottom: .5rem;
    font-weight: 700;
    color: var(--color-dark-ink);
}
.pw-attribute-defaults,
.pw-attribute-optionals {
    margin-bottom: 1rem;
}
.pw-attribute-defaults {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding-right: 0;
    border: 1px solid var(--header-gold);
    border-radius: .55rem;
}
.pw-attribute-defaults__table {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--header-gold) #f1f1f1;
}
.pw-attribute-defaults__scroll-hint {
    position: absolute;
    right: .65rem;
    bottom: .35rem;
    z-index: 2;
    display: none;
    align-items: center;
    gap: .3rem;
    padding: .22rem .55rem;
    border: 1px solid #e1b326;
    border-radius: 999px;
    background: rgba(255, 248, 221, .96);
    box-shadow: 0 2px 8px rgba(32, 27, 12, .14);
    color: var(--color-dark-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    pointer-events: none;
}
.pw-attribute-defaults.is-scrollable:not(.is-scrolled-end) .pw-attribute-defaults__scroll-hint {
    display: inline-flex;
}
.pw-attribute-defaults__scroll-hint span {
    color: #9b6b00;
    font-size: 14px;
}
.pw-attribute-defaults .pw-attr-title {
    flex: 0 0 auto;
    margin: 0;
    padding: .45rem .65rem;
    border-bottom: 1px solid var(--header-gold);
    background: #fff4cf;
}
.pw-attribute-optionals,
.pw-actions {
    flex: 0 0 auto;
}
.pw-attribute-defaults .pw-row {
    display: grid;
    grid-template-columns: minmax(7.5rem, 34%) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    margin: 0;
    border-bottom: 1px solid #eadcae;
    background: #fff;
}
.pw-attribute-defaults .pw-row:last-child {
    border-bottom: 0;
}
.pw-attribute-defaults .pw-row:nth-child(odd) {
    background: #fafafa;
}
.pw-attribute-defaults .pw-label {
    display: flex;
    align-items: center;
    padding: .42rem .6rem;
    border-right: 1px solid var(--header-gold);
    background: #fff9e8;
    color: var(--color-dark-ink);
    font-weight: 700;
}
.pw-attribute-defaults .pw-field {
    display: flex;
    align-items: stretch;
}
.pw-attribute-defaults .pw-static-value {
    width: 100%;
    min-height: 0;
    padding: .42rem .65rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    line-height: 1.35;
}
.pw-attribute-optionals .pw-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
}
.pw-row .pw-label {
    min-width: 0;
    color: var(--color-gray-700);
    font-weight: 500;
    font-size: 14px !important;
    line-height: 1.25;
}
.pw-row .pw-field {
    flex: 1 1 0;
    min-width: 0;
}
.pw-static-value {
    min-height: 1.75rem;
    display: flex;
    align-items: center;
    padding: .15rem .65rem;
    border: 1px solid #ececec;
    border-radius: 999px;
    background: #f8f8f8;
    color: #222;
    font-size: 16px !important;
    line-height: 1.25;
}
.pw-attribute-optionals .pw-field select,
.pw-quick-quote .pw-row .pw-field select {
    border-radius: 999px;
    padding: 0 .65rem;
    font-size: 16px !important;
    height: 1.9rem;
    width: 100%;
    border: 2px solid var(--header-gold);
    outline: none;
}
/* Quantity buttons style */
.pw-qty-buttons {
    display: inline-flex;
    gap: 0;
    align-items: center;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid var(--header-gold);
    background: #fff;
}
.pw-qty-buttons .pw-qty-btn {
    background: transparent;
    color: var(--color-navy);
    height: 1.75rem;
    width: 1.75rem;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight:700;
}
.pw-qty-buttons .pw-qty-btn:hover, .pw-qty-buttons .pw-qty-btn:focus { background: var(--header-gold); color: #000; }
.pw-qty-buttons input[type="number"] {
    width: 3rem;
    height: 1.75rem;
    text-align: center;
    border: 0;
    padding: 0 .3rem;
    -moz-appearance: textfield;
    background: transparent;
}
.pw-qty-buttons input[type="number"]::-webkit-outer-spin-button,
.pw-qty-buttons input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Make inputs full width and tidy spacing on small screens */
@media (max-width: 900px) {
    .pw-atc-backdrop {
        align-items: flex-start;
        padding: .75rem;
    }

    .pw-atc-popup {
        max-height: calc(100dvh - 1.5rem);
        padding: .75rem 0;
    }

    .pw-atc-close {
        right: -8px;
        top: -8px;
    }

    .pw-add-to-cart-inner {
        gap: .75rem;
        width: 100%;
        padding: 0 .75rem;
    }

    .pw-add-to-cart-right {
        height: auto;
    }

    .pw-attribute-defaults {
        flex: none;
        overflow: visible;
        padding-right: 0;
    }

    .pw-attribute-defaults__table {
        overflow: visible;
    }

    .pw-attribute-defaults__scroll-hint {
        display: none !important;
    }

    .pw-add-to-cart-left .pw-promo {
        max-height: 8.5rem;
        overflow: hidden;
        border-radius: .6rem;
    }

    .pw-add-to-cart-left .pw-promo img {
        height: 8.5rem;
    }

    .pw-form-title {
        padding: 0 0 .5rem;
        font-size: 16px !important;
    }

    .pw-quick-quote {
        max-height: calc(100dvh - 14.5rem);
        overflow: auto;
        padding: 0;
    }

    .pw-row .pw-label {
        font-size: 14px !important;
    }

    .pw-attribute-defaults .pw-row,
    .pw-attribute-optionals .pw-row {
        grid-template-columns: minmax(6.5rem, 42%) minmax(0, 1fr);
        gap: .45rem;
        align-items: center;
        margin-bottom: .35rem;
    }

    .pw-attribute-defaults .pw-row {
        grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr);
        gap: 0;
        align-items: stretch;
        margin-bottom: 0;
    }

    .pw-static-value,
    .pw-attribute-optionals .pw-field select,
    .pw-quick-quote .pw-row .pw-field select {
        min-height: 1.8rem;
        font-size: 16px !important;
    }

    .pw-actions {
        gap: .5rem;
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .pw-actions .btn {
        min-height: 2.1rem;
        padding: .32rem .45rem;
        font-size: 16px !important;
    }
}

    /* Small-screen tweaks to prevent cart table overflow and keep qty controls compact */
    @media (max-width: 991px) {
        .product-quantity { min-width: auto; }
        .pw-qty-btn { width: 20px; height: 20px; font-size: 12px; }
        .pw-qty-buttons input[type="number"] { width: 32px; }
    }

@media (max-width: 360px) {
    .woocommerce-cart .woocommerce-billing-fields .g-recaptcha,
    .woocommerce-checkout .woocommerce-billing-fields .g-recaptcha {
        height: 66px;
        overflow: hidden;
    }

    .woocommerce-cart .woocommerce-billing-fields .g-recaptcha > div,
    .woocommerce-checkout .woocommerce-billing-fields .g-recaptcha > div {
        transform: scale(.83);
        transform-origin: left top;
    }
}
