/* Single Product modern */
.single-product .site-main {
    max-width: 100% !important;
}

.single-product .woocommerce-notices-wrapper {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.single-product div.product {
    max-width: 80rem;
    margin: 0 auto;
}

/* Gallery */
.single-product .woocommerce-product-gallery {
    position: relative;
}

.single-product .woocommerce-product-gallery__wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Thumbnails row */
.single-product .thumbnails {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.single-product .thumbnails::-webkit-scrollbar {
    height: 4px;
}

.single-product .thumbnails::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.single-product .thumbnails .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Summary typography */
.single-product .product_title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
    .single-product .product_title {
        font-size: 1.875rem;
    }
}

.single-product .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    margin-bottom: 1rem;
}

.single-product .price del {
    font-size: 1rem;
    font-weight: 400;
    color: #9ca3af;
    margin-right: 0.5rem;
}

.single-product .price ins {
    text-decoration: none;
}

.single-product .woocommerce-product-details__short-description {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.single-product .woocommerce-product-details__short-description p {
    margin: 0;
}

/* Stock badge */
.single-product .stock {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.single-product .in-stock {
    background: #f0fdf4;
    color: #166534;
}

.single-product .out-of-stock {
    background: #fef2f2;
    color: #991b1b;
}

/* Quantity input */
.single-product .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    background: #f9fafb;
}

.single-product .quantity .qty {
    width: 3.5rem;
    height: 3rem;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    background: #fff;
    outline: none;
    -moz-appearance: textfield;
}

.single-product .quantity .qty::-webkit-outer-spin-button,
.single-product .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Quantity buttons via JS in navigation.js handle it */

/* Product meta chips */
.single-product .product_meta {
    margin-top: 1.5rem;
}

.single-product .product_meta a {
    color: var(--color-primary);
    font-weight: 500;
}

.single-product .product_meta a:hover {
    color: var(--color-primary-dark);
}

/* Tabs accordion */
.single-product .woocommerce-tabs {
    margin-bottom: 2.5rem;
}

.single-product .woocommerce-tabs .tab-content h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.single-product .woocommerce-tabs .tab-content p {
    margin-bottom: 0.75rem;
}

/* Review list */
.single-product #reviews #comments ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-product #reviews #comments ol.commentlist li {
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.single-product #reviews #comments ol.commentlist li:last-child {
    border-bottom: none;
}

.single-product #reviews .comment_container {
    display: flex;
    gap: 0.75rem;
}

.single-product #reviews .comment_container img.avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: none;
}

.single-product #reviews .comment-text {
    flex: 1;
}

.single-product #reviews .comment-text .meta {
    font-size: 0.8125rem;
    color: #6b7280;
}

.single-product #reviews .comment-text .description {
    font-size: 0.875rem;
    color: #374151;
    margin-top: 0.25rem;
}

/* Review form */
.single-product #review_form_wrapper {
    margin-top: 1.5rem;
}

.single-product #review_form .comment-reply-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    display: block;
    margin-bottom: 1rem;
}

.single-product #review_form label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
    display: block;
}

.single-product #review_form input[type="text"],
.single-product #review_form input[type="email"],
.single-product #review_form textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.15s;
}

.single-product #review_form input:focus,
.single-product #review_form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,168,255,0.15);
}

.single-product #review_form textarea {
    min-height: 120px;
}

.single-product #review_form .form-submit input[type="submit"] {
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.single-product #review_form .form-submit input[type="submit"]:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(0,168,255,0.3);
}

/* Star rating in review form */
.single-product .comment-form-rating .stars {
    display: inline-flex;
    gap: 0.25rem;
}

.single-product .comment-form-rating .stars a {
    color: #d1d5db;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color 0.15s;
}

.single-product .comment-form-rating .stars a:hover,
.single-product .comment-form-rating .stars a.active {
    color: var(--color-accent);
}

/* Related / Upsells */
.single-product .related,
.single-product .upsells {
    padding: 0 16px;
    max-width: 80rem;
    margin: 2.5rem auto;
}

