/* ============================================
   EduKidoBd — Baby Educational Toy Shop Theme
   Custom Overrides for CozaStore Base
   ============================================ */

/* ─── CSS Variables ─── */
:root {
    /* Primary - Turquoise */
    --ek-primary:        #4ECDC4;
    --ek-primary-dark:   #3BAFA8;
    --ek-primary-light:  #E8FAF8;

    /* CTA - Coral */
    --ek-cta:            #FF8C5A;
    --ek-cta-dark:       #E87A4A;

    /* Accents */
    --ek-yellow:         #FFD93D;
    --ek-blue:           #6C9BCF;
    --ek-green:          #6BCB77;
    --ek-pink:           #FF6B9D;

    /* Backgrounds */
    --ek-bg:             #FFF8F0;
    --ek-bg-card:        #FFFFFF;
    --ek-bg-alt:         #FDF5EC;

    /* Text */
    --ek-text:           #2D3436;
    --ek-text-muted:     #636E72;

    /* Borders & Shadows */
    --ek-border:         #F0E6D8;
    --ek-shadow:         0 4px 15px rgba(0,0,0,0.06);
    --ek-shadow-hover:   0 8px 25px rgba(0,0,0,0.10);

    /* Radius */
    --ek-radius:         12px;
    --ek-radius-lg:      16px;
    --ek-radius-pill:    9999px;
}

/* ─── Global Overrides ─── */
body {
    font-family: 'Quicksand', sans-serif !important;
    background-color: var(--ek-bg);
}

/* ─── Sticky Header System ─── */

/* Container for entire header - fixed */
.container-menu-desktop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    background: white;
}

/* Top bar - Turquoise with white text */
.top-bar {
    background: var(--ek-primary) !important;
    height: 40px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.content-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 20px !important;
    height: 40px !important;
}

.left-top-bar {
    font-size: 13px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    height: 40px !important;
}

.right-top-bar {
    display: flex !important;
    align-items: center !important;
    height: 40px !important;
    margin: 0 !important;
}

.right-top-bar a,
.right-top-bar button {
    font-size: 13px !important;
    padding: 0 15px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    text-decoration: none !important;
}

.right-top-bar form {
    display: flex !important;
    align-items: center !important;
    height: 40px !important;
    margin: 0 !important;
}

.top-bar,
.top-bar *,
.top-bar a,
.top-bar button,
.top-bar .left-top-bar,
.top-bar .right-top-bar,
.top-bar .right-top-bar *,
.top-bar form,
.top-bar form button,
.top-bar .flex-c-m,
.top-bar .p-lr-25 {
    color: white !important;
}

.top-bar a:hover,
.top-bar button:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1) !important;
}

.logoff {
    cursor: pointer;
}

/* Remove any unwanted margins/padding from top bar elements */
.top-bar .flex-sb-m {
    margin: 0 !important;
    padding: 0 20px !important;
}

.top-bar .flex-w {
    margin: 0 !important;
}

.top-bar .h-full {
    height: 40px !important;
}

/* Wrap header - contains menu */
.wrap-header {
    position: relative !important;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    top: 0 !important;
    margin-top: 0 !important;
}

/* Desktop menu navigation */
.wrap-menu-desktop {
    position: relative !important;
    background: #fff;
    width: 100% !important;
    top: 0 !important;
}

/* Menu navigation alignment - Always compact size */
.limiter-menu-desktop {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 20px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    height: 70px !important;
    transition: none !important;
}

/* Prevent size changes on scroll - Remove all transitions */
.header-v4 .wrap-menu-desktop,
.header-v4.fixedNav .wrap-menu-desktop,
.fixedNav .wrap-menu-desktop {
    height: 70px !important;
    transition: none !important;
    transform: none !important;
}

.header-v4 .limiter-menu-desktop,
.header-v4.fixedNav .limiter-menu-desktop,
.fixedNav .limiter-menu-desktop {
    height: 70px !important;
    padding: 10px 20px !important;
    transition: none !important;
    transform: none !important;
}

/* Remove any JS-based animations */
.container-menu-desktop.fixedNav .wrap-menu-desktop,
.container-menu-desktop .wrap-menu-desktop {
    height: 70px !important;
    transition: none !important;
}

.wrap-menu-desktop * {
    transition: color 0.3s ease, background 0.3s ease, opacity 0.3s ease !important;
}

.logo {
    flex-shrink: 0;
    margin-right: 30px;
    display: flex;
    align-items: center;
    height: 50px !important;
}

.logo img {
    max-height: 50px !important;
    width: auto !important;
    display: block;
    transition: none !important;
}

/* Keep logo same size always - no scroll animation */
.header-v4 .logo img,
.header-v4.fixedNav .logo img {
    max-height: 50px !important;
    transition: none !important;
}

.menu-desktop {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrap-icon-header {
    display: flex;
    align-items: center;
    margin-left: 30px;
    flex-shrink: 0;
}

/* Add proper spacing below fixed header for all pages */
body {
    padding-top: 110px !important; /* Height of top bar (40px) + menu (70px) */
    margin: 0 !important;
}

/* Remove extra margins from containers */
.container-menu-desktop {
    margin: 0 !important;
}

.wrap-header {
    margin: 0 !important;
}

.wrap-menu-desktop {
    margin: 0 !important;
}

/* Content area spacing */
.body-content {
    margin-top: 20px !important;
    padding-top: 0 !important;
}

.bg0.p-t-75.p-b-85,
.bg0.p-t-80.p-b-140 {
    margin-top: 0 !important;
    padding-top: 40px !important;
}

/* Specific spacing for main content areas */
.sec-banner,
.bg0.p-t-23.p-b-140,
.breadcrumb-shop,
main {
    margin-top: 20px;
}

/* Main menu alignment - Always same size */
.main-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.main-menu > li {
    display: inline-block !important;
    padding: 0 15px !important;
    position: relative;
}

.main-menu > li > a {
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 8px 5px !important;
    display: block !important;
    color: #2D3436 !important;
    transition: color 0.3s ease;
    white-space: nowrap !important;
}

/* Prevent menu size changes on scroll */
.header-v4 .main-menu > li > a,
.header-v4.fixedNav .main-menu > li > a {
    font-size: 14px !important;
    padding: 8px 5px !important;
    transition: color 0.3s ease;
}

.main-menu > li > a:hover {
    color: var(--ek-primary) !important;
}

/* Submenu styles */
.main-menu > li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
}

.main-menu > li:hover .sub-menu {
    display: block !important;
}

.main-menu .sub-menu li {
    list-style: none;
}

.main-menu .sub-menu li a {
    padding: 10px 20px;
    display: block;
    color: #2D3436 !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

.main-menu .sub-menu li a:hover {
    background: var(--ek-primary-light);
    color: var(--ek-primary) !important;
    padding-left: 25px;
}

/* Header icons - Larger and more prominent */
.icon-header-item {
    font-size: 28px !important;
    color: #2D3436 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-header-item:hover {
    color: var(--ek-primary) !important;
    transform: scale(1.1);
}

/* Keep icon size consistent on scroll */
.header-v4 .icon-header-item,
.header-v4.fixedNav .icon-header-item,
.fixedNav .icon-header-item {
    font-size: 28px !important;
}

/* Search icon specifically */
.js-show-modal-search {
    font-size: 28px !important;
}

/* Cart icon */
.icon-header-noti {
    font-size: 28px !important;
}

/* Cart badge */
.cart-badge {
    position: relative;
}

.cart-badge .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--ek-cta) !important;
    color: white !important;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* ─── Cart Modal Styling ─── */
