/* ===========================
   Kroyjatra.com Color Scheme
   Based on actual brand colors
   =========================== */
:root {
    --primary-color: #00705C;
    --primary-dark: #005A48;
    --primary-light: #008F74;
    --secondary-color: #D16847;
    --accent-color: #D16847;
    --success-color: #00705C;
    --warning-color: #FFA726;
    --dark-color: #1A1A1A;
    --light-gray: #F5F5F5;
    --medium-gray: #E5E5E5;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ===========================
   Global Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===========================
   Buttons
   =========================== */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 92, 0.3);
}

.btn-primary:active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(0);
}

/* ===========================
   Top Info Bar
   =========================== */
.top-info-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
    overflow: hidden;
}

.top-info-bar p {
    font-weight: 400;
}

/* Marquee */
.marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee 18s linear infinite;
    font-weight: 500;
}

.marquee:hover .marquee-content,
.marquee:focus .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* ===========================
   Header
   =========================== */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    max-height: 50px;
}

.search-box {
    position: relative;
}

.search-box form {
    position: relative;
}

.search-box .form-control {
    border: 2px solid var(--medium-gray);
    border-radius: 50px;
    padding: 12px 60px 12px 20px;
    font-size: 14px;
    transition: var(--transition);
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 112, 92, 0.1);
    outline: none;
}

.search-box .btn-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-box .btn-search:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Mobile Search Bar */
.mobile-search {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.header-cart {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.mobile-menu-toggle {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.header-cart {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    flex-wrap: nowrap;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
}

.cart-link:hover {
    background: var(--medium-gray);
    transform: translateY(-2px);
}

.cart-link i {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.cart-link .badge {
    position: absolute;
    top: 5px;
    left: 30px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.cart-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: nowrap;
}

.cart-info small {
    font-size: 11px;
    color: var(--text-secondary);
}

.cart-info strong {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Header Auth Buttons */
.header-cart .btn-primary,
.header-cart .btn-outline-primary {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
    border-width: 2px;
}

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

.header-cart .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 112, 92, 0.3);
}

.header-cart .btn-outline-primary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.header-cart .btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 112, 92, 0.2);
}

/* User Dropdown */
.header-cart .dropdown-toggle::after {
    display: none;
}

.header-cart .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    padding: 8px 0;
    min-width: 200px;
}

.header-cart .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-primary);
    transition: var(--transition);
}

.header-cart .dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.header-cart .dropdown-item i {
    color: var(--primary-color);
    width: 20px;
}

/* ===========================
   Navigation Menu
   =========================== */
.main-nav {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 3px solid var(--accent-color);
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

/* Prevent flash of unstyled content during nav calculation */
.nav-menu-wrapper.nav-loading {
    visibility: hidden;
}

.nav-menu-wrapper.nav-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    visibility: visible;
}

#moreDropdown {
    position: relative;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    gap: 3px;
}

.nav-menu li.nav-item {
    flex: 0 0 auto;
    text-align: center;
    position: relative;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 6px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.3s ease;
}

.nav-menu a:hover::before {
    left: 0;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-menu a i {
    font-size: 16px;
    color: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover i {
    transform: scale(1.15);
    color: var(--white);
}

.nav-menu a span {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.nav-menu a.active {
    background: rgba(255, 255, 255, 0.25);
    border-bottom: 3px solid var(--accent-color);
}

.nav-menu a.active i {
    color: var(--white);
    transform: scale(1.1);
}

.nav-menu a.active span {
    font-weight: 600;
}

/* More Dropdown */
.nav-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-more-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-more-btn i {
    color: var(--accent-color);
}

#moreDropdown .dropdown-menu {
    background: var(--white);
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 8px 0;
    min-width: 200px;
    margin-top: 8px;
    z-index: 9999 !important;
    position: absolute !important;
}

#moreDropdown.show .dropdown-menu {
    display: block;
}

#moreDropdown .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

#moreDropdown .dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

#moreDropdown .dropdown-item i {
    color: var(--primary-color);
    font-size: 16px;
}

/* ===========================
   Mobile Navigation (Offcanvas)
   =========================== */
.offcanvas {
    background: var(--white);
}

