﻿/* ============================================
   Mexa â€” UI Improvements (custom overrides)
   Loaded after style.css / responsive.css
   ============================================ */

:root {
    --mexa-purple: #6a27b3;
    --mexa-purple-dark: #571d99;
    --mexa-dark: #111111;
    --mexa-orange: #fe4f19;
    --mexa-border: #ececec;
    --mexa-text: #222222;
    --mexa-muted: #777777;
}

/* ============================================
   HEADER MIDDLE
   ============================================ */

.header-middle {
    padding: 16px 0;
    background: #fff;
}

.hm-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
}

/* Logo */
.logo {
    flex: 0 0 auto;
}

.logo a img {
    width: 96px;
    height: auto;
    display: block;
}

/* Search */
.header-middle-inner {
    flex: 1 1 300px;
    min-width: 240px;
}

.header-middle-inner form {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.top-cat .nice-select {
    height: 46px;
    width: 132px;
    min-width: 132px;
    font-size: 13px;
    padding: 0 18px;
    border-radius: 6px 0 0 6px;
    background: #f4f4f4;
    border-color: #e4e4e4;
}

.top-cat .nice-select .current {
    line-height: 44px;
}

input.top-cat-field {
    height: 46px;
    width: calc(100% - 282px);
    min-width: 110px;
    font-size: 14px;
    padding: 0 14px;
    border: 1px solid #e4e4e4;
    border-left: none;
    color: #555;
    outline: none;
    background: #fff;
}

input.top-cat-field:focus {
    border-color: var(--mexa-purple);
}

.top-search-btn {
    height: 46px;
    width: 150px;
    min-width: 120px;
    border-radius: 0 6px 6px 0;
    font-size: 17px;
    line-height: 46px;
    padding: 0 20px;
    background: var(--mexa-purple);
    transition: background .2s ease;
}

.top-search-btn:hover {
    background: var(--mexa-purple-dark);
}

/* Header icons */
.header-icons {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.hdr-icons {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hdr-icons .hdr-profile {
    position: relative;
}

.hdr-icons .ha-toggle,
.mini-cart-option .ha-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--mexa-text);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.hdr-icons .ha-toggle i.fa-user-circle {
    font-size: 22px;
    color: var(--mexa-text);
}

.hdr-icons .ha-toggle:hover,
.hdr-icons .ha-toggle:hover i.fa-user-circle {
    color: var(--mexa-purple);
}

.hdr-icons .lnr-chevron-down {
    font-size: 11px;
}

.hdr-label {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cart */
.mini-cart-option {
    float: none;
    display: flex;
    align-items: center;
}

.mini-cart-option li {
    margin-left: 0;
    position: relative;
}

.mini-cart-option li span.lnr-cart {
    font-size: 24px;
    padding-right: 6px;
}

.mini-cart-option li a {
    max-width: none;
}

.mini-cart-option .count {
    left: 20px;
    top: -10px;
    height: 18px;
    width: 18px;
    line-height: 18px;
    font-size: 11px;
}

/* Profile / cart dropdowns */
.header-icons .ha-dropdown {
    top: calc(100% + 12px);
}

/* User account dropdown */
.header-icons .user-dropdown {
    width: 212px;
    padding: 8px 0;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    overflow: hidden;
}

.header-icons .user-dropdown .dd-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    background: var(--mexa-purple);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
}

.header-icons .user-dropdown .dd-head i {
    font-size: 17px;
    flex: 0 0 auto;
}

.header-icons .user-dropdown li a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 16px;
    color: #444;
    font-size: 13.5px;
    transition: background .15s ease, color .15s ease;
}

.header-icons .user-dropdown li a i {
    width: 16px;
    text-align: center;
    color: var(--mexa-purple);
    font-size: 13px;
    flex: 0 0 auto;
}

.header-icons .user-dropdown li a:hover {
    background: #f6f0fb;
    color: var(--mexa-purple);
}

.header-icons .user-dropdown .dd-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

.header-icons .user-dropdown .dd-logout,
.header-icons .user-dropdown .dd-logout i {
    color: #d9534f;
}

.header-icons .user-dropdown .dd-logout:hover {
    background: #fdf0f0;
    color: #d9534f;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: var(--mexa-dark);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    flex: 0 0 auto;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 998;
    opacity: 0;
    transition: opacity .25s ease;
}

.menu-overlay.show {
    display: block;
    opacity: 1;
}

/* ============================================
   HEADER TOP MENU (category nav)
   ============================================ */

.top-main-menu .main-menu li>a {
    padding: 10px 20px;
    font-size: 14px;
}

/* Mobile drawer head + close button (hidden on desktop) */
.mobile-drawer-head {
    display: none;
}

/* Mobile slide-in menu */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }

    .menu-overlay.show {
        display: block;
    }

    .header-top-menu {
        display: none;
    }

    .header-top-menu.menu-open {
        display: block;
        position: fixed !important;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 320px;
        max-width: 86vw;
        height: 100dvh;
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
        background: #fff;
        box-shadow: -4px 0 18px rgba(0, 0, 0, .18);
        padding: 0 0 20px;
        -webkit-animation: slideInRight .25s ease;
        animation: slideInRight .25s ease;
    }

    /* Drawer header with logo + close btn */
    .header-top-menu.menu-open .mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 14px;
        background: #fff;
        border-bottom: 1px solid #eee;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .mobile-drawer-logo img {
        width: 78px;
        height: auto;
        display: block;
    }

    .mobile-drawer-close {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border: none;
        border-radius: 50%;
        background: #111;
        color: #fff;
        font-size: 15px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .mobile-drawer-close:hover {
        background: var(--mexa-purple);
    }

    @keyframes slideInRight {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }

    .header-top-menu.menu-open .container-fluid {
        padding: 0;
    }

    .header-top-menu.menu-open .row {
        display: block;
        margin: 0;
    }

    .header-top-menu.menu-open .col-lg-12 {
        padding: 0;
    }

    .header-top-menu.menu-open .top-main-menu {
        float: none;
        width: 100%;
    }

    .header-top-menu.menu-open .main-menu {
        float: none;
    }

    .header-top-menu.menu-open .main-menu li {
        float: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .header-top-menu.menu-open .main-menu li>a {
        color: var(--mexa-text);
        padding: 13px 20px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header-top-menu.menu-open .main-menu li>a:hover {
        color: var(--mexa-purple);
    }

    .header-top-menu.menu-open .main-menu li span.lnr-chevron-right {
        font-size: 11px;
        margin-left: 0;
        transition: transform .2s ease;
    }

    .header-top-menu.menu-open .main-menu li.sub-open>a span.lnr-chevron-right {
        transform: rotate(90deg);
    }

    /* Submenus become accordions */
    .header-top-menu.menu-open .main-menu ul li ul.dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid #f0f0f0;
        background: #f8f8f8;
        display: none;
        padding: 0;
    }

    .header-top-menu.menu-open .main-menu li.sub-open>ul.dropdown {
        display: block;
    }

    .header-top-menu.menu-open .main-menu ul li ul.dropdown li {
        border-bottom: 1px solid #eee;
        padding-bottom: 0;
    }

    .header-top-menu.menu-open .main-menu ul li ul.dropdown li a {
        color: #555;
        padding: 11px 20px 11px 34px;
        font-size: 13px;
    }

    .header-top-menu.menu-open .main-menu ul li ul.dropdown li:hover>a {
        background: var(--mexa-purple);
        color: #fff;
    }

    /* Hide meanmenu container on mobile */
    .header-top-menu.menu-open .mobile-menu {
        display: none;
    }
}

/* ============================================
   PRODUCT CARDS (home page only â€” scoped to .product-row)
   ============================================ */

.product-row {
    margin: 0;
}

/* Widths Bootstrap cols thi (col-6 / col-md-4 / col-lg-3 / col-xl-2) */
.product-row .product-item {
    margin-bottom: 24px;
}

/* Exactly ONE border per card — wrapper never draws, card draws single border */
.product-item.col-6.col-md-4.col-lg-3.col-xl-2,
.product-item.col-6.col-md-4.col-lg-3.col-xl-2:hover {
    border: none;
    box-shadow: none;
}

.product-item.col-6.col-md-4.col-lg-3.col-xl-2 .product-card {
    border: 1px solid var(--mexa-border);
}

.product-item.col-6.col-md-4.col-lg-3.col-xl-2 .product-card:hover {
    border: 1px solid var(--mexa-purple);
}


.product-row .product-card {
    background: #fff;
    border: 1px solid var(--mexa-border);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.product-row .product-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
    transform: translateY(-3px);
}

.product-row .product-thumb {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: #fff;
}

.product-row .product-thumb a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-row .product-thumb img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.product-row .product-caption {
    padding: 4px 16px 18px;
    text-align: center;
    border-top: 1px solid #f4f4f4;
}

.product-row .product-name h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 12px 0 6px;
    padding: 0;
    min-height: 42px;
}

