/* ============================================================
   WooCommerce overrides — theme-specific only.
   Layout for cart/checkout/thankyou uses Tailwind utility classes.
   ============================================================ */

/* ── Shop ordering ─────────────────────────────────────────── */
.woocommerce-ordering {
    display: inline-block;
    width: 100%;
    max-width: 300px;
}

.woocommerce-ordering .orderby {
    padding: 0;
    border: none;
}

.select2-results__option {
    padding: 6px 18px !important;
}

/* ── Price slider ───────────────────────────────────────────── */
.price_slider {
    width: 100%;
    height: 10px;
    background-color: var(--pco-surface-color);
    border-radius: 100px;
    margin-bottom: 24px;
    position: relative;
}

.price_slider .ui-slider-range {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--pco-primary-color);
    z-index: 1;
}

.price_slider .ui-slider-handle {
    position: absolute;
    top: -5.5px;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: block;
    background-color: white;
    cursor: pointer;
    border: 2px solid var(--pco-primary-color);
}

.price_slider_amount .price_label {
    float: right;
}

/* ── Notices ────────────────────────────────────────────────── */
.woocommerce-notices-wrapper {
    margin-bottom: 24px;
}

.woocommerce-NoticeGroup {
    margin-bottom: 24px;
}
.woocommerce-no-js form.woocommerce-form-coupon,
.woocommerce-no-js form.woocommerce-form-login {
    display: block !important;
}

.woocommerce-no-js .showcoupon,
.woocommerce-no-js .woocommerce-form-coupon-toggle,
.woocommerce-no-js .woocommerce-form-login-toggle {
    display: none !important;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    padding: 14px 16px 14px 48px;
    border: 1px solid #e5e7eb;
    border-left: 3px solid var(--pco-primary-color);
    background-color: #fff;
    position: relative;
    border-radius: 10px;
    margin: 0 0 24px;
    list-style: none;
    overflow: hidden;
    font-size: 14px;
}