/* Responsive: stack on mobile */
@media (max-width: 1023px) {
    .single-product div.product {
        flex-direction: column;
    }

    .single-product .woocommerce-product-gallery {
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        border-radius: 0;
    }
}

/* Cart page - override WooCommerce default table styles */
.woocommerce-cart table.cart,
.woocommerce-cart table.cart thead,
.woocommerce-cart table.cart tbody,
.woocommerce-cart table.cart tr,
.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td {
    display: block;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.woocommerce-cart .cart_totals table.shop_table {
    background: transparent;
    border: none;
    border-radius: 0;
}

.woocommerce-cart .cart_totals table.shop_table tr,
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
    background: transparent;
    border: none;
    padding: 0;
}

.woocommerce-cart .cart_totals table.shop_table th {
    display: none;
}

.woocommerce-cart .cart_totals table.shop_table td {
    text-align: right;
}

.woocommerce-cart .cart_totals table.shop_table .cart-subtotal td,
.woocommerce-cart .cart_totals table.shop_table .order-total td {
    font-size: inherit;
    font-weight: inherit;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
    padding: 0;
    text-align: center;
}

.woocommerce-cart .cart_totals table.shop_table .shipping td {
    text-align: right;
}

.woocommerce-cart .cart_totals table.shop_table .shipping td p {
    margin: 0;
    font-size: 0.8125rem;
    color: #6b7280;
}

.woocommerce-cart .cart_totals table.shop_table .shipping td .woocommerce-shipping-methods {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.woocommerce-cart .cart_totals table.shop_table .shipping td .woocommerce-shipping-methods li {
    font-size: 0.8125rem;
}

.woocommerce-cart .cart_totals table.shop_table .shipping td .woocommerce-shipping-methods input {
    margin-right: 0.375rem;
}

.woocommerce-cart .cart_totals table.shop_table .shipping td .woocommerce-shipping-destination {
    font-size: 0.75rem;
    color: #9ca3af;
}

.woocommerce-cart .cart_totals table.shop_table .shipping td .shipping-calculator-button {
    font-size: 0.8125rem;
    color: var(--color-primary);
    text-decoration: underline;
}

.woocommerce-cart .cart_totals table.shop_table .shipping td .shipping-calculator-form {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.woocommerce-cart .cart_totals table.shop_table .shipping td .shipping-calculator-form input,
.woocommerce-cart .cart_totals table.shop_table .shipping td .shipping-calculator-form select {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
}

.woocommerce-cart .cart_totals table.shop_table .shipping td .shipping-calculator-form button {
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

/* Coupon */
.woocommerce-cart .coupon {
    display: flex !important;
    gap: 0.5rem;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-cart .coupon input[type="text"] {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    outline: none;
}

.woocommerce-cart .coupon input[type="text"]:focus {
    border-color: var(--color-primary);
}

.woocommerce-cart .coupon button {
    padding: 0.625rem 1.25rem;
    background: #111827;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s;
}

.woocommerce-cart .coupon button:hover {
    background: #1f2937;
}

/* Checkout */
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s;
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,168,255,0.15);
}
.woocommerce-checkout #place_order {
    cursor: pointer;
}

/* Payment methods */
/* Checkout sections */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #ship-to-different-address {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.25rem;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.04);
}

.woocommerce-checkout .form-row label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
    display: block;
}

.woocommerce-checkout .form-row .optional {
    font-weight: 400;
    color: #9ca3af;
}

.woocommerce-checkout .form-row .woocommerce-input-wrapper {
    display: block;
}

.woocommerce-checkout .form-row .select2-container .select2-selection--single {
    height: auto;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
}

.woocommerce-checkout .form-row .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    font-size: 0.875rem;
    color: #374151;
}

.woocommerce-checkout .form-row .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
    right: 0.75rem;
}

.woocommerce-checkout .woocommerce-invalid input {
    border-color: #ef4444 !important;
}

.woocommerce-checkout .woocommerce-invalid label {
    color: #ef4444 !important;
}

.woocommerce-checkout .woocommerce-validated input {
    border-color: #22c55e;
}

