/* ShopZone - Main Stylesheet */

/* Variables */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #6366f1;
    --accent-color: #fbbf24;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* General */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Logo - static view (no animation, no hover effects) */
.logo-animated {
    opacity: 1;
}

@keyframes logoSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes logoSlideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes logoFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes logoBounce {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.1); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes logoZoom {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes logoCarousel {
    0% { transform: translateX(-100%); opacity: 0; }
    10% { transform: translateX(0); opacity: 1; }
    90% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* Navbar */
.navbar {
    background-color: white;
    box-shadow: var(--shadow);
}
#navbar {
    overflow: visible;
    background-color: #161717;
    margin-top: 0.1%;
    text-align: center;
}
#navbar a {
    display: inline-block;
    color: var(--navbar-text, #f2f2f2);
    text-align: center;
    padding: 5px;
    text-decoration: none;
    font-size: 17px;
}
.navbar-logo {
    float: left;
    padding: 6px 16px;
    margin-left: 30px;
    text-decoration: none;
}
.navbar-logo img {
    max-height: 40px;
    width: auto;
    vertical-align: middle;
}
.navbar-logo-text {
    color: var(--navbar-text, #f2f2f2);
    font-weight: bold;
    font-size: 20px;
}
.navbar-links {
    float: right;
    margin-left: 30px;
    margin-right: 30px;
}
.navbar-dropdown {
    position: relative;
    display: inline-block;
}
.navbar-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
    padding: 6px;
    text-align: left;
}
.navbar-dropdown:hover .navbar-dropdown-menu,
.navbar-dropdown-menu.show {
    display: block;
}
.navbar-dropdown-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}
.navbar-dropdown-menu a:hover {
    background: #f3f4f6;
}
#navbar a:hover {
    background-color: var(--navbar-hover, #ddd);
    color: black;
}
#navbar a.active {
    background-color: var(--navbar-active, #1e272d);
    color: var(--navbar-text, white);
}
.navbar-search {
    display: inline-block;
    margin-left: 16px;
    vertical-align: middle;
}
.navbar-search-select {
    padding: 5px;
    border: 1px solid #555;
    border-radius: 4px 0 0 4px;
    background: transparent;
    color: var(--navbar-text, #f2f2f2);
    outline: none;
    font-size: 14px;
}
.navbar-search-select option {
    color: #1f2937;
}
.navbar-search-input {
    padding: 5px;
    border: 1px solid #555;
    background: transparent;
    color: var(--navbar-text, #f2f2f2);
    outline: none;
    font-size: 14px;
    border-radius: 4px 0 0 4px;
}
.navbar-search-price {
    width: 65px;
    padding: 5px;
    border: 1px solid #555;
    border-left: none;
    background: transparent;
    color: var(--navbar-text, #f2f2f2);
    outline: none;
    font-size: 14px;
}
.navbar-search-btn {
    padding: 7px 12px;
    border: 1px solid #555;
    border-left: none;
    border-radius: 0 4px 4px 0;
    background: transparent;
    color: var(--navbar-text, #f2f2f2);
    cursor: pointer;
}
.navbar-actions {
    display: inline-block;
    margin-left: 16px;
    margin-right: 30px;
    vertical-align: middle;
}
.navbar-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--navbar-text, #f2f2f2);
    padding: 6px 10px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}
.navbar-action-label {
    font-size: 13px;
    line-height: 1;
}
.navbar-action:hover {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    color: var(--navbar-text, #f2f2f2);
}
.navbar-action-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    padding: 0 3px;
}
.navbar-lang-text {
    font-size: 12px;
    margin-left: 2px;
}
.navbar-user {
    position: relative;
}
.navbar-user-caret {
    font-size: 10px;
    margin-left: 4px;
    color: inherit;
    opacity: 0.8;
}
.navbar-user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 170px;
    z-index: 1050;
    padding: 6px;
}
.navbar-user-menu.show {
    display: block;
}
.navbar-user-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
}
.navbar-user-menu a:hover {
    background: #f3f4f6;
}
.navbar-user-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 6px 0;
}
.navbar-user-badge {
    float: right;
    background: #FA5206;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 8px;
    margin-top: 1px;
}
.navbar-user-menu a {
    display: block;
    overflow: hidden;
}
.navbar-user-menu a:hover .navbar-user-badge {
    background: #e04505;
}
.navbar-search-btn:hover {
    background: rgba(255,255,255,0.15);
}
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}
.sticky + .container {
    padding-top: 0px;
}
.navbar-custom {
    min-height: 56px;
    width: 100%;
}
.navbar-custom .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 40px;
}
.navbar-custom .navbar-brand img {
    min-height: 40px;
    min-width: 40px;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
}



