/* ============================================================
   Custom site styles (kept separate from theme's style.min.css)
   ============================================================ */

/* ---------- Product Details page ---------- */
.pd-info { padding: 8px 0; }
.pd-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #1a1a1a;
}

.pd-price-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.pd-price-old {
    color: #999;
    font-size: 18px;
    text-decoration: line-through;
    font-weight: 500;
}
.pd-price-new {
    color: #fe7bbf;
    font-size: 30px;
    font-weight: 700;
}
.pd-discount-pill {
    background: linear-gradient(135deg, #fe7bbf, #a01d25);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    box-shadow: 0 4px 10px rgba(193, 39, 45, .25);
}

.pd-divider {
    border: 0;
    border-top: 1px solid #e8e8e8;
    margin: 18px 0;
}

.pd-features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}
.pd-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: #fe7bbf;
    font-size: 15px;
    font-weight: 500;
}
.pd-features li.out { color: #c62828; }
.pd-features li i {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(193, 39, 45, .1);
    color: #fe7bbf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}
.pd-features li.out i {
    background: rgba(198, 40, 40, .1);
    color: #c62828;
}
.pd-promo-code {
    color: #1a1a1a;
    background: #fff3cd;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    font-size: 13px;
}

.pd-section-title {
    color: #fe7bbf;
    font-size: 26px;
    font-weight: 700;
    margin: 28px 0 18px;
    line-height: 1.2;
}

.pd-description {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 24px;
}
.pd-description p { margin: 0 0 14px; }
.pd-description h1,
.pd-description h2,
.pd-description h3,
.pd-description h4,
.pd-description h5,
.pd-description h6,
.pd-description strong {
    color: #1a1a1a;
    font-weight: 700;
}
.pd-description h2 { font-size: 22px; margin: 22px 0 10px; }
.pd-description h3 { font-size: 19px; margin: 20px 0 8px; }
.pd-description h4 { font-size: 17px; margin: 18px 0 8px; }
.pd-description ul,
.pd-description ol { padding-left: 22px; margin: 0 0 14px; }
.pd-description li { margin: 4px 0; }
.pd-description a { color: #fe7bbf; text-decoration: underline; }

.pd-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.pd-qty { flex-shrink: 0; }

.pd-add-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    height: 48px;
    line-height: 48px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
}

/* Mirrors theme .cart-action li.wishlist a so it matches the wishlist page card */
.pd-wishlist {
    position: relative;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    overflow: hidden;
    transition: transform .25s ease;
}
.pd-wishlist:before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #fff;
    transition: transform .3s ease-in-out;
    z-index: 0;
}
.pd-wishlist i { position: relative; z-index: 1; }
.pd-wishlist:hover:before { transform: scale(1.2); }
.pd-wishlist:hover { color: #fe7bbf; }
.pd-wishlist .fas.fa-heart { color: #e74c3c; }

.pd-inquire {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    height: 48px;
    line-height: 48px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
}

.pd-meta-line {
    color: #888;
    font-size: 13px;
    margin-top: 8px;
}
.pd-meta-line a { color: #555; }
.pd-meta-line .pd-dot { margin: 0 6px; }

/* Quantity stepper (used in cart + product details) */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 48px;
}
.qty-stepper .qty-btn {
    width: 40px;
    height: 100%;
    border: 0;
    background: #fafafa;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.qty-stepper .qty-btn:hover { background: #f0f0f0; color: #fe7bbf; }
.qty-stepper .qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.qty-stepper .qty-input {
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    border-radius: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: #fff;
    outline: none;
    box-shadow: none;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-stepper .qty-input::-webkit-outer-spin-button,
.qty-stepper .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Product details thumbnail gallery */
.pd-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.pd-gallery-thumbs .pd-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .15s, transform .15s;
}
.pd-gallery-thumbs .pd-thumb:hover { transform: scale(1.04); }
.pd-gallery-thumbs .pd-thumb.active { border-color: #fe7bbf; }

@media (max-width: 575px) {
    .pd-title { font-size: 24px; }
    .pd-price-new { font-size: 24px; }
    .pd-add-cart, .pd-inquire { width: 100%; justify-content: center; }
}

/* ============================================================
   GLOBAL RESPONSIVE FIXES
   Markup is untouched — these rules just adapt the existing
   layouts to phones / small tablets so pages look the same
   visually across screens.
   ============================================================ */

/* Tables can overflow on phones — let them scroll horizontally */
@media (max-width: 767px) {
    .table-responsive { -webkit-overflow-scrolling: touch; }
    table.table { min-width: 540px; }
}

/* ---------- Cart page — consistent across all screen sizes ---------- */
/* Always: cart row reflows on narrow screens, card padding scales down */
.axil-product-cart-area .table { vertical-align: middle; }
.axil-product-cart-area .table td,
.axil-product-cart-area .table th { vertical-align: middle; }
.axil-product-cart-area .table img { max-width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }

/* Tablet/laptop: cart total + coupon stack below the items table */
@media (max-width: 991px) {
    .coupon-input-row { max-width: 100%; }
    .axil-product-cart-area .col-lg-6 { margin-bottom: 20px; }
    .cart-total-card { margin-top: 0 !important; }
}

/* Small tablet: shrink image, tighten table cell padding so the row fits */
@media (max-width: 767px) {
    .axil-product-cart-area .table img { max-width: 60px; height: 60px; }
    .axil-product-cart-area .table td,
    .axil-product-cart-area .table th { padding: 12px 8px; }
    .axil-product-cart-area .table { min-width: 600px; }
}

/* Phone: convert each cart row into a vertical card so nothing scrolls horizontally */
@media (max-width: 575px) {
    .axil-product-cart-area .table-responsive { overflow: visible; }
    .axil-product-cart-area .table { min-width: 0 !important; border: 0; }
    .axil-product-cart-area .table thead { display: none; }
    .axil-product-cart-area .table,
    .axil-product-cart-area .table tbody,
    .axil-product-cart-area .table tr,
    .axil-product-cart-area .table td {
        display: block !important;
        width: 100% !important;
    }
    .axil-product-cart-area .table tr {
        position: relative;
        border: 1px solid #eee;
        border-radius: 12px;
        margin-bottom: 14px;
        padding: 14px 14px 14px 96px;   /* room on the left for the image */
        min-height: 96px;
        background: #fff;
    }
    .axil-product-cart-area .table td {
        border: 0 !important;
        padding: 4px 0 !important;
        text-align: left !important;
    }
    /* First cell: image, anchored to the left edge of the card */
    .axil-product-cart-area .table td:first-child {
        position: absolute;
        top: 14px;
        left: 14px;
        width: 70px !important;
        padding: 0 !important;
    }
    .axil-product-cart-area .table td:first-child img {
        max-width: 70px;
        height: 70px;
    }
    /* Show a little label on each remaining cell */
    .axil-product-cart-area .table td:nth-child(3)::before { content: "Price: "; color: #888; font-weight: 500; }
    .axil-product-cart-area .table td:nth-child(5)::before { content: "Subtotal: "; color: #888; font-weight: 500; }
    .axil-product-cart-area .table td.item-price,
    .axil-product-cart-area .table td.item-subtotal { font-weight: 600; }
    /* Quantity stepper aligned left (override its inline-block width) */
    .axil-product-cart-area .table .qty-stepper { margin-top: 4px; }
    /* Trash button row */
    .axil-product-cart-area .table td:last-child { text-align: right !important; margin-top: 4px; }
    .axil-product-cart-area .table .remove-btn { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
    /* Free product row uses the same card styling */
    .axil-product-cart-area .table #free-product-row .free-badge { margin-left: 4px; }
}
@media (max-width: 575px) {
    .coupon-card { padding: 14px; }
    .coupon-card .coupon-title { font-size: 14px; }

    /* Stack input + Apply button vertically so neither gets cut off */
    .coupon-input-row {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        max-width: 100%;
        width: 100%;
    }
    .coupon-input-row .coupon-code-input {
        width: 100% !important;
        font-size: 13px;
        padding: 10px 12px;
        height: 40px;
    }
    .coupon-input-row .coupon-apply-btn.axil-btn {
        width: 100%;
        padding: 0 16px;
        font-size: 13px;
        height: 40px;
        line-height: 40px;
    }

    .cart-total-card { padding: 16px; }
    .cart-total-card h4 { font-size: 18px; }
    .cart-total-card .grand-total { font-size: 16px; }

    .coupon-applied-card { padding: 10px; }
    .coupon-applied-card .applied-icon { width: 30px; height: 30px; font-size: 13px; }
    .coupon-applied-card .applied-code { font-size: 13px; }
    .coupon-applied-card .applied-saved { font-size: 11px; }

    .qty-stepper { height: 38px; }
    .qty-stepper .qty-btn { width: 32px; font-size: 16px; }
    .qty-stepper .qty-input {
        flex: 0 0 40px !important;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        font-size: 14px !important;
    }
}

/* ---------- Checkout page ---------- */
@media (max-width: 991px) {
    /* Order summary slides below the form on tablets */
    .axil-checkout-area .col-lg-7,
    .axil-checkout-area .col-lg-5 { margin-bottom: 24px; }
}
@media (max-width: 575px) {
    .axil-checkout-area .card { padding: 18px !important; }
    .axil-checkout-area h4 { font-size: 18px; }
    #checkout-form .form-control { font-size: 14px; padding: 9px 12px; }
    #checkout-form label { font-size: 13px; }

    .payment-info-box img { height: 22px !important; }
}

/* ---------- Product details ---------- */
@media (max-width: 991px) {
    .single-product-thumb .col-lg-6 { margin-bottom: 24px; }
    .pd-actions { gap: 10px; }
}
@media (max-width: 575px) {
    .pd-section-title { font-size: 22px; margin: 22px 0 14px; }
    .pd-features li { font-size: 14px; }
    .pd-description { font-size: 14px; }
    .pd-gallery-thumbs .pd-thumb { width: 60px; height: 60px; }
    .pd-add-cart, .pd-inquire { padding: 0 18px; font-size: 13px; }
    .pd-wishlist { width: 44px; height: 44px; font-size: 16px; }
}

/* ---------- Listing pages (products.php / subcategory.php / category.php) ---------- */
@media (max-width: 991px) {
    /* Sidebar drops above the grid on tablets/phones */
    .axil-shop-sidebar { margin-bottom: 24px; }
    .axil-shop-area .col-lg-3,
    .axil-shop-area .col-lg-9 { width: 100%; }
}
@media (max-width: 575px) {
    .axil-shop-top { flex-direction: column; align-items: flex-start; gap: 8px; }
    .axil-product .product-content .title,
    .axil-product .product-content h5.title { font-size: 14px; }
}

/* ---------- Service cards (already responsive — extra polish only) ---------- */
@media (max-width: 575px) {
    .avsar-services-img { height: auto; }
}

/* ---------- Order success + Track order — consistent across all sizes ---------- */
@media (max-width: 991px) {
    .order-tracker { padding: 24px 0 8px; max-width: 100%; }
    .order-tracker::before,
    .order-tracker .progress-line { left: 30px; right: 30px; }
}
@media (max-width: 767px) {
    .order-tracker { padding: 20px 0 0; }
    .order-tracker::before,
    .order-tracker .progress-line { top: 36px; left: 22px; right: 22px; }
    .order-tracker .step-icon { width: 42px; height: 42px; font-size: 16px; }
    .order-tracker .step-label { font-size: 11px; }

    /* Order card on tablet/large phone */
    .order-card { padding: 16px; }
    .order-card .order-tracker { padding: 16px 0 0; }

    /* Tighten delivery details + items table */
    .axil-section-gap.bg-color-white .card { padding: 18px !important; }
    .axil-section-gap.bg-color-white h4 { font-size: 18px; }
    .axil-section-gap.bg-color-white .table td,
    .axil-section-gap.bg-color-white .table th { padding: 10px 8px; font-size: 14px; }
}

@media (max-width: 575px) {
    /* Step icons further compact */
    .order-tracker .step-icon { width: 36px; height: 36px; font-size: 14px; }
    .order-tracker::before,
    .order-tracker .progress-line { top: 30px; left: 18px; right: 18px; }
    .order-tracker .step-label { font-size: 10px; line-height: 1.2; }

    .order-card { padding: 14px; margin-bottom: 14px; }
    .order-card h5 { font-size: 16px; }
    .order-card .badge.fs-6 { font-size: 12px !important; }
    .cancelled-banner { font-size: 14px; padding: 12px; }

    /* Single-order view header */
    .axil-section-gap .text-center h2 { font-size: 22px; }
    .axil-section-gap .text-center i.fa-check-circle,
    .axil-section-gap .text-center i.fa-times-circle,
    .axil-section-gap .text-center i.fa-box { font-size: 40px !important; }

    /* Delivery details table — convert to two-line key/value rows */
    .axil-section-gap .card table.table tr { display: block; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
    .axil-section-gap .card table.table tr:last-child { border-bottom: 0; }
    .axil-section-gap .card table.table td {
        display: block !important;
        width: 100% !important;
        border: 0 !important;
        padding: 2px 0 !important;
        font-size: 13px;
    }
    .axil-section-gap .card table.table td:first-child {
        font-size: 12px;
        color: #888;
        text-transform: uppercase;
        letter-spacing: .3px;
    }

    /* Items Ordered table — stack as cards */
    .axil-section-gap .card .table thead { display: none; }
    .axil-section-gap .card .table.items-stack,
    .axil-section-gap .card .table {
        min-width: 0 !important;
    }
    /* Fallback: any items table where the first td doesn't carry strong styling */
    .axil-section-gap .card h4.mb-3 + .table tbody tr {
        display: block;
        border: 1px solid #eee;
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 10px 12px;
    }
    .axil-section-gap .card h4.mb-3 + .table tbody td {
        display: block !important;
        width: 100% !important;
        border: 0 !important;
        padding: 3px 0 !important;
        text-align: left !important;
        font-size: 13px;
    }
    .axil-section-gap .card h4.mb-3 + .table tbody td:nth-child(2)::before { content: "Price: "; color: #888; }
    .axil-section-gap .card h4.mb-3 + .table tbody td:nth-child(3)::before { content: "Qty: "; color: #888; }
    .axil-section-gap .card h4.mb-3 + .table tbody td:nth-child(4)::before { content: "Subtotal: "; color: #888; }
    .axil-section-gap .card h4.mb-3 + .table tbody td:nth-child(4) { font-weight: 600; }
    .axil-section-gap .card h4.mb-3 + .table tfoot tr {
        display: flex;
        justify-content: space-between;
        padding: 8px 12px;
    }
    .axil-section-gap .card h4.mb-3 + .table tfoot td { display: block !important; padding: 0 !important; border: 0 !important; font-size: 13px; }

    /* Retry payment alert wraps cleanly */
    .axil-section-gap .alert.alert-warning { flex-direction: column; align-items: stretch; gap: 10px; }
    .axil-section-gap .alert.alert-warning .axil-btn { width: 100%; }
}

/* ---------- Header — extra breathing room above and below the navbar ---------- */
.axil-header .axil-mainmenu .header-navbar {
    padding-top: 14px;
    padding-bottom: 14px;
}
@media (max-width: 991px) {
    .axil-header .axil-mainmenu .header-navbar {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}
@media (max-width: 575px) {
    .axil-header .axil-mainmenu .header-navbar {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* ---------- Header (logo + nav + cart icons) ---------- */
/* Extend the theme's slide-out hamburger menu into the 992-1199 range so
   the desktop nav doesn't wrap at tablet/laptop widths. */
@media (min-width: 992px) and (max-width: 1199px) {
    .axil-mobile-toggle,
    .axil-mainmenu .mobile-nav-toggler { display: inline-flex !important; }
    .header-navbar { flex-wrap: nowrap !important; }
    .header-nav-department .department-title { padding: 10px 14px !important; font-size: 14px !important; }

    /* Slide-out panel mirrors theme's ≤991 styles (width, padding, etc.) */
    .header-main-nav .mainmenu-nav {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: -250px;
        width: 250px;
        background: #fff;
        z-index: 1000;
        padding: 20px 30px 10px;
        box-shadow: -8px 0 24px rgba(0, 0, 0, .08);
        transition: right .3s ease-in-out;
        overflow-y: auto;
    }
    .header-main-nav.open .mainmenu-nav { right: 0 !important; }

    .header-main-nav .mainmenu-nav .mainmenu {
        display: block !important;
        margin: 0 !important;
        height: auto;
        overflow: visible;
    }
    .header-main-nav .mainmenu-nav .mainmenu > li {
        margin: 10px 0 !important;
        display: block;
    }
    .header-main-nav .mainmenu-nav .mainmenu > li > a {
        line-height: 1.5 !important;
        height: auto !important;
        padding: 5px 0 !important;
        display: inline-block;
        color: var(--color-body);
    }
    /* Theme adds a black underline pseudo on each menu link — kill it inside the slide-out */
    .header-main-nav .mainmenu-nav .mainmenu > li > a::before,
    .header-main-nav .mainmenu-nav .mainmenu > li > a::after {
        display: none !important;
        content: none !important;
    }

    /* Submenu (Services dropdown) — collapsed inline, not absolute floating.
       NO !important on display so the theme JS .slideToggle() can flip it. */
    .header-main-nav .mainmenu-nav .mainmenu > li.menu-item-has-children .axil-submenu {
        display: none;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 4px 0 4px 14px !important;
        min-width: auto !important;
        width: 100% !important;
    }
    .header-main-nav .mainmenu-nav .mainmenu > li.menu-item-has-children .axil-submenu li a {
        padding: 5px 0 !important;
    }

    /* Down arrow next to "Services" — placed just outside the link's right
       edge, matching the theme's ≤991 layout exactly (right: -18px, top: 4px) */
    .header-main-nav .mainmenu-nav .mainmenu > li.menu-item-has-children > a {
        position: relative !important;
        display: inline-block !important;
    }
    .header-main-nav .mainmenu-nav .mainmenu > li.menu-item-has-children > a::after {
        content: "\f107" !important;            /* Font Awesome angle-down */
        font-family: var(--font-awesome), "Font Awesome 6 Pro", "Font Awesome 5 Pro", "FontAwesome" !important;
        font-weight: 400 !important;
        position: absolute !important;
        right: -18px !important;
        top: 10px !important;                    /* match theme's ≤991 rule exactly */
        left: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        color: var(--color-body) !important;
        font-size: 14px !important;
        line-height: 1 !important;
        display: inline-block !important;
        transform: rotate(0deg);
        transform-origin: center center;
        transition: transform .25s ease;
    }
    .header-main-nav .mainmenu-nav .mainmenu > li.menu-item-has-children:hover > a::after,
    .header-main-nav .mainmenu-nav .mainmenu > li.menu-item-has-children.open > a::after,
    .header-main-nav .mainmenu-nav .mainmenu > li.menu-item-has-children.active > a::after {
        transform: rotate(180deg);
    }

    /* Force the brand image visible at the top of the slide-out (theme hides it >=992) */
    .mainmenu-nav .mobile-nav-brand {
        display: block !important;
        margin: 0 0 30px !important;
        padding: 0 !important;
        border: 0 !important;
    }
    .mainmenu-nav .mobile-nav-brand a {
        display: inline-block !important;
        text-decoration: none !important;
        border: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
    .mainmenu-nav .mobile-nav-brand a::before,
    .mainmenu-nav .mobile-nav-brand a::after { display: none !important; content: none !important; }
    .mainmenu-nav .mobile-nav-brand img {
        max-height: 35px !important;
        display: block !important;
        border: 0 !important;
    }
}

/* Down-arrow rotation on open menu items — works on all slide-out sizes
   (theme's native ≤991 range AND our extended 992-1199 range) */
@media (max-width: 1199px) {
    .header-main-nav .mainmenu-nav .mainmenu > li.menu-item-has-children > a::after {
        transition: transform .25s ease;
        display: inline-block;
    }
    .header-main-nav .mainmenu-nav .mainmenu > li.menu-item-has-children:hover > a::after,
    .header-main-nav .mainmenu-nav .mainmenu > li.menu-item-has-children.open > a::after,
    .header-main-nav .mainmenu-nav .mainmenu > li.menu-item-has-children.active > a::after {
        transform: rotate(180deg);
    }

    /* Hover-show submenu (cursor users) — works at every slide-out width */
    .header-main-nav .mainmenu-nav .mainmenu > li.menu-item-has-children:hover > .axil-submenu {
        display: block;
    }
}

/* Slide-out close (×) — visible, top-right, proper tap target. Applies to
   both theme's mobile range (≤991) and our extended range (992-1199) */
@media (max-width: 1199px) {
    .mainmenu-nav .mobile-close-btn,
    .mainmenu-nav .mobile-nav-toggler.mobile-close-btn {
        position: absolute !important;
        top: 14px !important;
        right: 14px !important;
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: #fe7bbf !important;
        color: #fff !important;
        font-size: 16px !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    }
    .mainmenu-nav .mobile-close-btn i { color: #fff !important; font-size: 14px !important; }
    .mainmenu-nav .mobile-nav-brand { padding-right: 60px; }
}
@media (max-width: 991px) {
    .header-brand a img { max-height: 38px !important; }
    .header-action .action-list li { margin: 0 5px; }
}
@media (max-width: 575px) {
    .axil-mainmenu .container { padding-left: 12px; padding-right: 12px; }
    .header-brand a img { max-height: 32px !important; }
}

/* Make sure the hamburger is always visible on phones (≤991) — header2 layout */
@media (max-width: 991px) {
    .header-action .axil-mobile-toggle,
    .header-action .axil-mobile-toggle a,
    .header-action .axil-mobile-toggle button,
    .axil-mainmenu .mobile-nav-toggler {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
    .header-action .action-list { flex-wrap: nowrap; }
    .header-action .action-list li { flex-shrink: 0; }
}
@media (max-width: 360px) {
    /* Ultra-narrow phones — ensure each icon button has enough room */
    .header-action .action-list li { margin: 0 3px !important; }
    .header-action .action-list li a,
    .header-action .action-list li button { font-size: 18px; }
    .axil-mainmenu .container { padding-left: 8px; padding-right: 8px; }
}

/* ---------- Search dropdown — mobile = full-width strip docked below the header ---------- */
@media (max-width: 767px) {
    /* Anchor the dropdown to the <header>, not the small <li>, so it
       always drops below the navbar regardless of header height */
    header.axil-header { position: relative; }
    .axil-search.d-sm-none.d-block,
    .axil-search { position: static !important; }

    .axil-search .header-search-dropdown {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 12px 14px !important;
        border-radius: 0 0 12px 12px !important;
        border-left: 0 !important;
        border-right: 0 !important;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
        z-index: 10000 !important;
    }
    .axil-search .site-search-input {
        width: 100% !important;
        font-size: 15px !important;
        padding: 12px 14px !important;
        border-radius: 8px !important;
    }
    .axil-search .live-search-results {
        position: static !important;
        width: 100% !important;
        max-height: 60vh !important;
        margin-top: 10px;
        border-radius: 8px;
    }
}

/* ---------- Footer ---------- */
@media (max-width: 991px) {
    .axil-footer-area .col-lg-3 { margin-bottom: 28px; }
}

/* ---------- Section gaps shrink on small screens ---------- */
@media (max-width: 767px) {
    .axil-section-gap { padding-top: 50px; padding-bottom: 50px; }
}
@media (max-width: 575px) {
    .axil-section-gap { padding-top: 32px; padding-bottom: 32px; }
    .section-title-wrapper .title,
    h2.title { font-size: 22px; }
}

/* ---------- Buttons full-width on extra-small screens for CTAs that should stretch ---------- */
@media (max-width: 575px) {
    .axil-btn.btn-bg-primary.w-100,
    .axil-btn.btn-bg-lighter.w-100 { width: 100%; }
}

/* ---------- Breadcrumb wraps cleanly ---------- */
@media (max-width: 575px) {
    .axil-breadcrumb { flex-wrap: wrap; gap: 4px 8px; font-size: 12px; }
    .axil-breadcrumb-area .title { font-size: 26px !important; }
}

/* ---------- Modal / popup safety on tiny screens ---------- */
@media (max-width: 575px) {
    .swal2-popup { font-size: 14px !important; }
}

/* ---------- Image safety: prevent any image from overflowing ---------- */
img { max-width: 100%; height: auto; }

/* ---------- Portfolio + Portfolio Details — responsive cards ---------- */
/* Override the inline fixed pixel widths on the cards */
.axil-new-arrivals-product-area .axil-product .thumbnail img,
.portfolio-card img,
.portfolio-thumb img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
@media (max-width: 991px) {
    .axil-new-arrivals-product-area .axil-product .thumbnail img,
    .portfolio-card img,
    .portfolio-thumb img {
        max-height: 380px;
    }
}
@media (max-width: 575px) {
    .axil-new-arrivals-product-area .axil-product .thumbnail img,
    .portfolio-card img,
    .portfolio-thumb img {
        max-height: 320px;
    }
}

/* ---------- Login / Register — visible borders + comfortable form ---------- */
/* Target the form fields inside the centered card on these auth pages */
.axil-section-gap .col-lg-5 .card .form-control,
.axil-section-gap .col-lg-5 .card input[type="text"],
.axil-section-gap .col-lg-5 .card input[type="email"],
.axil-section-gap .col-lg-5 .card input[type="password"],
.axil-section-gap .col-lg-5 .card input[type="tel"],
.axil-section-gap .col-lg-5 .card input[type="number"] {
    height: 44px !important;
    padding: 8px 14px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 6px !important;
    width: 100% !important;
    font-size: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s;
}
.axil-section-gap .col-lg-5 .card .form-control:focus,
.axil-section-gap .col-lg-5 .card input:focus {
    border-color: #fe7bbf !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(254, 123, 191, .15) !important;
}
.axil-section-gap .col-lg-5 .card label.form-label {
    font-size: 13px;
    margin-bottom: 6px;
}

@media (max-width: 575px) {
    .axil-section-gap .col-lg-5 .card { padding: 20px !important; }
    .axil-section-gap .col-lg-5 h3 { font-size: 22px; }
}

/* Product unit pill (e.g. "1 kg", "500 g", "10 pcs") shown on product cards and detail page */
.product-unit {
    display: inline-block;
    background: #f3f3f3;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin: 4px 0 6px;
    line-height: 1.4;
}

/* Product detail page unit gets a slightly bolder treatment (matches "1 kg" hero look) */
.pd-info .product-unit {
    font-size: 13px;
    padding: 4px 12px;
    margin: 0 0 12px;
}

/* Tighter on small screens so it doesn't dominate compact product cards */
@media (max-width: 575px) {
    .product-unit {
        font-size: 11px;
        padding: 2px 8px;
        border-radius: 10px;
        margin: 3px 0 4px;
    }
    .pd-info .product-unit {
        font-size: 12px;
        padding: 3px 10px;
    }
}

/* Admin-form unit row: keep the text input wide enough on mobile so the dropdown
   doesn't squeeze the value box into a single character. */
@media (max-width: 480px) {
    .input-group input[name="unit_value"] { min-width: 0; flex: 1 1 60%; }
    .input-group select[name="unit_type"] { flex: 1 1 40%; }
}

/* ---------- Hero slider — full-bleed, with text and buttons overlaid on the media ---------- */
.hero-slider-area { position: relative; width: 100%; overflow: hidden; background: #000; }
.hero-slider { width: 100%; }
.hero-slide { position: relative; width: 100%; height: 80vh; min-height: 480px; max-height: 820px; }
.hero-media { width: 100%; height: 100%; object-fit: contain; }
.hero-media img,
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* show the WHOLE image/video — no cropping of promo text */
    object-position: center;
    display: block;
    background: #f7f1f4;    /* soft neutral fills the letterbox gaps (blends with pink promos) */
}
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}
.hero-overlay-inner {
    text-align: center;
    color: #fff;
    pointer-events: auto;
    padding: 0 20px;
    max-width: 900px;
}
.hero-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    margin: 0 0 20px;
    line-height: 1.15;
}
.hero-cta {
    display: inline-block;
    background: #C1272D;
    color: #fff;
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid #C1272D;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.hero-cta:hover { background: transparent; color: #fff; border-color: #fff; }
/* Slick dots positioned inside hero, near the bottom */
.hero-slider .slick-dots { bottom: 24px; z-index: 3; }
.hero-slider .slick-dots li button:before { color: #fff; opacity: 0.55; font-size: 10px; }
.hero-slider .slick-dots li.slick-active button:before { color: #fff; opacity: 1; }

/* ---- Hero responsive scale ---- */
/* Laptop / small desktop */
@media (max-width: 1199px) {
    .hero-slide { height: 70vh; min-height: 440px; }
}
/* Tablet */
@media (max-width: 991px) {
    .hero-slide { height: 60vh; min-height: 400px; }
    .hero-title { margin-bottom: 16px; }
}
/* Large phone / small tablet */
@media (max-width: 767px) {
    .hero-slide { height: 52vh; min-height: 340px; }
    .hero-overlay {
        /* push text a bit lower & lighter gradient so image stays visible */
        align-items: flex-end;
        padding-bottom: 42px;
        background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.6) 100%);
    }
    .hero-title { margin-bottom: 14px; }
    .hero-cta { padding: 11px 26px; font-size: 12px; letter-spacing: 1px; }
    .hero-slider .slick-dots { bottom: 12px; }
}
/* Small phone */
@media (max-width: 575px) {
    .hero-slide { height: 46vh; min-height: 280px; }
    .hero-overlay-inner { padding: 0 16px; }
    .hero-cta { padding: 10px 22px; }
}