.woocommerce-error:before,
.woocommerce-info:before,
.woocommerce-message:before {
    font-family: 'remixicon' !important;
    font-size: 1.1em;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.woocommerce-error:before {
    content: "\f294";
    color: var(--pco-primary-color);
}

.woocommerce-info:before {
    content: "\f449";
    color: #2087dc;
}

.woocommerce-message:before {
    content: "\eb81";
    color: #059669;
}

.woocommerce-message {
    border-left-color: #059669;
}

.woocommerce-info {
    border-left-color: #2087dc;
}

.woocommerce-notices-wrapper .button {
    float: right;
    margin-left: 12px;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 8px;
    background: var(--pco-primary-color);
    color: white;
}

.woocommerce-notices-wrapper .button:hover {
    background: color-mix(in srgb, var(--pco-primary-color) 90%, black 10%);
}

.woocommerce-notices-wrapper a {
    font-weight: 600;
    color: var(--pco-primary-color);
}

.woocommerce-notices-wrapper li {
    width: 100%;
}

.woocommerce-error .restore-item,
.woocommerce-info .restore-item,
.woocommerce-message .restore-item {
    margin-left: 10px;
    float: right;
}

/* ── Star rating ────────────────────────────────────────────── */
.star-rating {
    position: relative;
    white-space: nowrap;
}

.star-rating>span {
    font-size: 0;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
}

.star-rating:before,
.star-rating>span:before {
    content: "★★★★★";
    font-family: 'remixicon' !important;
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 1px;
    color: #FDB12E;
}

.star-rating:before {
    color: #acacac;
}

/* ── Quantity input ─────────────────────────────────────────── */
.quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.quantity button {
    border: none;
    background: none;
    color: var(--pco-primary-color);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.quantity button:hover {
    background: #f1f5f9;
}

.quantity .qty {
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    background: none;
    text-align: center;
    width: 44px;
    height: 36px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.quantity input[type="number"]::-webkit-inner-spin-button,
.quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity input[type="number"] {
    -moz-appearance: textfield;
}

/* ── Proceed-to-checkout button ─────────────────────────────── */
.wc-proceed-to-checkout .checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background: #4f46e5;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: background .2s;
    border: none;
    cursor: pointer;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: #4338ca;
    color: #fff;
}

/* ── Checkout form fields ────────────────────────────────────── */
.woocommerce-checkout .form-row,
.woocommerce-billing-fields__field-wrapper>p,
.woocommerce-shipping-fields__field-wrapper>p,
.woocommerce-additional-fields__field-wrapper>p {
    margin-bottom: 14px;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

.woocommerce-billing-fields__field-wrapper>p,
.woocommerce-shipping-fields__field-wrapper>p {
    width: 100%;
}

.woocommerce-checkout .form-row label,
.woocommerce-billing-fields label,
.woocommerce-shipping-fields label,
.woocommerce-additional-fields label {
    display: flex;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: white;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}

.woocommerce-checkout textarea {
    min-height: 90px;
    resize: vertical;
}

/* ── Invalid fields (empty required) ─────────────────────────── */
.form-row.woocommerce-invalid .input-text,
.form-row.woocommerce-invalid select,
.form-row.woocommerce-invalid textarea,
.form-row.woocommerce-invalid .select2-selection {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
}

.form-row.woocommerce-invalid .input-text:focus,
.form-row.woocommerce-invalid select:focus,
.form-row.woocommerce-invalid textarea:focus,
.form-row.woocommerce-invalid .select2-selection:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.form-row.woocommerce-invalid label {
    color: #b91c1c;
}

.form-row.woocommerce-validated .input-text,
.form-row.woocommerce-validated select,
.form-row.woocommerce-validated textarea {
    border-color: #cbd5e1;
}

/* select2 to match */
.select2-container .select2-selection--single {
    height: auto !important;
    padding: 9px 14px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    width: auto;
    height: 100%;
    padding: 0 12px;
}

.select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.select2-container--open .select2-dropdown {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.select2-results__option {
    padding: 9px 14px !important;
    font-size: 14px;
}

/* 2-column billing fields on ≥768px */
@media (min-width: 768px) {

    .woocommerce-billing-fields__field-wrapper #billing_first_name_field,
    .woocommerce-billing-fields__field-wrapper #billing_last_name_field,
    .woocommerce-billing-fields__field-wrapper #billing_company_field,
    .woocommerce-billing-fields__field-wrapper #billing_phone_field,
    .woocommerce-billing-fields__field-wrapper #billing_city_field,
    .woocommerce-billing-fields__field-wrapper #billing_state_field,
    .woocommerce-billing-fields__field-wrapper #billing_postcode_field,
    .woocommerce-shipping-fields__field-wrapper #shipping_first_name_field,
    .woocommerce-shipping-fields__field-wrapper #shipping_last_name_field,
    .woocommerce-shipping-fields__field-wrapper #shipping_city_field,
    .woocommerce-shipping-fields__field-wrapper #shipping_state_field,
    .woocommerce-shipping-fields__field-wrapper #shipping_postcode_field {
        width: calc(50% - 10px);
    }
}

/* ── Order review (checkout right column) ───────────────────── */
.woocommerce-checkout-review-order {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 16px;
    font-size: 13px;
}

.woocommerce-checkout-review-order-table thead th {
    background: #f8fafc;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #94a3b8;
    border-bottom: 1px solid #e2e8f0;
}

.woocommerce-checkout-review-order-table tbody tr {
    border: none;
    border-bottom: 1px solid #f1f5f9;
}

.woocommerce-checkout-review-order-table .product-total {
    text-align: right;
}

.woocommerce-checkout-review-order-table .cart-subtotal td,
.woocommerce-checkout-review-order-table .cart-subtotal th {
    padding-top: 12px;
}

.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout-review-order-table .order-total th {
    font-weight: 700;
    font-size: 15px;
}

.woocommerce-checkout-review-order-table tfoot tr:first-child td,
.woocommerce-checkout-review-order-table tfoot tr:first-child th {
    border-top: 1px solid #e2e8f0;
}

.product-quantity {
    color: #64748b;
}

/* ── Payment section ────────────────────────────────────────── */
#payment {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 16px;
}

#payment .wc_payment_methods {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

#payment .wc_payment_method {
    margin-bottom: 8px;
}

#payment .wc_payment_method label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
}

#payment .payment_box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
}

#payment .place-order {
    margin: 0;
}

#payment .place-order .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background: #4f46e5;
    color: white;
    font-weight: 700;
    font-size: 15px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