.header-cart,
.wrap-header-cart {
    position: fixed !important;
    top: 110px !important;
    right: 20px !important;
    width: 420px !important;
    max-width: calc(100vw - 40px) !important;
    z-index: 10001 !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    max-height: calc(100vh - 130px) !important;
    overflow-y: auto !important;
    padding: 0 !important;
}

.header-cart.show-header-cart,
.wrap-header-cart.show-header-cart {
    visibility: visible !important;
    opacity: 1 !important;
}

.header-cart .modal-body,
.header-cart-content {
    padding: 20px !important;
}

.header-cart .row {
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #E9ECEF !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: center !important;
}

.header-cart .row:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    background: #F8F9FA !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-top: 10px !important;
}

/* Cart modal product item */
.header-cart .col-md-3 {
    padding: 0 10px !important;
}

.header-cart .col-md-3 img {
    border-radius: 8px !important;
    border: 2px solid #F0F0F0 !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

.header-cart .col-md-6 {
    padding: 0 10px !important;
}

.header-cart .col-md-6 h4 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #2D3436 !important;
    margin-bottom: 5px !important;
    line-height: 1.4 !important;
}

.header-cart .col-md-6 h6 {
    font-size: 12px !important;
    color: #636E72 !important;
    margin: 0 !important;
}

.header-cart .row .col-md-3:last-child {
    text-align: right !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--ek-cta) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 10px !important;
}

/* Cart summary row */
.header-cart .col-md-7 {
    font-size: 14px !important;
    color: #2D3436 !important;
    display: flex !important;
    align-items: center !important;
}

.header-cart .col-md-5 {
    text-align: right !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #2D3436 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.header-cart .cart-item-count {
    font-weight: 700 !important;
    color: var(--ek-cta) !important;
}

/* Cart modal header */
.header-cart .modal-header,
.header-cart-wrapbtn {
    padding: 15px 20px !important;
    border-bottom: 2px solid #E9ECEF !important;
    background: var(--ek-primary-light) !important;
    border-radius: 12px 12px 0 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.header-cart .modal-header h5,
.header-cart-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #2D3436 !important;
    margin: 0 !important;
}

/* Cart modal buttons */
.header-cart .modal-footer,
.header-cart-wrapbtn {
    padding: 15px 20px !important;
    border-top: 1px solid #E9ECEF !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

.header-cart .modal-footer .btn,
.header-cart-wrapbtn .btn {
    border-radius: 8px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    flex: 1 !important;
}

.header-cart .btn-primary,
.header-cart .flex-c-m.stext-101.cl0.size-107 {
    background: var(--ek-cta) !important;
    border-color: var(--ek-cta) !important;
    color: white !important;
}

.header-cart .btn-primary:hover {
    background: var(--ek-cta-dark) !important;
    border-color: var(--ek-cta-dark) !important;
}

.header-cart .btn-secondary,
.header-cart .flex-c-m.stext-101.cl2.size-107 {
    background: white !important;
    border: 2px solid #E9ECEF !important;
    color: #2D3436 !important;
}

.header-cart .btn-secondary:hover {
    background: #F8F9FA !important;
}

/* Mobile responsive for cart modal */
@media (max-width: 767px) {
    .header-cart,
    .wrap-header-cart {
        top: 60px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-height: calc(100vh - 80px) !important;
    }

    .header-cart .col-md-3,
    .header-cart .col-md-6,
    .header-cart .col-md-7,
    .header-cart .col-md-5 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: left !important;
    }

    .header-cart .row .col-md-3:last-child {
        text-align: left !important;
        justify-content: flex-start !important;
        margin-top: 10px !important;
    }

    .header-cart .modal-footer,
    .header-cart-wrapbtn {
        flex-direction: column !important;
    }

    .header-cart .modal-footer .btn,
    .header-cart-wrapbtn .btn {
        width: 100% !important;
    }
}

/* ─── "Added to Cart" Modal Styling ─── */
#shopModal,
#productOverview {
    z-index: 10010 !important; /* Above navigation header (10000) */
}

#shopModal .modal-dialog,
#productOverview .modal-dialog {
    margin-top: 120px !important; /* Below fixed header */
    z-index: 10011 !important;
}

#shopModal .modal-content,
#productOverview .modal-content {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

#shopModal .modal-header {
    background: var(--ek-primary-light) !important;
    border-bottom: 2px solid #E9ECEF !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 20px !important;
}

#shopModal .modal-header .modal-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #2D3436 !important;
}

#shopModal .modal-header .close {
    font-size: 30px !important;
    opacity: 0.6 !important;
    padding: 0 !important;
    margin: 0 !important;
}

#shopModal .modal-header .close:hover {
    opacity: 1 !important;
}

#shopModal .modal-body {
    padding: 25px !important;
}

#shopModal .modal-body .row {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #E9ECEF !important;
    align-items: center !important;
}

#shopModal .modal-body .row:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    background: #F8F9FA !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-top: 10px !important;
}

#shopModal .modal-body .col-md-3 img {
    border-radius: 8px !important;
    border: 2px solid #F0F0F0 !important;
    max-width: 100% !important;
    height: auto !important;
}

#shopModal .modal-body .col-md-6 h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #2D3436 !important;
    margin-bottom: 5px !important;
}

#shopModal .modal-body .col-md-6 h6 {
    font-size: 13px !important;
    color: #636E72 !important;
}

#shopModal .modal-body .row .col-md-3:last-child {
    text-align: right !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--ek-cta) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

#shopModal .modal-body .col-md-7 {
    font-size: 14px !important;
    color: #2D3436 !important;
}

#shopModal .modal-body .col-md-5 {
    text-align: right !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #2D3436 !important;
}

#shopModal .modal-body .cart-item-count {
    font-weight: 700 !important;
    color: var(--ek-cta) !important;
}

#shopModal .modal-footer {
    padding: 20px !important;
    border-top: 1px solid #E9ECEF !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

#shopModal .modal-footer .btn {
    border-radius: 8px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    flex: 1 !important;
}

#shopModal .modal-footer .btn-light {
    background: white !important;
    border: 2px solid #E9ECEF !important;
    color: #2D3436 !important;
}

#shopModal .modal-footer .btn-light:hover {
    background: #F8F9FA !important;
}

#shopModal .modal-footer .btn-light:last-child,
#shopModal .modal-footer a.btn {
    background: var(--ek-cta) !important;
    border: 2px solid var(--ek-cta) !important;
    color: white !important;
}

#shopModal .modal-footer .btn-light:last-child:hover,
#shopModal .modal-footer a.btn:hover {
    background: var(--ek-cta-dark) !important;
    border-color: var(--ek-cta-dark) !important;
}

