/**
 * AnVuTech WooCommerce Styles
 * Minimal custom styles for WooCommerce integration
 */

/* Product Grid */
.woocommerce ul.products {
    @apply grid gap-6 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4;
}

.woocommerce ul.products li.product {
    @apply list-none;
}

/* Cart Table Responsive */
.woocommerce-cart-table__table {
    @apply w-full;
}

.woocommerce-cart-table__table th,
.woocommerce-cart-table__table td {
    @apply px-4 py-3 text-left;
}

.woocommerce-cart-table__table .product-thumbnail img {
    @apply w-16 h-16 object-cover rounded;
}

/* Quantity Input */
.woocommerce .quantity .qty {
    @apply border border-gray-300 rounded px-2 py-1 w-16 text-center;
}

/* Buttons */
.woocommerce .button {
    @apply inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm transition-colors duration-200;
}

.woocommerce .button.alt {
    @apply bg-primary-600 text-white hover:bg-primary-700;
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    @apply p-4 mb-4 rounded-lg;
}

.woocommerce-message {
    @apply bg-green-100 text-green-800 border border-green-200;
}

.woocommerce-info {
    @apply bg-blue-100 text-blue-800 border border-blue-200;
}

.woocommerce-error {
    @apply bg-red-100 text-red-800 border border-red-200;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
    @apply text-sm text-gray-600 mb-4;
}

.woocommerce-breadcrumb a {
    @apply text-primary-600 hover:text-primary-700;
}

/* Pagination */
.woocommerce-pagination {
    @apply flex justify-center mt-8;
}

.woocommerce-pagination .page-numbers {
    @apply px-3 py-2 mx-1 border border-gray-300 rounded hover:bg-gray-100;
}

.woocommerce-pagination .page-numbers.current {
    @apply bg-primary-600 text-white border-primary-600;
}

/* Single Product */
.woocommerce div.product {
    @apply grid grid-cols-1 lg:grid-cols-2 gap-8;
}

.woocommerce div.product .woocommerce-product-gallery {
    @apply lg:col-span-1;
}

.woocommerce div.product .summary {
    @apply lg:col-span-1;
}

/* Cart Totals */
.cart-collaterals .cart_totals {
    @apply bg-gray-50 dark:bg-gray-700 rounded-lg p-6 max-w-md ml-auto;
}

.cart-collaterals .cart_totals h2 {
    @apply text-xl font-semibold mb-4 text-gray-900 dark:text-white;
}

/* Checkout */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3 {
    @apply text-lg font-semibold mb-4 text-gray-900 dark:text-white;
}

.woocommerce-checkout .form-row {
    @apply mb-4;
}

.woocommerce-checkout .form-row label {
    @apply block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1;
}

.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    @apply w-full border border-gray-300 dark:border-gray-600 rounded-lg px-3 py-2 bg-white dark:bg-gray-800 text-gray-900 dark:text-white;
}

/* Order Review */
.woocommerce-checkout-review-order-table {
    @apply w-full bg-gray-50 dark:bg-gray-700 rounded-lg;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    @apply px-4 py-3 text-left border-b border-gray-200 dark:border-gray-600 last:border-b-0;
}

/* Payment Methods */
.woocommerce-checkout #payment {
    @apply mt-6 bg-white dark:bg-gray-800 rounded-lg p-6 border border-gray-200 dark:border-gray-700;
}

.woocommerce-checkout #payment .payment_methods {
    @apply space-y-3;
}

.woocommerce-checkout #payment .payment_method_cod {
    @apply p-3 border border-gray-200 dark:border-gray-600 rounded;
}