/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section.carousel {
    min-height: auto;
}

.hero-section.carousel .carousel-item {
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section.carousel .carousel-item img {
    object-fit: cover;
}

.hero-section .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    left: 10%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
}

.hero-section .carousel-indicators {
    bottom: 20px;
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.hero-section .carousel-indicators button.active {
    background-color: #fff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.typing-text {
    color: #ffd700;
    border-right: 3px solid #ffd700;
    padding-right: 5px;
}

.typing-cursor {
    color: #ffd700;
    animation: blink 0.7s infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Product Card */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

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

.product-card .product-image {
    height: 250px;
    position: relative;
}

.product-card .product-badges {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px 10px;
    z-index: 10;
    pointer-events: none;
}
.product-card .product-badges .category-badge,
.product-card .product-badges .discount-badge {
    pointer-events: auto;
}

.product-card .product-badges .category-badge,
.product-card .product-badges .discount-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 20;
}

.product-card .product-badges .category-badge {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    font-size: 10px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important;
    padding: 3px 8px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    position: relative !important;
    z-index: 20 !important;
}

.product-card .product-badges .discount-badge {
    background: #dc3545;
    color: white;
    font-size: 10px !important;
    font-weight: 700;
    padding: 3px 6px !important;
    line-height: 1.2 !important;
}

/* Discount badge styles (selectable in admin settings) */
.product-card .product-badges .discount-badge.ds-pill {
    border-radius: 20px;
    padding: 5px 12px;
}
.product-card .product-badges .discount-badge.ds-square {
    border-radius: 0;
    padding: 5px 10px;
}
.product-card .product-badges .discount-badge.ds-badge {
    border-radius: 4px;
    padding: 4px 9px;
}
.product-card .product-badges .discount-badge.ds-flag {
    border-radius: 3px;
    padding: 5px 16px 5px 9px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
}
.product-card .product-badges .discount-badge.ds-circle {
    border-radius: 50%;
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.05;
    font-size: 11px;
    font-weight: 800;
    white-space: normal;
}
.ds-badge-preview {
    padding: 5px 12px;
    font-weight: 700;
    border-radius: 20px;
    display: inline-block;
    line-height: 1.4;
}
.ds-badge-preview.ds-pill { border-radius: 20px; }
.ds-badge-preview.ds-square { border-radius: 0; }
.ds-badge-preview.ds-badge { border-radius: 4px; }
.ds-badge-preview.ds-flag { border-radius: 3px; padding: 5px 16px 5px 9px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%); }
.ds-badge-preview.ds-circle { border-radius: 50%; width: 46px; height: 46px; padding: 0; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.05; font-size: 11px; white-space: normal; }
/* Mobile: category-badge, product-badges small size 10px - fix one row view where only 15% showed */
@media (max-width: 576px) {
    .product-card .product-badges .category-badge,
    .category-badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
    .product-card .product-badges .discount-badge,
    .product-badges .discount-badge,
    .discount-badge.ds-flag,
    .product-card .product-badges .discount-badge.ds-flag {
        font-size: 10px !important;
        padding: 4px 8px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }
    .discount-badge.ds-flag,
    .product-card .product-badges .discount-badge.ds-flag {
        padding: 4px 12px 4px 8px !important;
    }
    .product-card .product-badges .discount-badge.ds-circle {
        width: 46px !important;
        height: 46px !important;
        font-size: 11px !important;
    }
}

.product-card .product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-card .product-info {
    padding: 20px;
    display: none !important;
}
.product-card .product-info.show {
    display: block !important;
}
.products-list-view .product-card .product-info.show {
    display: flex !important;
}
.show-more-btn {
    display: block !important;
    width: calc(100% - 16px);
    margin: 8px auto;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
}
/* separate show-more card */
.show-more-card {
    display: none !important;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 8px;
    padding: 12px;
}
.show-more-card.show {
    display: block !important;
}
.show-more-card .product-info {
    display: block !important;
    padding: 0 !important;
}
.show-more-card .product-info .product-title,
.show-more-card .d-flex.justify-content-between.align-items-center.flex-wrap.gap-2 {
    display: block !important;
}
.show-more-card .d-flex.justify-content-between.align-items-center.flex-wrap.gap-2 {
    display: flex !important;
}
/* position hide */
.product-card .product-badges {
    display: none !important;
}
.position-hide {
    display: none !important;
}

.product-card .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark-color);
    white-space: normal;
}

.product-card .product-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

.product-card .product-image img,
.product-card .product-zoom-container {
    z-index: 1;
}

/* Category Card */
.category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card .category-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.category-card .category-images {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.category-card .carousel {
    width: 100%;
    max-width: 120px;
}

.category-card .carousel-inner {
    border-radius: 50%;
    overflow: hidden;
}

.category-card .carousel-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin: 0 auto;
}

