/* TE Theme - WooCommerce Custom Styles */

/* ── Remove default WC styles ────────────────────────── */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    border-top: 3px solid #8B1A1A; padding: 1rem 1.5rem; margin-bottom: 1.5rem;
    background: #fff; border-radius: 0.75rem; box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.woocommerce-message { border-top-color: #10b981; }
.woocommerce-error { border-top-color: #ef4444; }
.woocommerce-message::before { color: #10b981; }
.woocommerce-info::before { color: #3b82f6; }

/* ── Product page ────────────────────────────────────── */
.single-product .product { padding: 2rem 0; }

.woocommerce div.product .woocommerce-tabs { margin-top: 3rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs { list-style: none; padding: 0; margin: 0; display: flex; gap: 0; border-bottom: 2px solid #f1f5f9; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; background: none; border: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600; color: #64748b; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.3s; text-transform: uppercase; letter-spacing: 0.05em; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #8B1A1A; border-bottom-color: #8B1A1A; }

/* ── Cart page ───────────────────────────────────────── */
.woocommerce table.shop_table { border: 1px solid #f1f5f9; border-radius: 1rem; overflow: hidden; }
.woocommerce table.shop_table th { background: #f8fafc; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; padding: 1rem 1.5rem; }
.woocommerce table.shop_table td { padding: 1.25rem 1.5rem; vertical-align: middle; border-top: 1px solid #f1f5f9; }

/* ── Checkout ────────────────────────────────────────── */
.woocommerce form .form-row label { font-size: 0.8125rem; font-weight: 600; color: #0f172a; margin-bottom: 0.375rem; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 2px solid #e2e8f0; border-radius: 0.75rem; padding: 0.75rem 1rem;
    font-size: 0.875rem; transition: all 0.3s;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #8B1A1A; box-shadow: 0 0 0 3px rgba(139,26,26,0.1); outline: none;
}

/* ── Buttons ─────────────────────────────────────────── */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: #8B1A1A; color: #fff; border: none; border-radius: 0.75rem;
    padding: 0.875rem 2rem; font-size: 0.8125rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer;
    transition: all 0.3s; display: inline-flex; align-items: center; gap: 0.5rem;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: #C62828; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(139,26,26,0.3); }

/* ── Price ────────────────────────────────────────────── */
.woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 1.5rem; color: #8B1A1A; font-weight: 800; }
.woocommerce div.product p.price del, .woocommerce div.product span.price del { color: #a1a1aa; font-size: 1rem; font-weight: 400; }

/* ── Rating ───────────────────────────────────────────── */
.woocommerce .star-rating { font-size: 0.875rem; color: #f59e0b; }
.woocommerce .star-rating::before { color: #e5e7eb; }

/* ── Account pages ───────────────────────────────────── */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1.25rem;
    border-radius: 0.75rem; font-size: 0.875rem; font-weight: 500; color: #334155;
    transition: all 0.3s;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: rgba(139,26,26,0.05); color: #8B1A1A;
}

/* ── Quantity input ──────────────────────────────────── */
.woocommerce .quantity .qty { width: 4rem; text-align: center; border: 2px solid #e2e8f0; border-radius: 0.75rem; padding: 0.5rem; font-weight: 600; }

/* ── Coupon ───────────────────────────────────────────── */
.woocommerce .coupon .input-text { border-radius: 0.75rem 0 0 0.75rem !important; }
.woocommerce .coupon .button { border-radius: 0 0.75rem 0.75rem 0 !important; }

/* ── Pagination ──────────────────────────────────────── */
.woocommerce nav.woocommerce-pagination ul { border: none; }
.woocommerce nav.woocommerce-pagination ul li { border: none; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
    border-radius: 0.75rem; font-weight: 600; font-size: 0.875rem;
    border: 2px solid #e2e8f0; color: #334155; transition: all 0.3s;
}
.woocommerce nav.woocommerce-pagination ul li a:hover { border-color: #8B1A1A; color: #8B1A1A; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: #8B1A1A; border-color: #8B1A1A; color: #fff; }