.product-row .product-card .product-name h4 a {
    color: var(--mexa-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto !important;
    width: 100%;
    font-size: 15px;
}

.product-row .product-name h4 a:hover {
    color: var(--mexa-purple);
}

.product-row .price-box {
    margin-top: 4px;
}

.product-row .price-box .special-price {
    color: var(--mexa-orange);
    font-weight: 700;
    font-size: 17px;
}

.product-row .price-box .old-price {
    color: #999;
    font-size: 14px;
    padding-left: 6px;
}

.product-row .price-box .old-price del {
    color: #999;
}

/* Card grid responsive */
@media (min-width: 1200px) {
    /* Laptop/desktop: 6 per row via col-xl-2 — fakt inner sizing, width Bootstrap sambhalse */

    .product-row .product-thumb {
        height: 175px;
        padding: 14px;
    }

    .product-row .product-caption {
        padding: 2px 12px 14px;
    }

    .product-row .product-name h4 {
        font-size: 13px;
        min-height: 37px;
        margin: 8px 0 4px;
    }

    .product-row .product-card .product-name h4 a {
        font-size: 13px;
    }

    .product-row .price-box .special-price {
        font-size: 15px;
    }

    .product-row .price-box .old-price {
        font-size: 12px;
    }
}

@media (max-width: 991px) {
    .product-row .product-thumb {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .product-row .product-item {
        margin-bottom: 16px;
    }

    .product-row .product-thumb {
        height: 170px;
        padding: 12px;
    }

    .product-row .product-caption {
        padding: 2px 10px 14px;
    }

    .product-row .product-name h4 {
        font-size: 13px;
        min-height: 36px;
        margin: 8px 0 4px;
    }

    .product-row .price-box .special-price {
        font-size: 15px;
    }
}

/* Hide hover second image everywhere */
.sec-img {
    display: none !important;
}

/* ============================================
   DEAL BADGES — NEW (auto-expires 2 weeks) + X% OFF (auto-computed)
   ============================================ */
.product-thumb .box-label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}

.product-thumb .label-product {
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    line-height: 22px;
    min-width: 62px;
    padding: 0 10px;
    border-radius: 5px;
    letter-spacing: .3px;
    white-space: nowrap;
}

.product-thumb .label-product.label_new {
    background: #83b71c;
    color: #fff;
}

.product-thumb .label-product.label_sale {
    background: var(--mexa-orange);
    color: #fff;
}

.product-thumb .label-product:nth-child(1) {
    top: 12px;
}

.product-thumb .label-product:nth-child(2) {
    top: 42px;
}

/* ============================================
   SECTION TITLES
   ============================================ */

.section-title h3 {
    font-size: 26px;
}

/* ============================================
   FEATURE STRIP (free shipping / support / money back)
   ============================================ */

.feature-inner {
    padding: 26px 10px;
}

.feature-inner .col {
    flex: 1 1 0;
    width: auto;
    max-width: none;
}

.feature-item {
    gap: 14px;
}

.feature-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.feature-content h4 {
    font-size: 16px;
}

.feature-content p {
    font-size: 12.5px;
}

@media (max-width: 767px) {
    .feature-inner {
        flex-direction: column;
        gap: 18px;
        padding: 24px 16px;
    }

    .feature-item {
        justify-content: flex-start;
    }
}

/* ============================================
   HEADER RESPONSIVE
   ============================================ */

/* Full-width header with padding on desktop */
@media (min-width: 1200px) {
    .header-middle .container-fluid,
    .header-top-menu .container-fluid {
        padding-left: 120px;
        padding-right: 120px;
    }
}

@media (max-width: 991px) {
    .hm-row {
        gap: 10px 14px;
    }

    .header-middle-inner {
        flex: 1 1 100%;
        order: 3;
        min-width: 0;
    }

    .header-icons {
        margin-left: auto;
        gap: 14px;
    }

    .hdr-icons {
        gap: 14px;
    }

    .logo a img {
        width: 84px;
    }

    .top-cat .nice-select {
        display: none;
    }

    input.top-cat-field {
        width: calc(100% - 120px);
        border-radius: 6px 0 0 6px;
        border-left: 1px solid #e4e4e4;
    }

    .top-search-btn {
        width: 120px;
    }
}

@media (max-width: 575px) {
    .header-icons {
        gap: 10px;
    }

    .hdr-icons {
        gap: 10px;
    }

    .hdr-label {
        display: none;
    }

    .mini-cart-option li a .cart-label {
        display: none;
    }
}

/* ============================================
   MISC
   ============================================ */

/* Shop by category tiles */
.shop-cat-grid {
    gap: 18px;
}

.shop-cat-img {
    border-radius: 12px;
}

/* Video testimonials */
.video-testimonial-slider .testimonial-item img {
    border-radius: 10px;
}

/* See All Hot Deals + Show All Products buttons */
.see-all-btn {
    margin-top: 23px;
    display: inline-block;
}

/* ============================================
   UNIFIED PRODUCT CARD — home look everywhere
   (shop grid #product_items, search .shop-product-wrap, .hot-deals-grid)
   ============================================ */
.shop-product-wrap .product-item,
.hot-deals-grid .product-item {
    background: #fff;
    border: 1px solid var(--mexa-border);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.shop-product-wrap .product-item:hover,
.hot-deals-grid .product-item:hover {
    border-color: var(--mexa-purple);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
    transform: translateY(-3px);
}

.shop-product-wrap .product-thumb,
.hot-deals-grid .product-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #fff;
}

.shop-product-wrap .product-thumb img.pri-img,
.hot-deals-grid .product-thumb img.pri-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Anchor pan thumb ma full lock — image kyarey bahar nikadse/cut thase nahi */
.shop-product-wrap .product-thumb a,
.hot-deals-grid .product-thumb a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-product-wrap .product-caption,
.hot-deals-grid .product-caption {
    text-align: center;
    padding: 8px 14px 16px;
    border-top: 1px solid #f4f4f4;
}

.shop-product-wrap .product-name h4,
.hot-deals-grid .product-name h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 6px 0 4px;
    padding: 0;
    min-height: 40px;
}

