/* ==========================================================================
   Modern & Attractive Frontend UI Design System
   Super Ecommerce
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;600&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --accent-color: #f43f5e;
    --accent-hover: #e11d48;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --dark-border: rgba(255, 255, 255, 0.1);
    --bg-canvas: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 16px 32px -4px rgba(37, 99, 235, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
}

/* Global Reset & Body */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background-color: var(--bg-canvas) !important;
    color: var(--text-main) !important;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

/* Container polish */
.container {
    max-width: 1320px !important;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
#navbar_top {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--dark-bg) !important;
}

.main-header {
    background: var(--dark-bg) !important;
    border-bottom: 1px solid var(--dark-surface);
    padding: 12px 0 6px 0;
}

.logo-area {
    padding: 4px 0;
}

.main-logom {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-logom a {
    display: inline-flex;
    align-items: center;
}

.main-logom img.logo {
    max-height: 52px !important;
    width: auto !important;
    object-fit: contain;
    padding-top: 0 !important;
    transition: transform 0.2s ease;
}

.main-logom img.logo:hover {
    transform: scale(1.02);
}

/* Modern Search Bar */
.main-search {
    position: relative;
}

.main-search form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.25s ease;
}

.main-search form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.main-search input.search_keyword {
    border: none !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500;
    color: var(--text-main);
    width: 100%;
    background: transparent;
    outline: none !important;
}

.main-search input.search_keyword::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.main-search form button {
    background: var(--primary-color) !important;
    border: none !important;
    color: #ffffff !important;
    width: 48px;
    height: 42px;
    margin: 2px 2px 2px 0;
    border-radius: var(--radius-full) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.main-search form button:hover {
    background: var(--primary-hover) !important;
    transform: scale(1.02);
}

.main-search form button svg,
.main-search form button i {
    color: #ffffff;
    width: 18px;
    height: 18px;
}

/* Search Dropdown Results */
.search_result {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-color) !important;
    overflow: hidden;
}

/* Header Sub-Menu / Quick Navigation */
.main-search .menu-area,
.menu-area {
    background: transparent !important;
    border: none !important;
    padding-top: 8px !important;
    margin-top: 2px !important;
}

.main-search .catagory_menu ul {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0;
    margin: 0;
}

.main-search .catagory_menu ul li.cat_bar {
    background: transparent !important;
}

.main-search .catagory_menu ul li.cat_bar a {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 2px 0;
    position: relative;
}

.main-search .catagory_menu ul li.cat_bar a:hover {
    color: #38bdf8 !important;
}

/* Right Header Action Items */
.header-list-items {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    height: 100%;
}

.header-list-items ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.header-list-items .track_btn a {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--dark-border);
    padding: 8px 16px !important;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9 !important;
    transition: all 0.2s ease;
}

.header-list-items .track_btn a:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.header-list-items .track_btn a i {
    color: #38bdf8;
}

/* Cart Button & Badge */
.header-list-items .cart-dialog {
    position: relative;
}

.header-list-items .cart-dialog>a {
    display: flex;
    align-items: center;
}

.header-list-items .margin-shopping {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-full);
    padding: 8px 16px !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-list-items .margin-shopping:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.header-list-items .margin-shopping i {
    font-size: 16px;
    color: #ffffff;
}

.header-list-items .margin-shopping span {
    background: var(--accent-color);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 6px rgba(244, 63, 94, 0.4);
}

/* Cart Dropdown Polish */
.cshort-summary {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-color) !important;
    padding: 20px !important;
    background: #ffffff !important;
    width: 320px !important;
    animation: fadeIn 0.2s ease-in-out;
}

.cshort-summary .go_cart {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 700 !important;
    padding: 12px 20px !important;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.2s ease;
}

.cshort-summary .go_cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4) !important;
}

/* User Auth Link */
.header-list-items .for_order a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #93c5fd !important;
    transition: all 0.2s ease;
}

.header-list-items .for_order a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
}

/* Mobile Header Polish */
.mobile-header {
    background: var(--dark-bg) !important;
    border-bottom: 1px solid var(--dark-surface);
    padding: 10px 16px !important;
}

.mobile-header .mobile-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-header .menu-bar .toggle {
    color: #ffffff;
    font-size: 20px;
}

.mobile-header .menu-logo img {
    max-height: 40px;
    width: auto !important;
}