#payment .place-order .button:hover {
    background: #4338ca;
    color: white;
}

.woocommerce-terms-and-conditions-wrapper {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.woocommerce-terms-and-conditions-wrapper a {
    color: #4f46e5;
    text-decoration: underline;
}

.woocommerce-privacy-policy-text {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

/* ── Shipping calculator ────────────────────────────────────── */
.woocommerce-shipping-methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-shipping-methods input {
    margin-right: 6px;
}

.woocommerce-shipping-destination {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.shipping-calculator-button {
    color: #4f46e5;
    text-decoration: underline;
    font-size: 13px;
}

/* ── Single product ─────────────────────────────────────────── */
.product-title a {
    color: var(--pco-primary-color);
}

.product-title a:hover {
    color: var(--pco-primary-color);
}

.variations_form .form-floating select {
    padding: 32px 0 12px !important;
    height: auto;
}

.variations_form .form-floating label {
    font-family: var(--pco-heading-font-family);
    color: var(--pco-primary-color);
    padding: 0;
}

.button {
    position: relative;
    background-color: var(--pco-primary-color);
    color: white;
    padding: 12px 30px;
    display: inline-flex;
    align-items: center;
}

.button.added:after {
    content: "\eb81";
    position: absolute;
    right: 7px;
    top: 8px;
    font-family: 'remixicon' !important;
    font-size: 10px;
}

.button.loading:after {
    content: "\f33f";
    position: absolute;
    right: 7px;
    top: 8px;
    font-family: 'remixicon' !important;
    font-size: 10px;
    animation: spin 2s infinite linear;
}

.onsale {
    position: absolute;
    left: 20px;
    top: 20px;
    border-radius: 0;
    width: auto;
    height: auto;
    min-height: inherit;
    font-size: 12px;
    line-height: 1;
    padding: 8px 12px;
    background-color: var(--pco-surface-color);
    color: var(--pco-primary-color);
    z-index: 4;
}

.product__content {
    transition: .3s;
    text-align: center;
}

.product__title {
    font-size: var(--pco-h5-size);
    margin-bottom: 12px;
}

.product__title a {
    display: block;
    line-height: 1.2em;
    color: var(--pco-dark-color);
}

.product__thumb {
    overflow: hidden;
}

.product__item .product__thumb img {
    transform: scale(1);
    transition: .5s;
    width: 100%;
    filter: brightness(1);
}

.product__item:hover .product__thumb img {
    transform: scale(1.05);
    filter: brightness(.5);
}

.product__rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product__rating .star__rating {
    position: relative;
    text-align: left;
}

.product__rating .star {
    overflow: hidden;
    width: 100%;
}

.product__rating .star::before {
    content: "★★★★★";
    font-family: 'remixicon' !important;
    font-weight: normal;
    color: #FDA800;
    line-height: 14px;
    letter-spacing: 3px;
    display: block;
    white-space: nowrap;
}

.product__rating .back::before {
    font-weight: 300;
}

.product__rating .front {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

.product__rating .rating_count {
    opacity: .6;
    color: var(--pco-text-color);
}

.product__item {
    position: relative;
    background-color: white;
}

.product__item .price {
    color: currentColor;
    letter-spacing: 0;
    line-height: 1.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pco-heading-font-family);
    gap: 8px;
}

.product__item .price * {
    line-height: 1.2em;
}

.product__item .price ins .woocommerce-Price-amount {
    color: var(--pco-primary-color);
    font-weight: 600;
}

.product__item .rating__price {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: .3s;
}

.product__item .product__rating {
    margin-bottom: 16px;
    height: 14px;
}

.product__item .product_actions {
    display: flex;
    gap: 12px;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    justify-content: center;
    transition: .3s;
    opacity: 0;
    visibility: hidden;
}

.product__item:hover .product_actions {
    opacity: 1;
    visibility: visible;
    bottom: 32px;
}

.product__item .product_actions .add_to_cart_button.added {
    display: none;
}

.product__item .product__thumb {
    position: relative;
    margin-bottom: 24px;
}

.woocommerce-product-gallery img,
.woocommerce-product-gallery__wrapper img {
    background-color: white;
}

.woocommerce-product-gallery__image {
    overflow: hidden;
    text-align: center;
}

.woocommerce-product-gallery {
    position: relative;
    z-index: 1;
}

.woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    position: absolute;
    right: 6px;
    top: 6px;
    z-index: 2;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
}

.woocommerce-product-gallery .woocommerce-product-gallery__trigger span {
    display: none;
}

.woocommerce-product-gallery .woocommerce-product-gallery__trigger:before {
    content: "\f2db";
    font-family: 'remixicon' !important;
    font-size: var(--pco-h6-size);
    color: var(--pco-primary-color);
}

.woocommerce-product-gallery .flex-control-thumbs {
    list-style: none;
    margin: 5px -5px -5px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    width: calc(20% - 10px);
    overflow: hidden;
    margin: 5px;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    filter: brightness(1);
    transition: .3s;
    cursor: pointer;
}

.woocommerce-product-gallery .flex-control-thumbs li .flex-active {
    filter: brightness(.5);
}

.single-product-summary {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.single-product-summary .product_title {
    width: 100%;
    order: -3;
}

.single-product-summary .product__rating {
    width: 50%;
    justify-content: flex-start;
    margin-bottom: 16px;
    order: -2;
}

.single-product-summary .price {
    width: 100%;
    font-size: var(--pco-h4-size);
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--pco-primary-color);
    font-family: var(--pco-heading-font-family);
}

.single-product-summary .price del {
    color: var(--pco-primary-color);
}

.single-product-summary .woocommerce-product-details__short-description {
    width: 100%;
    margin-bottom: 24px;
}

.single-product-summary .stock {
    width: 50%;
    order: -1;
    text-align: center;
    color: var(--pco-primary-color);
}

.single-product-summary .cart {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.single-product-summary .cart .single_variation_wrap {
    width: 100%;
}

.single-product-summary .cart .single_variation_wrap .woocommerce-variation-add-to-cart {
    display: flex;
    width: 100%;
}

.single-product-summary .cart .single_add_to_cart_button {
    display: flex;
    align-items: center;
}

.single-product-summary .cart .quantity {
    margin-right: 16px;
}

.single-product-summary .wishlist-button {
    padding: 0;
    width: 47px;
    height: 47px;
    margin-left: 16px;
}

.single-product-summary .product_meta {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    width: 100%;
    font-weight: 600;
}

.single-product-summary .product_meta span * {
    font-weight: 400;
}

.variations .form-floating label {
    text-transform: capitalize;
}

.form label {
    margin-bottom: 8px;
    color: var(--pco-primary-color);
}

.reset_variations {
    color: var(--pco-primary-color);
}

.required {
    color: red;
}

/* ── WC Tabs ────────────────────────────────────────────────── */
.wc-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ececec;
}

.wc-tabs li {
    margin: 16px 32px 0 0;
}

.wc-tabs li a {
    display: block;
    padding-bottom: 16px;
    font-size: var(--pco-h4-size);
    color: var(--pco-primary-color);
    font-weight: 600;
    font-family: var(--pco-heading-font-family);
    position: relative;
}

.wc-tabs li.active a {
    color: var(--pco-primary-color);
}

.wc-tabs li a:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--pco-primary-color);
    border-radius: 100px;
    display: block;
    opacity: 0;
    transition: .3s;
}