.shop-product-wrap .product-name h4 a,
.hot-deals-grid .product-name h4 a {
    color: var(--mexa-text);
    font-size: 14px;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-product-wrap .product-name h4 a:hover,
.hot-deals-grid .product-name h4 a:hover {
    color: var(--mexa-purple);
}

/* Home cards ma stars/category line nathi — badhe same look mate hide */
.shop-product-wrap .ratings,
.shop-product-wrap .manufacture-product {
    display: none;
}

.shop-product-wrap .price-box,
.hot-deals-grid .price-box {
    margin-top: 4px;
}

.shop-product-wrap .price-box .special-price,
.hot-deals-grid .price-box .special-price {
    color: var(--mexa-orange);
    font-weight: 700;
    font-size: 15px;
}

.shop-product-wrap .price-box .old-price,
.hot-deals-grid .price-box .old-price {
    color: #999;
    font-size: 13px;
    padding-left: 6px;
}

.shop-product-wrap .price-box .old-price del,
.hot-deals-grid .price-box .old-price del {
    color: #999;
}

@media (max-width: 767px) {
    .shop-product-wrap .product-caption,
    .hot-deals-grid .product-caption {
        padding: 6px 10px 12px;
    }

    /* Mobile: full image, no crop + no overlap — max-fit inside fixed thumb */
    .shop-product-wrap .product-thumb,
    .hot-deals-grid .product-thumb {
        height: 165px;
        padding: 10px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .shop-product-wrap .product-thumb a,
    .hot-deals-grid .product-thumb a {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .shop-product-wrap .product-thumb img.pri-img,
    .hot-deals-grid .product-thumb img.pri-img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .shop-product-wrap .product-name h4,
    .hot-deals-grid .product-name h4 {
        font-size: 13px;
        min-height: 36px;
        margin: 4px 0;
    }

    .shop-product-wrap .product-name h4 a,
    .hot-deals-grid .product-name h4 a {
        font-size: 13px;
    }
}

/* Equal-height cards (home jevi): caption flex, price bottom pin */
.product-row .product-caption,
.shop-product-wrap .product-caption,
.hot-deals-grid .product-caption {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.product-row .price-box,
.shop-product-wrap .price-box,
.hot-deals-grid .price-box {
    margin-top: auto;
    padding-top: 4px;
}

@media (min-width: 992px) {
    /* Inner pages: fixed image area jeti row ni badhi cards sarkhi height ni rahe */
    .shop-product-wrap .product-thumb {
        height: 230px;
    }

    .hot-deals-grid .product-thumb {
        height: 200px;
    }
}

/* ============================================
   SHOP PAGE — desktop 4-col compact cards
   ============================================ */
@media (min-width: 992px) {
    #product_items > [class*="col-"] {
        margin-bottom: 22px;
    }

    #product_items .product-item {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    #product_items .product-thumb {
        padding: 16px 16px 6px;
        height: 230px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #product_items .product-thumb a {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #product_items .product-thumb img.pri-img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    #product_items .product-caption {
        padding: 8px 14px 16px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    #product_items .product-name h4 {
        margin: 6px 0 4px;
        line-height: 1.4;
        min-height: 40px;
    }

    #product_items .product-name h4 a {
        font-size: 14px;
        width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #product_items .ratings {
        margin: 2px 0 5px;
        font-size: 12px;
    }

    #product_items .price-box .special-price {
        font-size: 15px;
    }

    #product_items .price-box .old-price {
        font-size: 13px;
    }
}

