/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Container */
.header-container {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.header-container.hidden {
    transform: translateY(-100%);
}

/* PASTE THIS NEW CODE */
.top-bar {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 8px 20px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.login-register {
    display: flex;
    gap: 12px;
    align-items: center;
}

.login-register a {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 15px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.login-register a:hover {
    background: rgba(255,255,255,0.2);
}

.user-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none !important;
}

/* Header */
header {
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Search Bar */
.search-bar {
    flex: 1;
    min-width: 250px;
    max-width: 600px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.search-bar button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #2c3e50;
    cursor: pointer;
    font-size: 16px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}

.search-result-item .info {
    flex: 1;
}

.search-result-item .title {
    font-weight: 500;
    margin-bottom: 3px;
    color: #333;
}

.search-result-item .price {
    color: #e63946;
    font-weight: bold;
    font-size: 15px;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #666;
}

/* Icons */
.icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icons a {
    color: #1124b1b5;
    font-size: 30px;
    position: relative;
    transition: transform 0.3s;
}

.icons a:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #df081a;
    color: rgb(30, 16, 186);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Cart Dropdown */
.cart-container {
    position: relative;
}

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
}

.cart-dropdown.show {
    display: block;
}

.empty-cart {
    text-align: center;
    padding: 20px;
    color: #666;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.cart-item-price {
    color: #e63946;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 15px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.cart-item-quantity input {
    width: 40px;
    padding: 4px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.remove-item {
    color: #dc3545;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-item:hover {
    color: #a71d2a;
}

.cart-total {
    font-weight: bold;
    font-size: 18px;
    text-align: right;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.checkout-btn {
    display: block;
    width: 100%;
    background: #28a745;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #218838;
}

/* Navigation */
nav {
    background: rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-dropdown {
    position: relative;
}

.toggle-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background 0.3s;
}

.toggle-category:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    display: none;
}

.dropdown-content a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
    font-size: 14px;
}

.dropdown-content a:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.nav-btn {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-container {
    margin-top: 240px;
    padding-bottom: 50px;
}

/* Banner Slider */
.banner-content {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.banner-slider {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.banner-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.banner-prev {
    left: 15px;
}

.banner-next {
    right: 15px;
}

/* Right Products */
.right-products {
    width: 250px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sponsored-title {
    background: linear-gradient(135deg, #e63946, #ff6b6b);
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 15px;
    font-size: 15px;
}

.right-product-item {
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    border: 1px solid #eee;
}

.right-product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.right-product-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}

.right-product-price {
    font-size: 16px;
    font-weight: bold;
    color: #e63946;
    margin-bottom: 5px;
}

.right-product-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.product-rating .stars {
    color: #ffc107;
    font-size: 13px;
}

.product-rating .count {
    font-size: 12px;
    color: #6c757d;
}

/* Stock Badge Styles */
.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    z-index: 2;
}

.stock-badge.in-stock {
    background-color: #28a745;
}

.stock-badge.out-of-stock {
    background-color: #ffc107;
    color: #212529;
}

.product-image-container {
    position: relative;
}

/* Circle Navigation */
.circle-nav-container {
    margin: 30px 0;
}

.circle-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.circle-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: calc(14.28% - 15px);
    min-width: 100px;
}

.circle-nav-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    border: 2px solid #eee;
    transition: all 0.3s;
}

.circle-nav-img:hover {
    border-color: #e63946;
    transform: scale(1.05);
}

.circle-nav-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circle-nav-label {
    font-size: 13px;
    text-align: center;
    font-weight: 500;
}

/* Three Banners */
.banners-row {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.banner-box {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.banner-box:hover {
    transform: translateY(-5px);
}

.banner-box img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Product Sections */
.product-section {
    margin: 40px 0;
}

.product-section h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: #2c3e50;
    font-weight: 600;
}

.view-more {
    font-size: 14px;
    color: #e63946;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.view-more:hover {
    color: #c1121f;
}

/* Product Slider */
.product-slider {
    position: relative;
    margin: 20px 0;
}

.slider-container {
    display: flex;
    overflow: hidden;
    gap: 15px;
    scroll-behavior: smooth;
    padding: 10px 5px;
}

.product-item, .product-card {
    width: 180px;
    height: 300px;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-item:hover, .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    width: 100%;
    height: 150px;
    margin-bottom: 10px;
    position: relative;
}

.product-item img, .product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-price {
    font-weight: bold;
    color: #e63946;
    font-size: 14px;
    margin: 5px 0;
}

.product-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.4;
  margin: 8px 0;
  color: #2c3e50;
  font-weight: 600;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px; /* Fixed height */
  text-overflow: ellipsis;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: #2c3e50;
    color: white;
}

.slider-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-btn.disabled:hover {
    background: #fff;
    color: #2c3e50;
}

.left-btn {
    left: -20px;
}

.right-btn {
    right: -20px;
}

/* Category/Tag Pages */
.category-page, .tag-page {
    padding: 20px 0;
}

.category-title, .tag-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
}

.category-products, .tag-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* Product Detail Page */
.product-detail-container {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.product-images {
    flex: 1;
}

.product-info {
    flex: 1;
}

.product-main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
    padding: 20px;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px;
    background: #fff;
    transition: border 0.3s;
}

.product-thumbnail.active {
    border-color: #e63946;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-price {
    font-size: 19px;
    font-weight: bold;
    color: #e63946;
    margin-bottom: 15px;
}

.stock-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.stock-status.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.stock-status.out-of-stock {
    background-color: #fff3cd;
    color: #856404;
}

.product-description {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-selector label {
    font-weight: 500;
}

.quantity-selector input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.add-to-cart-btn {
    background: #e63946;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: #c1121f;
}

.add-to-cart-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Clickable Boxes */
.clickable-boxes {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.box-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.box {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.box-image-container {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.box-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.box-title {
    font-weight: 500;
    font-size: 16px;
    flex: 1;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #e63946;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-section p {
    color: #ddd;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.payment-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-row {
    display: flex;
    gap: 10px;
}

.payment-box {
    flex: 1;
    height: 40px;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.payment-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow-y: auto;
}

.product-modal-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    margin: 50px auto;
    border-radius: 8px;
    position: relative;
    padding: 30px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #e63946;
}

.product-modal-body {
    display: flex;
    gap: 30px;
}

.product-modal-images {
    flex: 1;
}

.product-modal-main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
    padding: 20px;
}

.product-modal-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-modal-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px;
    background: #fff;
    transition: border 0.3s;
}

.product-modal-thumbnail.active {
    border-color: #e63946;
}

.product-modal-details {
    flex: 1;
}

.product-modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.product-modal-price {
    font-size: 21px;
    font-weight: bold;
    color: #e63946;
    margin-bottom: 15px;
}

.rating-reviews {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rating {
    color: #ffc107;
    font-size: 16px;
}

.reviews-count {
    color: #666;
    font-size: 14px;
}

.product-modal-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-modal-quantity {
    margin-bottom: 20px;
}

.product-modal-quantity label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-modal-quantity input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.product-modal-add-to-cart {
    background: #e63946;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: background 0.3s;
    width: 100%;
    justify-content: center;
}

.product-modal-add-to-cart:hover {
    background: #c1121f;
}

/* Responsive Design */
@media (max-width: 992px) {
    .banner-content {
        flex-direction: column;
    }
    
    .right-products {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .circle-nav-item {
        width: calc(25% - 15px);
    }
    
    .product-modal-body {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    .logo {
        align-self: flex-start;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .nav-content {
        justify-content: center;
    }
    
    .circle-nav-item {
        width: calc(33.33% - 15px);
    }
    
    .banners-row {
        flex-direction: column;
    }
    
    .clickable-boxes {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .main-container {
        margin-top: 220px;
    }
    
    .category-products, .tag-products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .circle-nav-item {
        width: calc(50% - 15px);
    }
    
    .product-modal-content {
        padding: 20px;
    }
    
    .product-detail-container {
        flex-direction: column;
    }
    
    .product-main-image {
        height: 300px;
    }
}
/* ====================== */
/* Mobile Bottom Navigation */
/* ====================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.mobile-bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 10px;
    flex: 1;
    position: relative;
    padding: 5px 0;
}

.mobile-bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-bottom-nav-item.active {
    color: #e63946;
}

.mobile-cart-count {
    position: absolute;
    top: 0;
    right: 25%;
    background: #e63946;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Add padding to main content to prevent bottom nav overlap */
    .main-container {
        padding-bottom: 70px;
    }
    
    /* Adjust header margin */
    .header-container {
        margin-bottom: 0;
    }
}
/* Mobile Header Fix */
@media (max-width: 768px) {
    .header-container {
        position: sticky !important;
        top: 0;
        transition: top 0.3s ease;
    }
    .header-container.hidden {
        top: -100px !important; /* Header height ke hisaab se adjust karein */
    }
}

/* Product Image Behind Text Fix */
.product-card {
    position: relative; /* Parent ko relative banaye */
}

.product-image-container {
    position: relative;
    z-index: 1; /* Image ko piche layer pe */
}

.product-price, 
.product-title, 
.product-rating {
    position: relative;
    z-index: 2; /* Text ko image ke upar */
    background: rgba(255, 255, 255, 0.8); /* Optional: Text readable rahe */
    padding: 2px 5px;
    display: inline-block;
}