/* ============================================================
   Halal Food Fest – WooCommerce Theme Integration
   Matches theme palette: orange #FC9A1D, dark teal #014d4b
   ============================================================ */

/* ── Merch banner fallback (no background image needed) ──── */
.page-template-merch-page .merch-banner {
    background-color: #014d4b;
    background-image: none;
}
.page-template-merch-page .merch-banner .banner-title h1 {
    color: #fff;
}

/* ── Merch grid cards ─────────────────────────────────────── */
.merch-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(1, 77, 75, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.merch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(1, 77, 75, 0.18);
}
.merch-card__img-wrap {
    display: block;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1 / 1;
}
.merch-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.merch-card:hover .merch-card__img {
    transform: scale(1.05);
}
.merch-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}
.merch-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #022539;
}
.merch-card__title a {
    color: #022539;
    text-decoration: none;
}
.merch-card__title a:hover {
    color: #FC9A1D;
}
.merch-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #014d4b;
    margin-top: auto;
}
.merch-card__price .woocommerce-Price-amount {
    color: #014d4b;
}
.merch-card__btn {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
    padding: 8px 20px;
}

/* ── Non-profit note ──────────────────────────────────────── */
.merch-nonprofit-note {
    font-size: 0.9rem;
    color: #014d4b;
    font-style: italic;
    margin-top: 10px;
}

/* ── WooCommerce global overrides ────────────────────────── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .cart .button,
.woocommerce .cart input.button {
    background-color: #FC9A1D;
    color: #022539;
    border-radius: 40px;
    text-transform: uppercase;
    font-weight: 600;
    border: 1px solid transparent;
    transition: 0.4s ease all;
    box-shadow: 10px 10px 30px rgba(252, 154, 29, 0.25);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background-color: #FCF2F1;
    color: #022539;
    border-color: #FC9A1D;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
    background-color: #014d4b;
    color: #fff;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background-color: #022539;
    color: #fff;
}

/* ── Product single page ─────────────────────────────────── */
.woocommerce div.product .product_title {
    color: #022539;
    font-weight: 700;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #014d4b;
    font-size: 1.4rem;
    font-weight: 700;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #FC9A1D;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom-color: #FC9A1D;
}

/* ── Cart & Checkout ─────────────────────────────────────── */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order {
    background-color: #FC9A1D;
    color: #022539;
    border-radius: 40px;
    text-transform: uppercase;
    font-weight: 700;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #payment #place_order:hover {
    background-color: #014d4b;
    color: #fff;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border-radius: 6px;
    border: 1px solid #ddd;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #FC9A1D;
    outline: none;
    box-shadow: 0 0 0 2px rgba(252, 154, 29, 0.2);
}

/* ── Notices ─────────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-info {
    border-top-color: #FC9A1D;
}
.woocommerce-message::before,
.woocommerce-info::before {
    color: #FC9A1D;
}
.woocommerce-error {
    border-top-color: #c0392b;
}

/* ── Star ratings ────────────────────────────────────────── */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
    color: #FC9A1D;
}

/* ── Sale badge ──────────────────────────────────────────── */
.woocommerce span.onsale {
    background-color: #FC9A1D;
    color: #022539;
    border-radius: 40px;
    font-weight: 700;
}