/* ============================================
   SHOP PAGE — mobile 2-col grid + side spacing
   ============================================ */
#product_items {
    width: 100%;
}

@media (max-width: 991px) {
    .main-wrapper .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .breadcrumb-area .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 767px) {
    .main-wrapper.pt-35 {
        padding-top: 16px;
    }

    .breadcrumb-area.mb-30 {
        margin-bottom: 12px;
    }

    .shop-top-bar.mb-30 {
        margin-bottom: 14px;
    }

    /* 2 cards per row with tight gutter */
    #product_items {
        margin-left: -6px;
        margin-right: -6px;
        width: calc(100% + 12px);
    }

    #product_items > [class*="col-"] {
        padding-left: 16px;
        padding-right: 26px;
        margin: 0px 0px 15px 0px;
    }

    #product_items .product-item {
        margin-bottom: 0 !important;
        border-radius: 10px;
        overflow: hidden;
    }

    #product_items .product-thumb {
        padding: 10px 10px 4px;
    }

    #product_items .product-thumb img.pri-img {
        max-width: 100%;
        max-height: 165px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    #product_items .box-label .label_new {
        font-size: 10px;
        padding: 2px 8px;
    }

    #product_items .product-caption {
        padding: 6px 10px 12px;
        text-align: center;
    }

    #product_items .product-name h4 {
        margin: 4px 0;
        line-height: 1.35;
        min-height: 36px;
    }

    #product_items .product-name h4 a {
        font-size: 13px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #product_items .ratings {
        margin: 2px 0 4px;
        font-size: 11px;
    }

    #product_items .price-box .special-price {
        font-size: 14px;
    }

    #product_items .price-box .old-price {
        font-size: 12px;
        margin-left: 4px;
    }

    /* skeleton loader same 2-col spacing */
    .skel-grid {
        gap: 12px;
        padding: 0 2px;
    }
}