.category-card h5 {
    font-weight: 600;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Product Detail */
.product-detail-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-detail-info h2 {
    font-size: 2rem;
    font-weight: 700;
}

.product-detail-info .price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stock-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Cart - Table row wise view - horizontal wise */
.cart-table-wrap {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    display: block;
    width: 100%;
}
.cart-table {
    margin-bottom: 0;
    width: 100%;
    min-width: 650px;
    white-space: nowrap;
}
.cart-table thead th {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
    padding: 12px 10px;
    background: #f9fafb;
}
/* Exact selector requested - column wise data view horizontal */
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > thead {
    background: #f8f9fa;
    border-bottom: 2px solid #FA5206;
}
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > thead th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #495057;
    background: #f8f9fa;
    border-bottom: 2px solid #FA5206;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    padding: 10px 8px;
}
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > thead th:nth-child(1) { width: 70px; text-align: center; }
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > thead th:nth-child(2) { text-align: left; min-width: 180px; }
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > thead th:nth-child(3) { width: 90px; }
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > thead th:nth-child(4) { width: 130px; }
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > thead th:nth-child(5) { width: 100px; text-align: right; }
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > thead th:nth-child(6) { width: 60px; }
/* column wise data - horizontal view - tbody columns */
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td {
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
    padding: 12px 8px;
    font-size: 13px;
}
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td:nth-child(2) {
    white-space: normal;
    text-align: left;
    min-width: 180px;
}
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td:nth-child(5) {
    text-align: right;
    font-weight: 600;
}
.cart-table tbody tr.cart-item.cart-row {
    border-bottom: 1px solid #e9ecef;
    background: white;
    transition: background 0.2s ease;
}
.cart-table tbody tr.cart-item.cart-row:nth-child(even) {
    background: #f8f9fa; /* table-light row wise */
}
.cart-table tbody tr.cart-item.cart-row:hover {
    background: #f1f3f5 !important;
}
.cart-table tbody tr.cart-item.cart-row:last-child {
    border-bottom: none;
}
.cart-table tbody td {
    padding: 12px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
    color: #212529;
}
.cart-table tbody tr.cart-item.cart-row img {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    display: block;
    border: 1px solid #eee;
}
.cart-info h6 a:hover { color: #FA5206 !important; }
.cart-info .badge { border-radius: 4px; padding: 2px 6px; }
/* Delete button - icon only, no border/margin/padding */
#cart-content-section .delete-cell { text-align: center !important; vertical-align: middle !important; }
#cart-content-section .delete-btn,
#cart-content-section td.delete-cell .btn,
#cart-content-section td:nth-child(6) .btn {
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}
#cart-content-section .delete-btn i,
#cart-content-section td.delete-cell .btn i,
#cart-content-section td:nth-child(6) .btn i {
    font-size: 14px;
    color: #dc3545;
    display: inline-block;
    line-height: 1;
}
#cart-content-section .delete-btn:hover i { color: #a71d2a; }
/* Qty vertical - + top, - bottom */
#cart-content-section .qty-cell { vertical-align: middle !important; text-align: center !important; }
#cart-content-section .qty-vertical { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 2px !important; }
#cart-content-section .qty-vertical .qty-btn { width: 28px !important; height: 22px !important; line-height: 22px !important; padding: 0 !important; font-size: 12px !important; display: inline-flex; align-items: center; justify-content: center; background: #FA5206 !important; border-color: #FA5206 !important; color: #fff !important; }
#cart-content-section .qty-vertical .cart-quantity { font-size: 12px !important; min-width: 20px !important; text-align: center !important; line-height: 1.2 !important; font-weight: 600; }
#cart-content-section .qty-vertical .qty-btn:hover { background: #e04a05 !important; border-color: #e04a05 !important; color: #fff !important; }
/* Price / Total - two row view: BDT first, USD second */
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td.price-cell,
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td.total-cell {
    text-align: center !important;
    vertical-align: middle !important;
    white-space: normal !important;
    line-height: 1.3;
    padding: 8px 6px !important;
}
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td.price-cell .currency-bdt,
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td.total-cell .currency-bdt {
    display: block !important;
    font-weight: 600;
    color: #212529;
    font-size: 12px;
}
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td.price-cell .currency-usd,
#cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td.total-cell .currency-usd {
    display: block !important;
    font-size: 12px;
    color: #6c757d;
}
/* fallback for old div-based cart-item (if any) */
.cart-item:not(tr) {
    background: white;
    border-radius: var(--border-radius);
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.cart-item:not(tr) img {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-summary {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Auth Pages */
.auth-container {
    max-width: 450px;
    margin: 5px auto !important;
    background: white;
    border-radius: var(--border-radius);
    padding: 5px !important;
    box-shadow: var(--shadow-lg);
}

/* Dashboard */
.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dashboard-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
}

.dashboard-card p {
    color: var(--gray-color);
    margin: 0;
}

/* Tables */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead {
    background: var(--primary-color);
    color: white;
}

.table th, .table td {
    padding: 15px;
    vertical-align: middle;
}

/* Pagination */
.pagination {
    margin-top: 30px;
}

.page-link {
    color: var(--primary-color);
    border-radius: 8px;
    margin: 0 3px;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Order Status */
.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-status.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
}

.order-status.processing {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.order-status.shipped {
    background: rgba(14, 165, 233, 0.1);
    color: #0891b2;
}

.order-status.delivered {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

/* Footer */
footer {
    margin-top: 80px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-section .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Mobile fix: keep one row - same as d-flex flex-nowrap gap-2 desktop */
    .section-header {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .section-header::-webkit-scrollbar { display: none; }
    .section-header > div:first-child { flex: 0 1 auto !important; min-width: 0 !important; }
    .section-header > div:last-child { flex: 0 0 auto !important; flex-wrap: nowrap !important; }
    .section-header .section-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .section-header .text-muted.small, .section-header p.text-muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .section-header .btn { width: auto !important; flex: 0 0 auto; white-space: nowrap; }
    
    .product-card .product-image {
        height: 180px;
    }
    
    .product-card .product-info {
        padding: 12px;
    }
    
    .product-card .product-title {
        font-size: 0.95rem;
    }
    
    .product-card .product-price {
        font-size: 1rem;
    }
    
    .product-card .d-flex.gap-2 {
        flex-direction: column;
        gap: 5px !important;
    }
    
    .product-card .btn-sm {
        width: 100%;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .cart-item:not(tr) {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        text-align: left !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px !important;
    }
    
    .cart-item:not(tr) img,
    .cart-table tbody tr.cart-item.cart-row img {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
    }
    .cart-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        display: block !important;
        white-space: nowrap !important;
        scrollbar-width: thin;
    }
    .cart-table-wrap::-webkit-scrollbar { height: 6px; }
    .cart-table-wrap::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 4px; }
    .cart-table {
        min-width: 340px !important;
        width: 100% !important;
        display: table !important;
    }
    .cart-table thead th,
    .cart-table tbody td {
        font-size: 11px !important;
        padding: 6px 2px !important;
        white-space: nowrap !important;
        vertical-align: middle !important;
    }
    .cart-table tbody td:nth-child(2) {
        white-space: normal !important;
        min-width: 78px;
        max-width: 92px;
        font-size: 11px !important;
    }
    /* Extra small columns - compact mobile 12px, product col small, 60x60 image, horizontal thead, 2-row BDT/USD */
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > thead th:nth-child(1) {
        width: 60px !important; min-width: 60px !important; max-width: 60px !important; font-size: 11px !important; padding: 6px 1px !important;
    }
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > thead th:nth-child(2) {
        min-width: 78px !important; max-width: 92px !important; font-size: 12px !important; padding: 6px 2px !important;
    }
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > thead th:nth-child(3),
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > thead th:nth-child(5) {
        width: 54px !important;
        min-width: 54px !important;
        max-width: 54px !important;
        font-size: 12px !important;
        padding: 6px 1px !important;
    }
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > thead th:nth-child(4) {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        font-size: 12px !important;
        padding: 6px 1px !important;
    }
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > thead th:nth-child(6) {
        width: 28px !important; min-width: 28px !important; max-width: 28px !important; font-size: 11px !important; padding: 6px 1px !important;
    }
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td:nth-child(2) {
        min-width: 78px !important; max-width: 92px !important; padding: 6px 2px !important;
    }
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td.price-cell,
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td.total-cell {
        width: 54px !important;
        min-width: 54px !important;
        max-width: 54px !important;
        padding: 4px 1px !important;
        font-size: 11px !important;
    }
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td:nth-child(4) {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        padding: 4px 1px !important;
    }
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td.price-cell .currency-bdt,
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td.price-cell .currency-usd {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td.total-cell .currency-bdt,
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td.total-cell .currency-usd {
        font-size: 12px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
    }
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td.total-cell {
        font-size: 12px !important;
        font-weight: 700 !important;
    }
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td:nth-child(4) .btn {
        width: 24px !important;
        height: 24px !important;
        line-height: 24px !important;
        font-size: 11px !important;
        padding: 0 !important;
    }
    /* Qty small column - orange */
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td:nth-child(4) .qty-vertical .qty-btn {
        width: 22px !important;
        height: 16px !important;
        line-height: 16px !important;
        font-size: 10px !important;
        padding: 0 !important;
        background: #FA5206 !important;
        border-color: #FA5206 !important;
        color: #fff !important;
    }
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td:nth-child(4) .qty-vertical .cart-quantity {
        font-size: 11px !important;
        min-width: 14px !important;
        line-height: 1.2 !important;
    }
    #cart-content-section > div.row > div.col-lg-8 > div.table-responsive.cart-table-wrap > table > tbody td:nth-child(4) .cart-quantity {
        font-size: 11px !important;
        min-width: 14px !important;
    }
    #cart-content-section .cart-info h6 { font-size: 12px !important; line-height: 1.3 !important; }
    #cart-content-section .cart-info h6 a { font-size: 12px !important; }
    #cart-content-section .cart-info .small { font-size: 11px !important; }
    #cart-content-section .cart-info .badge { font-size: 10px !important; }
    /* Delete btn mobile - icon only, 0 border/margin/padding */
    #cart-content-section .delete-cell,
    #cart-content-section td.delete-cell,
    #cart-content-section td:nth-child(6) {
        padding: 6px 2px !important;
    }
    #cart-content-section .delete-btn,
    #cart-content-section td.delete-cell .btn,
    #cart-content-section td:nth-child(6) .btn {
        border: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        width: auto !important;
        height: auto !important;
        line-height: 1 !important;
    }
    #cart-content-section .delete-btn i,
    #cart-content-section td.delete-cell .btn i { font-size: 12px !important; }
    /* horizontal thead column-wise - keep compact */
    /* horizontal wise - keep one row per item, no wrap */
    .cart-table tbody tr.cart-item.cart-row {
        display: table-row !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    .product-grid-mobile-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .product-grid-mobile-1 {
        grid-template-columns: 1fr !important;
    }
    
    .category-sidebar {
        display: none;
    }
    
    .category-sidebar.show {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
        overflow-y: auto;
    }
    
    .category-sidebar.show .card {
        margin: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    .filter-toggle {
        display: block !important;
    }
    
    .products-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .products-header h4 {
        font-size: 1.1rem;
    }
    
    .product-banner {
        max-width: 95% !important;
        flex-direction: column;
        text-align: center;
        gap: 10px !important;
        padding: 12px !important;
    }
    
    .product-banner .banner-btn {
        width: 100%;
    }
    
    .features-section .col-md-4 {
        margin-bottom: 20px;
    }
    
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .product-detail-info h2 {
        font-size: 1.5rem;
    }
    
    .product-detail-info .price {
        font-size: 1.5rem;
    }
    
    .hero-section {
        min-height: 400px;
    }
    
    .hero-section.carousel .carousel-item {
        min-height: 400px;
    }
    
    .hero-section .carousel-caption {
        left: 5%;
        right: 5%;
        padding: 15px;
    }
    
    .hero-section .carousel-caption h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-section .carousel-caption p {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .product-card .product-image {
        height: 150px;
    }
    
    .product-card .product-info {
        padding: 10px;
    }
    
    .btn-mobile-full {
        width: 100%;
    }
    
    .mobile-text-center {
        text-align: center;
    }
}

/* Bottom Navigation (Mobile) */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 10px;
    padding: 6px 8px;
    transition: color 0.2s;
    position: relative;
    flex: 1;
    min-width: 0;
}

.bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item:hover {
    color: var(--primary-color);
}

.bottom-cart-badge {
    position: absolute;
    top: -4px;
    right: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 360px) {
    .bottom-nav-item {
        font-size: 9px;
        padding: 4px 4px;
    }
    .bottom-nav-item i {
        font-size: 18px;
    }
}

body {
    padding-bottom: 60px;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

.all-products-heading {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-color);
    cursor: pointer;
    border: none;
    background: none;
}
.all-products-heading:hover {
    color: var(--primary-color);
}

/* Category Sidebar List Hover */
.category-sidebar .list-group-item-action {
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
    position: relative;
}
.category-sidebar .list-group-item-action:hover {
    background-color: #f0efff;
    border-left-color: var(--primary-color);
    padding-left: 1.25rem;
}
.category-sidebar .list-group-item-action:hover .fa-chevron-right {
    transform: translateX(3px);
}
.category-sidebar .list-group-item-action .fa-chevron-right {
    transition: transform 0.25s ease;
}
.category-sidebar .list-group-item-action.active {
    border-left-color: var(--primary-color);
}

/* Category Submenu */
.navbar .dropdown-menu {
    position: absolute !important;
}
.navbar-custom {
    flex-wrap: nowrap !important;
}
.navbar-custom .container {
    flex-wrap: nowrap !important;
    padding-left: 0 !important;
}
.navbar-custom .navbar-collapse {
    flex-grow: 0;
}
.navbar-custom .navbar-nav {
    flex-wrap: nowrap;
}
.navbar-custom .nav-link {
    white-space: nowrap;
}
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: 0;
    border-radius: 0.375rem;
}
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}
.dropdown-submenu > .dropdown-toggle::after {
    transform: rotate(-90deg);
}
@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        margin-left: 1rem;
        border: none;
        box-shadow: none;
    }
    .dropdown-submenu > .dropdown-toggle::after {
        transform: none;
    }
}

