/**
 * Hoosier Open — WooCommerce skin
 *
 * Self-contained dark/gold styling for WooCommerce's standard markup. Enqueued
 * only on store pages (see inc/woocommerce.php). Intentionally does NOT depend on
 * the Tailwind build pipeline so it renders correctly even if the React bundle is
 * absent. Scoped under .hot-woo (the wrapper in woocommerce.php) wherever possible
 * to avoid leaking into the rest of the site.
 *
 * Palette: gold #E6B938 / hover #F2CF6B, black #0A0A0A, panel rgba(255,255,255,.04)
 */

:root {
    --hot-gold: #E6B938;
    --hot-gold-hi: #F2CF6B;
    --hot-red: #E10600;
    --hot-ink: #0A0A0A;
    --hot-panel: rgba(255, 255, 255, 0.04);
    --hot-line: rgba(255, 255, 255, 0.10);
    --hot-text: #FFFFFF;
    --hot-muted: rgba(255, 255, 255, 0.62);
}

.hot-woo {
    color: var(--hot-text);
}

.hot-woo a {
    color: var(--hot-gold);
}

.hot-woo a:hover {
    color: var(--hot-gold-hi);
}

/* ---------- Page / section headings ---------- */
.hot-woo .woocommerce-products-header,
.hot-woo h1.entry-title,
.hot-woo .woocommerce-loop-product__title,
.hot-woo .product_title {
    color: var(--hot-text);
    font-family: Oswald, Impact, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.hot-woo .woocommerce-products-header__title.page-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 0.5rem;
}

.hot-woo .term-description,
.hot-woo .woocommerce-result-count {
    color: var(--hot-muted);
}

/* ---------- Buttons ---------- */
.hot-woo .button,
.hot-woo a.button,
.hot-woo button.button,
.hot-woo .woocommerce-message .button,
.hot-woo input[type="submit"],
.hot-woo #place_order,
.hot-woo .wc-block-components-button,
.hot-woo .added_to_cart {
    background: var(--hot-gold) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 0.7rem 1.4rem !important;
    line-height: 1.2 !important;
    transition: background-color 0.15s ease, transform 0.05s ease !important;
    cursor: pointer;
}

.hot-woo .button:hover,
.hot-woo a.button:hover,
.hot-woo button.button:hover,
.hot-woo input[type="submit"]:hover,
.hot-woo #place_order:hover,
.hot-woo .added_to_cart:hover {
    background: var(--hot-gold-hi) !important;
    color: #000 !important;
}

.hot-woo .button:active,
.hot-woo button.button:active {
    transform: translateY(1px);
}

/* Secondary / outline button (e.g. "Continue shopping", "Update cart") */
.hot-woo .button.wc-backward,
.hot-woo button[name="update_cart"] {
    background: transparent !important;
    color: var(--hot-text) !important;
    border: 1px solid var(--hot-line) !important;
}

.hot-woo .button.wc-backward:hover,
.hot-woo button[name="update_cart"]:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--hot-text) !important;
}

/* ---------- Product grid (shop / [products]) ---------- */
.hot-woo ul.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .hot-woo ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hot-woo ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    border: 1px solid var(--hot-line);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    padding: 1rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.hot-woo ul.products li.product:hover {
    border-color: rgba(230, 185, 56, 0.45);
    transform: translateY(-3px);
}

.hot-woo ul.products li.product a img {
    border-radius: 0.65rem;
    margin-bottom: 0.85rem;
}

.hot-woo ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.05rem;
    padding: 0;
    color: var(--hot-text);
}

.hot-woo ul.products li.product .price {
    color: var(--hot-gold) !important;
    font-weight: 800;
    font-size: 1.05rem;
}

.hot-woo .price del {
    color: var(--hot-muted) !important;
    opacity: 0.7;
    font-weight: 500;
}

.hot-woo .price ins {
    text-decoration: none;
}

/* Sale flash */
.hot-woo span.onsale {
    background: var(--hot-red);
    color: #fff;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    min-height: auto;
    min-width: auto;
    padding: 0.3rem 0.7rem;
    line-height: 1;
}

/* ---------- Single product ---------- */
.hot-woo .single-product div.product .product_title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 0.4rem;
}