.mobile-search {
    background: var(--dark-bg) !important;
    padding: 8px 16px 14px 16px !important;
}

.mobile-search form {
    border-radius: var(--radius-full);
    overflow: hidden;
    background: #ffffff;
    display: flex;
}

.mobile-search form input {
    border: none !important;
    padding: 10px 16px !important;
    font-size: 14px;
    width: 100%;
}

.mobile-search form button {
    background: var(--primary-color) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 0 16px !important;
}

/* ==========================================================================
   HERO & CATEGORY SIDEBAR
   ========================================================================== */
.slider-section {
    padding: 24px 0 16px 0;
}

.sidebar-menu {
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.sidebar-menu ul.hideshow li:first-child {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-surface)) !important;
    color: #ffffff !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.sidebar-menu ul.hideshow li:first-child i {
    color: #38bdf8;
}

.sidebar-menu ul.hideshow>li:not(:first-child) {
    border-bottom: 1px solid var(--border-subtle);
    display: block;
    transition: background 0.15s ease;
}

.sidebar-menu ul.hideshow>li:not(:first-child):hover {
    background: var(--primary-light);
}

.sidebar-menu ul.hideshow>li>a {
    padding: 12px 20px !important;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-menu ul.hideshow>li>a img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
}

.sidebar-menu ul.hideshow>li>a i {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-light);
}

/* Slider Container */
.home-slider-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000000;
}

.main_slider.owl-carousel .slider-item img {
    border-radius: var(--radius-lg);
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Slider Nav Arrows */
.main_slider.owl-carousel .owl-nav button {
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full) !important;
    color: var(--text-main) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease !important;
}

.main_slider.owl-carousel .owl-nav button:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    transform: scale(1.08);
}

/* ==========================================================================
   SECTION TITLES & HEADERS
   ========================================================================== */
.homeproduct {
    padding: 24px 0;
}

.sec_title {
    margin-bottom: 20px;
}

.section-title-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.section-title-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #38bdf8);
    border-radius: var(--radius-full);
}

.section-title-name {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--dark-bg);
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Hot Deals Section Header */
.timer_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 14px;
}

.offer_timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.syotimer__body {
    display: flex;
    align-items: center;
    gap: 6px;
}

.syotimer-cell {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-surface)) !important;
    color: #ffffff !important;
    border-radius: var(--radius-md) !important;
    padding: 6px 12px !important;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.syotimer-cell__value {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #38bdf8 !important;
    line-height: 1.2;
}

.syotimer-cell__unit {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   TOP CATEGORIES SLIDER
   ========================================================================== */
.topcategory .cat_item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 16px;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.topcategory .cat_item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.3);
}

.topcategory .cat_item .pro_img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px auto;
    background: var(--bg-canvas);
    border: 3px solid #f1f5f9;
    transition: transform 0.3s ease;
}

.topcategory .cat_item:hover .pro_img {
    transform: scale(1.05);
    border-color: var(--primary-light);
}

.topcategory .cat_item .pro_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topcategory .cat_item .pro_name a {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.topcategory .cat_item:hover .pro_name a {
    color: var(--primary-color);
}

/* ==========================================================================
   PROMOTIONAL AD BANNERS
   ========================================================================== */
.ads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 10px 0;
}

.ads .cat_item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.ads .cat_item .cat_img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    line-height: 0;
}

.ads .cat_item .cat_name {
    display: none !important;
}

.ads .cat_item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.ads .cat_item img {
    width: 100%;
    /* height: auto; */
    display: block;
    border-radius: var(--radius-lg);
    transition: transform 0.4s ease;
}

.ads .cat_item:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   PRODUCT CARDS (.product_item) - 5 Columns Layout
   ========================================================================== */
.product_item {
    background: var(--card-bg) !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    margin-bottom: 20px;
    padding: 0 !important;
}

.product_item:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 30px -6px rgba(0, 0, 0, 0.1), 0 8px 12px -4px rgba(0, 0, 0, 0.04) !important;
    border-color: #cbd5e1 !important;
}

.product_item_inner {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Image Container */
.product_item .pro_img {
    position: relative;
    width: 100%;
    height: 180px !important;
    /* Proportional height eliminating excess vertical dead space */
    background: #ffffff !important;
    /* Clean white canvas so product image frames blend seamlessly */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
}

.product_item .pro_img a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px !important;
    /* Greatly reduced from 16px to minimize space around image */
}