/* ==========================================
   MOBILE RESPONSIVE FIXES - COMPREHENSIVE
   ========================================== */

/* Banner row - 4 columns on mobile fix */
@media (max-width: 767px) {
    .row.g-2.mb-3 > .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 10px;
    }
}

/* Hero carousel - show caption on mobile */
.hero-section .carousel-caption.d-none.d-md-block {
    display: block !important;
}
@media (max-width: 767px) {
    .hero-section.carousel .carousel-item {
        min-height: 300px;
    }
    .hero-section .carousel-caption {
        position: absolute;
        left: 5%;
        right: 5%;
        bottom: 10%;
        top: auto;
        transform: none;
        padding: 12px;
        background: rgba(0,0,0,0.6);
    }
    .hero-section .carousel-caption h1 {
        font-size: 1.2rem !important;
    }
    .hero-section .carousel-caption p {
        font-size: 0.85rem !important;
        margin-bottom: 10px;
    }
    .hero-section .carousel-caption .btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    .hero-section img {
        min-height: 300px !important;
        object-fit: cover;
    }
}

/* Hero extras row - mobile stacking */
@media (max-width: 767px) {
    .hero-extras-section .row.g-2 > [class*="col-"],
    .advertise-section .row.g-2 > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Category sliding section mobile */
@media (max-width: 576px) {
    .category-slide-item {
        width: 90px;
        padding: 8px 4px;
    }
    .category-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    .category-slide-item span.d-block {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
    }
}

/* Features section mobile */
@media (max-width: 767px) {
    .features-section .col-md-4 {
        margin-bottom: 0;
    }
    .features-section .col-md-4 .text-center {
        padding: 20px 10px !important;
    }
    .features-section h4 {
        font-size: 1.1rem;
    }
}

/* Responsive tables */
.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-responsive-wrapper table {
    min-width: 500px;
}
@media (max-width: 767px) {
    .table {
        font-size: 0.85rem;
    }
    .table th, .table td {
        padding: 10px 8px;
    }
}

/* Products page header mobile */
@media (max-width: 767px) {
    .products-header {
        flex-direction: column;
        gap: 8px;
    }
    .products-header h4 {
        font-size: 1rem;
    }
    .products-header .d-flex.align-items-center.gap-2 {
        width: 100%;
        flex-wrap: wrap;
    }
    .products-header .d-flex.align-items-center.gap-2 > div {
        min-width: 0 !important;
        flex: 1;
    }
    .products-header #searchInput {
        font-size: 0.85rem;
    }
    #viewToggle .dropdown-toggle {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
}