.wc-tabs li.active a:before {
    opacity: 1;
}

.woocommerce-Tabs-panel h2 {
    display: none;
}

.related-products h2 {
    font-size: var(--pco-h4-size);
    margin-bottom: 24px;
}

/* ── Comments / Reviews ─────────────────────────────────────── */
.comment-form-rating .stars a {
    font-size: 0;
}

.comment-form-rating .stars a::before {
    content: "\f186";
    font-family: 'remixicon' !important;
    font-size: 16px;
    font-weight: normal;
    color: #FDB12E;
}

.comment-form-rating .stars a.active~a::before {
    font-weight: 300;
    color: #696969;
}

.commentlist {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}

.commentlist li:not(:last-child) {
    margin-bottom: 30px;
}

.commentlist .comment_container {
    padding-left: 60px;
    position: relative;
}

.commentlist .avatar {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
}

.commentlist .comment-text {
    border: 1px solid var(--pco-surface-color);
    padding: 12px 22px;
    position: relative;
    margin-left: 20px;
}

.commentlist .comment-text:before {
    content: "";
    position: absolute;
    left: -10px;
    top: 18px;
    width: 20px;
    height: 20px;
    background-color: white;
    display: block;
    border-top: 1px solid var(--pco-surface-color);
    border-left: 1px solid var(--pco-surface-color);
    transform: rotate(-45deg);
    border-radius: 2px 0 0 0;
}

