/* Custom styles for eCommerce website */

/* Import Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Chat Container - Homepage Only */
.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Mobile Message Icon - Bottom Right Above Profile */
@media (max-width: 768px) {
    .chat-container {
        position: fixed;
        bottom: 80px; /* Position above bottom navigation */
        right: 20px;
        top: auto;
        left: auto;
        z-index: 1001; /* Above bottom navigation */
    }

    .floating-message-btn {
        position: relative;
        cursor: grab;
        user-select: none;
        transition: transform 0.2s ease;
    }

    .floating-message-btn:active {
        cursor: grabbing;
        transform: scale(1.1);
    }

    .floating-message-btn.dragging {
        transition: none;
        z-index: 1001;
    }

    /* Dismiss Zone Indicator */
    .dismiss-zone {
        position: fixed;
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: rgba(220, 53, 69, 0.8);
        display: none;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .dismiss-zone.show {
        display: flex;
        animation: pulse-red 1s infinite;
    }

    @keyframes pulse-red {
        0%, 100% { transform: translateX(-50%) scale(1); }
        50% { transform: translateX(-50%) scale(1.1); }
    }
}

/* Floating Message Button Styles */
.floating-message-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
    position: relative;
    touch-action: none; /* Prevent page scrolling when touching the button */
}

/* Notification Badge Styling */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: badge-pulse 2s infinite;
    border: 2px solid white;
}

.notification-badge.mobile {
    position: relative;
    top: 0;
    right: 0;
    margin-left: 5px;
    width: 24px;
    height: 24px;
    font-size: 11px;
    display: inline-flex !important;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
    }
}

.floating-message-btn:hover {
    transform: scale(1.1);
}

.chat-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }
}