/* Modal backdrop */
.modal-backdrop {
    z-index: 10009 !important;
}

/* Mobile responsive for "Added to Cart" modal */
@media (max-width: 767px) {
    #shopModal .modal-dialog {
        margin: 60px 10px 10px 10px !important;
        max-width: calc(100vw - 20px) !important;
    }

    #shopModal .modal-body .col-md-3,
    #shopModal .modal-body .col-md-6,
    #shopModal .modal-body .col-md-7,
    #shopModal .modal-body .col-md-5 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: left !important;
    }

    #shopModal .modal-body .row .col-md-3:last-child {
        text-align: left !important;
        justify-content: flex-start !important;
        margin-top: 10px !important;
    }

    #shopModal .modal-footer {
        flex-direction: column !important;
    }

    #shopModal .modal-footer .btn {
        width: 100% !important;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 800;
}

/* ─── Primary Color Overrides ─── */
.bg1 {
    background-color: var(--ek-primary) !important;
}

.cl1 {
    color: var(--ek-primary) !important;
}

.hov-cl1:hover {
    color: var(--ek-primary) !important;
}

.bor1 {
    border-color: var(--ek-primary) !important;
}

.hov-btn1:hover {
    background-color: var(--ek-primary-dark) !important;
    border-color: var(--ek-primary-dark) !important;
}

/* ─── CTA/Button Styles ─── */
.btn-primary {
    background-color: var(--ek-cta) !important;
    border-color: var(--ek-cta) !important;
}

.btn-primary:hover {
    background-color: var(--ek-cta-dark) !important;
    border-color: var(--ek-cta-dark) !important;
}

/* ─── Product Cards ─── */
.block2 {
    border-radius: var(--ek-radius-lg);
    overflow: hidden;
    box-shadow: var(--ek-shadow);
    transition: all 0.3s ease;
    background: var(--ek-bg-card);
    position: relative;
}

.block2:hover {
    transform: translateY(-5px);
    box-shadow: var(--ek-shadow-hover);
}

.block2-btn {
    background: var(--ek-primary) !important;
    color: white !important;
}

.block2-btn:hover {
    background: var(--ek-primary-dark) !important;
}

/* ─── Add to Cart Button ─── */
.js-addcart {
    width: 100%;
    background: var(--ek-cta) !important;
    border-color: var(--ek-cta) !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.js-addcart:hover {
    background: var(--ek-cta-dark) !important;
    border-color: var(--ek-cta-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 90, 0.3);
}

.js-addcart i {
    font-size: 1.1em;
}

/* Out of Stock Button */
.bg8 {
    background: #999 !important;
    cursor: not-allowed;
}

/* ─── Navigation ─── */
.main-menu > li > a {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.main-menu > li > a:hover {
    color: var(--ek-primary) !important;
}

/* ─── Links ─── */
a {
    color: var(--ek-primary-dark);
}

a:hover {
    color: var(--ek-primary);
}

/* ─── Badges & Highlights ─── */
.badge {
    background-color: var(--ek-cta) !important;
}

/* ─── Sale/Discount Badge ─── */
.product-price-saving {
    background: var(--ek-cta);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 700;
}

/* ─── Pagination ─── */
.pagination .page-item.active .page-link {
    background-color: var(--ek-primary) !important;
    border-color: var(--ek-primary) !important;
}

/* ─── Forms ─── */
.form-control:focus {
    border-color: var(--ek-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(78, 205, 196, 0.25) !important;
}

/* ─── Category Cards ─── */
.category-card {
    position: relative;
    border-radius: var(--ek-radius-lg);
    overflow: hidden;
    box-shadow: var(--ek-shadow);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--ek-primary-light) 0%, var(--ek-bg-card) 100%);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ek-shadow-hover);
    border-color: var(--ek-primary);
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card-icon {
    font-size: 3.5rem;
    color: var(--ek-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-card-icon {
    transform: scale(1.1);
    color: var(--ek-cta);
}

.p-all-25 {
    padding: 25px;
}

/* ─── Featured Products Section ─── */
.featured-products {
    background: linear-gradient(180deg, var(--ek-bg) 0%, var(--ek-bg-alt) 100%);
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ek-text);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--ek-primary), var(--ek-cta));
    border-radius: 2px;
}

/* ─── Product Price Styling ─── */
.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ek-primary);
}

.product-price-old {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: var(--ek-text-muted);
    margin-left: 0.5rem;
}

/* ─── Top Bar Enhancement ─── */
.top-bar {
    background: linear-gradient(90deg, var(--ek-primary) 0%, var(--ek-primary-dark) 100%);
    color: white;
}

.top-bar a {
    color: white;
}

.top-bar a:hover {
    color: var(--ek-yellow);
}

/* ─── Product Card Enhancements ─── */
.product-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--ek-cta);
    color: white;
    padding: 4px 12px;
    border-radius: var(--ek-radius);
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
}

.product-card-badge.new {
    background: var(--ek-green);
}

.product-card-badge.featured {
    background: var(--ek-yellow);
    color: var(--ek-text);
}

/* ─── Loading Animation ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ─── Search Box Styling ─── */
.modal-search .wrap-search {
    border-radius: var(--ek-radius-lg);
    overflow: hidden;
}

.modal-search input {
    border: 2px solid var(--ek-primary);
}

.modal-search input:focus {
    border-color: var(--ek-cta);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

/* ─── Footer Enhancement ─── */
.footer-heading {
    color: var(--ek-primary-light);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

/* ─── Button Hover Effects ─── */
.btn-add-to-cart {
    background: var(--ek-primary);
    border: none;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background: var(--ek-cta);
    transform: scale(1.05);
}

/* ─── Product Quick View ─── */
.quick-view-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.block2:hover .quick-view-icon {
    opacity: 1;
}

/* ─── Category Banner ─── */
.category-banner {
    background: linear-gradient(135deg, var(--ek-primary) 0%, var(--ek-blue) 100%);
    padding: 60px 0;
    border-radius: var(--ek-radius-lg);
    margin: 40px 0;
    color: white;
}

/* ─── Trust Badges ─── */
.trust-badge {
    text-align: center;
    padding: 20px;
    border-radius: var(--ek-radius);
    background: var(--ek-bg-card);
    box-shadow: var(--ek-shadow);
    transition: transform 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
}

.trust-badge-icon {
    font-size: 2.5rem;
    color: var(--ek-primary);
    margin-bottom: 1rem;
}

/* ─── Age Filter Pills ─── */
.age-filter-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.age-pill {
    padding: 10px 20px;
    border-radius: var(--ek-radius-pill);
    background: var(--ek-bg-card);
    border: 2px solid var(--ek-primary-light);
    color: var(--ek-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-pill:hover, .age-pill.active {
    background: var(--ek-primary);
    color: white;
    border-color: var(--ek-primary);
}

/* ─── Currency Display (Tk instead of ৳ symbol) ─── */
.product-price::before,
.cart-item-price::before,
.stext-105::before,
.mtext-106::before {
    content: "Tk ";
    font-weight: 600;
}

/* Hide the actual currency symbol from .NET formatting */
.currency-symbol {
    display: none;
}

/* ─── Checkout Page Styles ─── */
.m-t-30 {
    margin-top: 30px !important;
}

/* Checkout page specific spacing */
.body-content h3:first-of-type {
    margin-top: 0;
    padding-top: 10px;
}

/* Force all form fields to be visible and properly aligned */
#form-group-district,
#form-group-city,
#form-group-postalcode {
    display: flex !important;
    align-items: center !important;
}

/* Checkout form alignment */
#checkout-delivery-address .form-group.row {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

#checkout-delivery-address .col-form-label {
    text-align: right !important;
    padding-right: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

#checkout-delivery-address .col-sm-4 {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

#checkout-delivery-address .col-sm-8 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

#checkout-delivery-address .form-control {
    width: 100% !important;
}

/* Ensure district, city, and postal code are on same line as labels */
#form-group-district .col-sm-4,
#form-group-city .col-sm-4,
#form-group-postalcode .col-sm-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
}

#form-group-district .col-sm-8,
#form-group-city .col-sm-8,
#form-group-postalcode .col-sm-8 {
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
}