/* Checkout page - location fields mobile */
@media (max-width: 767px) {
    .checkout-section .row > [class*="col-md-4"],
    .checkout-section .row > [class*="col-md-6"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Product detail page mobile */
@media (max-width: 767px) {
    .product-detail-info .d-flex.align-items-center.gap-3.flex-wrap {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .product-detail-info .d-flex.gap-3 {
        flex-wrap: wrap;
        justify-content: center;
    }
    .product-detail-info .input-group[style*="width: 130px"] {
        width: 100% !important;
        max-width: 130px;
    }
    .product-detail-info .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    /* Thumbnail images scrollable on mobile */
    .product-detail-image + .d-flex.gap-2.mt-3 {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    .product-detail-image + .d-flex.gap-2.mt-3 > * {
        flex-shrink: 0;
    }
}

/* Nav tabs mobile */
@media (max-width: 767px) {
    .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .nav-tabs .nav-item {
        flex-shrink: 0;
    }
    .nav-tabs .nav-link {
        font-size: 0.85rem;
        padding: 8px 12px;
        white-space: nowrap;
    }
    .tab-content {
        padding: 15px !important;
    }
}

/* Similar products mobile */
@media (max-width: 576px) {
    .related-products .col-6.col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Footer mobile spacing */
@media (max-width: 767px) {
    footer .row > [class*="col-"] {
        margin-bottom: 20px;
    }
    footer h5, footer h6 {
        font-size: 1rem;
    }
    footer .small {
        font-size: 0.8rem;
    }
}

/* Cart page - All Shoping grid - mobile 3 columns, desktop via dropdown */
@media (max-width: 767px) {
    #allShoppingGrid .shopping-item {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }
    #allShoppingGrid .card-img-top {
        height: 110px !important;
    }
    /* Buy Now icon only on mobile */
    #allShoppingGrid .buy-now-btn .buy-text { display: none !important; }
    #allShoppingGrid .buy-now-btn { padding: 6px 8px !important; display: inline-flex; align-items: center; justify-content: center; }
}

/* Payment methods mobile */
@media (max-width: 767px) {
    .payment-methods .form-check {
        padding: 12px !important;
    }
    .payment-methods .form-check-label {
        font-size: 14px !important;
    }
}

/* Product card button group on mobile fix */
@media (max-width: 576px) {
    .product-card .d-flex.justify-content-between.align-items-center.flex-wrap.gap-2 {
        flex-direction: column;
        align-items: stretch !important;
    }
    .product-card .d-flex.justify-content-between.align-items-center.flex-wrap.gap-2 > .product-price {
        text-align: center;
        margin-bottom: 4px;
    }
    .product-card .d-flex.justify-content-between.align-items-center.flex-wrap.gap-2 > .d-flex.gap-2 {
        flex-direction: row;
        justify-content: center;
        gap: 4px !important;
    }
    .product-card .d-flex.justify-content-between.align-items-center.flex-wrap.gap-2 .btn {
        font-size: 11px !important;
        padding: 4px 8px !important;
        white-space: nowrap;
    }
}

/* Bottom nav item text fix */
@media (max-width: 400px) {
    .bottom-nav-item span {
        font-size: 9px;
    }
    .bottom-nav-item i {
        font-size: 18px;
    }
}

/* Breadcrumb mobile */
@media (max-width: 576px) {
    .breadcrumb {
        font-size: 0.8rem;
    }
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 3px;
    }
}

/* General mobile text size adjustments */
@media (max-width: 576px) {
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.3rem !important; }
    h3 { font-size: 1.15rem !important; }
    h4 { font-size: 1rem !important; }
    h5 { font-size: 0.95rem !important; }
    .container { padding-left: 5px !important; padding-right: 5px !important; }
}

/* Pagination mobile */
@media (max-width: 576px) {
    .pagination .page-link {
        padding: 4px 8px;
        font-size: 13px;
        margin: 0 2px;
    }
}

/* Rating stars mobile */
@media (max-width: 576px) {
    .reviews-list .d-flex.justify-content-between {
        flex-direction: column;
        gap: 4px;
    }
}

/* Description wrapper mobile */
@media (max-width: 767px) {
    .description-wrapper .btn-link {
        font-size: 0.85rem;
    }
}

/* Alert messages mobile */
@media (max-width: 576px) {
    .alert {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* Navbar search on mobile fix */
@media (max-width: 991px) {
    .navbar form.d-flex {
        margin: 10px 0 !important;
        width: 100%;
    }
    .navbar form.d-flex .input-group {
        width: 100%;
    }
    .navbar .d-flex.align-items-center {
        flex-wrap: wrap;
        gap: 8px;
    }
    .navbar .navbar-collapse {
        padding-bottom: 10px;
    }
}

/* Top scroll bar mobile */
@media (max-width: 576px) {
    .top-scroll-item {
        padding: 0 20px;
        font-size: 12px !important;
    }
}

/* Category sidebar overlay mobile */
@media (max-width: 991px) {
    .category-sidebar.show .card {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
}

/* Floating menu group on very small screens */
@media (max-width: 400px) {
    .floating-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .floating-chat-group {
        right: 10px;
        gap: 8px;
    }
    .floating-cart-panel {
        max-width: 100vw;
        width: 100vw;
    }
}

/* News/Offer banner logos section on very small screens */
@media (max-width: 480px) {
    .row.g-2.mb-3 > .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Reviews section mobile */
@media (max-width: 576px) {
    .reviews-list .border-bottom {
        padding-bottom: 12px !important;
        margin-bottom: 12px !important;
    }
    .reviews-list img.img-thumbnail {
        max-width: 100px !important;
        max-height: 100px !important;
    }
}

/* Customer popup mobile */
@media (max-width: 576px) {
    #customerPopupCarousel {
        width: 260px !important;
        right: 10px !important;
        bottom: 80px !important;
    }
    #customerPopupCarousel .carousel-item img {
        height: 180px !important;
    }
}

/* Dashboard cards mobile */
@media (max-width: 576px) {
    .dashboard-card {
        padding: 15px;
    }
    .dashboard-card h3 {
        font-size: 1.5rem;
    }
}

/* Cart summary mobile */
@media (max-width: 767px) {
    .cart-summary {
        padding: 20px;
    }
    .cart-summary h5 {
        font-size: 1.1rem;
    }
}

/* Auth container mobile padding */
@media (max-width: 576px) {
    .auth-container {
        padding: 5px !important;
        margin: 5px auto !important;
    }
    .auth-container h2 {
        font-size: 1.3rem;
    }
}

/* Profile info inline edit mobile */
@media (max-width: 767px) {
    .inline-field .d-flex {
        flex-wrap: wrap;
    }
    .inline-field .field-input {
        max-width: 100% !important;
    }
}

/* Hero offer text marquee mobile */
@media (max-width: 767px) {
    .hero-offer-sliding {
        min-height: 60px !important;
    }
}

/* Image gallery thumbnails on product page - mobile scroll */
@media (max-width: 576px) {
    .product-detail-image + .d-flex.gap-2.mt-3 img,
    .product-detail-image + .d-flex.gap-2.mt-3 div {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Banners section mobile */
@media (max-width: 767px) {
    #bannerCarousel .carousel-item img {
        max-height: 200px !important;
    }
    #arrivalBannerCarousel .carousel-item img {
        max-height: 200px !important;
    }
}

/* Live chat panel mobile */
@media (max-width: 576px) {
    .live-chat-panel {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 150px;
    }
}

/* Contact modal - top 60px / bottom 60px */
#contactModal {
    padding-top: 60px;
    padding-bottom: 60px;
    margin-bottom: 60px !important;
}
#contactModal .modal-dialog {
    margin-top: 60px;
    margin-bottom: 60px;
}
#contactModal .modal-body,
#contactModalBody {
    padding: 10px !important;
}
#contactForm {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Contact modal mobile */
@media (max-width: 576px) {
    #contactModal {
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 60px !important;
    }
    #contactForm {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    #contactModal .modal-dialog {
        margin: 0;
        max-width: 100%;
    }
    #contactModal .modal-content {
        border-radius: 0;
        border: none;
        height: 100vh;
        max-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    #contactModal .modal-body {
        flex: 1 1 auto;
        overflow-y: auto;
    }
    #contactModal .modal-footer {
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #dee2e6;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
}

