/**
 * WooCommerce Styling for EIZO Professional Theme
 * Add this to your style.css or keep as separate file
 */

/* ========================================
   WOOCOMMERCE MAIN STYLES
   ======================================== */

.woocommerce,
.woocommerce-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 32px;
    padding: 24px;
    transition: all 0.25s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02), 0 6px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(136, 192, 208, 0.3);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(163, 190, 140, 0.5);
    box-shadow: 0 20px 30px -12px rgba(46, 54, 64, 0.1);
}

.product-image {
    margin-bottom: 16px;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.product-image a {
    display: block;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 16px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-title {
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2E3A44;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.product-title a:hover {
    color: rgb(191, 97, 106);
}

.product-rating {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-rating {
    color: rgb(235, 203, 139);
}

.woocommerce .star-rating span::before {
    color: rgb(235, 203, 139);
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgb(191, 97, 106);
}

/* Product Variations */
.woocommerce .single-product .product-short-description,
.woocommerce .product-short-description {
    color: #3c4a55;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ========================================
   BUTTONS & FORMS
   ======================================== */

.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: rgb(191, 97, 106);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-shadow: 0 10px 18px -8px rgba(191, 97, 106, 0.4);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background-color: rgb(172, 78, 87);
    transform: scale(1.02);
    box-shadow: 0 18px 24px -10px rgba(191, 97, 106, 0.5);
}

.woocommerce button.button:active,
.woocommerce input.button:active,
.woocommerce #respond input#submit:active {
    transform: scale(0.98);
}

.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
    background-color: rgb(191, 97, 106);
}

/* Add to Cart Button in Grid */
.woocommerce ul.products li.product .button {
    width: auto;
    padding: 8px 16px;
    font-size: 0.95rem;
}

/* Single Product Page Button */
.woocommerce .single_add_to_cart_button {
    width: 100%;
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ========================================
   FORMS
   ======================================== */

.woocommerce form .form-row input,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background-color: white;
    color: #2E3A44;
    transition: all 0.25s ease;
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
    outline: none;
    border-color: rgb(191, 97, 106);
    box-shadow: 0 0 0 3px rgba(191, 97, 106, 0.1);
}

.woocommerce form .form-row label {
    color: #2E3A44;
    font-weight: 500;
}

.woocommerce form .form-row.form-row-wide {
    flex: 1 1 100%;
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
    flex: 1 1 48%;
}

/* ========================================
   NOTICES & MESSAGES
   ======================================== */

.woocommerce .woocommerce-notices-wrapper {
    margin-bottom: 24px;
}


.woocommerce-message,
.woocommerce-notice {
    display: flex;
    align-items: center;
    margin-left: 12px;
    padding: 12px 16px;
    background: rgba(163, 190, 140, 0.1);
    border-left: 4px solid rgb(163, 190, 140);
    border-radius: 4px;
    margin-bottom: 16px;
}

.woocommerce-message::before,
.woocommerce-notice::before {
display: none;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    display: flex !important;
    align-items: flex-start !important;
    margin-left: 12px;
    margin-right: 12px;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    background-color: rgba(163, 190, 140, 0.1);
    border-left: 4px solid rgb(163, 190, 140);
    color: #2E3A44;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.woocommerce-error {
    background-color: rgba(191, 97, 106, 0.1);
    border-left-color: rgb(191, 97, 106);
}

.woocommerce-info {
    background-color: rgba(136, 192, 208, 0.1);
    border-left-color: rgb(136, 192, 208);
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.woocommerce-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 24px;
    color: #888;
}

.woocommerce-breadcrumb a {
    color: rgb(191, 97, 106);
}

/* ========================================
   CART & CHECKOUT
   ======================================== */

.woocommerce-cart table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.woocommerce-cart table th {
    background-color: rgba(191, 97, 106, 0.1);
    color: #2E3A44;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.woocommerce-cart table td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.woocommerce-cart table tr:nth-child(even) {
    background-color: rgba(232, 235, 229, 0.5);
}

.quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity input.qty {
    width: 60px;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.quantity .qty {
    border-radius: 8px;
}

/* Coupon Form */
.woocommerce-checkout .woocommerce-form-coupon {
    background-color: rgba(235, 203, 139, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.woocommerce-checkout .woocommerce-form-coupon input[type="text"] {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px;
}

/* Checkout Tables */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.woocommerce-checkout-review-order-table th {
    background-color: rgba(191, 97, 106, 0.05);
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.woocommerce-checkout-review-order-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========================================
   SINGLE PRODUCT
   ======================================== */

.woocommerce .single-product {
    margin-bottom: 40px;
}

.woocommerce .single-product .product {
    background: none;
    border: none;
    box-shadow: none;
}

.woocommerce div.product .product_title {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #2E3A44;
}

.woocommerce .product_meta {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========================================
   REVIEWS & RATINGS
   ======================================== */

.woocommerce .comment {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.woocommerce .comment_container {
    background: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.woocommerce .review {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

.woocommerce #reviews h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.woocommerce #respond {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}

/* ========================================
   PAGINATION
   ======================================== */

.woocommerce nav.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul li {
    display: inline-block;
    margin: 0 4px;
}

.woocommerce nav.woocommerce-pagination a,
.woocommerce nav.woocommerce-pagination span {
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: rgb(191, 97, 106);
    transition: all 0.25s ease;
}

.woocommerce nav.woocommerce-pagination a:hover {
    background-color: rgb(191, 97, 106);
    color: white;
}

.woocommerce nav.woocommerce-pagination span.page-numbers.current {
    background-color: rgb(191, 97, 106);
    color: white;
    border-color: rgb(191, 97, 106);
}

/* ========================================
   WIDGETS
   ======================================== */

.woocommerce.widget_shopping_cart {
    margin-bottom: 24px;
}

.woocommerce .product_list_widget li img {
    width: 50px;
    height: auto;
    border-radius: 8px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .woocommerce .single_add_to_cart_button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .woocommerce-checkout-review-order-table {
        font-size: 0.95rem;
    }

    .woocommerce-checkout-review-order-table td,
    .woocommerce-checkout-review-order-table th {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 16px;
    }

    .product-title {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .quantity input.qty {
        width: 50px;
    }
}

/* Hide sidebar on mobile */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    /* Make main content full width */
    .woocommerce > div:first-child > div:first-child {
        flex: 1 1 100%;
    }
}