/* Make sure textarea doesn't break layout */
#checkout-delivery-address textarea.form-control {
    resize: vertical !important;
    min-height: 80px !important;
}

/* Small text under inputs should not affect alignment */
#checkout-delivery-address .form-text {
    margin-top: 5px !important;
    font-size: 12px !important;
}

/* WhatsApp input group alignment */
#checkout-delivery-address .input-group {
    display: flex !important;
    width: 100% !important;
}

#checkout-delivery-address .input-group-prepend {
    display: flex !important;
    align-items: center !important;
}

#checkout-delivery-address .input-group .form-control {
    flex: 1 !important;
}

.delivery-instructions-banner {
    background: linear-gradient(135deg, #4ECDC4 0%, #6C9BCF 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.delivery-instructions-banner h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 15px;
}

.delivery-instructions-banner i {
    font-size: 1.5em;
    margin-right: 10px;
}

.delivery-instructions-inner {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.delivery-instructions-inner p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.delivery-instructions-footer {
    margin: 0;
    opacity: 0.95;
    font-size: 0.95em;
    line-height: 1.5;
}

.delivery-instructions-footer i {
    margin-right: 5px;
}

.payment-method-box {
    background: #FFF8F0;
    border: 2px solid #4ECDC4;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-method-icon {
    background: #4ECDC4;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    float: left;
}

.payment-method-icon i {
    font-size: 1.5em;
}

.payment-method-content {
    overflow: hidden;
}

.payment-method-content h4 {
    margin: 0 0 5px 0;
    color: #2D3436;
    font-weight: 700;
}

.payment-method-content p {
    margin: 0;
    color: #636E72;
}

.whatsapp-input-group .input-group-text {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.btn-order {
    background: #FF8C5A !important;
    border-color: #FF8C5A !important;
    padding: 15px 40px !important;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 8px;
    color: white !important;
}

.btn-order:hover {
    background: #E87A4A !important;
    border-color: #E87A4A !important;
}

/* ─── Saved Address Display Styles ─── */
.saved-address-option {
    background: #F8F9FA;
    border: 2px solid #E9ECEF;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.saved-address-option:hover {
    border-color: #4ECDC4;
    background: #F0FFFE;
}

.saved-address-option input[type="radio"]:checked ~ .saved-address-details {
    color: #2D3436;
}

.saved-address-option input[type="radio"]:checked {
    accent-color: #4ECDC4;
}

.saved-address-option label {
    cursor: pointer;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.saved-address-option input[type="radio"] {
    margin-top: 5px;
    margin-right: 15px;
    flex-shrink: 0;
}

.saved-address-details {
    flex: 1;
}

.saved-address-details strong {
    font-size: 1.1em;
    color: #2D3436;
    display: block;
    margin-bottom: 8px;
}

.saved-address-details .address-line {
    color: #636E72;
    font-size: 0.95em;
}

.saved-address-details .address-location {
    color: #636E72;
    font-size: 0.95em;
}

.saved-address-details .address-postal {
    color: #4ECDC4;
    font-size: 0.9em;
    font-weight: 600;
}

.saved-address-details .address-phone {
    color: #2D3436;
    font-weight: 600;
    display: inline-block;
    margin-top: 5px;
}

.saved-address-details .address-phone i {
    color: #FF8C5A;
    margin-right: 5px;
}

/* ============================================
   Hero Slider - Standard Height
   ============================================ */

/* Main slider container */
.wrap-slick1,
.sec-banner {
    max-height: 450px !important;
    height: 450px !important;
    overflow: hidden;
}

/* Individual slide items */
.item-slick1 {
    max-height: 450px !important;
    height: 450px !important;
}

/* Reduce excessive padding */
.item-slick1 .p-t-100 {
    padding-top: 40px !important;
}

.item-slick1 .p-b-30 {
    padding-bottom: 40px !important;
}

/* Content container inside slider */
.item-slick1 .container {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.item-slick1 .flex-col-l-m {
    justify-content: center !important;
}

/* Slider text sizes - more compact */
.item-slick1 .ltext-201 {
    font-size: 2.5rem !important;
    margin-bottom: 20px !important;
    padding-top: 10px !important;
}

.item-slick1 .ltext-101 {
    font-size: 1.2rem !important;
}

/* Shop Now button positioning */
.item-slick1 .layer-slick1:last-child {
    margin-top: 15px !important;
}

/* Mobile responsive slider */
@media (max-width: 991px) {
    .wrap-slick1,
    .sec-banner,
    .item-slick1 {
        max-height: 350px !important;
        height: 350px !important;
    }

    .item-slick1 .p-t-100 {
        padding-top: 30px !important;
    }

    .item-slick1 .ltext-201 {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }

    .item-slick1 .ltext-101 {
        font-size: 1rem !important;
    }
}

@media (max-width: 575px) {
    .wrap-slick1,
    .sec-banner,
    .item-slick1 {
        max-height: 280px !important;
        height: 280px !important;
    }

    .item-slick1 .p-t-100 {
        padding-top: 20px !important;
    }

    .item-slick1 .p-b-30 {
        padding-bottom: 20px !important;
    }

    .item-slick1 .ltext-201 {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
        padding-top: 5px !important;
    }

    .item-slick1 .ltext-101 {
        font-size: 0.9rem !important;
    }

    .item-slick1 .size-101 {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
}

/* ─── Responsive Adjustments ─── */
/* Older mobile styles removed - See comprehensive mobile section below */

/* ============================================
   MOBILE RESPONSIVE STYLES - COMPLETE REWRITE
   ============================================ */

/* ─── Hide Desktop, Show Mobile (< 992px) ─── */
@media (max-width: 991px) {
    /* HIDE DESKTOP HEADER */
    .header-v4 .container-menu-desktop {
        display: none !important;
    }

    /* RESET BODY PADDING */
    body {
        padding-top: 100px !important;
    }

    /* TOP BAR - Keep visible and styled */
    .header-v4 .top-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 10000 !important;
        height: 40px !important;
        background: var(--ek-primary) !important;
    }

    .top-bar .content-topbar {
        padding: 0 10px !important;
        height: 40px !important;
    }

    .top-bar .left-top-bar {
        font-size: 10px !important;
        white-space: nowrap !important;
    }

    .top-bar .right-top-bar {
        font-size: 10px !important;
    }

    .top-bar .right-top-bar a,
    .top-bar .right-top-bar button {
        padding: 0 5px !important;
        font-size: 10px !important;
    }

    /* MOBILE HEADER - Show and position */
    .header-v4 .wrap-header-mobile {
        display: flex !important;
        position: fixed !important;
        top: 40px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        background: white !important;
        height: 60px !important;
        padding: 0 15px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Mobile logo */
    .wrap-header-mobile .logo-mobile {
        flex: 1 !important;
    }

    .wrap-header-mobile .logo-mobile a {
        display: block !important;
    }

    .wrap-header-mobile .logo-mobile img {
        height: 35px !important;
        width: auto !important;
    }

    /* Mobile icons (search, cart) */
    .wrap-header-mobile .wrap-icon-header {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-right: 10px !important;
    }

    .wrap-header-mobile .icon-header-item {
        font-size: 20px !important;
        padding: 8px !important;
        cursor: pointer !important;
    }

    /* HAMBURGER BUTTON */
    .wrap-header-mobile .btn-show-menu-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        cursor: pointer !important;
        position: relative !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

    .btn-show-menu-mobile .hamburger {
        width: 30px !important;
        height: 24px !important;
        position: relative !important;
        display: block !important;
    }

    .btn-show-menu-mobile .hamburger-box {
        width: 30px !important;
        height: 24px !important;
        position: relative !important;
        display: block !important;
    }

    .btn-show-menu-mobile .hamburger-inner {
        display: block !important;
        width: 30px !important;
        height: 3px !important;
        background-color: #333 !important;
        border-radius: 2px !important;
        position: absolute !important;
        top: 50% !important;
        margin-top: -1.5px !important;
        transition: transform 0.3s ease, background-color 0.3s ease !important;
    }

    .btn-show-menu-mobile .hamburger-inner::before,
    .btn-show-menu-mobile .hamburger-inner::after {
        content: "" !important;
        display: block !important;
        width: 30px !important;
        height: 3px !important;
        background-color: #333 !important;
        border-radius: 2px !important;
        position: absolute !important;
        transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease, opacity 0.3s ease !important;
    }

    .btn-show-menu-mobile .hamburger-inner::before {
        top: -10px !important;
    }

    .btn-show-menu-mobile .hamburger-inner::after {
        bottom: -10px !important;
    }

    /* Hamburger active state (X) */
    .btn-show-menu-mobile.is-active .hamburger-inner {
        transform: rotate(45deg) !important;
        background-color: var(--ek-primary) !important;
    }

    .btn-show-menu-mobile.is-active .hamburger-inner::before {
        top: 0 !important;
        transform: rotate(90deg) !important;
        background-color: var(--ek-primary) !important;
    }

    .btn-show-menu-mobile.is-active .hamburger-inner::after {
        bottom: 0 !important;
        opacity: 0 !important;
    }

    /* MOBILE MENU PANEL */
    .header-v4 .menu-mobile {
        display: block !important;
        position: fixed !important;
        top: 100px !important;
        left: -300px !important;
        width: 280px !important;
        height: calc(100vh - 100px) !important;
        background: white !important;
        box-shadow: 4px 0 15px rgba(0,0,0,0.2) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 9998 !important;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        padding: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .header-v4 .menu-mobile.show-menu-mobile {
        left: 0 !important;
        display: block !important;
    }

    /* Force override inline styles */
    .menu-mobile[style*="display: none"] {
        display: block !important;
    }

    /* Mobile menu overlay backdrop */
    body::after {
        content: "" !important;
        position: fixed !important;
        top: 100px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 9997 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
        pointer-events: none !important;
    }

    body.show-menu-mobile::after {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Mobile menu top section */
    .menu-mobile .topbar-mobile {
        list-style: none !important;
        margin: 0 !important;
        padding: 15px 20px !important;
        background: #f8f9fa !important;
        border-bottom: 1px solid #e0e0e0 !important;
    }

    .menu-mobile .topbar-mobile li {
        padding: 5px 0 !important;
    }

    .menu-mobile .topbar-mobile .left-top-bar {
        font-size: 12px !important;
        color: #666 !important;
        margin-bottom: 10px !important;
    }

    .menu-mobile .topbar-mobile .right-top-bar {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .menu-mobile .topbar-mobile .right-top-bar a {
        color: var(--ek-primary) !important;
        font-size: 13px !important;
        text-decoration: none !important;
    }

    /* Mobile menu navigation items */
    .menu-mobile .main-menu-m {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .menu-mobile .main-menu-m > li {
        border-bottom: 1px solid #f0f0f0 !important;
    }

    .menu-mobile .main-menu-m > li > a {
        display: block !important;
        padding: 16px 20px !important;
        color: #333 !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }

    .menu-mobile .main-menu-m > li > a:hover {
        background: var(--ek-primary-light) !important;
        color: var(--ek-primary) !important;
        padding-left: 25px !important;
    }

    /* Sub-menu support */
    .menu-mobile .sub-menu-m {
        display: none !important;
        background: #f8f9fa !important;
        padding: 10px 0 !important;
        list-style: none !important;
        margin: 0 !important;
    }

    .menu-mobile .sub-menu-m li {
        border-bottom: none !important;
    }

    .menu-mobile .sub-menu-m li a {
        padding: 12px 20px 12px 40px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #555 !important;
        display: block !important;
    }

    .menu-mobile .sub-menu-m li a:hover {
        background: rgba(78, 205, 196, 0.1) !important;
        color: var(--ek-primary) !important;
    }

    /* Arrow for sub-menu */
    .menu-mobile .arrow-main-menu-m {
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 30px !important;
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: transform 0.3s ease !important;
        z-index: 1 !important;
    }

    .menu-mobile .arrow-main-menu-m i {
        font-size: 16px !important;
        color: #666 !important;
    }

    /* Arrow rotation when sub-menu is open */
    .menu-mobile .arrow-main-menu-m.turn-arrow-main-menu-m {
        transform: translateY(-50%) rotate(90deg) !important;
    }

    /* Parent menu item with sub-menu */
    .menu-mobile .main-menu-m > li {
        position: relative !important;
    }

    .menu-mobile .main-menu-m > li > a {
        position: relative !important;
        padding-right: 50px !important;
    }
}

/* ─── Mobile & Tablet: General Layout ─── */
@media (max-width: 991px) {
    /* Container padding */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Reduce section padding */
    .p-t-80 { padding-top: 40px !important; }
    .p-t-75 { padding-top: 40px !important; }
    .p-b-140 { padding-bottom: 40px !important; }
    .p-b-85 { padding-bottom: 40px !important; }

    /* Typography adjustments */
    .mtext-101, .mtext-102 {
        font-size: 22px !important;
    }

    /* Buttons full width on mobile */
    .btn, .stext-101.cl0.bg3.bor14.hov-btn3 {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}

/* ─── Tablet & Mobile: Product Pages ─── */
@media (max-width: 991px) {
    /* Product grid - 2 columns */
    .row.isotope-grid > div[class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 8px !important;
    }

    /* Product cards */
    .block2 {
        margin-bottom: 15px !important;
    }

    .block2-txt {
        padding: 12px 8px !important;
    }

    .block2-txt .stext-104 {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .block2-txt .mtext-106 {
        font-size: 15px !important;
    }

    /* Product detail - stack columns */
    .product-detail > .row > .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px !important;
    }

    .how-pos2 {
        position: static !important;
        padding: 20px 15px !important;
    }

    /* Filter toolbar */
    .flex-sb-m.flex-w.p-b-52 {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .dis-flex.flex-w {
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}

/* ─── Mobile: Checkout & Cart Pages ─── */
@media (max-width: 991px) {
    /* Stack checkout columns */
    .checkout-form > .row > div[class*="col-md-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 25px !important;
    }

    /* Card padding */
    .bor10.p-lr-40.p-t-30.p-b-40,
    .bor10.p-all-15 {
        padding: 20px 15px !important;
    }

    /* Checkout form rows - stack labels and inputs */
    #checkout-delivery-address .form-group.row {
        flex-direction: column !important;
        margin-bottom: 20px !important;
    }

    #checkout-delivery-address .col-form-label,
    #checkout-delivery-address .col-sm-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 8px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #checkout-delivery-address .col-sm-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Form inputs full width */
    #checkout-delivery-address input,
    #checkout-delivery-address select,
    #checkout-delivery-address textarea {
        width: 100% !important;
    }

    /* Checkout buttons */
    .checkout-form button[type="submit"],
    .checkout-form .btn {
        width: 100% !important;
        padding: 15px !important;
        font-size: 15px !important;
    }

    /* Shopping cart table - horizontal scroll */
    .wrap-table-shopping-cart {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 0 -15px !important;
        padding: 0 15px !important;
    }

    .table-shopping-cart {
        min-width: 600px !important;
        font-size: 13px !important;
    }

    .table-shopping-cart .column-1 {
        width: 70px !important;
    }

    .table-shopping-cart img {
        width: 50px !important;
        height: 50px !important;
    }

    /* Cart totals */
    .container-table-cart {
        padding: 15px !important;
    }
}

/* ─── Mobile: Login/Register Pages ─── */
@media (max-width: 991px) {
    /* Page containers */
    .container {
        padding: 0 15px !important;
    }

    /* Column stacking */
    .row .col-md-8,
    .row .col-md-6,
    .row .col-lg-5,
    .row .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Card styling */
    .card {
        margin-bottom: 20px !important;
        border-radius: 12px !important;
    }

    .card-body {
        padding: 25px 20px !important;
    }

    /* Headings */
    h2 {
        font-size: 22px !important;
    }

    /* Forms */
    .form-group {
        margin-bottom: 20px !important;
    }

    .form-control {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 12px !important;
    }

    .form-label {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    /* Input groups */
    .input-group {
        flex-wrap: nowrap !important;
    }

    .input-group-text {
        padding: 12px !important;
    }

    /* Buttons */
    .btn {
        padding: 14px !important;
        font-size: 16px !important;
        width: 100% !important;
    }

    /* Form text */
    .form-text {
        font-size: 12px !important;
    }
}

/* ─── Mobile: Order History & Details ─── */
@media (max-width: 991px) {
    /* Order list cards */
    .order-item,
    .order-history-item {
        margin-bottom: 20px !important;
        padding: 15px !important;
    }

    .order-item .row > div,
    .order-history-item .row > div {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
    }

    /* Order details sections */
    .bor10 {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    /* Order tables - horizontal scroll */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    table {
        min-width: 500px !important;
        font-size: 13px !important;
    }

    table td,
    table th {
        padding: 10px 8px !important;
    }

    /* Order status */
    .mtext-106 {
        font-size: 16px !important;
    }
}

/* ─── Mobile: Footer & Misc ─── */
@media (max-width: 991px) {
    /* Footer columns stack */
    footer .row > div[class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px !important;
    }

    footer h4 {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }

    footer p,
    footer li,
    footer a {
        font-size: 13px !important;
    }

    /* Back to top button */
    .btn-back-to-top {
        width: 45px !important;
        height: 45px !important;
        bottom: 20px !important;
        right: 15px !important;
    }

    /* Modals on mobile */
    .modal-dialog {
        margin: 20px 10px !important;
        max-width: calc(100vw - 20px) !important;
    }

    .modal-body {
        padding: 20px 15px !important;
    }

    .modal-header {
        padding: 15px !important;
    }

    .modal-footer {
        padding: 15px !important;
        flex-direction: column !important;
    }

    .modal-footer .btn {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}

/* ─── Small Mobile Screens (< 576px) ─── */
@media (max-width: 575px) {
    /* Single column product grid */
    .row.isotope-grid > div[class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
    }

    /* Smaller typography */
    .mtext-101, .mtext-102 {
        font-size: 20px !important;
    }

    h2 {
        font-size: 20px !important;
    }

    /* Smaller mobile header */
    .wrap-header-mobile {
        height: 55px !important;
        padding: 0 10px !important;
    }

    .wrap-header-mobile .logo-mobile img {
        height: 30px !important;
    }

    .wrap-header-mobile .icon-header-item {
        font-size: 18px !important;
        padding: 6px !important;
    }

    /* Adjust body padding */
    body {
        padding-top: 95px !important;
    }

    .menu-mobile {
        top: 95px !important;
        height: calc(100vh - 95px) !important;
        width: 260px !important;
    }

    /* Smaller top bar text */
    .top-bar .left-top-bar {
        font-size: 9px !important;
    }

    .top-bar .right-top-bar a {
        font-size: 9px !important;
        padding: 0 4px !important;
    }

    /* Form elements */
    .form-control,
    .btn {
        font-size: 14px !important;
    }

    /* Cards and boxes */
    .card-body {
        padding: 20px 15px !important;
    }

    .bor10 {
        padding: 15px 10px !important;
    }
}

    .category-card-icon {
        font-size: 2rem;
    }
}

/* ============================================
   EduKido Robust Product Card Design
   ============================================ */

.ek-product-card {
    position: relative;
    background: var(--ek-bg-card);
    border-radius: var(--ek-radius-lg);
    overflow: hidden;
    box-shadow: var(--ek-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 20px;
}

.ek-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ek-shadow-hover);
}

/* ─── Badges ─── */
.ek-discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--ek-cta), var(--ek-cta-dark));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 140, 90, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.ek-stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ek-stock-badge i {
    font-size: 14px;
}

.ek-stock-badge.low-stock {
    background: linear-gradient(135deg, var(--ek-yellow), #FFB600);
    color: var(--ek-text);
}

.ek-stock-badge.out-of-stock {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

/* ─── Product Image ─── */
.ek-product-image-wrapper {
    position: relative;
    display: block;
    background: #f8f9fa;
    overflow: hidden;
    cursor: pointer;
}

.ek-product-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.ek-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ek-product-card:hover .ek-product-image img {
    transform: scale(1.08);
}

/* ─── Quick View Overlay ─── */
.ek-quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(78, 205, 196, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ek-product-image-wrapper:hover .ek-quick-view-overlay {
    opacity: 1;
}

.ek-quick-view-btn {
    background: white;
    color: var(--ek-primary);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.ek-product-image-wrapper:hover .ek-quick-view-btn {
    transform: translateY(0);
}

.ek-quick-view-btn i {
    font-size: 18px;
}

/* ─── Product Info ─── */
.ek-product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.ek-product-name {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--ek-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ek-product-name:hover {
    color: var(--ek-primary);
}

/* ─── Price Section ─── */
.ek-product-price-section {
    margin-top: auto;
}

.ek-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ek-price-current {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--ek-primary);
    line-height: 1;
}

.ek-price-old {
    font-size: 16px;
    font-weight: 500;
    color: var(--ek-text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.ek-call-pricing {
    font-size: 15px;
    font-weight: 600;
    color: var(--ek-cta);
    font-style: italic;
}

/* ─── Product Actions (Add to Cart Button) ─── */
.ek-product-actions {
    margin-top: 8px;
}

.ek-btn-add-cart,
.ek-btn-out-of-stock {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ek-btn-add-cart {
    background: linear-gradient(135deg, var(--ek-cta), var(--ek-cta-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 90, 0.3);
}

.ek-btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 90, 0.4);
}

.ek-btn-add-cart:active {
    transform: translateY(0);
}

.ek-btn-add-cart i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.ek-btn-add-cart:hover i {
    transform: scale(1.2);
}

/* Loading state for add to cart button */
.ek-btn-add-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ek-btn-out-of-stock {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
}

.ek-btn-out-of-stock i {
    font-size: 18px;
}

/* ─── Grid Layout Adjustments ─── */
.isotope-grid .ek-product-card {
    height: calc(100% - 20px);
}

/* Override old block2 styles to prevent conflicts */
.block2 {
    border-radius: var(--ek-radius-lg) !important;
    overflow: hidden !important;
    box-shadow: var(--ek-shadow) !important;
}

.block2:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--ek-shadow-hover) !important;
}

/* ─── Mobile Responsive ─── */
@media (max-width: 991px) {
    .ek-product-card {
        margin-bottom: 16px;
    }

    .ek-product-info {
        padding: 14px;
        gap: 10px;
    }

    .ek-product-name {
        font-size: 14px;
        min-height: 40px;
    }

    .ek-price-current {
        font-size: 19px;
    }

    .ek-price-old {
        font-size: 14px;
    }

    .ek-btn-add-cart,
    .ek-btn-out-of-stock {
        padding: 12px 16px;
        font-size: 14px;
    }

    .ek-discount-badge {
        top: 8px;
        right: 8px;
        padding: 4px 10px;
        font-size: 12px;
    }

    .ek-stock-badge {
        top: 8px;
        left: 8px;
        padding: 4px 10px;
        font-size: 11px;
    }

    .ek-quick-view-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .ek-product-info {
        padding: 12px;
        gap: 8px;
    }

    .ek-product-name {
        font-size: 13px;
        min-height: 36px;
    }

    .ek-price-current {
        font-size: 17px;
    }

    .ek-price-old {
        font-size: 13px;
    }

    .ek-btn-add-cart,
    .ek-btn-out-of-stock {
        padding: 11px 14px;
        font-size: 13px;
    }

    .ek-discount-badge {
        padding: 3px 8px;
        font-size: 11px;
    }

    .ek-stock-badge {
        padding: 3px 8px;
        font-size: 10px;
    }

    .ek-stock-badge i {
        font-size: 12px;
    }
}

/* ─── Product Card Animations ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ek-product-card.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ─── Improved Loading State ─── */
.ek-btn-add-cart .zmdi-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   EduKido Floating Social Media Buttons
   ============================================ */

.ek-floating-social {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ek-social-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ek-social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ek-social-btn:hover::before {
    width: 100%;
    height: 100%;
}

.ek-social-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.ek-social-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.ek-social-btn:hover i {
    transform: scale(1.15);
}

.ek-social-btn:active {
    transform: translateY(-2px) scale(1.05);
}

/* Individual button colors */
.ek-facebook {
    background: linear-gradient(135deg, #1877f2, #0d5dbf);
}

.ek-facebook:hover {
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.ek-instagram {
    background: linear-gradient(135deg, #e4405f, #d62976, #962fbf, #4f5bd5);
}

.ek-instagram:hover {
    box-shadow: 0 8px 20px rgba(228, 64, 95, 0.4);
}

.ek-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.ek-whatsapp:hover {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Pulse animation for WhatsApp */
.ek-whatsapp {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1);
    }
}

.ek-whatsapp:hover {
    animation: none;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .ek-floating-social {
        right: 15px;
        bottom: 80px;
        gap: 10px;
    }

    .ek-social-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

@media (max-width: 575px) {
    .ek-floating-social {
        right: 10px;
        bottom: 70px;
        gap: 8px;
    }

    .ek-social-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* Hide on very small screens if needed */
@media (max-width: 360px) {
    .ek-floating-social {
        right: 8px;
        bottom: 65px;
    }

    .ek-social-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* ===================================
   FLOATING PROMOTIONAL BANNER
   =================================== */

/* Keyframe animations */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Main promotional banner */
.ek-floating-promo {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInUp 0.6s ease-out, pulse 2s ease-in-out infinite;
    max-width: 90vw;
}

.ek-floating-promo:hover {
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.5);
}

.ek-promo-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ek-promo-content i {
    font-size: 28px;
    animation: shake 3s ease-in-out infinite;
}

.ek-promo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.ek-promo-en {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 0.5px;
}

.ek-promo-bn {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.95;
    font-family: 'Nunito', sans-serif;
}

.ek-promo-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ek-promo-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.ek-promo-close i {
    font-size: 14px;
    animation: none;
}

/* Responsive design for promo banner */
@media (max-width: 768px) {
    .ek-floating-promo {
        bottom: 15px;
        padding: 12px 20px;
        border-radius: 40px;
    }

    .ek-promo-content i {
        font-size: 24px;
    }

    .ek-promo-en {
        font-size: 14px;
    }

    .ek-promo-bn {
        font-size: 12px;
    }

    .ek-promo-close {
        width: 24px;
        height: 24px;
    }

    .ek-promo-close i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ek-floating-promo {
        bottom: 10px;
        padding: 10px 15px;
        gap: 10px;
    }

    .ek-promo-content {
        gap: 8px;
    }

    .ek-promo-content i {
        font-size: 20px;
    }

    .ek-promo-en {
        font-size: 12px;
    }

    .ek-promo-bn {
        font-size: 10px;
    }

    .ek-promo-close {
        width: 22px;
        height: 22px;
    }
}

/* Adjust social buttons position when promo banner is visible */
.ek-floating-social {
    bottom: 90px;
}

@media (max-width: 768px) {
    .ek-floating-social {
        bottom: 80px;
    }
}

@media (max-width: 575px) {
    .ek-floating-social {
        bottom: 75px;
    }
}

/* ===================================
   HEADER LAYOUT REDESIGN
   =================================== */

/* Header wrapper fixes */
.wrap-header {
    background: white;
}

.wrap-menu-desktop {
    padding: 0;
}

.limiter-menu-desktop {
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation row with logo, search, and cart */
.ek-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px 15px;
}

.ek-nav-row .logo {
    flex-shrink: 0;
}

.ek-nav-row .logo img {
    max-height: 50px;
    width: auto;
}

.ek-header-search {
    flex: 1;
    max-width: 600px;
    min-width: 300px;
}

.ek-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.ek-user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ek-user-menu a,
.ek-user-menu button {
    color: #2D3436;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
}

.ek-user-menu a:hover,
.ek-user-menu button:hover {
    background: #F8F9FA;
    color: var(--ek-primary);
}

.ek-user-menu form {
    display: inline;
    margin: 0;
}

.ek-user-menu .logoff {
    color: #2D3436;
    font-family: 'Quicksand', sans-serif;
}

.ek-header-cart {
    flex-shrink: 0;
}

/* Menu bar - separate row below logo/search */
.ek-menu-bar {
    background: linear-gradient(135deg, #FF6262 0%, #FF8E53 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ek-menu-bar .menu-desktop {
    display: flex;
    justify-content: center;
}

.ek-menu-bar .main-menu {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
}

.ek-menu-bar .main-menu > li {
    position: relative;
}

.ek-menu-bar .main-menu > li > a {
    color: white !important;
    font-weight: 600;
    padding: 15px 20px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    transition: all 0.3s ease;
}

.ek-menu-bar .main-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Dropdown menu styling */
.ek-menu-bar .main-menu .sub-menu {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 0;
}

.ek-menu-bar .main-menu .sub-menu li a {
    color: #2D3436 !important;
    padding: 10px 20px;
    font-size: 14px;
    text-transform: none;
    font-weight: 500;
}

.ek-menu-bar .main-menu .sub-menu li a:hover {
    background: #F8F9FA;
    color: var(--ek-primary) !important;
}

/* Cart badge styling */
.ek-header-cart .cart-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FF6262 0%, #FF8E53 100%);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 98, 98, 0.3);
}

.ek-header-cart .cart-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 98, 98, 0.4);
}

.ek-header-cart .cart-badge i {
    font-size: 24px;
}

.ek-header-cart .cart-badge .badge {
    background: white;
    color: var(--ek-primary);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    min-width: 24px;
    text-align: center;
}

/* ===================================
   AUTOCOMPLETE SEARCH
   =================================== */

.autocomplete-search-container {
    position: relative;
    width: 100%;
}

.autocomplete-search-form {
    position: relative;
}

.autocomplete-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.autocomplete-search-icon {
    position: absolute;
    left: 18px;
    font-size: 20px;
    color: #999;
    pointer-events: none;
    z-index: 2;
}

.autocomplete-search-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    font-size: 15px;
    border: 2px solid #E5E5E5;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    background: #F8F9FA;
}

.autocomplete-search-input:focus {
    border-color: var(--ek-primary);
    box-shadow: 0 0 0 4px rgba(255, 98, 98, 0.1);
    background: white;
}

.autocomplete-search-input::placeholder {
    color: #999;
}

.autocomplete-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 480px;
    overflow-y: auto;
    display: none;
    z-index: 10010;
}

.autocomplete-results::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

.autocomplete-results::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.autocomplete-results::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.autocomplete-item {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.autocomplete-item:last-of-type {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #f8f9fa;
}

.autocomplete-item a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #2D3436;
    gap: 12px;
}

.autocomplete-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid #E5E5E5;
}

.autocomplete-item-info {
    flex: 1;
    min-width: 0;
}

.autocomplete-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #2D3436;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.autocomplete-item-name strong {
    color: var(--ek-primary);
}

.autocomplete-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--ek-cta);
}

.autocomplete-no-results {
    padding: 30px 20px;
    text-align: center;
    color: #999;
}

.autocomplete-no-results p {
    margin: 0;
    font-size: 14px;
}

.autocomplete-view-all {
    padding: 12px 15px;
    border-top: 2px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.autocomplete-view-all a {
    display: block;
    text-align: center;
    color: var(--ek-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.autocomplete-view-all a:hover {
    color: var(--ek-cta);
}

/* Responsive design for header */
@media (max-width: 1200px) {
    .ek-nav-row {
        gap: 20px;
    }

    .ek-header-search {
        max-width: 500px;
        min-width: 250px;
    }

    .ek-menu-bar .main-menu > li > a {
        padding: 15px 15px;
        font-size: 14px;
    }
}

@media (max-width: 1200px) {
    .ek-user-menu a,
    .ek-user-menu button {
        font-size: 13px;
        padding: 6px 10px;
    }

    .ek-header-right {
        gap: 15px;
    }
}

@media (max-width: 991px) {
    .ek-nav-row {
        gap: 15px;
        padding: 15px 0;
    }

    .ek-header-search {
        max-width: 400px;
        min-width: 200px;
    }

    .ek-header-cart .cart-badge {
        padding: 8px 15px;
    }

    .ek-header-cart .cart-badge i {
        font-size: 22px;
    }

    .ek-menu-bar .main-menu > li > a {
        padding: 12px 12px;
        font-size: 13px;
    }

    .autocomplete-search-container {
        max-width: 100%;
    }

    .ek-user-menu a,
    .ek-user-menu button {
        font-size: 12px;
        padding: 5px 8px;
    }

    .ek-header-right {
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .autocomplete-search-input {
        padding: 10px 15px 10px 40px;
        font-size: 14px;
    }

    .autocomplete-search-icon {
        left: 12px;
        font-size: 18px;
    }

    .autocomplete-results {
        max-height: 350px;
    }

    .autocomplete-item a {
        padding: 10px 12px;
    }

    .autocomplete-item img {
        width: 45px;
        height: 45px;
    }

    .autocomplete-item-name {
        font-size: 13px;
    }

    .autocomplete-item-price {
        font-size: 13px;
    }

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

    /* Mobile user menu styling */
    .mobile-user-menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-user-menu a,
    .mobile-user-menu button {
        display: block;
        color: #2D3436;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        padding: 10px 0;
        border: none;
        background: none;
        text-align: left;
        width: 100%;
        cursor: pointer;
        font-family: 'Quicksand', sans-serif;
    }

    .mobile-user-menu a:hover,
    .mobile-user-menu button:hover {
        color: var(--ek-primary);
    }

    .mobile-user-menu form {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .autocomplete-search-input {
        padding: 8px 12px 8px 35px;
        font-size: 13px;
    }

    .autocomplete-search-icon {
        left: 10px;
        font-size: 16px;
    }

    .autocomplete-item img {
        width: 40px;
        height: 40px;
    }
}