.hot-woo .single-product div.product p.price,
.hot-woo .single-product div.product span.price {
    color: var(--hot-gold) !important;
    font-size: 1.5rem;
    font-weight: 800;
}

.hot-woo .woocommerce-product-details__short-description,
.hot-woo .single-product .woocommerce-Tabs-panel,
.hot-woo .single-product .product_meta {
    color: var(--hot-muted);
}

.hot-woo .single-product .quantity .qty {
    background: #fff;
    color: #000;
    border: 1px solid #d1d5db;
    border-radius: 0.4rem;
    padding: 0.5rem;
}

/* Tabs */
.hot-woo .woocommerce-tabs ul.tabs li {
    background: var(--hot-panel);
    border: 1px solid var(--hot-line);
    border-radius: 999px;
}

.hot-woo .woocommerce-tabs ul.tabs li.active {
    background: rgba(230, 185, 56, 0.14);
    border-color: rgba(230, 185, 56, 0.4);
}

.hot-woo .woocommerce-tabs ul.tabs li a {
    color: var(--hot-text);
}

.hot-woo .woocommerce-tabs ul.tabs::before {
    border-bottom-color: var(--hot-line);
}

/* ---------- Cart & checkout tables ---------- */
.hot-woo table.shop_table,
.hot-woo .cart-collaterals .cart_totals table {
    border-color: var(--hot-line);
    background: var(--hot-panel);
    border-radius: 0.75rem;
    overflow: hidden;
}

.hot-woo table.shop_table th,
.hot-woo table.shop_table td {
    border-color: var(--hot-line) !important;
    color: var(--hot-text);
}

.hot-woo table.shop_table thead th {
    color: var(--hot-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.hot-woo .cart_totals h2,
.hot-woo #order_review_heading,
.hot-woo .woocommerce-checkout h3 {
    color: var(--hot-text);
    font-family: Oswald, Impact, sans-serif;
    text-transform: uppercase;
}

/* ---------- Form fields (checkout / account / coupon) ---------- */
.hot-woo .woocommerce form .form-row input.input-text,
.hot-woo .woocommerce form .form-row textarea,
.hot-woo form .form-row input.input-text,
.hot-woo form .form-row textarea,
.hot-woo .select2-container--default .select2-selection--single,
.hot-woo input[type="text"],
.hot-woo input[type="email"],
.hot-woo input[type="tel"],
.hot-woo input[type="password"],
.hot-woo input[type="number"],
.hot-woo select,
.hot-woo textarea {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.45rem !important;
    padding: 0.6rem 0.7rem !important;
}

.hot-woo label,
.hot-woo .woocommerce-form__label,
.hot-woo .woocommerce-billing-fields label,
.hot-woo .woocommerce-shipping-fields label {
    color: var(--hot-text);
    font-weight: 600;
}

.hot-woo ::placeholder {
    color: rgba(0, 0, 0, 0.45) !important;
}

/* ---------- Notices ---------- */
.hot-woo .woocommerce-message,
.hot-woo .woocommerce-info,
.hot-woo .woocommerce-error,
.hot-woo .wc-block-components-notice-banner {
    border-radius: 0.65rem;
    border-top: none;
    background: var(--hot-panel);
    color: var(--hot-text);
}

.hot-woo .woocommerce-message {
    border-left: 4px solid var(--hot-gold);
}

.hot-woo .woocommerce-info {
    border-left: 4px solid var(--hot-gold);
}

.hot-woo .woocommerce-error {
    border-left: 4px solid var(--hot-red);
    list-style: none;
}

/* ---------- Pagination ---------- */
.hot-woo .woocommerce-pagination ul.page-numbers li a,
.hot-woo .woocommerce-pagination ul.page-numbers li span {
    background: var(--hot-panel);
    color: var(--hot-text);
    border-color: var(--hot-line);
}

.hot-woo .woocommerce-pagination ul.page-numbers li span.current {
    background: var(--hot-gold);
    color: #000;
}

/* ---------- Header cart badge (rendered in header.php) ---------- */
.hot-cart-link {
    position: relative;
}

.hot-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--hot-gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.hot-cart-count--empty {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
