
/*
Theme Name: Mahhalcom Flatsome Child
Description: Custom child theme overrides for Mahhalcom.
Author: Mahhalcom
Template: flatsome
Version: 1.0.0
Text Domain: mahhalcom
*/

/* Mahhalcom Branded Footer Styles */
.mh-footer-wrapper {
    background-color: #0d2137;
    color: #ffffff;
    font-family: sans-serif;
}

.mh-footer-wrapper a {
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mh-footer-wrapper h4, 
.mh-footer-wrapper h5 {
    color: #d4943a; /* Gold/Orange */
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Row 1: Service Features */
.mh-footer-features {
    background-color: #162e47; /* Lighter background */
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mh-footer-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: center;
}

.mh-footer-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mh-footer-feature-icon i {
    font-size: 24px;
    color: #d4943a;
    transition: transform 0.3s ease;
}

.mh-footer-feature-item:hover .mh-footer-feature-icon i {
    transform: scale(1.2) rotate(5deg);
}

.mh-footer-feature-text strong {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
}

.mh-footer-feature-text span {
    font-size: 12px;
    opacity: 0.8;
}

/* Row 2: Main Footer */
.mh-footer-main {
    padding: 60px 0;
}

.mh-footer-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.mh-footer-office-label {
    margin-bottom: 15px;
}

.mh-footer-office-label strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
}

.mh-footer-office-label span {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    font-style: italic;
}

.mh-footer-address p {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.6;
}

.mh-footer-map-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #d4943a !important;
}

.mh-footer-map-link:hover {
    text-decoration: underline;
}

.mh-footer-contact-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mh-footer-contact-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
}

.mh-footer-contact-list a i {
    color: #25d366; /* WhatsApp Green */
    font-size: 18px;
}

.mh-footer-vision {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mh-footer-vision p {
    margin: 0;
    font-size: 13px;
    color: #d4943a;
    font-weight: 600;
    line-height: 1.4;
}

/* Links Columns */
.mh-footer-col-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mh-footer-col-links ul li {
    margin-bottom: 10px;
}

.mh-footer-col-links ul li a {
    font-size: 14px;
    opacity: 0.8;
}

.mh-footer-col-links ul li a:hover {
    opacity: 1;
    padding-left: 5px;
    color: #d4943a;
}

/* App & Social Column */
.mh-footer-app-heading, 
.mh-footer-app-subheading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.mh-footer-app-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.mh-app-btn img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.mh-app-btn:hover img {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.mh-footer-social-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 240px;
}

.mh-footer-social-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 16px;
}

.mh-footer-social-grid a:hover {
    transform: scale(1.15);
    color: #fff;
}