.commentlist .woocommerce-review__author {
    font-family: var(--pco-heading-font-family);
}

.woocommerce-noreviews {
    margin-bottom: 16px;
}

.woocommerce-Reviews .comment-form {
    margin-top: 10px;
}

.woocommerce-Reviews .comment-form>* {
    width: 100%;
}

/* ── My Account ─────────────────────────────────────────────── */
.woocommerce-MyAccount-content .woocommerce-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.woocommerce-MyAccount-content .woocommerce-info .button {
    margin-left: auto;
}

/* ── Password input ─────────────────────────────────────────── */
.password-input {
    position: relative;
    width: 100%;
}

.password-input .show-password-input {
    border: none;
    background: none;
    position: absolute;
    right: 6px;
    top: calc(50% - 12px);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pco-primary-color);
    font-size: 16px;
    cursor: pointer;
}

.password-input .show-password-input:before {
    content: "\ecb5";
    font-family: 'remixicon' !important;
}

/* ── Account fields ─────────────────────────────────────────── */
.woocommerce-account-fields {
    margin-top: 24px;
}

/* ── Cart item misc ─────────────────────────────────────────── */
.cart_footer {
    min-height: 220px;
}

/* ── Wishlist ───────────────────────────────────────────────── */
.remove-from-wishlist {
    border: none;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    background-color: var(--pco-primary-color);
    color: white;
}

/* ── Shop table (order details etc.) ───────────────────────── */
.woocommerce td,
.woocommerce th {
    padding: 8px 12px;
}

.shop_table .product-total {
    text-align: left;
}

.shop_table th,
.shop_table td {
    color: var(--pco-dark-color);
}

.shop_table .order-total>* {
    border-top: 1px solid var(--pco-surface-color);
    font-weight: 600;
}

.shop_table .product-name .product-quantity {
    float: right;
    color: var(--pco-primary-color);
}

.woocommerce table.shop_table_responsive tr:nth-child(2n) td,
.woocommerce-page table.shop_table_responsive tr:nth-child(2n) td {
    background-color: transparent !important;
}

/* ── Product list widget ────────────────────────────────────── */
.product_list_widget li img {
    border-radius: 0;
}

.product_list_widget li .star-rating {
    margin-bottom: 6px;
}

/* My Account nav styling lives on the template itself via Tailwind */

/* ── My Account general form fields ────────────────────────── */
.woocommerce-EditAccountForm .input-text,
.woocommerce-address-fields .input-text,
.woocommerce-address-fields select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: white;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.woocommerce-EditAccountForm .input-text:focus,
.woocommerce-address-fields .input-text:focus,
.woocommerce-address-fields select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}

.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row {
    margin-bottom: 14px;
}

.woocommerce-EditAccountForm .form-row label,
.woocommerce-address-fields .form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.woocommerce-address-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

.woocommerce-address-fields__field-wrapper>p {
    width: 100%;
}

@media (min-width: 768px) {

    .woocommerce-address-fields__field-wrapper #billing_first_name_field,
    .woocommerce-address-fields__field-wrapper #billing_last_name_field,
    .woocommerce-address-fields__field-wrapper #billing_city_field,
    .woocommerce-address-fields__field-wrapper #billing_state_field,
    .woocommerce-address-fields__field-wrapper #billing_postcode_field,
    .woocommerce-address-fields__field-wrapper #billing_phone_field,
    .woocommerce-address-fields__field-wrapper #shipping_first_name_field,
    .woocommerce-address-fields__field-wrapper #shipping_last_name_field,
    .woocommerce-address-fields__field-wrapper #shipping_city_field,
    .woocommerce-address-fields__field-wrapper #shipping_state_field,
    .woocommerce-address-fields__field-wrapper #shipping_postcode_field {
        width: calc(50% - 10px);
    }
}