/* Product banner fixed mobile */
@media (max-width: 576px) {
    .product-banner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 12px !important;
    }
    .product-banner .banner-btn {
        width: 100%;
    }
}

/* ==========================================
   MOBILE NAVBAR TOGGLE + MENU MODAL
   ========================================== */
.mobile-menu-toggle {
    display: none !important;
}
@media (max-width: 991.98px) {
    .mobile-menu-toggle {
        display: inline-flex !important;
    }
    .navbar-links {
        display: none;
    }
    .navbar-search {
        display: none;
    }
    #navbar {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px;
        text-align: left;
    }
    .navbar-logo {
        float: none;
        margin: 0;
    }
    .navbar-actions {
        float: none;
        margin: 0;
        display: inline-flex;
        align-items: center;
        gap: 2px;
    }
    .navbar-action {
        padding: 6px 8px;
    }
    .navbar-action .navbar-action-label {
        display: none;
    }
    .navbar-user .navbar-action-label {
        display: inline;
    }
    .navbar-user-caret {
        display: none;
    }
    #navbar a {
        font-size: 16px;
        padding: 6px 8px;
    }
}
@media (max-width: 480px) {
    .navbar-action .navbar-action-label {
        display: none !important;
    }
    .navbar-user .navbar-action-label {
        display: none !important;
    }
    .mobile-menu-toggle .navbar-action-label {
        display: none !important;
    }
}

/* 5px gap - keeps desktop layout crisp, mobile 4-col handles its own gap */
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    padding-left: 8px !important;
    padding-right: 8px !important;
}
/* Product card base - desktop: normal aspect 1:1 full width */
.product-card {
    width: 100% !important;
    max-width: 100% !important;
}
.show-more-card {
    width: 100% !important;
    max-width: 100% !important;
}
.product-card .product-zoom-container,
.product-card .product-image {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    background: #f8f8f8;
    overflow: hidden;
    display: block !important;
    position: relative;
}
.product-card .product-zoom-container img,
.product-card .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    transition: transform .2s ease;
}

#mainContent > section:nth-child(8) > div > div.d-flex.justify-content-between.align-items-center.mb-5.section-header.flex-nowrap.gap-2,
#mainContent > section:nth-child(9) > div > div.d-flex.justify-content-between.align-items-center.mb-5.section-header.flex-nowrap.gap-2 {
    border: 2px solid #fa5606 !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
}
#flashToastContainer,
.toast-container.position-fixed.top-0.end-0 {
    right: 40px !important;
}
body {
    padding-right: 0; /* keep body without extra - container handles gap */
}