@media (max-width: 380px) {
    #product_items .product-thumb img.pri-img {
        height: 140px !important;
    }
}

/* ============================================
   MINI CART dropdown — Amazon style in theme
   ============================================ */
.mini-cart-option .mini-cart-drop-down {
    width: 340px;
    max-width: calc(100vw - 24px);
    padding: 0;
    border: 1px solid #eee;
    border-bottom: 3px solid var(--mexa-purple);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
    overflow: hidden;
}

.mini-cart-option .mini-cart-drop-down > li.mc-head,
.mini-cart-option .mini-cart-drop-down > li.mc-subtotal {
    display: flex;
    margin: 0;
}

/* Header strip */
.mini-cart-option .mc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f6f0fb;
    color: var(--mexa-purple);
    font-weight: 700;
    font-size: 14px;
}

.mini-cart-option .mc-close {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #888;
    padding: 2px 6px;
    border-radius: 50%;
}

.mini-cart-option .mc-close:hover {
    color: #d9534f;
    background: #fdf0f0;
}

/* Item row */
.mini-cart-option .mc-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #f2f2f2;
}

.mini-cart-option .mc-item .cart-img {
    flex: 0 0 62px;
    width: 62px;
    margin: 0;
}

.mini-cart-option .mc-item .cart-img img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    display: block;
}