.woocommerce-checkout .woocommerce-account-fields {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.woocommerce-checkout .create-account {
    margin-top: 0.75rem;
}

/* Ship to different address checkbox */
.woocommerce-checkout #ship-to-different-address-checkbox {
    margin-right: 0.5rem;
}

.woocommerce-checkout .woocommerce-shipping-fields .shipping_address {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

/* Review order table override */
.woocommerce-checkout-review-order table.shop_table {
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

.woocommerce-checkout-review-order table.shop_table thead {
    display: none;
}

.woocommerce-checkout-review-order table.shop_table tbody,
.woocommerce-checkout-review-order table.shop_table tfoot {
    display: block;
}

.woocommerce-checkout-review-order table.shop_table tr {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.woocommerce-checkout-review-order table.shop_table tr:last-child {
    border-bottom: none;
}

.woocommerce-checkout-review-order table.shop_table td,
.woocommerce-checkout-review-order table.shop_table th {
    border: none;
    padding: 0;
    background: transparent;
    font-size: 0.875rem;
    color: #6b7280;
}

.woocommerce-checkout-review-order table.shop_table .product-total {
    font-weight: 600;
    color: #1f2937;
}

/* Shipping calculator in checkout */
.woocommerce-checkout .woocommerce-shipping-calculator {
    margin-top: 0.75rem;
}

.woocommerce-checkout .shipping-calculator-button {
    font-size: 0.8125rem;
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
}

.woocommerce-checkout .shipping-calculator-form {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.woocommerce-checkout .shipping-calculator-form input,
.woocommerce-checkout .shipping-calculator-form select {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
}

.woocommerce-checkout .shipping-calculator-form button {
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

/* Payment methods in checkout */
.woocommerce-checkout #payment ul.payment_methods li {
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}
.woocommerce-checkout #payment div.payment_box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
}
.woocommerce-checkout #payment div.payment_box::before { display: none; }

/* Empty cart */
.woocommerce-cart .cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 1rem;
    color: #6b7280;
}

.woocommerce-cart .return-to-shop {
    text-align: center;
    margin-top: 1.5rem;
}

.woocommerce-cart .return-to-shop a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s;
}

.woocommerce-cart .return-to-shop a:hover {
    background: var(--color-primary-dark);
}

/* Cart on mobile - hide WooCommerce default table */
@media (max-width: 767px) {
    .woocommerce-cart table.cart thead { display: none; }
    .woocommerce-cart table.cart tr {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 0 1rem;
        padding: 1rem;
        border-top: 1px solid #e5e7eb;
    }
    .woocommerce-cart table.cart td { display: block; padding: 0; border: none; }
    .woocommerce-cart table.cart .product-thumbnail { grid-row: 1 / 3; }
    .woocommerce-cart table.cart .product-thumbnail img { width: 80px; height: 80px; object-fit: cover; }

    .qty-stepper {
        width: auto;
    }
}

/* Order received / Thankyou page */
.woocommerce-order-received .site-main {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.woocommerce-order-received .woocommerce-order {
    max-width: 48rem;
    margin: 0 auto;
}

.woocommerce-order-received .woocommerce-order h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.25rem;
    padding-top: 0.5rem;
}

.woocommerce-order-received .woocommerce-order-details {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}

.woocommerce-order-received .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-order-received .woocommerce-table--order-details thead {
    display: none;
}

.woocommerce-order-received .woocommerce-table--order-details tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

.woocommerce-order-received .woocommerce-table--order-details tbody tr:last-child {
    border-bottom: none;
}

.woocommerce-order-received .woocommerce-table--order-details td,
.woocommerce-order-received .woocommerce-table--order-details th {
    border: none;
    padding: 0.75rem 0;
    background: transparent;
    vertical-align: middle;
}

.woocommerce-order-received .woocommerce-table--order-details .product-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.woocommerce-order-received .woocommerce-table--order-details .product-total {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    text-align: right;
    white-space: nowrap;
}

.woocommerce-order-received .woocommerce-table--order-details .wc-item-meta {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: #9ca3af;
    list-style: none;
    padding: 0;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot {
    display: block;
    border-top: 1px solid #f3f4f6;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot tr {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot th {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6b7280;
    border: none;
    padding: 0;
    background: transparent;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot td {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    border: none;
    padding: 0;
    background: transparent;
    text-align: right;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child th {
    font-weight: 700;
    color: #1f2937;
    font-size: 1rem;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child td {
    font-weight: 700;
    color: var(--color-accent-dark);
    font-size: 1rem;
}

/* Customer details on thankyou */
.woocommerce-order-received .woocommerce-customer-details {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}

.woocommerce-order-received .woocommerce-customer-details address {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
    border: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.woocommerce-order-received .woocommerce-customer-details .woocommerce-column__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.woocommerce-order-received .woocommerce-customer-details address p {
    margin: 0 0 0.25rem;
}

/* Payment method specific output */
.woocommerce-order-received .woocommerce-thankyou-payment-instructions {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #0369a1;
    margin-bottom: 1.5rem;
}

/* My Account fullwidth */
.woocommerce-account .site-main {
    max-width: 100% !important;
}

.woocommerce-MyAccount-content-wrapper {
    max-width: 80rem;
    margin: 0 auto;
}

/* My Account Navigation - sidebar */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(0,168,255,0.3) !important;
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    color: #4b5563;
}

.woocommerce-MyAccount-navigation li a:hover {
    background-color: #f9fafb;
    color: #111827;
}

/* Form fields styling */
.woocommerce-account form .form-row {
    padding: 0;
    margin: 0;
}

.woocommerce-account form .form-row .select2-container {
    width: 100% !important;
}

.woocommerce-account form .form-row .select2-selection {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 0.5rem;
    min-height: 42px;
}

.woocommerce-account form .form-row .select2-selection:focus {
    border-color: var(--color-primary) !important;
}

/* Notices in my-account */
.woocommerce-account .woocommerce-notices-wrapper {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem;
}

/* Address edit form fields */
.woocommerce-account form .form-row label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
    display: block;
}

.woocommerce-account form .form-row .input-text,
.woocommerce-account form .form-row textarea,
.woocommerce-account form .form-row select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.15s;
    background: #fff;
}

.woocommerce-account form .form-row .input-text:focus,
.woocommerce-account form .form-row textarea:focus,
.woocommerce-account form .form-row select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,168,255,0.15);
}

.woocommerce-account form .form-row textarea {
    min-height: 100px;
}

/* Sembunyikan demo store notice */
.woocommerce-store-notice,
.demo_store {
    display: none !important;
}

/* Cart & Checkout fullwidth */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Cross-sells on cart */
.woocommerce-cart .cross-sells {
    margin-top: 2rem;
}

.woocommerce-cart .cross-sells h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* ===== SHOP PAGE ===== */

/* Shop page fullwidth */
.post-type-archive-product .site-main,
.tax-product_cat .site-main {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Breadcrumb styling */
.woocommerce-breadcrumb a {
    color: var(--color-primary);
    font-weight: 500;
}

.woocommerce-breadcrumb a:hover {
    color: var(--color-primary-dark);
}

/* Page title */
.post-type-archive-product .page-title,
.tax-product_cat .page-title {
    font-size: 1.75rem;
}

@media (min-width: 1024px) {
    .post-type-archive-product .page-title,
    .tax-product_cat .page-title {
        font-size: 2.25rem;
    }
}

/* Notices wrapper on shop */
.post-type-archive-product .woocommerce-notices-wrapper,
.tax-product_cat .woocommerce-notices-wrapper {
    max-width: 80rem;
    margin: 0 auto 1rem;
}

/* Result count */
.post-type-archive-product .woocommerce-result-count,
.tax-product_cat .woocommerce-result-count {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Ordering dropdown */
.post-type-archive-product .woocommerce-ordering,
.tax-product_cat .woocommerce-ordering {
    float: none;
    margin: 0;
}

.post-type-archive-product .woocommerce-ordering select,
.tax-product_cat .woocommerce-ordering select {
    padding: 0.5rem 2.25rem 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
    min-width: 150px;
}

.post-type-archive-product .woocommerce-ordering select:focus,
.tax-product_cat .woocommerce-ordering select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,168,255,0.15);
}

/* Filter sidebar widgets */
#shop-filter-sidebar .widget-title {
    margin-bottom: 1rem;
}