.offcanvas-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
}

.offcanvas-title img {
    max-height: 35px;
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--medium-gray);
}

.mobile-nav-menu li.nav-divider {
    border-bottom: 2px solid var(--primary-color);
    margin: 10px 0;
    padding: 0;
    height: 0;
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-menu a:hover {
    background: var(--light-gray);
    padding-left: 25px;
}

.mobile-nav-menu a i {
    font-size: 18px;
    color: var(--primary-color);
    width: 25px;
    text-align: center;
}

/* Mobile Auth Buttons */
.mobile-auth-buttons .btn {
    font-weight: 500;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-width: 2px;
}

.mobile-auth-buttons .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.mobile-auth-buttons .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-auth-buttons .btn-outline-primary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-auth-buttons .btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.mobile-user-info .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.mobile-user-info .btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: var(--white);
}

/* ===========================
   Hero Banner
   =========================== */
.hero-banner {
    padding: 20px 0;
    background: var(--light-gray);
}

.banner-content img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* ===========================
   Section Title
   =========================== */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
}

/* Wavy underline for special sections */
.hot-deal .section-title::after {
    background: none;
    border-bottom: 3px solid var(--primary-color);
    border-radius: 50% 50% 50% 50%;
    height: 8px;
    width: 120px;
}

/* ===========================
   Top Categories
   =========================== */
.top-categories {
    background: var(--white);
}

.category-card {
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
}

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

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon i {
    font-size: 32px;
    color: var(--white);
}

.category-card h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Mobile optimizations for categories */
@media (max-width: 767px) {
    .category-card {
        padding: 15px 10px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 10px;
    }
    
    .category-icon i {
        font-size: 22px;
    }
    
    .category-card h5 {
        font-size: 12px;
        line-height: 1.3;
    }
}

/* ===========================
   Slider Controls
   =========================== */
.slider-controls {
    display: flex;
    gap: 10px;
}

.btn-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-arrow:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* ===========================
   Product Card
   =========================== */