/* ── Shop loop product card ─────────────────────────────────── */
.product__item .product__thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    margin: 0;
}

.product__item .product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.product__item:hover .product__thumb img {
    transform: scale(1.05);
    filter: none;
}

.product__item .product__content {
    text-align: left;
}

.product__item h4.product__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.product__item h4.product__title a {
    color: #1e293b;
    text-decoration: none;
}

.product__item h4.product__title a:hover {
    color: #4f46e5;
}

.product__item .rating__price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.product__item .product__rating {
    height: auto;
    margin-bottom: 0;
}

.product__item .product_actions {
    position: static;
    opacity: 1;
    visibility: visible;
    justify-content: flex-start;
}

/* ── Shop loop add-to-cart button ───────────────────────────── */
.product__item .add_to_cart_button,
.product__item .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #4f46e5;
    color: white !important;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s;
}

.product__item .add_to_cart_button:hover,
.product__item .button:hover {
    background: #4338ca;
}

.product__item .button:after {
    display: none;
}

/* ── Pagination ─────────────────────────────────────────────── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    color: #374151;
    transition: all .2s;
}

.nav-links a:hover {
    background: #f1f5f9;
    border-color: #c7d2fe;
    color: #4f46e5;
}

.nav-links .current {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

.nav-links .prev,
.nav-links .next {
    width: auto;
    padding: 0 12px;
}

/* ── Shop toolbar ───────────────────────────────────────────── */
.woocommerce-result-count {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    background: white;
    color: #374151;
    outline: none;
}

/* ── Ordering / filter ──────────────────────────────────────── */
.woocommerce-ordering {
    display: inline-block;
}

.woocommerce-ordering .orderby {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 992px) {
    .woocommerce-MyAccount-navigation li {
        width: auto;
        min-width: 70px;
    }

    .woocommerce-MyAccount-navigation li a .icon {
        margin: 0;
    }

    .woocommerce-MyAccount-navigation li a .text {
        display: none;
    }
}

@media (max-width: 768px) {
    .woocommerce-order-overview li {
        width: 50%;
        padding: 4px 10px;
    }
}

@media (max-width: 576px) {
    .wc-tabs li a {
        font-size: 16px;
        padding-bottom: 5px;
    }

    .wc-tabs li {
        margin-right: 16px;
    }

    .onsale {
        left: 12px;
        top: 12px;
        font-size: 10px;
        padding: 5px 8px;
    }

    .product__title {
        font-size: 16px;
    }

    .single-product-summary .product_title {
        font-size: var(--pco-h4-size);
        margin-bottom: 4px;
    }

    .single-product-summary .price {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .single-product-summary .product__rating {
        margin-bottom: 10px;
    }

    .single-product-summary .woocommerce-product-details__short-description {
        margin-bottom: 12px;
    }

    .single-product-summary .cart {
        margin-bottom: 12px;
        align-items: center;
    }

    .single-product-summary .cart .single_add_to_cart_button {
        width: calc(100% - 128px - 16px);
        padding: 6px 16px;
    }

    .single-product-summary .cart .single_add_to_cart_button .icon {
        display: none;
    }

    .single-product-summary .wishlist-button {
        width: 32px;
        height: 32px;
    }

    .woocommerce td,
    .woocommerce th {
        padding: 4px 10px;
    }

    .quantity {
        border-radius: 8px;
    }

    .quantity button {
        width: 30px;
        height: 30px;
    }

    .quantity .qty {
        width: 36px;
        height: 30px;
    }
}

.form-row {
    width: 100%;
}

.woocommerce-input-wrapper {
    display: flex;
    width: 100%;
}

/* Remove all default borders */
table.woocommerce-checkout-review-order-table,
table.woocommerce-checkout-review-order-table th,
table.woocommerce-checkout-review-order-table td,
table.woocommerce-checkout-review-order-table tr {
    border: none;
    text-align: left;
}

/* Add border right + bottom to td and th */
table.woocommerce-checkout-review-order-table th,
table.woocommerce-checkout-review-order-table td {
    border-right: 1px solid #e5e7eb;
    /* adjust color */
    border-bottom: 1px solid #e5e7eb;
}

/* Remove right border from last column */
table.woocommerce-checkout-review-order-table tr>*:last-child {
    border-right: none;
}