/* Price filter slider */
#shop-filter-sidebar .price_slider_wrapper .price_slider {
    background: #e5e7eb;
    border-radius: 4px;
    height: 4px;
    margin-bottom: 1.25rem;
    position: relative;
}

#shop-filter-sidebar .price_slider_wrapper .price_slider .ui-slider-range {
    background: var(--color-primary);
    height: 4px;
    position: absolute;
}

#shop-filter-sidebar .price_slider_wrapper .price_slider .ui-slider-handle {
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    border: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: -6px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    outline: none;
    margin-left: -8px;
}

#shop-filter-sidebar .price_slider_wrapper .price_slider .ui-slider-handle:focus {
    box-shadow: 0 0 0 3px rgba(0,168,255,0.3);
}

#shop-filter-sidebar .price_slider_wrapper .price_slider_amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

#shop-filter-sidebar .price_slider_wrapper .price_slider_amount .price_label {
    font-size: 0.8125rem;
    color: #6b7280;
}

#shop-filter-sidebar .price_slider_wrapper .price_slider_amount .price_label span {
    font-weight: 600;
    color: #374151;
}

#shop-filter-sidebar .price_slider_wrapper .price_slider_amount button,
#shop-filter-sidebar .price_slider_wrapper .price_slider_amount .button {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