/* Social Brand Colors on Hover */
.mh-social-fb:hover { background-color: #1877f2 !important; }
.mh-social-ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important; }
.mh-social-wa:hover { background-color: #25d366 !important; }
.mh-social-yt:hover { background-color: #ff0000 !important; }
.mh-social-th:hover { background-color: #000000 !important; }
.mh-social-tk:hover { background-color: #000000 !important; }
.mh-social-sc:hover { background-color: #fffc00 !important; color: #000 !important; }
.mh-social-fl:hover { background-color: #ff0084 !important; }
.mh-social-tu:hover { background-color: #35465c !important; }
.mh-social-x:hover { background-color: #000000 !important; }
.mh-social-pi:hover { background-color: #bd081c !important; }
.mh-social-li:hover { background-color: #0077b5 !important; }

/* Row 3: Bottom Bar */
.mh-footer-bottom-bar {
    background-color: #0a1a2b; /* Darker */
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.mh-footer-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    align-items: center;
    gap: 30px;
}

.mh-footer-badge-stack {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mh-footer-verify-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mh-footer-verify-link:hover {
    transform: translateY(-3px) scale(1.03);
}

.mh-footer-badge-image {
    height: 60px;
    width: auto;
}

.mh-footer-qr-image {
    height: 60px;
    width: auto;
}

.mh-footer-sectigo-label, 
.mh-footer-payment-label {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.7;
}

.mh-footer-sectigo-image-wrap img {
    max-width: 130px;
    width: 100%;
    height: auto;
    display: block;
}

.mh-footer-payment-image-wrap img {
    max-width: 100%;
    height: auto;
}

/* Row 4: Copyright */
.mh-footer-copyright {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 991px) {
    .mh-footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mh-footer-bottom-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .mh-footer-badge-stack {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .mh-footer-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mh-footer-main-grid {
        grid-template-columns: 1fr;
    }
}
/* --- PHASE 2: INTERACTIVE HOVER EFFECTS & MICRO-ANIMATIONS --- */

/* --- PHASE 2: INTERACTIVE HOVER EFFECTS & MICRO-ANIMATIONS --- */

/* Smooth transitions for all interactive elements */
a, button, .button, .icon, .flickity-button, .product-small, .category-box, .social-icons a {
    transition: all 0.3s ease !important;
}

/* Product cards: scale up slightly on hover */
.product-small.col:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Category tiles: scale + shadow on hover */
.category-box:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* All buttons: press effect (scale down slightly on click) */
button:active, .button:active, input[type="submit"]:active {
    transform: scale(0.95) !important;
}

/* Social icons: scale(1.15) + brand color on hover (already partially in style.css, but ensuring consistency) */
.social-icons a:hover {
    transform: scale(1.15) !important;
}

/* Navigation links: smooth color transitions */
.nav > li > a {
    transition: color 0.3s ease, background-color 0.3s ease !important;
}

/* Micro-animations: Icons scale/bounce on interaction */
.icon:hover i, .button:hover i, a:hover i {
    animation: mh-bounce 0.5s ease-in-out;
}

@keyframes mh-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* --- PHASE 3: PRODUCT CARDS UPGRADE --- */

/* Discount badge with gradient (orange to red) */
.badge-inner.on-sale {
    background: linear-gradient(135deg, #ff5722, #e91e63) !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Hidden hover actions on product image (wishlist, quick view, add to cart) */
/* Flatsome usually has these, but we'll style them to match the reference */
.product-small .box-image .image-tools {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}

.product-small:hover .box-image .image-tools {
    opacity: 1;
    transform: translateY(0);
}

/* "Quick Add" button overlay on hover */
/* Assuming Flatsome's add to cart button in grid */
.add-to-cart-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
}

.product-small:hover .add-to-cart-grid {
    opacity: 1;
}

/* Category label above product title */
.product-small .category {
    font-size: 0.8em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 2px;
    display: block;
    color: #666;
}

/* Price styling: Current price + strikethrough old price + savings text */
.price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.price ins {
    color: #e91e63;
    font-weight: 700;
    text-decoration: none;
}

.price del {
    font-size: 0.9em;
    opacity: 0.6;
}

/* Rating stars footer */
.star-rating {
    margin-top: 5px;
    font-size: 0.85em;
}

/* --- PHASE 5: TYPOGRAPHY & COLOR SCHEME --- */

/* Cairo font for Arabic text */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Poppins:wght@400;600;700&display=swap');

:lang(ar), [dir="rtl"] {
    font-family: 'Cairo', sans-serif !important;
}

/* Poppins font for prices, counters, micro-labels */
.price, .badge, .cart-count, .wishlist-count, .label-new, .label-hot {
    font-family: 'Poppins', sans-serif !important;
}

/* Color scheme refinements */
:root {
    --primary-orange: hsl(28, 86%, 59%);
    --secondary-yellow: hsl(45, 100%, 51%);
    --dark-teal: #0f2936;
}

/* Primary color overrides */
.primary-color, .button.primary, .is-outline.primary:hover, .badge-inner.on-sale {
    background-color: var(--primary-orange) !important;
}

.header-main {
    background-color: var(--dark-teal) !important;
}

/* Warm promotional gradients */
.mega-gradient {
    background: linear-gradient(135deg, #ff5722, #e91e63) !important;
}

/* === Smaller Slider === */
.slider-wrapper,
.banner-slider,
.flickity-viewport,
.slider .flickity-viewport {
    max-height: 350px !important;
}
.slider .flickity-viewport img,
.banner-slider img {
    max-height: 350px !important;
    object-fit: cover !important;
}
@media (max-width: 768px) {
    .slider-wrapper,
    .banner-slider,
    .flickity-viewport,
    .slider .flickity-viewport {
        max-height: 220px !important;
    }
}


/* === Mahhalcom premium WooCommerce product cards === */
:root {
    --mh-accent: #d4943a;
    --mh-accent-dark: #bc7d27;
    --mh-accent-soft: #f5e3c3;
    --mh-success: #2ca24f;
    --mh-success-dark: #1e7a39;
    --mh-danger: #c6652a;
    --mh-danger-dark: #a44e1d;
    --mh-card-border: rgba(15, 41, 54, 0.08);
    --mh-card-shadow: 0 12px 30px rgba(15, 41, 54, 0.08);
    --mh-card-shadow-hover: 0 22px 48px rgba(15, 41, 54, 0.16);
    --mh-text: #183142;
    --mh-text-soft: rgba(24, 49, 66, 0.68);
    --mh-surface: #ffffff;
}

.woocommerce ul.products li.product .box,
.woocommerce-page ul.products li.product .box,
.product-small .box,
.product-small.box,
.product-small.col .col-inner {
    background: var(--mh-surface);
    border: 1px solid var(--mh-card-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--mh-card-shadow);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    will-change: transform, box-shadow;
}

.woocommerce ul.products li.product:hover .box,
.woocommerce-page ul.products li.product:hover .box,
.product-small:hover .box,
.product-small.col:hover .col-inner {
    transform: translateY(-8px);
    border-color: rgba(212, 148, 58, 0.22);
    box-shadow: var(--mh-card-shadow-hover);
}

.product-small .box-image,
.product-small .box-image .image-cover,
.product-small .box-image .image-fade_in_back {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%);
}

.product-small .box-image img,
.product-small .box-image .attachment-woocommerce_thumbnail,
.product-small .box-image .attachment-shop_catalog {
    transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .45s ease;
    transform-origin: center center;
    will-change: transform;
}

.product-small:hover .box-image img,
.product-small:hover .box-image .attachment-woocommerce_thumbnail,
.product-small:hover .box-image .attachment-shop_catalog {
    transform: scale(1.07);
    filter: saturate(1.04);
}

.product-small .box-text {
    padding: 18px 18px 20px;
}

.product-small .category {
    display: inline-flex;
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mh-text-soft);
}

.product-small .name,
.product-small .woocommerce-loop-product__title,
.product-small .product-title {
    color: var(--mh-text);
    font-weight: 700;
    line-height: 1.45;
    min-height: 48px;
    transition: color .3s ease;
}

.product-small:hover .name,
.product-small:hover .woocommerce-loop-product__title,
.product-small:hover .product-title {
    color: var(--mh-accent-dark);
}

.product-small .price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-top: 10px;
    transition: color .3s ease, transform .3s ease;
}

.product-small .price ins,
.product-small .price > .amount,
.product-small .price .woocommerce-Price-amount {
    color: var(--mh-text);
    font-weight: 800;
}

.product-small .price del,
.product-small .price del .woocommerce-Price-amount {
    color: rgba(24, 49, 66, 0.45);
    font-weight: 600;
}

.product-small:hover .price ins,
.product-small:hover .price > .amount,
.product-small:hover .price .woocommerce-Price-amount {
    color: var(--mh-accent-dark);
}

.product-small .star-rating {
    margin-top: 10px;
    font-size: 14px;
    color: #f4b400;
    transition: filter .3s ease, transform .3s ease;
}

.product-small:hover .star-rating {
    filter: drop-shadow(0 0 8px rgba(244, 180, 0, 0.35));
    transform: translateY(-1px);
}

.product-small .box-image .image-tools,
.product-small .image-tools {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .3s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
}

.product-small:hover .box-image .image-tools,
.product-small:hover .image-tools {
    opacity: 1;
    transform: translateY(0);
}

.product-small .image-tools a,
.product-small .image-tools .icon,
.product-small .image-tools .button,
.product-small .image-tools > * {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--mh-text);
    border: 1px solid rgba(24, 49, 66, 0.08);
    box-shadow: 0 14px 28px rgba(15, 41, 54, 0.12);
    transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease, color .28s ease, background .28s ease;
}

.product-small .image-tools a:hover,
.product-small .image-tools .icon:hover,
.product-small .image-tools .button:hover,
.product-small .image-tools > *:hover {
    transform: translateY(-3px) scale(1.06);
    color: var(--mh-accent-dark);
    box-shadow: 0 18px 32px rgba(15, 41, 54, 0.18);
}

.product-small .add-to-cart-grid,
.product-small .add-to-cart-button,
.product-small .box-image .mh-quick-add-button {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 14;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .35s ease, transform .35s ease;
}

.product-small:hover .add-to-cart-grid,
.product-small:hover .add-to-cart-button,
.product-small:hover .box-image .mh-quick-add-button {
    opacity: 1;
    transform: translateY(0);
}

.product-small .add-to-cart-grid .button,
.product-small .add-to-cart-button .button,
.product-small .mh-quick-add-button {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mh-accent) 0%, var(--mh-accent-dark) 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 18px 34px rgba(212, 148, 58, 0.34);
    transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}

.product-small .add-to-cart-grid .button:hover,
.product-small .add-to-cart-button .button:hover,
.product-small .mh-quick-add-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(212, 148, 58, 0.42);
    filter: brightness(1.03);
}

.product-small .mh-quick-add-button .mh-quick-add-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.product-small .mh-quick-add-button .mh-quick-add-button__icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.mh-product-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 16;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.mh-product-badge {
    width: 78px;
    height: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 10px;
    text-align: center;
    color: #fff;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: .01em;
    box-shadow: 0 14px 30px rgba(15, 41, 54, 0.22);
}

.mh-product-badge__line {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .95;
}

.mh-product-badge__value {
    display: block;
    margin-top: 4px;
    font-size: 15px;
}

.mh-product-badge--sale {
    background: linear-gradient(135deg, #e09a3c 0%, #cb6d2a 100%);
    animation: mhSaleBadgePulse 3s ease-in-out infinite;
}

.mh-product-badge--new {
    background: linear-gradient(135deg, var(--mh-success) 0%, var(--mh-success-dark) 100%);
}

.mh-product-badge--stock {
    background: linear-gradient(135deg, #6f7d87 0%, #45525b 100%);
}

@keyframes mhSaleBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 14px 30px rgba(15, 41, 54, 0.22);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 18px 34px rgba(203, 109, 42, 0.28);
    }
}

@media (max-width: 849px) {
    .mh-product-badge {
        width: 68px;
        height: 68px;
    }

    .mh-product-badge__line {
        font-size: 10px;
    }

    .mh-product-badge__value {
        font-size: 13px;
    }

    .product-small .box-text {
        padding: 16px;
    }
}

@media (max-width: 549px) {
    .mh-product-badges {
        top: 10px;
        left: 10px;
        gap: 8px;
    }

    .mh-product-badge {
        width: 62px;
        height: 62px;
        padding: 8px;
    }

    .product-small .box-image .image-tools,
    .product-small .image-tools {
        top: 10px;
        right: 10px;
        gap: 8px;
    }

    .product-small .image-tools a,
    .product-small .image-tools .icon,
    .product-small .image-tools .button,
    .product-small .image-tools > * {
        width: 38px;
        height: 38px;
    }

    .product-small .add-to-cart-grid,
    .product-small .add-to-cart-button,
    .product-small .box-image .mh-quick-add-button {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

/* =========================================================
   Reference-matched WooCommerce product cards
   ========================================================= */
.woocommerce ul.products li.product.product-small,
.woocommerce-page ul.products li.product.product-small,
.woocommerce .product-small,
.woocommerce-page .product-small {
    margin-bottom: 26px;
}

.woocommerce ul.products li.product.product-small .box,
.woocommerce-page ul.products li.product.product-small .box,
.woocommerce .product-small .box,
.woocommerce-page .product-small .box {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.woocommerce ul.products li.product.product-small:hover .box,
.woocommerce-page ul.products li.product.product-small:hover .box,
.woocommerce .product-small:hover .box,
.woocommerce-page .product-small:hover .box {
    transform: translateY(-8px);
    border-color: rgba(212, 148, 58, 0.22);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
}

.woocommerce .product-small .box-image,
.woocommerce-page .product-small .box-image {
    position: relative;
    margin: 0;
    padding: 14px 14px 0;
    border-radius: 18px 18px 0 0;
    overflow: visible;
}

.woocommerce .product-small .box-image .image-cover,
.woocommerce-page .product-small .box-image .image-cover,
.woocommerce .product-small .box-image .image-fade_in_back,
.woocommerce-page .product-small .box-image .image-fade_in_back {
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.woocommerce .product-small .box-image img,
.woocommerce-page .product-small .box-image img {
    transition: transform .6s cubic-bezier(.22,1,.36,1), filter .35s ease;
    transform-origin: center center;
}

.woocommerce .product-small:hover .box-image img,
.woocommerce-page .product-small:hover .box-image img {
    transform: scale(1.045);
}

.woocommerce .product-small .image-tools,
.woocommerce-page .product-small .image-tools {
    display: none !important;
}

.woocommerce .product-small .box-text.box-text-products,
.woocommerce-page .product-small .box-text.box-text-products,
.woocommerce .product-small .box-text,
.woocommerce-page .product-small .box-text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 12px 14px 14px !important;
}

.woocommerce .product-small .category,
.woocommerce-page .product-small .category {
    display: block;
    margin: 0 0 6px;
    color: #8a94a6;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.woocommerce .product-small .name,
.woocommerce .product-small .woocommerce-loop-product__title,
.woocommerce .product-small .product-title,
.woocommerce-page .product-small .name,
.woocommerce-page .product-small .woocommerce-loop-product__title,
.woocommerce-page .product-small .product-title {
    margin: 0 0 10px;
    min-height: 38px;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    transition: color .3s ease;
}

.woocommerce .product-small:hover .name,
.woocommerce .product-small:hover .woocommerce-loop-product__title,
.woocommerce .product-small:hover .product-title,
.woocommerce-page .product-small:hover .name,
.woocommerce-page .product-small:hover .woocommerce-loop-product__title,
.woocommerce-page .product-small:hover .product-title {
    color: #d4943a;
}

.woocommerce .product-small .price,
.woocommerce-page .product-small .price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-top: auto;
    margin-bottom: 0;
    line-height: 1.15;
    transition: color .3s ease;
}

.woocommerce .product-small .price ins,
.woocommerce .product-small .price > .amount,
.woocommerce .product-small .price .woocommerce-Price-amount,
.woocommerce-page .product-small .price ins,
.woocommerce-page .product-small .price > .amount,
.woocommerce-page .product-small .price .woocommerce-Price-amount {
    color: #d4943a !important;
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
    line-height: 1;
}

.woocommerce .product-small .price del,
.woocommerce .product-small .price del .woocommerce-Price-amount,
.woocommerce-page .product-small .price del,
.woocommerce-page .product-small .price del .woocommerce-Price-amount {
    color: #94a3b8 !important;
    font-size: 11px;
    font-weight: 600;
    text-decoration-thickness: 1px;
}

.woocommerce .product-small:hover .price ins,
.woocommerce .product-small:hover .price > .amount,
.woocommerce .product-small:hover .price .woocommerce-Price-amount,
.woocommerce-page .product-small:hover .price ins,
.woocommerce-page .product-small:hover .price > .amount,
.woocommerce-page .product-small:hover .price .woocommerce-Price-amount {
    color: #c27f20 !important;
}

.woocommerce .product-small .mh-price-saving,
.woocommerce-page .product-small .mh-price-saving {
    margin-top: 2px;
    color: #22c55e;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
}

.woocommerce .product-small .star-rating,
.woocommerce-page .product-small .star-rating {
    display: inline-block;
    float: none;
    margin: 10px 0 0;
    color: #facc15;
    font-size: 13px;
    transition: filter .28s ease, transform .28s ease;
}

.woocommerce .product-small:hover .star-rating,
.woocommerce-page .product-small:hover .star-rating {
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.28));
    transform: translateY(-1px);
}

.woocommerce .product-small .star-rating::before,
.woocommerce-page .product-small .star-rating::before,
.woocommerce .product-small .star-rating span::before,
.woocommerce-page .product-small .star-rating span::before {
    color: #facc15;
}

.woocommerce .product-small .box-text > .price + .mh-price-saving,
.woocommerce-page .product-small .box-text > .price + .mh-price-saving {
    order: 3;
}

.woocommerce .product-small .box-text .star-rating,
.woocommerce-page .product-small .box-text .star-rating {
    order: 4;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    width: 100%;
}

.woocommerce .product-small .mh-product-badges,
.woocommerce-page .product-small .mh-product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}

.woocommerce .product-small .mh-product-badge,
.woocommerce-page .product-small .mh-product-badge {
    width: auto;
    min-width: 60px;
    min-height: 30px;
    height: auto;
    padding: 7px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.woocommerce .product-small .mh-product-badge__line,
.woocommerce .product-small .mh-product-badge__value,
.woocommerce-page .product-small .mh-product-badge__line,
.woocommerce-page .product-small .mh-product-badge__value {
    display: inline-block;
    margin: 0;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

.woocommerce .product-small .mh-product-badge--sale,
.woocommerce-page .product-small .mh-product-badge--sale {
    background: #df8f2d;
    animation: mhReferenceBadgePulse 2.8s ease-in-out infinite;
}

.woocommerce .product-small .mh-product-badge--new,
.woocommerce .product-small .mh-product-badge--new-inline,
.woocommerce-page .product-small .mh-product-badge--new,
.woocommerce-page .product-small .mh-product-badge--new-inline {
    background: #22c55e;
}

.woocommerce .product-small .mh-product-badge--stock,
.woocommerce .product-small .mh-product-badge--stock-inline,
.woocommerce-page .product-small .mh-product-badge--stock,
.woocommerce-page .product-small .mh-product-badge--stock-inline {
    background: #64748b;
}

@keyframes mhReferenceBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 12px 24px rgba(223, 143, 45, 0.22);
    }
    50% {
        transform: scale(1.045);
        box-shadow: 0 16px 28px rgba(223, 143, 45, 0.28);
    }
}

.woocommerce .product-small .mh-product-card-tools,
.woocommerce-page .product-small .mh-product-card-tools {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 22;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity .28s ease, transform .36s cubic-bezier(.34,1.56,.64,1);
}

.woocommerce .product-small:hover .mh-product-card-tools,
.woocommerce-page .product-small:hover .mh-product-card-tools,
.woocommerce .product-small:focus-within .mh-product-card-tools,
.woocommerce-page .product-small:focus-within .mh-product-card-tools {
    opacity: 1;
    transform: translateX(0);
}

.woocommerce .product-small .mh-product-card-tool,
.woocommerce-page .product-small .mh-product-card-tool {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
    transition: transform .28s cubic-bezier(.34,1.56,.64,1), color .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.woocommerce .product-small .mh-product-card-tool svg,
.woocommerce-page .product-small .mh-product-card-tool svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.woocommerce .product-small .mh-product-card-tool:hover,
.woocommerce .product-small .mh-product-card-tool:focus,
.woocommerce-page .product-small .mh-product-card-tool:hover,
.woocommerce-page .product-small .mh-product-card-tool:focus {
    color: #d4943a;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.22);
}

.woocommerce .product-small .mh-product-card-tool.is-active,
.woocommerce-page .product-small .mh-product-card-tool.is-active {
    color: #ef4444;
}

.woocommerce .product-small .mh-loop-quick-add-wrap,
.woocommerce-page .product-small .mh-loop-quick-add-wrap {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 21;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease;
}

.woocommerce .product-small:hover .mh-loop-quick-add-wrap,
.woocommerce-page .product-small:hover .mh-loop-quick-add-wrap,
.woocommerce .product-small:focus-within .mh-loop-quick-add-wrap,
.woocommerce-page .product-small:focus-within .mh-loop-quick-add-wrap {
    opacity: 1;
    transform: translateY(0);
}

.woocommerce .product-small .mh-quick-add-button,
.woocommerce-page .product-small .mh-quick-add-button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    background: #d4943a;
    color: #ffffff !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 16px 32px rgba(212, 148, 58, 0.28);
    transition: transform .28s ease, box-shadow .28s ease, background-color .28s ease;
}

.woocommerce .product-small .mh-quick-add-button:hover,
.woocommerce-page .product-small .mh-quick-add-button:hover {
    transform: translateY(-1px);
    background: #c88424;
    box-shadow: 0 18px 34px rgba(212, 148, 58, 0.34);
}

.woocommerce .product-small .mh-quick-add-button--disabled,
.woocommerce-page .product-small .mh-quick-add-button--disabled {
    background: #f5c98f;
    color: #ffffff !important;
    cursor: default;
}

.woocommerce .product-small .mh-quick-add-button__icon,
.woocommerce-page .product-small .mh-quick-add-button__icon {
    width: 16px;
    height: 16px;
}

.woocommerce .product-small .mh-quick-add-button__icon svg,
.woocommerce-page .product-small .mh-quick-add-button__icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 849px) {
    .woocommerce .product-small .box-image,
    .woocommerce-page .product-small .box-image {
        padding: 12px 12px 0;
    }

    .woocommerce .product-small .box-text.box-text-products,
    .woocommerce-page .product-small .box-text.box-text-products,
    .woocommerce .product-small .box-text,
    .woocommerce-page .product-small .box-text {
        padding: 12px !important;
    }

    .woocommerce .product-small .price ins,
    .woocommerce .product-small .price > .amount,
    .woocommerce .product-small .price .woocommerce-Price-amount,
    .woocommerce-page .product-small .price ins,
    .woocommerce-page .product-small .price > .amount,
    .woocommerce-page .product-small .price .woocommerce-Price-amount {
        font-size: 19px;
    }
}

@media (max-width: 549px) {
    .woocommerce .product-small .mh-product-card-tools,
    .woocommerce-page .product-small .mh-product-card-tools {
        opacity: 1;
        transform: none;
        gap: 6px;
    }

    .woocommerce .product-small .mh-loop-quick-add-wrap,
    .woocommerce-page .product-small .mh-loop-quick-add-wrap {
        opacity: 1;
        transform: none;
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .woocommerce .product-small .mh-product-badges,
    .woocommerce-page .product-small .mh-product-badges {
        top: 10px;
        right: 10px;
    }

    .woocommerce .product-small .mh-product-card-tools,
    .woocommerce-page .product-small .mh-product-card-tools {
        top: 10px;
        left: 10px;
    }

    .woocommerce .product-small .mh-product-badge,
    .woocommerce-page .product-small .mh-product-badge {
        min-width: 54px;
        min-height: 28px;
        padding: 6px 10px;
    }
}

/* Refinement patch for live reference matching */
.woocommerce .product-small .box-text > .category,
.woocommerce-page .product-small .box-text > .category,
.woocommerce .product-small .title-wrapper .category,
.woocommerce-page .product-small .title-wrapper .category,
.woocommerce .product-small .product-cat,
.woocommerce-page .product-small .product-cat {
    display: none !important;
}

.woocommerce .product-small .mh-primary-category,
.woocommerce-page .product-small .mh-primary-category {
    display: inline-block;
    margin: 0 0 6px;
    color: #8a94a6;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.woocommerce .product-small .mh-primary-category:hover,
.woocommerce-page .product-small .mh-primary-category:hover {
    color: #d4943a;
}

.woocommerce .product-small .box-text > .title-wrapper,
.woocommerce-page .product-small .box-text > .title-wrapper {
    margin-bottom: 0;
}

.woocommerce .product-small .mh-product-card-tools,
.woocommerce-page .product-small .mh-product-card-tools {
    opacity: 1;
    transform: none;
}

@media (min-width: 850px) {
    .woocommerce .product-small .mh-product-card-tools,
    .woocommerce-page .product-small .mh-product-card-tools {
        opacity: 0;
        transform: translateX(-10px);
    }

    .woocommerce .product-small:hover .mh-product-card-tools,
    .woocommerce .product-small:focus-within .mh-product-card-tools,
    .woocommerce-page .product-small:hover .mh-product-card-tools,
    .woocommerce-page .product-small:focus-within .mh-product-card-tools {
        opacity: 1;
        transform: translateX(0);
    }
}

.woocommerce .product-small .mh-price-saving,
.woocommerce-page .product-small .mh-price-saving {
    margin-bottom: 8px;
}


/* =========================================================
   Mahhalcom auth page redesign and header icon polish
   ========================================================= */
.woocommerce-account .page-wrapper,
.woocommerce-account .shop-page-title,
.woocommerce-account .page-title {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.woocommerce-account .page-title-inner,
.woocommerce-account .page-title {
    display: none;
}

.woocommerce-account .account-container.mh-auth-shell {
    max-width: 1180px;
    margin: 42px auto 56px;
    padding: 0 18px;
}

.woocommerce-account .mh-auth-layout {
    display: grid;
    grid-template-columns: minmax(340px, 460px) minmax(420px, 1fr);
    border-radius: 30px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(26, 48, 80, 0.08);
    box-shadow: 0 30px 70px rgba(26, 48, 80, 0.14);
}

.woocommerce-account .mh-auth-brand-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #f7a341 0%, #f19a37 35%, #e88e2d 100%);
    color: #ffffff;
}

.woocommerce-account .mh-auth-brand-panel::before,
.woocommerce-account .mh-auth-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.woocommerce-account .mh-auth-brand-panel::before {
    width: 220px;
    height: 220px;
    top: -70px;
    right: -60px;
}

.woocommerce-account .mh-auth-brand-panel::after {
    width: 320px;
    height: 320px;
    bottom: -150px;
    left: -110px;
}

.woocommerce-account .mh-auth-brand-inner {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 44px;
}

.woocommerce-account .mh-auth-logo-wrap {
    width: 118px;
    min-height: 118px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 34px;
    padding: 14px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 44px rgba(140, 73, 0, 0.18);
    backdrop-filter: blur(5px);
}

.woocommerce-account .mh-auth-logo {
    width: 100%;
    max-width: 96px;
    height: auto;
    display: block;
    object-fit: contain;
}

.woocommerce-account .mh-auth-title {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(40px, 4.4vw, 60px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.woocommerce-account .mh-auth-subtitle {
    max-width: 360px;
    margin: 0 0 36px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
    line-height: 1.7;
    font-weight: 500;
}

.woocommerce-account .mh-auth-highlights {
    display: grid;
    gap: 16px;
}

.woocommerce-account .mh-auth-highlight-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    box-shadow: 0 18px 30px rgba(140, 73, 0, 0.08);
}

.woocommerce-account .mh-auth-highlight-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.woocommerce-account .mh-auth-highlight-icon svg {
    width: 26px;
    height: 26px;
    display: block;
    fill: currentColor;
}

.woocommerce-account .mh-auth-highlight-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.woocommerce-account .mh-auth-highlight-copy strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

.woocommerce-account .mh-auth-highlight-copy small {
    display: block;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}

.woocommerce-account .mh-auth-forms-panel {
    background: #ffffff;
}

.woocommerce-account .mh-auth-card--main {
    min-height: 100%;
    padding: 52px 42px 38px;
}

.woocommerce-account .mh-auth-card-header {
    margin-bottom: 24px;
}

.woocommerce-account .mh-auth-card-title {
    margin: 0 0 8px;
    color: #15243d;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.woocommerce-account .mh-auth-card-text {
    margin: 0;
    color: #697586;
    font-size: 16px;
    line-height: 1.6;
}

.woocommerce-account .mh-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.woocommerce-account .mh-auth-tab {
    position: relative;
    border: 0;
    background: transparent;
    color: #7a8495;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 10px 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: color .25s ease, transform .25s ease;
}

.woocommerce-account .mh-auth-tab::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e8a43a 0%, #f2b14d 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.woocommerce-account .mh-auth-tab:hover,
.woocommerce-account .mh-auth-tab.is-active {
    color: #d58f2a;
}

.woocommerce-account .mh-auth-tab:hover::after,
.woocommerce-account .mh-auth-tab.is-active::after {
    transform: scaleX(1);
}

.woocommerce-account .mh-auth-tab-icon {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-account .mh-auth-tab-icon svg {
    width: 19px;
    height: 19px;
    display: block;
}

.woocommerce-account .mh-auth-panel {
    display: none;
}

.woocommerce-account .mh-auth-panel.is-active {
    display: block;
}

.woocommerce-account .mh-auth-field-row {
    margin-bottom: 22px;
}

.woocommerce-account .mh-auth-field-row label {
    display: block;
    margin-bottom: 10px;
    color: #17263d;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}

.woocommerce-account .mh-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.woocommerce-account .mh-auth-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    z-index: 2;
    width: 20px;
    height: 20px;
    color: #8b96a6;
    transform: translateY(-50%);
    pointer-events: none;
}

.woocommerce-account .mh-auth-input-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.woocommerce-account .mh-auth-input-wrap .input-text,
.woocommerce-account .mh-auth-input-wrap input[type="text"],
.woocommerce-account .mh-auth-input-wrap input[type="email"],
.woocommerce-account .mh-auth-input-wrap input[type="password"] {
    width: 100%;
    min-height: 60px;
    margin: 0;
    padding: 0 18px 0 54px;
    border: 1px solid #d9e0e8;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    color: #15243d;
    font-size: 16px;
    font-weight: 500;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.woocommerce-account .mh-auth-input-wrap .input-text:focus,
.woocommerce-account .mh-auth-input-wrap input[type="text"]:focus,
.woocommerce-account .mh-auth-input-wrap input[type="email"]:focus,
.woocommerce-account .mh-auth-input-wrap input[type="password"]:focus {
    border-color: rgba(232, 164, 58, 0.82);
    box-shadow: 0 0 0 4px rgba(232, 164, 58, 0.14), 0 12px 28px rgba(232, 164, 58, 0.12);
    transform: translateY(-1px);
}

.woocommerce-account .mh-auth-input-wrap--password .input-text,
.woocommerce-account .mh-auth-input-wrap--password input[type="text"],
.woocommerce-account .mh-auth-input-wrap--password input[type="password"] {
    padding-right: 54px;
}

.woocommerce-account .mh-auth-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #8b96a6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.woocommerce-account .mh-auth-password-toggle:hover {
    background: rgba(232, 164, 58, 0.12);
    color: #c9851f;
}

.woocommerce-account .mh-auth-password-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
}

.woocommerce-account .mh-auth-password-toggle .mh-auth-eye-close {
    display: none;
}

.woocommerce-account .mh-auth-password-toggle.is-active .mh-auth-eye-open {
    display: none;
}

.woocommerce-account .mh-auth-password-toggle.is-active .mh-auth-eye-close {
    display: inline-flex;
}

.woocommerce-account .mh-auth-inline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 2px 0 24px;
}

.woocommerce-account .mh-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #4f5d72;
    font-size: 15px;
    font-weight: 500;
}

.woocommerce-account .mh-auth-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    border-radius: 5px;
    border: 1px solid #cbd5e1;
}

.woocommerce-account .mh-auth-lost-link,
.woocommerce-account .mh-auth-footer-link,
.woocommerce-account .mh-auth-link-button,
.woocommerce-account .mh-auth-help-text {
    color: #c9851f;
}

.woocommerce-account .mh-auth-lost-link {
    font-size: 15px;
    font-weight: 600;
}

.woocommerce-account .mh-auth-lost-link:hover,
.woocommerce-account .mh-auth-link-button:hover {
    color: #a96a10;
}

.woocommerce-account .mh-auth-submit {
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 14px 20px;
    border: 0 !important;
    border-radius: 16px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(90deg, #e8a43a 0%, #f2a84a 100%) !important;
    box-shadow: 0 16px 30px rgba(232, 164, 58, 0.28);
    color: #ffffff !important;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: none;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.woocommerce-account .mh-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(232, 164, 58, 0.34);
    filter: brightness(1.03);
}

.woocommerce-account .mh-auth-submit-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-account .mh-auth-submit-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.woocommerce-account .mh-auth-social-stack {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.woocommerce-account .mh-auth-social-provider,
.woocommerce-account .mh-auth-social-button {
    width: 100%;
}

.woocommerce-account .mh-auth-social-button,
.woocommerce-account .mh-auth-social-provider .googlesitekit-sign-in-with-google__frontend-output-button {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
}

.woocommerce-account .mh-auth-social-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid #d9e0e8;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    color: #17263d;
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.woocommerce-account .mh-auth-social-button:hover {
    transform: translateY(-1px);
    border-color: rgba(232, 164, 58, 0.4);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.woocommerce-account .mh-auth-social-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.woocommerce-account .mh-auth-social-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.woocommerce-account .mh-auth-social-label {
    flex: 1 1 auto;
    color: #17263d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.woocommerce-account .mh-auth-badge {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(26, 48, 80, 0.06);
    color: #667085;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.woocommerce-account .mh-auth-footer-link {
    margin-top: 24px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    color: #5d6979;
}

.woocommerce-account .mh-auth-link-button {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-weight: 700;
    cursor: pointer;
}

.woocommerce-account .mh-auth-help-text {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(232, 164, 58, 0.09);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 600;
}

.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 18px;
}

.header-main .wishlist-item > a,
.header-main .account-item > a,
.header-main .cart-item > a,
.header-main .header-wishlist-icon,
.header-main .header-cart-link,
.header-main .account-item .nav-top-link {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.header-main .wishlist-item > a:hover,
.header-main .account-item > a:hover,
.header-main .cart-item > a:hover,
.header-main .header-wishlist-icon:hover,
.header-main .header-cart-link:hover,
.header-main .account-item .nav-top-link:hover,
.header-main .wishlist-item.active > a,
.header-main .account-item.active > a,
.header-main .cart-item.active > a {
    background: linear-gradient(180deg, rgba(232, 164, 58, 0.26) 0%, rgba(232, 164, 58, 0.18) 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(8, 15, 31, 0.22);
}

.header-main .wishlist-item .icon-heart,
.header-main .account-item .icon-user,
.header-main .cart-item .icon-shopping-bag,
.header-main .cart-item .icon-shopping-cart,
.header-main .wishlist-item svg,
.header-main .account-item svg,
.header-main .cart-item svg {
    transition: transform .25s ease, filter .25s ease;
}

.header-main .wishlist-item > a:hover .icon-heart,
.header-main .account-item > a:hover .icon-user,
.header-main .cart-item > a:hover .icon-shopping-bag,
.header-main .cart-item > a:hover .icon-shopping-cart,
.header-main .wishlist-item > a:hover svg,
.header-main .account-item > a:hover svg,
.header-main .cart-item > a:hover svg {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 18px rgba(232, 164, 58, 0.35));
}

.header-main .wishlist-item .header-button .icon-label,
.header-main .account-item .header-button .icon-label,
.header-main .cart-item .header-button .icon-label,
.header-main .wishlist-item .nav-top-link .header-cart-title,
.header-main .account-item .nav-top-link .header-cart-title,
.header-main .cart-item .nav-top-link .header-cart-title {
    margin-left: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
}

.header-main .wishlist-item .cart-icon strong,
.header-main .cart-item .cart-icon strong,
.header-main .wishlist-item .wishlist-count,
.header-main .cart-item .cart-count,
.header-main .account-item .account-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e8a43a;
    color: #1a3050 !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(232, 164, 58, 0.26);
}

@media (max-width: 1024px) {
    .woocommerce-account .mh-auth-layout {
        grid-template-columns: 1fr;
    }

    .woocommerce-account .mh-auth-brand-inner,
    .woocommerce-account .mh-auth-card--main {
        padding: 38px 30px;
    }
}

@media (max-width: 767px) {
    .woocommerce-account .account-container.mh-auth-shell {
        margin: 20px auto 36px;
        padding: 0 14px;
    }

    .woocommerce-account .mh-auth-layout {
        border-radius: 24px;
    }

    .woocommerce-account .mh-auth-brand-inner,
    .woocommerce-account .mh-auth-card--main {
        padding: 26px 20px;
    }

    .woocommerce-account .mh-auth-logo-wrap {
        width: 96px;
        min-height: 96px;
        margin-bottom: 24px;
    }

    .woocommerce-account .mh-auth-title {
        font-size: 34px;
    }

    .woocommerce-account .mh-auth-subtitle {
        max-width: none;
        font-size: 16px;
        margin-bottom: 24px;
    }

    .woocommerce-account .mh-auth-card-title {
        font-size: 34px;
    }

    .woocommerce-account .mh-auth-tabs {
        gap: 4px;
    }

    .woocommerce-account .mh-auth-tab {
        min-height: 48px;
        font-size: 16px;
    }

    .woocommerce-account .mh-auth-highlight-card {
        grid-template-columns: 46px 1fr;
        gap: 12px;
        padding: 14px;
    }

    .woocommerce-account .mh-auth-highlight-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .woocommerce-account .mh-auth-inline-row {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   Mahhalcom checkout redesign
   ========================================================= */
.woocommerce-checkout .page-title,
.woocommerce-checkout .shop-page-title,
.woocommerce-checkout .page-title-inner {
    display: none;
}

.woocommerce-checkout .page-wrapper {
    background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.woocommerce-checkout .mh-checkout-shell {
    max-width: 1320px;
    margin: 34px auto 60px;
    padding: 0 18px;
}

.woocommerce-checkout .mh-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 430px);
    gap: 26px;
    align-items: start;
}

.woocommerce-checkout .mh-checkout-main,
.woocommerce-checkout .mh-checkout-sidebar {
    min-width: 0;
}

.woocommerce-checkout .mh-checkout-hero-card,
.woocommerce-checkout .mh-checkout-section,
.woocommerce-checkout .mh-checkout-summary-card,
.woocommerce-checkout .mh-order-review-card,
.woocommerce-checkout .woocommerce-checkout-payment {
    background: #ffffff;
    border: 1px solid rgba(26, 48, 80, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.07);
}

.woocommerce-checkout .mh-checkout-hero-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 30px 32px;
    background: linear-gradient(135deg, #1a3050 0%, #25456d 56%, #33557e 100%);
    color: #ffffff;
}

.woocommerce-checkout .mh-checkout-hero-card::before,
.woocommerce-checkout .mh-checkout-hero-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(232, 164, 58, 0.16);
    pointer-events: none;
}

.woocommerce-checkout .mh-checkout-hero-card::before {
    width: 240px;
    height: 240px;
    top: -120px;
    right: -60px;
}

.woocommerce-checkout .mh-checkout-hero-card::after {
    width: 180px;
    height: 180px;
    bottom: -90px;
    left: -30px;
}

.woocommerce-checkout .mh-checkout-hero-copy,
.woocommerce-checkout .mh-checkout-trust-list {
    position: relative;
    z-index: 1;
}

.woocommerce-checkout .mh-checkout-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(232, 164, 58, 0.18);
    color: #ffd79c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.woocommerce-checkout .mh-checkout-title {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.woocommerce-checkout .mh-checkout-subtitle {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
}

.woocommerce-checkout .mh-checkout-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.woocommerce-checkout .mh-checkout-trust-list span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.woocommerce-checkout .mh-checkout-section,
.woocommerce-checkout .mh-checkout-summary-card,
.woocommerce-checkout .woocommerce-checkout-payment,
.woocommerce-checkout .mh-order-review-card {
    padding: 26px;
}

.woocommerce-checkout .mh-checkout-section__header {
    margin-bottom: 18px;
}

.woocommerce-checkout .mh-checkout-section__header h2 {
    margin: 0 0 8px;
    color: #1a3050;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.woocommerce-checkout .mh-checkout-section__header p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.7;
}

.woocommerce-checkout .mh-checkout-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.woocommerce-checkout .mh-checkout-fields .col-1,
.woocommerce-checkout .mh-checkout-fields .col-2 {
    float: none;
    width: 100%;
    min-width: 0;
}

.woocommerce-checkout .mh-checkout-fields h3,
.woocommerce-checkout #ship-to-different-address {
    margin: 0 0 16px;
    color: #1a3050;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

.woocommerce-checkout form .form-row {
    margin-bottom: 16px;
}

.woocommerce-checkout form .form-row label,
.woocommerce-checkout .woocommerce-input-wrapper label {
    margin-bottom: 8px;
    color: #17263d;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.woocommerce-checkout form .input-text,
.woocommerce-checkout form select,
.woocommerce-checkout form textarea,
.woocommerce-checkout .select2-container--default .select2-selection--single,
.woocommerce-checkout .select2-container--default .select2-selection--multiple {
    min-height: 56px;
    border: 1px solid #d8dee8;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    color: #17263d;
    font-size: 15px;
    font-weight: 500;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.woocommerce-checkout form .input-text,
.woocommerce-checkout form textarea {
    padding: 0 16px;
}

.woocommerce-checkout form textarea {
    min-height: 120px;
    padding-top: 14px;
}

.woocommerce-checkout form .input-text:focus,
.woocommerce-checkout form select:focus,
.woocommerce-checkout form textarea:focus,
.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: rgba(232,164,58,.82);
    box-shadow: 0 0 0 4px rgba(232,164,58,.14), 0 12px 28px rgba(232,164,58,.12);
    transform: translateY(-1px);
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 54px;
    padding-left: 16px;
    padding-right: 38px;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 54px;
    right: 12px;
}

.woocommerce-checkout .mh-checkout-sidebar {
    position: sticky;
    top: 30px;
}

.woocommerce-checkout .mh-order-review-card,
.woocommerce-checkout .woocommerce-checkout-payment {
    padding: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
}

.woocommerce-checkout .mh-order-review-card__body,
.woocommerce-checkout .woocommerce-checkout-payment {
    padding: 0;
}

.woocommerce-checkout .mh-order-review-table {
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.woocommerce-checkout .mh-order-review-table thead th {
    padding: 0 0 14px;
    border: 0;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.woocommerce-checkout .mh-order-review-table tbody td,
.woocommerce-checkout .mh-order-review-table tfoot th,
.woocommerce-checkout .mh-order-review-table tfoot td {
    padding: 15px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: transparent;
}

.woocommerce-checkout .mh-order-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.woocommerce-checkout .mh-order-item__name {
    color: #17263d;
    font-weight: 700;
    line-height: 1.45;
}

.woocommerce-checkout .mh-order-review-table .product-total,
.woocommerce-checkout .mh-order-review-table tfoot td {
    text-align: right;
    color: #17263d;
    font-weight: 700;
}

.woocommerce-checkout .mh-order-review-table .order-total th,
.woocommerce-checkout .mh-order-review-table .order-total td {
    color: #1a3050;
    font-size: 18px;
    font-weight: 800;
}

.woocommerce-checkout .woocommerce-checkout-payment {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.woocommerce-checkout .wc_payment_methods {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.woocommerce-checkout .wc_payment_methods > li {
    margin: 0 0 12px;
    padding: 16px 16px 14px;
    border: 1px solid #d8dee8;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.woocommerce-checkout .wc_payment_methods > li.payment_method_cod,
.woocommerce-checkout .wc_payment_methods > li.payment_method_wc_knet,
.woocommerce-checkout .wc_payment_methods > li.payment_method_mpgs_gateway,
.woocommerce-checkout .wc_payment_methods > li.payment_method_deema_payment {
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.woocommerce-checkout .wc_payment_methods > li:hover {
    border-color: rgba(232,164,58,.36);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.woocommerce-checkout .wc_payment_methods > li > label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #17263d;
    font-size: 15px;
    font-weight: 700;
}

.woocommerce-checkout .payment_box {
    margin-top: 12px;
    padding: 14px 16px !important;
    border-radius: 14px;
    background: rgba(26, 48, 80, 0.04) !important;
    color: #4b5563;
    line-height: 1.7;
}

.woocommerce-checkout .place-order {
    margin: 0;
    padding-top: 4px;
}

.woocommerce-checkout #place_order {
    width: 100%;
    min-height: 58px;
    border: 0 !important;
    border-radius: 18px !important;
    background: linear-gradient(90deg, #e8a43a 0%, #f2ad4c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 32px rgba(232, 164, 58, 0.28);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: none;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.woocommerce-checkout #place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px rgba(232, 164, 58, 0.34);
    filter: brightness(1.03);
}

.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-NoticeGroup,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 18px;
}

.woocommerce-checkout .checkout_coupon {
    max-width: 1320px;
    margin: 0 auto 18px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.woocommerce-checkout .checkout_coupon .button {
    min-height: 52px;
    border-radius: 16px !important;
    background: #1a3050 !important;
    color: #fff !important;
}

@media (max-width: 1140px) {
    .woocommerce-checkout .mh-checkout-grid {
        grid-template-columns: 1fr;
    }

    .woocommerce-checkout .mh-checkout-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .woocommerce-checkout .mh-checkout-shell {
        margin: 18px auto 38px;
        padding: 0 14px;
    }

    .woocommerce-checkout .mh-checkout-hero-card,
    .woocommerce-checkout .mh-checkout-section,
    .woocommerce-checkout .mh-checkout-summary-card {
        padding: 20px;
        border-radius: 24px;
    }

    .woocommerce-checkout .mh-checkout-fields {
        grid-template-columns: 1fr;
    }

    .woocommerce-checkout .mh-checkout-section__header h2 {
        font-size: 26px;
    }

    .woocommerce-checkout .mh-checkout-title {
        font-size: 30px;
    }
}


/* CSS fallback for official Mahhalcom auth logo */
.woocommerce-account .mh-auth-brand-inner {
    padding-top: 168px;
}

.woocommerce-account .mh-auth-brand-inner::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 0;
    width: 132px;
    height: 132px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.16) url("https://mahhalcom.com/wp-content/uploads/2026/04/mahhalcom-logo.png") center center / contain no-repeat;
    box-shadow: 0 24px 44px rgba(173, 96, 16, 0.22);
    backdrop-filter: blur(8px);
}

@media (max-width: 767px) {
    .woocommerce-account .mh-auth-brand-inner {
        padding-top: 138px;
    }

    .woocommerce-account .mh-auth-brand-inner::before {
        width: 108px;
        height: 108px;
        top: 8px;
    }
}

/* === Mahhalcom: related product badge and English layout refinements (2026-04-16) === */
.woocommerce .related.products .product-small .box-image,
.woocommerce-page .related.products .product-small .box-image,
.woocommerce .up-sells.products .product-small .box-image,
.woocommerce-page .up-sells.products .product-small .box-image {
    overflow: visible;
}

.woocommerce .related.products .product-small .mh-product-badges,
.woocommerce-page .related.products .product-small .mh-product-badges,
.woocommerce .up-sells.products .product-small .mh-product-badges,
.woocommerce-page .up-sells.products .product-small .mh-product-badges,
.woocommerce .related.products .product-small .onsale,
.woocommerce-page .related.products .product-small .onsale,
.woocommerce .up-sells.products .product-small .onsale,
.woocommerce-page .up-sells.products .product-small .onsale {
    top: 10px;
    left: 10px;
    right: auto;
}

.woocommerce .related.products .product-small .mh-product-badges,
.woocommerce-page .related.products .product-small .mh-product-badges,
.woocommerce .up-sells.products .product-small .mh-product-badges,
.woocommerce-page .up-sells.products .product-small .mh-product-badges {
    align-items: flex-start;
    gap: 6px;
    max-width: calc(100% - 20px);
}

.woocommerce .related.products .product-small .mh-product-badge,
.woocommerce-page .related.products .product-small .mh-product-badge,
.woocommerce .up-sells.products .product-small .mh-product-badge,
.woocommerce-page .up-sells.products .product-small .mh-product-badge {
    min-width: 44px;
    min-height: 22px;
    padding: 4px 8px;
    border-radius: 999px;
    gap: 3px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.woocommerce .related.products .product-small .mh-product-badge__line,
.woocommerce .related.products .product-small .mh-product-badge__value,
.woocommerce-page .related.products .product-small .mh-product-badge__line,
.woocommerce-page .related.products .product-small .mh-product-badge__value,
.woocommerce .up-sells.products .product-small .mh-product-badge__line,
.woocommerce .up-sells.products .product-small .mh-product-badge__value,
.woocommerce-page .up-sells.products .product-small .mh-product-badge__line,
.woocommerce-page .up-sells.products .product-small .mh-product-badge__value {
    font-size: 9px;
    line-height: 1;
}

.woocommerce .related.products .product-small .onsale,
.woocommerce-page .related.products .product-small .onsale,
.woocommerce .up-sells.products .product-small .onsale,
.woocommerce-page .up-sells.products .product-small .onsale {
    min-height: 24px;
    min-width: 48px;
    padding: 4px 9px;
    font-size: 10px;
    line-height: 1.1;
    border-radius: 999px;
    margin: 0;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.woocommerce .related.products .product-small .box-text,
.woocommerce-page .related.products .product-small .box-text,
.woocommerce .up-sells.products .product-small .box-text,
.woocommerce-page .up-sells.products .product-small .box-text {
    padding-top: 12px;
}

.woocommerce .related.products .product-small .name,
.woocommerce .related.products .product-small .woocommerce-loop-product__title,
.woocommerce .related.products .product-small .product-title,
.woocommerce-page .related.products .product-small .name,
.woocommerce-page .related.products .product-small .woocommerce-loop-product__title,
.woocommerce-page .related.products .product-small .product-title,
.woocommerce .up-sells.products .product-small .name,
.woocommerce .up-sells.products .product-small .woocommerce-loop-product__title,
.woocommerce .up-sells.products .product-small .product-title,
.woocommerce-page .up-sells.products .product-small .name,
.woocommerce-page .up-sells.products .product-small .woocommerce-loop-product__title,
.woocommerce-page .up-sells.products .product-small .product-title {
    min-height: 40px;
}

html[lang^='en'] .woocommerce .product-small .box-text,
html[lang^='en'] .woocommerce-page .product-small .box-text,
html[lang^='en'] .woocommerce .product-small .price,
html[lang^='en'] .woocommerce-page .product-small .price,
html[lang^='en'] .woocommerce .product-small .category,
html[lang^='en'] .woocommerce-page .product-small .category,
html[lang^='en'] .woocommerce .product-small .name,
html[lang^='en'] .woocommerce-page .product-small .name,
html[lang^='en'] .woocommerce .product-small .woocommerce-loop-product__title,
html[lang^='en'] .woocommerce-page .product-small .woocommerce-loop-product__title,
html[lang^='en'] .woocommerce .product-small .product-title,
html[lang^='en'] .woocommerce-page .product-small .product-title {
    text-align: left;
    align-items: flex-start;
}

html[lang^='en'] .woocommerce .product-small .price del,
html[lang^='en'] .woocommerce-page .product-small .price del {
    margin-left: 0;
}

html[lang^='en'] .header-nav,
html[lang^='en'] .nav-uppercase,
html[lang^='en'] .nav > li > a {
    letter-spacing: 0.02em;
}

html[lang^='en'] .header-nav > li,
html[lang^='en'] .nav > li {
    margin-right: 0;
}

@media (max-width: 849px) {
    .woocommerce .related.products .product-small .mh-product-badges,
    .woocommerce-page .related.products .product-small .mh-product-badges,
    .woocommerce .up-sells.products .product-small .mh-product-badges,
    .woocommerce-page .up-sells.products .product-small .mh-product-badges,
    .woocommerce .related.products .product-small .onsale,
    .woocommerce-page .related.products .product-small .onsale,
    .woocommerce .up-sells.products .product-small .onsale,
    .woocommerce-page .up-sells.products .product-small .onsale {
        top: 8px;
        left: 8px;
    }

    .woocommerce .related.products .product-small .mh-product-badge,
    .woocommerce-page .related.products .product-small .mh-product-badge,
    .woocommerce .up-sells.products .product-small .mh-product-badge,
    .woocommerce-page .up-sells.products .product-small .mh-product-badge,
    .woocommerce .related.products .product-small .onsale,
    .woocommerce-page .related.products .product-small .onsale,
    .woocommerce .up-sells.products .product-small .onsale,
    .woocommerce-page .up-sells.products .product-small .onsale {
        min-width: 40px;
        min-height: 20px;
        padding: 3px 7px;
        font-size: 9px;
    }
    .woocommerce .related.products .product-small .box-text,
    .woocommerce-page .related.products .product-small .box-text,
    .woocommerce .up-sells.products .product-small .box-text,
    .woocommerce-page .up-sells.products .product-small .box-text {
        padding: 10px 12px 12px;
    }
}

/* English WooCommerce label tidy-up */
html[lang^='en'] .woocommerce .product-small .mh-product-badges,
html[lang^='en'] .woocommerce-page .product-small .mh-product-badges,
html[lang^='en'] .woocommerce .product-small .onsale,
html[lang^='en'] .woocommerce-page .product-small .onsale {
    left: 12px;
    right: auto;
}

html[lang^='en'] .woocommerce .product-small .mh-product-badges,
html[lang^='en'] .woocommerce-page .product-small .mh-product-badges {
    align-items: flex-start;
}

html[lang^='en'] .woocommerce .product-small .mh-product-badge,
html[lang^='en'] .woocommerce-page .product-small .mh-product-badge,
html[lang^='en'] .woocommerce .product-small .onsale,
html[lang^='en'] .woocommerce-page .product-small .onsale {
    transform: none;
    max-width: calc(100% - 24px);
}

/* MH English header and product card cleanup - 2026-04-16 */
html[lang^='en'] .header-main {
    background: #ffffff;
}
html[lang^='en'] .header-main .searchform-wrapper input[type='search'],
html[lang^='en'] .header-main .search-field,
html[lang^='en'] .header-main .ux-search-box .search-field {
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: none;
}
html[lang^='en'] .header-main .header-button,
html[lang^='en'] .header-main .button.secondary,
html[lang^='en'] .header-main .button:not(.is-outline) {
    border-radius: 12px;
}
html[lang^='en'] .header-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: #ffffff;
}
html[lang^='en'] .header-bottom .nav > li {
    margin-right: 4px;
}
html[lang^='en'] .header-bottom .nav > li > a,
html[lang^='en'] .header-main .nav > li > a {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
html[lang^='en'] .woocommerce .product-small .box,
html[lang^='en'] .woocommerce-page .product-small .box,
html[lang^='en'] .home .product-small .box {
    background: #ffffff;
    border: 1px solid #e9eef5;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
html[lang^='en'] .woocommerce .product-small .box:hover,
html[lang^='en'] .woocommerce-page .product-small .box:hover,
html[lang^='en'] .home .product-small .box:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}
html[lang^='en'] .woocommerce .product-small .box-image,
html[lang^='en'] .woocommerce-page .product-small .box-image,
html[lang^='en'] .home .product-small .box-image {
    margin: 0;
    background: #f8fafc;
}
html[lang^='en'] .woocommerce .product-small .box-image img,
html[lang^='en'] .woocommerce-page .product-small .box-image img,
html[lang^='en'] .home .product-small .box-image img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
html[lang^='en'] .woocommerce .product-small .box-text.box-text-products,
html[lang^='en'] .woocommerce-page .product-small .box-text.box-text-products,
html[lang^='en'] .home .product-small .box-text.box-text-products {
    padding: 14px 14px 16px;
}
html[lang^='en'] .woocommerce .product-small .name,
html[lang^='en'] .woocommerce-page .product-small .name,
html[lang^='en'] .home .product-small .name,
html[lang^='en'] .woocommerce .product-small .woocommerce-loop-product__title,
html[lang^='en'] .woocommerce-page .product-small .woocommerce-loop-product__title,
html[lang^='en'] .home .product-small .woocommerce-loop-product__title,
html[lang^='en'] .woocommerce .product-small .product-title,
html[lang^='en'] .woocommerce-page .product-small .product-title,
html[lang^='en'] .home .product-small .product-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 42px;
    margin-bottom: 8px;
    line-height: 1.45;
}
html[lang^='en'] .woocommerce .product-small .price,
html[lang^='en'] .woocommerce-page .product-small .price,
html[lang^='en'] .home .product-small .price {
    margin: 0 0 10px;
    font-weight: 700;
}
html[lang^='en'] .woocommerce .product-small .button,
html[lang^='en'] .woocommerce-page .product-small .button,
html[lang^='en'] .home .product-small .button,
html[lang^='en'] .woocommerce .product-small a.button,
html[lang^='en'] .woocommerce-page .product-small a.button,
html[lang^='en'] .home .product-small a.button {
    width: 100%;
    min-height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 0.02em;
}
html[lang^='en'] .woocommerce .product-small .mh-product-badges,
html[lang^='en'] .woocommerce-page .product-small .mh-product-badges,
html[lang^='en'] .home .product-small .mh-product-badges {
    top: 10px;
    left: 10px;
    gap: 4px;
}
html[lang^='en'] .woocommerce .product-small .mh-product-badge,
html[lang^='en'] .woocommerce-page .product-small .mh-product-badge,
html[lang^='en'] .home .product-small .mh-product-badge {
    min-height: 20px;
    padding: 3px 8px;
    border-radius: 999px;
}
html[lang^='en'] .woocommerce .product-small .mh-price-saving,
html[lang^='en'] .woocommerce-page .product-small .mh-price-saving,
html[lang^='en'] .home .product-small .mh-price-saving {
    display: none !important;
}
@media (max-width: 849px) {
    html[lang^='en'] .header-main .searchform-wrapper input[type='search'],
    html[lang^='en'] .header-main .search-field,
    html[lang^='en'] .header-main .ux-search-box .search-field {
        min-height: 40px;
        border-radius: 12px;
    }
    html[lang^='en'] .header-bottom .nav > li > a,
    html[lang^='en'] .header-main .nav > li > a {
        font-size: 12px;
    }
    html[lang^='en'] .woocommerce .product-small .box-text.box-text-products,
    html[lang^='en'] .woocommerce-page .product-small .box-text.box-text-products,
    html[lang^='en'] .home .product-small .box-text.box-text-products {
        padding: 12px 12px 14px;
    }
    html[lang^='en'] .woocommerce .product-small .name,
    html[lang^='en'] .woocommerce-page .product-small .name,
    html[lang^='en'] .home .product-small .name,
    html[lang^='en'] .woocommerce .product-small .woocommerce-loop-product__title,
    html[lang^='en'] .woocommerce-page .product-small .woocommerce-loop-product__title,
    html[lang^='en'] .home .product-small .woocommerce-loop-product__title,
    html[lang^='en'] .woocommerce .product-small .product-title,
    html[lang^='en'] .woocommerce-page .product-small .product-title,
    html[lang^='en'] .home .product-small .product-title {
        min-height: 38px;
        font-size: 13px;
    }
}

/* MH English product card badge cleanup - 2026-04-16 */
html[lang^='en'] .woocommerce .product-small .mh-safe-badges,
html[lang^='en'] .woocommerce-page .product-small .mh-safe-badges,
html[lang^='en'] .home .product-small .mh-safe-badges {
    display: none !important;
}
html[lang^='en'] .woocommerce .product-small .button,
html[lang^='en'] .woocommerce-page .product-small .button,
html[lang^='en'] .home .product-small .button,
html[lang^='en'] .woocommerce .product-small a.button,
html[lang^='en'] .woocommerce-page .product-small a.button,
html[lang^='en'] .home .product-small a.button {
    border-radius: 12px !important;
}

/* Manus fix: keep WooCommerce Sale badge on product image only */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce .product-small,
.woocommerce-page .product-small {
    position: relative;
}

.woocommerce ul.products li.product .box-image,
.woocommerce-page ul.products li.product .box-image,
.woocommerce .product-small .box-image,
.woocommerce-page .product-small .box-image {
    position: relative;
    overflow: hidden;
}

.woocommerce span.onsale,
.woocommerce-page span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale,
.woocommerce .product-small .onsale,
.woocommerce-page .product-small .onsale {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 9 !important;
    margin: 0 !important;
    transform: none !important;
    pointer-events: none;
}

.woocommerce ul.products li.product .box-text,
.woocommerce-page ul.products li.product .box-text,
.woocommerce .product-small .box-text,
.woocommerce-page .product-small .box-text {
    position: relative;
    z-index: 1;
}