/* Chat Modal Styles */
.chat-modal {
    display: none !important;
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chat-modal.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.chat-header-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.chat-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.chat-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-status {
    display: flex;
    align-items: center;
    font-size: 12px;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin-right: 6px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-body {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100% - 60px - 60px); /* Subtract header and input heights */
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    margin-bottom: 8px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message p {
    padding: 12px 16px;
    margin-bottom: 0;
}

.message-image {
    padding: 0 16px;
    margin-top: 8px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 16px 4px 16px;
}

.message.sent .message-time {
    color: #666;
    opacity: 0.75;
    justify-content: flex-end;
}

.message.received .message-time {
    color: #999;
    opacity: 0.7;
    justify-content: flex-start;
}

.message-ticks {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 12px;
    flex-shrink: 0;
    padding: 0 16px 4px 16px;
}

.message.sent .message-ticks {
    justify-content: flex-end;
}

.message.received .message-ticks {
    justify-content: flex-start;
}

.tick {
    font-size: 11px;
    opacity: 0.6;
    transition: all 0.3s ease;
    color: #999;
}

.tick.sent {
    opacity: 0.6;
}

.tick.delivered {
    opacity: 0.8;
}

.tick.read {
    color: #3498db !important;
    opacity: 1;
    font-weight: bold;
}

.message.sent {
    background-color: #dcf8c6;
    color: #303030;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.received {
    background-color: white;
    color: #303030;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 4px;
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #e0e0e0;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input input:focus {
    border-color: #667eea;
}

.image-upload-btn, .send-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}

.image-upload-btn {
    background-color: #f0f0f0;
    color: #666;
}

.image-upload-btn:hover {
    background-color: #e0e0e0;
}

.send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.send-btn:hover {
    transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .chat-container {
        bottom: 15px;
        right: 15px;
    }

    .floating-message-btn {
        width: 50px;
        height: 50px;
        position: fixed !important;
        right: 20px !important;
        bottom: 70px !important; /* Position above Account button in bottom navigation */
        z-index: 1001 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .chat-icon {
        width: 24px;
        height: 24px;
    }

    .chat-modal {
        bottom: 70px;
        right: 0;
        width: calc(100vw - 30px);
        height: 400px;
        max-width: 350px;
    }

    .chat-header {
        padding: 12px 16px;
    }

    .chat-header-info {
        gap: 10px;
    }

    .chat-header-avatar {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .chat-header h5 {
        font-size: 14px;
    }

    .chat-status {
        font-size: 11px;
    }

    .chat-messages {
        padding: 12px;
    }

    .chat-input {
        padding: 8px 12px;
    }

    .chat-input input {
        padding: 8px 12px;
        font-size: 13px;
    }

    .image-upload-btn, .send-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: #FFFFFF;
    min-height: 100vh;
    margin: 0;
}

/* Header Styles */
.main-header {
    background-color: #F85606;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8.25px 0;
    position: relative;
}

/* Honesty Zone 360 Logo Styles */
.honesty-zone-logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-circle {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 3px solid #28a745;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.logo-text-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.brand-tagline {
    font-size: 11px;
    color: #ffd700;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Responsive Logo */
@media (max-width: 768px) {
    .honesty-zone-logo {
        font-size: 24px;
        gap: 8px;
    }

    .logo-circle {
        width: 38px;
        height: 38px;
    }

    .logo-text {
        font-size: 15px;
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-tagline {
        font-size: 9px;
    }
}



.search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-bar button {
    background: #28a745;
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 12px 15px;
    color: white;
    cursor: pointer;
}

.check-balance-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    margin-right: 15px;
    transition: transform 0.3s;
}

.check-balance-btn:hover {
    transform: scale(1.05);
    color: white;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icons a {
    color: white;
    font-size: 20px;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s;
    text-decoration: none;
}

.header-icons a:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Balance Container for Desktop/Mobile */
.balance-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.btn-nav {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-nav:hover {
    background: #218838;
}

/* Main Layout */
.main-content {
    display: flex;
    min-height: calc(100vh - 80px);
    margin-top: 60px;
}

.sidebar {
    width: 250px;
    background: #f3f6ff;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 0 15px 15px 0;
    margin: 20px 0 20px 20px;
    border: 2px solid #e9ecef;
}

.sidebar h4 {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    padding: 12px 16px;
    border-radius: 10px 10px 0 0;
    margin: -16px -16px 16px -16px;
    color: #1e3a8a;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: #7d7d7d;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 10px;
    display: block;
    transition: all 0.3s;
}

.category-list a:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

/* Banner Carousel */
#bannerCarousel {
    margin-top: -15px;
    padding: 0 20px;
}

.carousel-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-item {
    height: auto;
}

.carousel-item img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

/* Mobile Banner Styles */
@media (max-width: 768px) {
    .banner-container {
        margin: 10px 15px;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .banner-container #bannerCarousel {
        margin-top: 0;
        padding: 0;
        border-radius: 15px;
    }

    .banner-container .carousel-item img {
        border-radius: 15px;
        max-height: 200px;
    }

    /* Custom Dot Pagination for Mobile */
    .banner-container .carousel-indicators {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .banner-container .carousel-indicators button {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        background-color: rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .banner-container .carousel-indicators button.active {
        background-color: #fff;
        transform: scale(1.2);
    }

    /* Hide default carousel controls on mobile */
    .banner-container .carousel-control-prev,
    .banner-container .carousel-control-next {
        display: none;
    }
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 20px;
}

/* Banner */
.hero-banner {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-banner h1 {
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-banner p {
    font-size: 20px;
    color: white;
    margin-bottom: 30px;
}

.shop-now-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 30px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s;
}

.shop-now-btn:hover {
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

/* Product Grid */
.products-section h2 {
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 50px;
    object-fit: cover;
}

.product-img,
.product-view-img {
    width: 100%;
    height: 280px;
    object-fit: scale-down;
    object-position: center center;
    background: #979494;
    padding: 10px;
}

.product-info {

    padding: 20px 20px 10px 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Limit product title to 4 lines on homepage with ellipsis */
.homepage .product-title {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Hide product description on homepage for both desktop and mobile */
.homepage .product-description {
    display: none !important;
}

/* Hide product description on category pages */
.category-page .product-description {
    display: none !important;
}

/* Product link styles for clickable images and titles */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}

.stock-badge {
    display: block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
}

.stock-in {
    background: #28a745;
    color: white;
}

.stock-out {
    background: #dc3545;
    color: white;
}

.product-buttons {
    display: flex;
    gap: 10px;
}

.btn-add-cart, .btn-buy-now {
    flex: 1;
    border: none;
    border-radius: 25px;
    padding: 10px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-add-cart {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.btn-add-cart:hover {
    background: linear-gradient(45deg, #218838, #1aa085);
    color: white;
    transform: scale(1.05);
}

.btn-buy-now {
    background: linear-gradient(45deg, #007bff, #6610f2);
    color: white;
}

.btn-buy-now:hover {
    background: linear-gradient(45deg, #0056b3, #5a0fc8);
    color: white;
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #FFFFFF;
    color: #333;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer .container {
    text-align: center;
}

/* Honesty Zone 360 Footer Layout Styles */
.hz360-footer-layout {
    background: #f8f9fa;
    color: #333;
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 1px solid #e9ecef;
}

.hz360-footer-layout-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.hz360-footer-layout-section {
    min-width: 0;
}

.hz360-footer-layout-section h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #495057;
}

.hz360-footer-layout-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hz360-footer-layout-section ul li {
    margin-bottom: 8px;
}

.hz360-footer-layout-section ul li a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.hz360-footer-layout-section ul li a:hover {
    color: #F85606;
}

.hz360-footer-layout-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
    align-items: center;
}

.payment-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.payment-logo:hover {
    transform: translateY(-2px);
}

.payment-logo i {
    font-size: 24px;
    color: #495057;
}

.payment-text {
    font-size: 12px;
    font-weight: bold;
    color: #495057;
}

.hz360-footer-layout-follow-us {
    text-align: center;
    margin-bottom: 20px;
}

.hz360-footer-layout-follow-us h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #495057;
}

.hz360-footer-layout-social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hz360-footer-layout-social-media a {
    color: #6c757d;
    font-size: 24px;
    transition: color 0.3s;
    text-decoration: none;
}

.hz360-footer-layout-social-media a:hover {
    color: #F85606;
}

.hz360-footer-layout-bottom {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    text-align: center;
}

.hz360-footer-layout-bottom p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

/* Responsive Footer Layout */
@media (max-width: 768px) {
    .hz360-footer-layout-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hz360-footer-layout-payment-methods {
        grid-template-columns: repeat(3, 1fr);
    }

    .hz360-footer-layout-social-media {
        gap: 15px;
    }

    .hz360-footer-layout-social-media a {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hz360-footer-layout-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hz360-footer-layout-payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    #bannerCarousel {
        margin-top: -40px;
        padding: 0;
    }

    .carousel-inner {
        max-width: 100%;
    }

    .carousel-item img {
        max-height: 200px;
    }

    .main-content {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .category-page .sidebar {
        display: block;
        width: 200px;
        margin: 20px 10px 20px 10px;
    }

    .category-page .main-content {
        flex-direction: row;
    }

    .category-list {
        display: flex;
        flex-direction: row;
        padding: 0;
    }

    .category-list li {
        flex-shrink: 0;
        margin-right: 10px;
    }

    .category-list a {
        display: inline-block;
        white-space: normal;
        padding: 8px 12px;
        border-radius: 20px;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    .logo {
        order: 1;
    }

    .search-bar {
        display: none;
    }

    .homepage .search-bar {
        display: flex;
        order: 2;
        flex: 1;
        max-width: 300px;
        margin: 0 10px;
    }

    .balance-and-menu {
        order: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
    }

    .header-icons {
        display: none;
    }

    .balance-bar {
        margin: 0 auto;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        padding: 2px 4px;
        font-size: 13px;
        width: fit-content;
        max-width: 160px;
        justify-content: center;
        white-space: nowrap;
        text-align: center;
    }

    .balance-text-container {
        display: flex;
        align-items: center;
    }

    .mobile-menu-toggle {
        position: absolute;
        right: 0;
        flex-shrink: 0;
        display: flex;
        cursor: pointer;
        padding: 8px 12px;
        border-radius: 0;
        background: none;
        border: none;
        height: 50px;
        width: auto;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }

    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-toggle i {
        font-size: 24px;
        color: white;
    }

    .hero-banner {
        padding: 40px 20px;
    }

    .hero-banner h1 {
        font-size: 32px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .carousel-item img {
        max-height: 150px;
    }

    .sidebar {
        margin: 10px;
        padding: 10px;
    }

    .content-area {
        padding: 10px;
    }
}





/* Admin Panel Styles */
.admin-sidebar {
    background: #2c3e50;
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 15px 20px;
    margin: 5px 10px;
    border-radius: 10px;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

.admin-content {
    padding: 30px;
    background: #f8f9fa;
    min-height: 100vh;
}

.admin-header {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dashboard-card.blue { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.dashboard-card.purple { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.dashboard-card.green { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }
.dashboard-card.orange { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.dashboard-card * {
    position: relative;
    z-index: 1;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.dashboard-card h3 {
    font-size: 36px;
    margin-bottom: 10px;
}

.dashboard-card p {
    font-size: 16px;
    opacity: 0.9;
}

.table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.table th {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 15px;
}

.table td {
    padding: 15px;
    border: none;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending { background: #ffc107; color: #212529; }
.status-approved { background: #28a745; color: white; }
.status-failed { background: #dc3545; color: white; }

.btn-admin {
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-admin:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.btn-approve { background: #28a745; color: white; }
.btn-reject { background: #dc3545; color: white; }
.btn-edit { background: #007bff; color: white; }
.btn-delete { background: #6c757d; color: white; }

.product-view-page {
    background: #ffffff !important;
}

/* Balance Bar Styles */
.balance-bar {
    background: #28a745;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    color: white;
    font-weight: bold;
    margin-right: 15px;
    transition: transform 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
}

.balance-bar::before {
    content: '৳';
    font-size: 14px;
    margin-right: 8px;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
}

.balance-details-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.balance-details-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}

.balance-bar:hover {
    transform: scale(1.05);
}

.balance-text {
    font-weight: bold;
    color: white;
}

.balance-right {
    background: white;
    color: #28a745;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.balance-right:hover {
    background: #f8f9fa;
}

/* Responsive for Balance Bar */
@media (max-width: 768px) {
    .balance-text {
        font-size: 14px;
    }
    .balance-right {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Checkout Progress Styles */
.checkout-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    position: relative;
}

.checkout-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    margin: 0 20px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
}

.step-circle.active {
    background: #007bff;
}

.step-circle.completed {
    background: #28a745;
}

.step-label {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

.step.active .step-label {
    color: #007bff;
    font-weight: bold;
}

.step.completed .step-label {
    color: #28a745;
    font-weight: bold;
}

/* Responsive for Checkout Progress */
@media (max-width: 768px) {
    .step-circle {
        width: 30px;
        height: 30px;
    }
    .step-label {
        font-size: 10px;
    }
    .checkout-progress {
        margin: 10px 0;
    }
    .step {
        margin: 0 10px;
    }
    .checkout-progress::before {
        top: 15px;
    }
}

/* Checkout Navigation */
.checkout-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.checkout-nav a {
    text-decoration: none;
}

/* Responsive for Checkout Navigation */
@media (max-width: 768px) {
    .checkout-nav {
        flex-direction: column;
        gap: 10px;
    }
}

/* Force white background override for all non-banner areas */
html, body {
  background: #ffffff !important;
}

.page-wrapper,
.main-wrapper,
.shop-wrapper,
.layout,
.row,
.content-wrapper {
  background: #ffffff !important;
}

.sidebar,
.shop-by-category,
.products,
.products-section,
.product-grid,
.main-content {
  background: #ffffff !important;
}

/* Shop by Category Sidebar Styles */
.shop-category,
.category-sidebar,
.sidebar {
    background: #f5f7ff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.shop-category ul li,
.category-sidebar ul li {
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.shop-category ul li:hover,
.category-sidebar ul li:hover {
    background: #e0e7ff;
    cursor: pointer;
}

.shop-category h4,
.category-sidebar h4 {
    font-weight: 600;
    color: #1e3a8a;
}

input:focus, textarea:focus {
    outline: none;
}

/* Address Book Styling */
.address-book {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background: #f9f9f9;
    margin-bottom: 15px;
}

.address-book p {
    margin-bottom: 5px;
    line-height: 1.4;
}

.address-book p strong {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

/* Order Product Image */
.product-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
}

.product-image-container {
  height: 200px;
}

.electronics-page .product-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Order Items Styling */
.order-items {
    display: flex;
    flex-direction: column;
}

.order-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.order-item a {
    text-decoration: none;
    color: #007bff;
}

.order-item a:hover {
    text-decoration: underline;
}

/* Bottom Navigation for Mobile */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #ddd;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 0;
}

.bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.bottom-nav .nav-item.active {
    color: #F85606;
}

/* Hide mobile cart button on desktop */
@media (min-width: 769px) {
    .mobile-cart-btn {
        display: none !important;
    }

    .mobile-nav-bar {
        display: none !important;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    /* Hide product description on homepage for mobile */
    .homepage .product-card .product-description {
        display: none !important;
    }

    .bottom-nav {
        display: flex;
    }

    .logo {
        display: none;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .search-bar {
        flex: 1;
        margin: 0 10px;
        order: 1;
    }

    .balance-and-menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 1;
        order: 2;
    }

    .balance-bar {
        margin-right: 0;
        flex: 1;
    }

    .mobile-menu-toggle {
        margin-left: auto;
        margin-right: 0;
        flex-shrink: 0;
    }

    .header-icons {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        /* Ensure cards fit 2 per row */
        position: relative;
        /* Remove grey border/shadow for mobile only */
        box-shadow: none;
        border: none;
    }

    .product-card .stock-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1;
    }

    /* Remove border/outline from product images on mobile home page */
    .product-img {
        border: none;
        outline: none;
        box-shadow: none;
        background: transparent !important;
    }

    /* Hide search bar and mobile navigation on product page for mobile */
    .product-view-page .search-bar {
        display: none;
    }

    .product-view-page .mobile-bottom-nav {
        display: none;
    }

    /* Show mobile only elements */
    .mobile-only {
        display: inline-block;
    }

    /* Hide individual delete buttons on mobile cart items */
    .mobile-cart-item .delete-btn {
        display: none;
    }

    /* Compact product buttons for mobile */
    .product-buttons {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .product-buttons .btn-add-cart,
    .product-buttons .btn-buy-now {
        flex: none;
        min-width: 70px;
        max-width: 100px;
        padding: 6px 8px;
        font-size: 11px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
        height: auto;
        min-height: 32px;
    }

    .product-buttons .btn-buy-now {
        max-width: 110px;
    }
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    background: white;
    border-radius: 10px;
    padding: 20px 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: #F85606;
}

.category-item i {
    font-size: 30px;
    margin-bottom: 10px;
    color: #F85606;
}

.category-item span {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Categories at top for mobile */
.categories-top {
    margin-bottom: 20px;
}

.categories-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s;
}

.category-box:hover, .category-box.active {
    background: #F85606;
    color: white;
    border-color: #F85606;
}

.category-box i {
    font-size: 20px;
    margin-bottom: 5px;
}

.category-box span {
    font-size: 12px;
    font-weight: 500;
}

/* Product Bottom Bar for Mobile */
.product-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #ddd;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.product-bottom-bar .btn-action {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.product-bottom-bar .btn-action:not(.primary) {
    background: #28a745;
    color: white;
}

.product-bottom-bar .btn-action.primary {
    background: #007bff;
    color: white;
}

.product-bottom-bar .btn-action:hover:not(.disabled) {
    transform: scale(1.02);
}

.product-bottom-bar .btn-action.disabled {
    background: #6c757d;
    color: white;
    cursor: not-allowed;
}

/* Mobile Adjustments for Product Page */
@media (max-width: 768px) {
    .product-bottom-bar {
        display: flex;
        gap: 10px;
    }

    .product-actions {
        display: none;
    }

    .mobile-bottom-nav {
        bottom: 80px; /* Adjust to not overlap with product bar */
    }

    /* Mobile Cart Items */
    .desktop-cart-items {
        display: none;
    }

    .mobile-cart-items {
        display: block;
    }

    .mobile-cart-item {
        display: flex;
        align-items: center;
        padding: 15px;
        border-bottom: 1px solid #eee;
        background: white;
    }

    .mobile-cart-item .left {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-right: 15px;
    }

    .mobile-cart-item .cart-check {
        margin-bottom: 5px;
    }

    .mobile-cart-item .cart-img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
    }

    .mobile-cart-item .middle {
        flex: 1;
    }

    .mobile-cart-item .product-name {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 5px;
        color: #333;
    }

    .mobile-cart-item .price {
        font-size: 14px;
        color: #007bff;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .mobile-cart-item .qty {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-cart-item .qty button {
        width: 30px;
        height: 30px;
        border: 1px solid #ddd;
        background: white;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-cart-item .qty input {
        width: 50px;
        text-align: center;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 5px;
    }

    .mobile-cart-item .right {
        margin-left: 15px;
    }

    .mobile-cart-item .delete-btn {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: #dc3545;
    }
}

/* Cart Bottom Bar for Mobile */
.cart-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #ddd;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    justify-content: space-between;
    align-items: center;
}

.cart-bottom-bar .total-amount {
    font-weight: bold;
    color: #333;
}

.cart-bottom-bar .checkout-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-bottom-bar .checkout-btn:hover {
    background: #218838;
    color: white;
}

/* Cart Header */
.cart-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.delete-icon {
    font-size: 20px;
    color: #dc3545;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s;
}

.delete-icon:hover {
    background: #f8d7da;
}

.back-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #f0f0f0;
}

/* Mobile Adjustments for Cart */
@media (max-width: 768px) {
    .cart-bottom-bar {
        display: flex;
    }

    .desktop-order-summary {
        display: none;
    }

    .cart-page .search-bar,
    .cart-page .nav-buttons,
    .cart-page .header-icons {
        display: none;
    }

    .cart-page-body .mobile-bottom-nav {
        display: none;
    }

    .mobile-bottom-nav {
        bottom: 0;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .cart-bottom-bar {
        display: flex;
    }
}

/* Hide cart bottom bar on desktop */
@media (min-width: 992px) {
    .cart-bottom-bar {
        display: none !important;
    }
}

/* Desktop Cart Items */
@media (min-width: 769px) {
    .mobile-cart-items {
        display: none;
    }

    .desktop-cart-items {
        display: block;
    }

    .product-card {
        position: relative;
        padding: 10px 10px 0 10px;
        min-height: auto;
        height: auto !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .product-card .stock-badge {
        position: absolute;
        top: -10px;
        left: 10px;
    }

    .product-img,
    .product-view-img {
        height: 400px;
        object-fit: cover;
        margin-top: 30px;
        padding: 0;
    }

    .product-info {
        padding: 10px 20px 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Reduce spacing between products on desktop */
    .product-grid {
        gap: 15px;
        place-items: start;
    }

    /* Reduce excessive space below buttons on desktop */
    .product-info {
        padding: 10px 20px 5px;
    }

    /* Reduce margins for product elements to minimize space below buttons */
    .product-price {
        margin-bottom: 8px;
    }

    .stock-badge {
        margin-bottom: 8px;
    }

    .product-description {
        margin-bottom: 8px;
    }

    .product-buttons {
        margin-bottom: 0;
    }
}

/* Large Desktop View Adjustments */
@media (min-width: 992px) {
    .product-card {
        position: relative;
        height: auto !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        flex-direction: column;
    }

    .product-img,
    .product-view-img {
        height: 320px;
        object-fit: cover;
        object-position: center center;
        background: #ffffff;
        padding: 10px;
        flex-shrink: 0;
    }

    .product-card .stock-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 1;
    }

    .product-info {
        display: flex;
        flex-direction: column;
    }
}

/* Hide delete button in desktop cart items */
.desktop-cart-items .btn-danger {
    display: none;
}

/* Mobile only elements */
.mobile-only {
    display: none;
}

/* Mobile Cart Icon */
.mobile-cart-icon {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    color: white;
}

.mobile-cart-icon a {
    color: white;
    text-decoration: none;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #ddd;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 0;
}

.mobile-bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item.active {
    color: #F85606;
}

/* Show mobile bottom navigation on mobile and tablet */
@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

/* Hide mobile bottom navigation on desktop */
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* Mobile Product Browse */
.mobile-product-browse {
    margin-top: 20px;
}

.mobile-product-browse h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.mobile-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.product-card h5 {
    font-size: 14px;
    margin: 5px 0;
    color: #333;
}

.product-card p {
    font-weight: bold;
    color: #a45b00;
    margin: 5px 0;
}

.product-card .btn {
    width: 100%;
    font-size: 12px;
    padding: 5px;
}

/* Desktop View Image Fix */
@media (min-width: 992px) {
    .product-card {
        min-height: auto !important; /* কার্ডের হাইট অটো রাখা ভালো */
        display: flex;
        flex-direction: column;
    }

    .product-img,
    .product-view-img {
        height: 250px !important; /* ইমেজ এরিয়া নির্দিষ্ট করা */
        width: 100% !important;
        object-fit: contain !important; /* পুরো ইমেজ দেখাবে, কাটবে না */
        object-position: center !important;
        padding: 10px !important;
        background: #ffffff;
        margin-top: 0 !important; /* বাড়তি গ্যাপ কমানো */
    }

    .product-image-container {
        height: 250px !important;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* জেনারেল ফিক্স (সব স্ক্রিনের জন্য) */
.product-img {
    max-width: 100%;
    display: block;
}

/* Remove grey background from main product image on mobile only */
@media (max-width: 767px) {
    .product-view-img {
        background: transparent !important;
    }
}

/* Desktop Quantity Buttons */
.desktop-qty {
    display: flex;
    align-items: center;
    gap: 5px;
}

.desktop-qty button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: background 0.3s;
}

.desktop-qty button:hover {
    background: #f0f0f0;
}

.desktop-qty input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    font-size: 14px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 0;
    transition: background 0.3s;
    background: none;
    border: none;
    height: 50px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle i {
    font-size: 24px;
    color: white;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu {
    right: 0;
}

.mobile-menu-header {
    background: #F85606;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-items {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.mobile-menu-item:hover {
    background: #f8f9fa;
}

.mobile-menu-item i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    color: #F85606;
}

.mobile-menu-item span {
    font-weight: 500;
}

.mobile-menu-spacer {
    flex: 1;
}

.mobile-menu-item.logout {
    border-top: 1px solid #eee;
    border-bottom: none;
    color: #dc3545;
}

.mobile-menu-item.logout i {
    color: #dc3545;
}

/* Mobile Menu Toggle Visibility */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        order: 3;
    }

    .header-icons {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}
/* Review Styles */
.review-card {
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 12px;
    transition: all 0.3s;
}

.review-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-rating i {
    color: #ffc107;
}

.review-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.review-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s;
}

.review-images img:hover {
    transform: scale(1.1);
}

.review-actions {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.review-actions .btn-sm {
    font-size: 12px;
    padding: 4px 8px;
}

/* Star Rating Display */
.rating-display {
    display: flex;
    gap: 4px;
    align-items: center;
}

.rating-display i {
    font-size: 18px;
    color: #ffc107;
}

/* Rating Stars for Forms */
.rating-stars i {
    cursor: pointer;
    font-size: 24px;
    color: #ddd;
    margin-right: 8px;
    transition: color 0.3s, text-shadow 0.3s;
}

.rating-stars i:hover,
.rating-stars i.fas {
    color: #ffc107;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

/* Review Modal */
.modal-body .rating-stars {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

/* Responsive Review Styles */
@media (max-width: 768px) {
    .review-actions {
        flex-direction: column;
        gap: 4px;
    }

    .review-images {
        gap: 6px;
    }

    .review-images img {
        width: 60px;
        height: 60px;
    }

    .review-card .card-body {
        padding: 12px;
    }

    .rating-display {
        flex-wrap: wrap;
    }
}

/* Review Image Gallery Modal Enhancements */
#imageModal .modal-dialog {
    max-width: 90vw;
    margin: 1rem auto;
}

#imageModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

#imageModal .modal-body {
    padding: 1rem;
}

#imageModal .carousel-inner img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#imageModal .carousel-control-prev,
#imageModal .carousel-control-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

#imageModal .carousel-control-prev:hover,
#imageModal .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}

#imageModal .carousel-control-prev-icon,
#imageModal .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

#imageThumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

#imageThumbnails img {
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#imageThumbnails img:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#imageThumbnails img.border-primary {
    border: 3px solid #007bff !important;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#imageCounter {
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 500;
    color: #495057;
}

/* YouTube Videos on Homepage */
.banner-with-videos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 15px 0;
    background: #f8f9fa;
    flex-wrap: nowrap;
    width: 100%;
    position: relative;
}

/* Desktop Video Containers - Absolute positioning within banner container */
.youtube-video-container {
    position: absolute; /* Position absolute within banner-with-videos container */
    top: 0; /* Align at top of banner container */
    z-index: 2;
    width: 200px;
    height: 120px;
}

.youtube-video-left {
    left: 0; /* Align to left screen edge */
}

.youtube-video-right {
    right: 0; /* Align to right screen edge */
}

.youtube-video-container iframe {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    width: 100%;
    height: 100%;
}

/* Banner Container - Centered with larger height */
.banner-container {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.banner-container .carousel-item img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    height: 450px; /* Increased banner height */
    object-fit: cover;
}

/* Invisible navigation buttons inside banner edges */
.banner-nav-left,
.banner-nav-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px; /* Wider click areas */
    z-index: 3;
    cursor: pointer;
    opacity: 0;
}

.banner-nav-left {
    left: 0;
}

.banner-nav-right {
    right: 0;
}

/* GUARANTEED HIDE: YouTube videos completely hidden on mobile */
@media (max-width: 768px) {
    /* Hide all YouTube video containers and their contents */
    .youtube-video-container,
    .youtube-video-left,
    .youtube-video-right,
    .youtube-video-container iframe,
    .youtube-video-container * {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        z-index: -999 !important;
        pointer-events: none !important;
        transform: scale(0) !important;
    }

    /* Ensure banner layout adjusts properly without videos */
    .banner-with-videos {
        padding: 10px;
        gap: 0;
        flex-direction: column;
        justify-content: center;
    }

    .banner-container {
        flex: 1;
        max-width: 100%;
        order: -1;
        margin: 0;
    }

    .banner-container .carousel-item img {
        height: 300px; /* Smaller banner on mobile */
    }
}

/* Mobile Gallery Styles */
@media (max-width: 768px) {
    #imageModal .modal-dialog {
        max-width: 95vw;
        margin: 0.5rem auto;
    }

    #imageModal .modal-body {
        padding: 0.5rem;
    }

    #imageModal .carousel-inner img {
        max-height: 60vh;
        object-fit: contain;
    }

    #imageThumbnails {
        padding: 0.5rem;
        gap: 4px;
    }

    #imageThumbnails img {
        height: 50px;
    }

    #imageCounter {
        font-size: 14px;
    }
}

/* Gallery Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
    left: 20px;
}

.gallery-nav-btn.next {
    right: 20px;
}

.gallery-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .gallery-nav-btn.prev {
        left: 10px;
    }

    .gallery-nav-btn.next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    /* প্রোডাক্ট কার্ডের প্যাডিং কমিয়ে ফুল উইডথ করা */
    .product-card {
        padding: 0 !important; /* কার্ডের ভেতরের গ্যাপ সরানো */
        overflow: hidden;
    }

    /* ইমেজের সাইজ এবং ভিউ ঠিক করা */
    .product-img {
        height: 180px !important; /* আপনি চাইলে ২০০ বা ২২০ করতে পারেন */
        width: 100% !important;
        object-fit: cover !important; /* এটি দিলে সাদা গ্যাপ থাকবে না, ইমেজ ফুল দেখাবে */
        margin-top: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /* প্রোডাক্টের টাইটেল ও ইনফোর প্যাডিং ঠিক করা */
    .product-info {
        padding: 10px !important;
    }
}

@media (max-width: 768px) {
    /* শুধুমাত্র ডানে এবং বামের ফাঁকা অংশ দূর করার জন্য */
    .product-view-img {
        width: calc(100% + 30px) !important; /* স্ক্রিনের দুই পাশে বাড়িয়ে দেওয়া */
        margin-left: -15px !important; /* বামের কোণা বর্ডারে লাগানো */
        margin-right: -15px !important; /* ডানের কোণা বর্ডারে লাগানো */
        max-width: none !important;
        padding: 0 !important;
        border-radius: 0 !important; /* কোণাগুলো একদম শার্প রাখার জন্য */
        display: block !important;
    }

    /* যদি প্যারেন্ট কন্টেইনারে বাধা থাকে তবে সেটিও ঠিক করবে */
    .product-image-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }
}