#shop-filter-sidebar .price_slider_wrapper .price_slider_amount button:hover,
#shop-filter-sidebar .price_slider_wrapper .price_slider_amount .button:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 2px 8px rgba(0,168,255,0.3);
}

/* Layered nav widget */
#shop-filter-sidebar .widget_layered_nav .woocommerce-widget-layered-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#shop-filter-sidebar .widget_layered_nav .woocommerce-widget-layered-nav-list li {
    padding: 0.375rem 0;
}

#shop-filter-sidebar .widget_layered_nav .woocommerce-widget-layered-nav-list a {
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.15s;
}

#shop-filter-sidebar .widget_layered_nav .woocommerce-widget-layered-nav-list a:hover {
    color: var(--color-primary);
}

#shop-filter-sidebar .widget_layered_nav .woocommerce-widget-layered-nav-list .chosen a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Product category widget */
#shop-filter-sidebar .widget_product_categories .product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

#shop-filter-sidebar .widget_product_categories .product-categories li {
    padding: 0.375rem 0;
}

#shop-filter-sidebar .widget_product_categories .product-categories a {
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.15s;
}

#shop-filter-sidebar .widget_product_categories .product-categories a:hover {
    color: var(--color-primary);
}

#shop-filter-sidebar .widget_product_categories .product-categories .current-cat a {
    color: var(--color-primary);
    font-weight: 600;
}

#shop-filter-sidebar .widget_product_categories .product-categories .count {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-left: 0.25rem;
}

/* Pagination */
.woocommerce-pagination ul.page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.woocommerce-pagination .page-numbers li {
    display: inline-flex;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span.current,
.woocommerce-pagination .page-numbers span.dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.15s;
    text-decoration: none;
}

.woocommerce-pagination .page-numbers a {
    background: #fff;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.woocommerce-pagination .page-numbers a:hover {
    background: #f9fafb;
    color: #111827;
}

.woocommerce-pagination .page-numbers span.current {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,168,255,0.3);
    border: none;
}

.woocommerce-pagination .page-numbers span.dots {
    background: transparent;
    border: none;
    color: #9ca3af;
}

/* Layered nav filter count */
#shop-filter-sidebar .widget_layered_nav_filters ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#shop-filter-sidebar .widget_layered_nav_filters ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.15s;
}

#shop-filter-sidebar .widget_layered_nav_filters ul li a:hover {
    background: var(--color-primary-dark);
}

#shop-filter-sidebar .widget_layered_nav_filters ul li a::before {
    content: "×";
    font-size: 0.875rem;
    line-height: 1;
}