.product_item .pro_img img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product_item:hover .pro_img img {
    transform: scale(1.06);
}

/* Floating Discount Pill Badge */
.sale-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    z-index: 10;
}

.sale-badge-box {
    background: linear-gradient(135deg, #ef4444, #f43f5e) !important;
    color: #ffffff !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3) !important;
    display: inline-flex !important;
    align-items: center;
}

.sale-badge-text {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Product Info & Details - Center Aligned Price & Title */
.product_item .pro_des,
.pro_des {
    padding: 10px 14px 0 14px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: center !important;
    background: #ffffff;
}

.product_item .pro_name,
.pro_name {
    height: auto !important;
    min-height: 38px !important;
    /* Uniform 2-line title height keeps price position consistent */
    margin-top: 0 !important;
    margin-bottom: 3px !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product_item .pro_name a,
.pro_name a {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: auto !important;
    max-height: 38px !important;
    text-align: center !important;
    transition: color 0.2s ease;
}

.product_item:hover .pro_name a {
    color: var(--primary-color) !important;
}

/* Price Section - Center Aligned & Tightened to Order Button */
.product_item .pro_price,
.pro_price {
    margin-top: 1px !important;
    margin-bottom: 6px !important;
    /* Reduced to tightly couple price and order button */
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.product_item .pro_price p,
.pro_price p {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    text-align: center !important;
    width: 100% !important;
}

.product_item .pro_price del,
.pro_price del {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    text-decoration: line-through;
}

/* Action Button ("অর্ডার করুন") */
.product_item .pro_btn {
    padding: 0 14px 14px 14px !important;
    margin-top: auto;
    background: #ffffff;
}

.product_item .pro_btn form {
    margin: 0;
}

.product_item .pro_btn button,
.product_item .pro_btn .addcartbutton,
.product_item .pro_btn .order_button a {
    width: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 11px 16px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25) !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.product_item .pro_btn button:hover,
.product_item .pro_btn .addcartbutton:hover,
.product_item .pro_btn .order_button a:hover {
    background: linear-gradient(135deg, var(--primary-hover), #172554) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38) !important;
}

/* View More Button */
.view_more_btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: #ffffff !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: var(--radius-full) !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
    box-shadow: var(--shadow-sm) !important;
    margin: 12px 0 24px 0;
}

.view_more_btn:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25) !important;
}

.show_more_btn {
    text-align: center;
    width: 100%;
}

/* ==========================================================================
   PRODUCT SLIDERS & GRIDS (5 Columns matching Hot Deals proportions)
   ========================================================================== */
.product_sliders,
.col-sm-12 .category-product,
.col-sm-12 .main_product_inner {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
}

/* Category page with sidebar (col-sm-9) */
.col-sm-9 .category-product,
.col-sm-9 .main_product_inner,
.category-product,
.main_product_inner {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

@media (max-width: 1200px) {

    .product_sliders,
    .col-sm-12 .category-product,
    .col-sm-12 .main_product_inner {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px !important;
    }

    .col-sm-9 .category-product,
    .col-sm-9 .main_product_inner {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 991px) {

    .product_sliders,
    .category-product,
    .main_product_inner,
    .col-sm-12 .category-product,
    .col-sm-12 .main_product_inner,
    .col-sm-9 .category-product,
    .col-sm-9 .main_product_inner {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
}

@media (max-width: 600px) {

    .product_sliders,
    .category-product,
    .main_product_inner,
    .col-sm-12 .category-product,
    .col-sm-12 .main_product_inner,
    .col-sm-9 .category-product,
    .col-sm-9 .main_product_inner {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .product_item .pro_img {
        height: 150px !important;
    }

    .product_item .pro_img a {
        padding: 4px !important;
    }

    .product_item .pro_des {
        padding: 8px 10px 0 10px !important;
    }

    .product_item .pro_name {
        min-height: 34px !important;
        margin-bottom: 2px !important;
    }

    .product_item .pro_name a {
        font-size: 12.5px !important;
        max-height: 34px !important;
    }

    .product_item .pro_price {
        margin-top: 1px !important;
        margin-bottom: 4px !important;
    }

    .product_item .pro_price p {
        font-size: 15px !important;
    }

    .product_item .pro_btn {
        padding: 0 10px 10px 10px !important;
    }

    .product_item .pro_btn button,
    .product_item .pro_btn .addcartbutton,
    .product_item .pro_btn .order_button a {
        padding: 8px 10px !important;
        font-size: 12.5px !important;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    margin-top: 40px;
    background: var(--dark-bg);
}

.footer-top {
    background: var(--dark-bg) !important;
    border-top: 1px solid var(--dark-surface);
    padding: 50px 0 35px 0 !important;
}

.footer-about img.logo {
    max-height: 48px;
    width: auto !important;
    margin-bottom: 18px;
}

.footer-about p {
    color: #94a3b8 !important;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-about .footer-hotlint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--dark-border);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    color: #38bdf8 !important;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.footer-about .footer-hotlint:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
}

.footer-menu li.title a {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-menu li.title a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

.footer-menu ul li a {
    color: #94a3b8 !important;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    padding: 4px 0;
}

.footer-menu ul li a:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

/* Social Media Pill Buttons */
.footer-menu ul.social_link {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.footer-menu .social_list a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 15px;
    transition: all 0.2s ease;
}

.footer-menu .social_list a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Download App */
.footer-menu .d_app h2 {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700;
    margin: 20px 0 10px 0;
}

.footer-menu .d_app img {
    border-radius: var(--radius-md);
    max-width: 140px;
    transition: transform 0.2s ease;
}

.footer-menu .d_app img:hover {
    transform: scale(1.04);
}

/* Footer Bottom / Copyright */
.footer-bottom {
    background: #090d16 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}

.footer-bottom .copyright p {
    color: #64748b;
    font-size: 13px;
    text-align: center;
    margin: 0;
}

.footer-bottom .copyright a {
    color: #94a3b8 !important;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-bottom .copyright a:hover {
    color: var(--primary-color) !important;
}

/* Floating Bottom Navigation for Mobile */
.footer_nav {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border-top: 1px solid var(--dark-border) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.footer_nav ul li a {
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer_nav ul li a:hover,
.footer_nav ul li a.active {
    color: #38bdf8 !important;
}

.footer_nav ul li a i {
    font-size: 18px;
    margin-bottom: 2px;
}

/* ==========================================================================
   DESKTOP DEDICATED TOP NAVIGATION BAR
   ========================================================================== */
.desktop-main-nav {
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    margin-top: 6px;
}

@media (max-width: 991px) {
    .desktop-main-nav {
        display: none !important;
    }
}

.desktop-main-nav .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.desktop-main-nav ul.nav-menu-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-main-nav ul.nav-menu-links li.nav-item {
    display: inline-block;
    position: relative;
}

.desktop-main-nav ul.nav-menu-links li.nav-item a.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #cbd5e1 !important;
    border-radius: var(--radius-full);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    border: 1px solid transparent;
}

.desktop-main-nav ul.nav-menu-links li.nav-item a.nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.desktop-main-nav ul.nav-menu-links li.nav-item.active a.nav-link {
    color: #ffffff !important;
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
    border-color: var(--primary-color);
}

.desktop-main-nav ul.nav-menu-links li.nav-item a.nav-link i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.desktop-main-nav ul.nav-menu-links li.nav-item a.nav-link:hover i {
    transform: scale(1.15);
}

/* Hot Deal Pulsing Badge */
.desktop-main-nav .hot-deal-link {
    position: relative;
}

.desktop-main-nav .badge-pulse {
    font-size: 9.5px;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    letter-spacing: 0.04em;
    animation: badgePulse 2s infinite;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    margin-left: 2px;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

/* Hotline / Helpline Badge on Right */
.desktop-main-nav .hotline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    text-decoration: none;
}

.desktop-main-nav .hotline-badge:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.desktop-main-nav .hotline-badge i {
    color: #38bdf8;
    font-size: 12px;
}

.desktop-main-nav .hotline-badge strong {
    color: #38bdf8;
    font-weight: 700;
}

/* Mobile Drawer Quick Pages */
.mobile-nav-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-pages .mobile-page-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.15s ease;
}

.mobile-nav-pages .mobile-page-link:hover,
.mobile-nav-pages .mobile-page-link.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.mobile-nav-pages .mobile-page-link.hot-link {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
}

.mobile-nav-pages .mobile-page-link.hot-link:hover {
    background: #e11d48;
    color: #ffffff;
}

/* Content spacing adjustments */
#content {
    padding-top: 135px !important;
}

@media (max-width: 991px) {
    #content {
        padding-top: 110px !important;
    }
}