.mini-cart-option .mc-item .cart-info {
    flex: 1 1 auto;
    min-width: 0;
}

.mini-cart-option .mc-item .cart-info h4 {
    margin: 0 0 4px;
    line-height: 1.35;
}

.mini-cart-option .mc-item .cart-info h4 a {
    color: var(--mexa-text);
    font-size: 13px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-cart-option .mc-item .cart-info h4 a:hover {
    color: var(--mexa-purple);
}

.mini-cart-option .mc-color {
    display: block;
    font-size: 12px;
    color: #777;
}

.mini-cart-option .mc-line {
    font-size: 13px;
    color: #444;
}

.mini-cart-option .mc-line strong {
    color: var(--mexa-text);
    font-size: 14px;
}

.mini-cart-option .mc-item .del-icon {
    flex: 0 0 auto;
    align-self: flex-start;
    cursor: pointer;
    color: #aaa;
    font-size: 15px;
    padding: 2px;
}

.mini-cart-option .mc-item .del-icon:hover {
    color: #d9534f;
}

/* Subtotal row */
.mini-cart-option .mc-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #eee;
    background: #fafafa;
    font-size: 13px;
    color: #555;
}

.mini-cart-option .mc-subtotal .subtotal-price span {
    color: var(--mexa-purple);
    font-weight: 700;
    font-size: 15px;
}

/* Buttons — one row, two equal pills */
.mini-cart-option .mc-btn-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 12px 14px 14px;
}

.mini-cart-option .mc-btn-row .cart-button {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    text-align: center;
    border-radius: 999px;
    line-height: 1.4;
    padding: 10px 6px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-cart-option .mc-btn-row .mc-btn-cart {
    background: #fff;
    border: 1px solid var(--mexa-purple);
    color: var(--mexa-purple);
}

.mini-cart-option .mc-btn-row .mc-btn-cart:hover {
    background: #f6f0fb;
    color: var(--mexa-purple);
}

.mini-cart-option .mc-btn-row .mc-btn-buy {
    background: var(--mexa-purple);
    border: 1px solid var(--mexa-purple);
    color: #fff;
}

.mini-cart-option .mc-btn-row .mc-btn-buy:hover {
    background: var(--mexa-purple-dark);
    color: #fff;
}
