/* ============================================================
   woocommerce.css — WooCommerce Minimalist Styling
   ============================================================ */

/* ── Global WooCommerce Overrides ────────────────────────── */
body.woocommerce,
body.woocommerce-page {
    font-family: var(--font-body, sans-serif);
    color: var(--text-dark, #1f2937);
}

/* ── Store Notices (Messages/Errors) ───────────────────────── */
.woocommerce-message, 
.woocommerce-info, 
.woocommerce-error, 
.woocommerce-noreviews, 
p.no-comments {
    background-color: #f8fafc;
    border: none;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--primary, #009698);
}
.woocommerce-error {
    border-left-color: #ef4444;
}
.woocommerce-info {
    border-left-color: #3b82f6;
}
.woocommerce-message::before, 
.woocommerce-info::before, 
.woocommerce-error::before {
    display: none; /* Remove default icon */
}

/* ── Cart Page ───────────────────────────────────────────── */
.woocommerce table.shop_table {
    border: none;
    border-radius: 12px;
    margin: 0 -1px 24px 0;
    text-align: left;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    background: #fff;
    overflow: hidden;
}

.woocommerce table.shop_table th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    border: none;
}

.woocommerce table.shop_table td {
    padding: 1.5rem;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.woocommerce table.shop_table tr:last-child td {
    border-bottom: none;
}

/* Remove Image border */
.woocommerce table.cart img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: 80px;
}

/* Product title link */
.woocommerce table.cart td.product-name a {
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}
.woocommerce table.cart td.product-name a:hover {
    color: var(--primary, #009698);
}

/* Quantity Input */
.woocommerce .quantity .qty {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem;
    width: 60px;
    text-align: center;
    background: #f8fafc;
    font-weight: 500;
}
.woocommerce .quantity .qty:focus {
    outline: none;
    border-color: var(--primary, #009698);
    background: #fff;
}

/* Buttons */
.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button {
    background-color: var(--primary, #009698);
    color: #fff;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}
.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover {
    background-color: var(--secondary, #001f20);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 150, 152, 0.3);
}

/* Remove button */
.woocommerce a.remove {
    color: #ef4444 !important;
    background: transparent !important;
    font-weight: 400;
    font-size: 1.5rem;
}
.woocommerce a.remove:hover {
    color: #dc2626 !important;
    background: #fee2e2 !important;
}

/* Cart Totals */
.woocommerce .cart-collaterals .cart_totals, 
.woocommerce-page .cart-collaterals .cart_totals {
    width: 100%;
    max-width: 400px;
    float: right;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.woocommerce .cart-collaterals .cart_totals h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.woocommerce .cart-collaterals .cart_totals table {
    width: 100%;
    margin-bottom: 2rem;
}
.woocommerce .cart-collaterals .cart_totals table th, 
.woocommerce .cart-collaterals .cart_totals table td {
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f1f5f9;
}
.woocommerce .cart-collaterals .cart_totals table tr.order-total th, 
.woocommerce .cart-collaterals .cart_totals table tr.order-total td {
    border-bottom: none;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ── Checkout Page ───────────────────────────────────────── */
.woocommerce-checkout .col2-set {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 992px) {
    .woocommerce-checkout {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 3rem;
    }
    .woocommerce-checkout .col2-set {
        width: 100%;
        float: none;
    }
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        width: 100%;
        float: none;
    }
}

.woocommerce form .form-row {
    padding: 0;
    margin: 0 0 1.5rem;
}
.woocommerce form .form-row label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
    display: block;
}
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.woocommerce form .form-row input.input-text:focus, 
.woocommerce form .form-row textarea:focus {
    background-color: #fff;
    border-color: var(--primary, #009698);
    box-shadow: 0 0 0 3px rgba(0, 150, 152, 0.1);
    outline: none;
}
.woocommerce-checkout h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

/* Order Review Box */
.woocommerce-checkout #order_review {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.woocommerce table.shop_table.woocommerce-checkout-review-order-table th,
.woocommerce table.shop_table.woocommerce-checkout-review-order-table td {
    padding: 1rem 0;
}
.woocommerce table.shop_table.woocommerce-checkout-review-order-table th.product-name {
    text-align: left;
}
.woocommerce table.shop_table.woocommerce-checkout-review-order-table td.product-total {
    text-align: right;
}

/* Payment Methods Box */
.woocommerce-checkout #payment {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}
.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
}
.woocommerce-checkout #payment div.payment_box {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 1rem;
    margin-top: 0.5rem;
}
.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: #e2e8f0;
}
.woocommerce-checkout #payment .place-order {
    padding: 1.5rem 0 0;
}
.woocommerce-checkout #payment .place-order .button {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
}
