/* Additional WooCommerce styling overrides */

/* Cart page */
.woocommerce-cart .woocommerce table.shop_table {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.woocommerce-cart .woocommerce table.shop_table th {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
}

.woocommerce-cart .woocommerce table.shop_table td {
    padding: 16px;
    vertical-align: middle;
}

/* Checkout page */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-family: var(--font-primary);
    transition: border-color 0.2s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

.woocommerce form .form-row label {
    font-weight: 600;
    color: var(--color-text);
}

/* Order review */
.woocommerce-checkout-review-order-table {
    border-radius: var(--radius) !important;
    overflow: hidden;
}

/* Payment methods */
.woocommerce-checkout .wc_payment_methods {
    border-radius: var(--radius) !important;
    padding: 20px !important;
    background: var(--color-bg) !important;
}

/* Thank you page */
.woocommerce-thankyou-order-received {
    background: #dcfce7;
    color: var(--color-success);
    padding: 16px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    margin-bottom: 24px;
}

/* My account */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius);
    color: var(--color-text);
    font-weight: 500;
    transition: background 0.2s;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Pagination */
.page-numbers {
    display: inline-flex;
    list-style: none;
    gap: 4px;
    padding: 0;
}

.page-numbers li .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.page-numbers li .page-numbers:hover,
.page-numbers li .page-numbers.current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.page-numbers li .page-numbers.prev,
.page-numbers li .page-numbers.next {
    width: auto;
    padding: 0 16px;
}

/* WooCommerce notices */
.woocommerce-notices-wrapper .woocommerce-message {
    background: #dcfce7;
    border: none;
    border-left: 4px solid var(--color-success);
    border-radius: var(--radius);
    padding: 12px 16px;
}

/* Order by dropdown */
.woocommerce .woocommerce-ordering select {
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    background: var(--color-bg-white);
}

/* Loading state for buttons */
.btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Search results */
.search-results .products-grid {
    margin-top: 20px;
}

.search-results .section-title h2 {
    text-align: left;
}