/* Custom 5-column layout for large screens */
@media (min-width: 992px) {
    .col-lg-5ths {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.product-card {
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 0;
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.product-badge.hot {
    background: var(--primary-color);
    animation: pulse 2s infinite;
}

.product-badge.new {
    background: var(--primary-color);
}

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

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    background: var(--light-gray);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.product-info h6 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.old-price {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.new-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-cart {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}

.btn-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===========================
   Hot Deal Section
   =========================== */
.hot-deal {
    background: var(--white);
}

/* Countdown Timer */
.countdown-wrapper {
    display: flex;
    justify-content: center;
}

.countdown-timer {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.countdown-box {
    background: var(--primary-color);
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    min-width: 80px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.countdown-item small {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
}

/* ===========================
   Home Products Section
   =========================== */
.home-products {
    background: var(--light-gray);
}

/* ===========================
   Pagination
   =========================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination {
    gap: 10px;
}

.page-item .page-link {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.page-item .page-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===========================
   Footer
   =========================== */
.main-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    padding-top: 20px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.footer-logo h3 {
    color: var(--white);
    font-weight: 700;
    font-size: 24px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 0;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

.footer-subtitle {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact p {
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-links a i {
    font-size: 12px;
    color: var(--primary-color);
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    font-size: 18px;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 112, 92, 0.3);
}

.payment-methods {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.payment-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    transition: var(--transition);
}

.payment-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.developer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.developer-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 991px) {
    .nav-menu {
        justify-content: flex-start;
    }
    
    .nav-menu li {
        flex: 0 0 auto;
    }
    
    .nav-menu a {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .top-info-bar {
        font-size: 11px;
        padding: 5px 0;
    }
    
    .main-header .py-3 {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .cart-link {
        padding: 8px 10px;
    }
    
    .cart-link i {
        font-size: 20px;
    }
    
    .cart-info {
        display: none;
    }
    
    .nav-menu {
        overflow-x: visible;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu a {
        font-size: 11px;
        padding: 10px 8px;
    }
    
    .nav-menu a span {
        display: inline;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .category-card {
        padding: 15px 8px;
    }
    
    .category-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 10px;
    }
    
    .category-icon i {
        font-size: 22px;
    }
    
    .category-card h5 {
        font-size: 11px;
    }
    
    .product-info h6 {
        font-size: 13px;
        min-height: 36px;
    }
    
    .new-price {
        font-size: 16px;
    }
    
    .btn-cart {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .main-footer h5 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .mobile-menu-toggle {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .hero-banner {
        padding: 15px 0;
    }
    
    .top-categories,
    .hot-deal,
    .home-products {
        padding: 30px 0 !important;
    }
    
    /* Reduce gap for category cards on mobile */
    .top-categories .row {
        row-gap: 0.75rem !important;
        /* column-gap: 0.75rem !important; */
    }
    
    .slider-controls {
        display: none;
    }
    
    .nav-menu a span {
        display: none;
    }
    
    .nav-menu a {
        padding: 10px 10px;
        justify-content: center;
    }
    
    .nav-menu a i {
        margin-right: 0;
        font-size: 16px;
    }
    
    .countdown-box {
        font-size: 20px;
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .countdown-item small {
        font-size: 9px;
    }
    
    .countdown-timer {
        gap: 8px;
    }
    
    /* Category cards optimized for mobile 2-column layout */
    .category-card {
        padding: 12px 6px;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 8px;
    }
    
    .category-icon i {
        font-size: 20px;
    }
    
    .category-card h5 {
        font-size: 10px;
        line-height: 1.3;
    }
    
    /* Full width products on mobile */
    .product-card {
        max-width: 100%;
    }
    
    .product-info h6 {
        font-size: 14px;
        min-height: auto;
    }
    
    .new-price {
        font-size: 18px;
    }
    
    .btn-cart {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.bg-light {
    background-color: var(--light-gray) !important;
}

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

.product-card,
.category-card {
    animation: fadeIn 0.5s ease-out;
}

/* ===========================
   Checkout Page Styles
   =========================== */
.checkout-section {
    background: var(--light-gray);
    min-height: 60vh;
}

.checkout-form-wrapper {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.info-notice {
    background: #FFF3E0;
    border-left: 4px solid var(--warning-color);
    padding: 15px 20px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-notice i {
    color: var(--warning-color);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-notice span {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.checkout-form-wrapper .form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.checkout-form-wrapper .form-control,
.checkout-form-wrapper .input-group-text {
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-size: 14px;
}

.checkout-form-wrapper .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 112, 92, 0.15);
}

.checkout-form-wrapper .input-group-text {
    background: var(--light-gray);
    font-weight: 600;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.delivery-option {
    position: relative;
}

.delivery-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.delivery-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.delivery-option label i {
    color: var(--medium-gray);
    font-size: 18px;
}

.delivery-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background: rgba(0, 112, 92, 0.05);
}

.delivery-option input[type="radio"]:checked + label i {
    color: var(--primary-color);
}

.btn-confirm-order {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-confirm-order:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Order Summary */
.order-summary-wrapper {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 20px;
}

.summary-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--medium-gray);
}

.checkout-table {
    width: 100%;
    margin-bottom: 25px;
}

.checkout-table thead th {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--medium-gray);
}

.checkout-table tbody tr {
    border-bottom: 1px solid var(--light-gray);
}

.checkout-table tbody td {
    padding: 20px 0;
    vertical-align: middle;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-remove-item {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.btn-remove-item:hover {
    color: #d32f2f;
    transform: scale(1.1);
}

.product-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-mini img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
}

.product-mini strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-mini small {
    font-size: 12px;
    color: var(--text-secondary);
}

.qty-controls-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.btn-qty-mini {
    width: 30px;
    height: 30px;
    border: 1px solid var(--medium-gray);
    background: var(--white);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-qty-mini:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.qty-display {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.order-totals {
    border-top: 2px solid var(--medium-gray);
    padding-top: 20px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item .item-image {
    flex-shrink: 0;
}

.order-item .item-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
}

.order-item .item-details {
    flex: 1;
}

.order-item .item-details h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.3;
}

.order-item .item-details p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.order-item .item-total {
    flex-shrink: 0;
    text-align: right;
}

.order-item .item-total strong {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.order-totals {
    border-top: 2px solid var(--medium-gray);
    padding-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
}

.total-row.final-total {
    border-top: 2px solid var(--medium-gray);
    padding-top: 15px;
    margin-top: 10px;
    font-size: 18px;
}

.total-row.final-total strong {
    font-size: 22px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Empty Products Section */
.empty-products-section {
    background: linear-gradient(135deg, rgba(0, 112, 92, 0.05) 0%, rgba(209, 104, 71, 0.05) 100%);
    border-radius: var(--border-radius);
    padding: 60px 20px;
    margin: 40px 0;
}

.empty-products-section .empty-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-products-section h3 {
    font-family: 'Noto Sans Bengali', sans-serif;
    font-weight: 600;
}

.empty-products-section .btn-primary {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.empty-products-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 92, 0.3);
}

/* Auth Pages */
.auth-section {
    min-height: 70vh;
    background: linear-gradient(135deg, rgba(0, 112, 92, 0.03) 0%, rgba(209, 104, 71, 0.03) 100%);
}

.auth-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00574a 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 35px;
}

.auth-header h3 {
    font-family: 'Noto Sans Bengali', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.auth-body {
    padding: 40px 30px;
}

.auth-body .form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-body .form-control {
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.auth-body .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 112, 92, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
}

.captcha-display {
    flex: 1;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    text-align: center;
    user-select: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.captcha-refresh {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background: #00574a;
    transform: rotate(180deg);
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--secondary-color);
}

.auth-body .btn-primary {
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.auth-body .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 92, 0.3);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .order-summary-wrapper {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .checkout-form-wrapper,
    .order-summary-wrapper {
        padding: 20px;
    }

    .checkout-table {
        font-size: 13px;
    }

    .product-mini img {
        width: 50px;
        height: 50px;
    }

    .product-mini strong {
        font-size: 13px;
    }
}

/* ===========================
   Product Details Page
   =========================== */
.product-details-section {
    background: var(--light-gray);
    min-height: 60vh;
}

.product-image-gallery {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.product-details-info {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.product-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.product-price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.product-price-box .current-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
}

.product-price-box .old-price {
    font-size: 20px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-order-now {
    flex: 1;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
}

.btn-order-now:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-call-now {
    flex: 1;
    background: #00BCD4;
    color: var(--white);
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    min-width: 200px;
}

.btn-call-now:hover {
    background: #0097A7;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.delivery-charge-section {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.delivery-charge-section .section-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.delivery-options-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-option-item {
    position: relative;
}

.delivery-option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.delivery-option-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.delivery-option-item label i {
    color: var(--medium-gray);
    font-size: 12px;
}

.delivery-option-item input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background: rgba(0, 112, 92, 0.05);
}

.delivery-option-item input[type="radio"]:checked + label i {
    color: var(--primary-color);
}

.product-description-short {
    background: #FFEBEE;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.product-description-short p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
}

.product-meta {
    border-top: 2px solid var(--medium-gray);
    padding-top: 20px;
}

.product-meta p {
    margin-bottom: 10px;
    font-size: 14px;
}

.product-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Product Tabs */
.product-tabs-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.product-tabs {
    border-bottom: 2px solid var(--medium-gray);
}

.product-tabs .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.product-tabs .nav-link:hover {
    color: var(--primary-color);
    border-color: transparent;
}

.product-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-color: var(--primary-color);
}

.product-tab-content {
    padding: 30px 0;
}

.tab-content-inner h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.tab-content-inner p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.tab-content-inner ul {
    padding-left: 20px;
}

.tab-content-inner ul li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Related Products Section */
.related-products-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.related-products-section .section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--medium-gray);
    text-align: left;
}

.related-products-section .section-title::after {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .product-details-info {
        margin-top: 20px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-price-box .current-price {
        font-size: 26px;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-order-now,
    .btn-call-now {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .product-details-info,
    .product-tabs-section,
    .related-products-section {
        padding: 20px;
    }

    .product-image-gallery {
        padding: 15px;
    }

    .product-tabs .nav-link {
        padding: 10px 15px;
        font-size: 13px;
    }
}
