/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration-skip-ink: none;
}

/* CRITICAL: Reset all product image heights to ensure squares */
.product-image,
.featured-products .product-image,
.products-page .product-image,
.customer-feedback .product-image,
.feedback-card .product-image {
    height: auto !important;
    aspect-ratio: 1/1 !important;
    width: 100% !important;
    overflow: hidden !important;
}

.product-image img,
.featured-products .product-image img,
.products-page .product-image img,
.customer-feedback .product-image img,
.feedback-card .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Global Link Styles */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #3498db;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.nav {
    justify-self: end;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover {
    color: #3498db;
}

.nav a.active {
    color: #3498db;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 0.5rem;
}

.search-bar input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 300px;
}

.search-bar button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #2980b9;
}

/* Main Content */
main {
    padding: 2rem 5%;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin: -2rem -5% 2rem;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    background-color: #f8f9fa;
    margin: 2rem -5%;
    padding: 4rem 5%;
}

.categories h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2rem;
}

.category-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-carousel {
    flex: 1;
    overflow: hidden;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    transition: transform 0.3s ease;
}

.category-nav {
    background: rgba(52, 152, 219, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.category-nav:hover {
    background: rgba(52, 152, 219, 1);
    transform: scale(1.1);
}

.category-nav.prev {
    left: -20px;
}

.category-nav.next {
    right: -20px;
}

@media (max-width: 1150px) {
    .header {
        grid-template-columns: 1fr auto !important;
        justify-items: center;
        gap: 1rem;
    }
    .search-bar, .nav {
        display: none !important;
    }
    .logo-image {
        height: 36px;
    }
    .logo-text {
        font-size: 1.2rem;
        text-align: center;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #2c3e50 !important;
    }
    .hamburger-menu {
        display: flex;
    }
    .category-container {
        gap: 0.5rem;
    }
    .category-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .category-grid {
        grid-template-columns: repeat(4, 80vw);
        gap: 0.5rem;
    }
    .category-card {
        min-width: 80vw;
        max-width: 80vw;
        box-sizing: border-box;
    }
    .featured-products .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.3rem;
    }
    .featured-products .product-card {
        min-width: 0;
        max-width: 100%;
        padding: 0.2rem;
    }
    .featured-products .product-image {
        width: 100%;
        aspect-ratio: 1/1;
    }
    .featured-products .product-info {
        padding: 0.2rem;
    }
    .featured-products .product-info h3,
    .featured-products .product-info .category,
    .featured-products .product-info .price {
        font-size: 0.6rem;
    }
}

.category-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.category-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
    display: block;
}

.category-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.category-card a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #3498db;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.category-card a:hover {
    background-color: #3498db;
    color: white;
    text-decoration: none;
}

/* Featured Products */
.featured-products {
    padding: 4rem 0;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* Home page specific product grid */
.featured-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-products .product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.featured-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.featured-products .product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.featured-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-products .product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-products .add-to-cart-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.featured-products .product-card:hover .add-to-cart-overlay {
    opacity: 1;
    transform: scale(1);
}

.featured-products .add-to-cart-overlay:hover {
    background: rgba(52, 152, 219, 1);
    transform: scale(1.1);
}

.featured-products .product-info {
    padding: 1rem;
}

.featured-products .product-info h3 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #2c3e50;
    line-height: 1.3;
}

.featured-products .product-info .category {
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-bottom: 0.3rem;
}

.featured-products .product-info .price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3498db;
    margin: 0;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: #f8f9fa;
    padding: 4rem 0;
    margin: 4rem -5%;
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 0 5%;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

/* Products Page Styles */
.products-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filters-sidebar {
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 1.5rem;
    height: fit-content;
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
    transform: translateX(-100%);
}

.filters-sidebar.active {
    left: 0;
    transform: translateX(0);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.filters-header h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.close-filters {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #95a5a6;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: block;
}

.close-filters:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.filters-sidebar h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Filter Options */
.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.filter-option:hover {
    background: #f8f9fa;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 0.8rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-option input[type="radio"] + .checkmark {
    border-radius: 50%;
}

.filter-option input[type="radio"]:checked + .checkmark,
.filter-option input[type="checkbox"]:checked + .checkmark {
    background: #3498db;
    border-color: #3498db;
}

.filter-option input[type="radio"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.filter-label {
    font-size: 0.9rem;
    color: #555;
    flex: 1;
}

/* Price Filter */
.price-filter {
    margin-bottom: 2rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-inputs input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.price-inputs span {
    color: #95a5a6;
    font-weight: 500;
}

.price-filter input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
    -webkit-appearance: none;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
}

.price-filter input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
}

.price-range-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #95a5a6;
}

/* Stock Filter */
.stock-filter {
    margin-bottom: 2rem;
}

/* Clear Filters */
.clear-filters {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f8f9fa;
}

.clear-btn {
    width: 100%;
    padding: 0.8rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.clear-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Products Container */
.products-container {
    flex: 1;
    min-width: 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.product-count {
    color: #7f8c8d;
    font-weight: 400;
    font-size: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.sort-options select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .header-left h2 {
        font-size: 1.3rem;
    }
    
    .product-count {
        font-size: 0.9rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .sort-options select {
        width: 100%;
        max-width: 200px;
    }
}

.filter-toggle-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
}

.filter-toggle-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.filter-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    display: none;
}

.filter-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.search-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.search-box input {
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    width: 250px;
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #2980b9;
}

.sort-options select {
    padding: 0.8rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 150px;
}

.sort-options select:focus {
    outline: none;
    border-color: #3498db;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
        padding: 0.25rem 0;
    }
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    max-width: 100%;
    height: fit-content;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f8f9fa;
    max-height: 300px;
}

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

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

/* Disable hover effects for out-of-stock products */
.product-card .product-image.out-of-stock img {
    transform: none !important;
}

.product-card:hover .product-image.out-of-stock img {
    transform: none !important;
}

.product-link {
    display: block;
    width: 100%;
    height: 100%;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #95a5a6;
    font-size: 3rem;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view,
.add-to-cart {
    background: white;
    color: #2c3e50;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.quick-view:hover,
.add-to-cart:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

/* Out of Stock Label - This is for labels only, not image containers */
.out-of-stock-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px; 
    background: #e74c3c;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}

.product-info {
    padding: 1rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    margin-bottom: 0.5rem;
}

.product-title a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a:hover {
    color: #3498db;
}

.sku {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-bottom: 0.3rem;
}

.category {
    font-size: 0.75rem;
    color: #3498db;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stock {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.stock.in-stock {
    color: #27ae60;
}



.stock.out-of-stock {
    color: #e74c3c;
}

/* Out of Stock Price Styling */
.out-of-stock-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2em;
}

/* Mobile responsive out-of-stock text */
@media (max-width: 1150px) {
    .out-of-stock-price {
        font-size: clamp(0.7rem, 2.5vw, 1rem) !important;
    }
}

@media (max-width: 480px) {
    .out-of-stock-price {
        font-size: clamp(0.65rem, 3vw, 0.8rem) !important;
    }
}

@media (max-width: 360px) {
    .out-of-stock-price {
        font-size: clamp(0.6rem, 3.5vw, 0.75rem) !important;
    }
}

/* Out of Stock Message Styling */
.out-of-stock-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    color: #e74c3c;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.out-of-stock-message i {
    font-size: 1.5em;
}

/* Out of Stock Image Styling - Grayscale for homepage and product listings */
.product-image.out-of-stock img,
.featured-products .product-image.out-of-stock img,
.products-grid .product-image.out-of-stock img {
    filter: grayscale(100%) !important;
    opacity: 0.7 !important;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Out of Stock Product Card Styling - Ensure normal positioning */
.product-card .product-image.out-of-stock {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure out-of-stock product cards have same margins as normal cards */
.product-card:has(.product-image.out-of-stock) {
    margin: 0 !important;
    padding: 0 !important;
}


/* Out of Stock Product Info Styling */
.product-card .product-image.out-of-stock + .product-info .product-title a,
.product-card .product-image.out-of-stock + .product-info .price {
    opacity: 0.6;
    color: #7f8c8d;
}

.product-card .product-image.out-of-stock + .product-info .product-title a:hover {
    color: #7f8c8d;
}

/* Product Grid Out of Stock Image Styling - Only for home page and product preview */
.featured-products .product-image.out-of-stock img,
.product-view-page .product-image.out-of-stock img {
    filter: grayscale(100%) !important;
    opacity: 0.7 !important;
}



.product-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.view-details {
    flex: 1;
    padding: 0.8rem;
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-details:hover {
    background: #3498db;
    color: white;
}

.add-to-cart-btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #3498db;
    color: #fff;
}

.add-to-cart-btn:hover:not(.disabled) {
    background: #2980b9;
    transform: translateY(-2px);
}

.add-to-cart-btn.disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.no-products i {
    font-size: 4rem;
    color: #95a5a6;
    margin-bottom: 1rem;
}

.no-products h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.no-products p {
    color: #95a5a6;
    margin-bottom: 2rem;
}

.no-products .clear-filters {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.no-products .clear-filters:hover {
    background: #2980b9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-page {
        padding: 1rem 3%;
    }
    
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .header-left {
        justify-content: space-between;
    }
    
    .header-right {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sort-options select {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .products-page {
        padding: 1rem 3%;
    }
    
    .products-header {
        padding: 1rem;
    }
    
    .header-left h2 {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-actions {
        flex-direction: column;
    }

    /* Home page responsive */
    .featured-products .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }

    .featured-products .product-image {
        width: 100%;
        aspect-ratio: 1/1;
    }

    .featured-products .product-info {
        padding: 0.8rem;
    }

    .featured-products .product-info h3 {
        font-size: 0.8rem;
    }

    .featured-products .product-info .category {
        font-size: 0.7rem;
    }

    .featured-products .product-info .price {
        font-size: 0.8rem;
    }

    /* Products page responsive - match home page */
    .products-page .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .products-page .product-image {
        width: 100%;
        aspect-ratio: 1/1;
    }

    .products-page .product-info {
        padding: 0.8rem;
    }

    .products-page .product-info h3 {
        font-size: 0.8rem;
    }

    .products-page .product-info .category {
        font-size: 0.7rem;
    }

    .products-page .product-info .price {
        font-size: 0.8rem;
    }
}

/* Enhanced Mobile Text Responsiveness */
@media (max-width: 1150px) {
    /* Header text adjustments */
    .logo-text {
        font-size: clamp(1rem, 2.5vw, 1.2rem) !important;
    }
    
    .nav a {
        font-size: clamp(0.8rem, 2vw, 1rem);
        padding: 0.5rem 0.8rem;
    }
    
    /* Product text adjustments */
    .product-title a {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem) !important;
        line-height: 1.3;
    }
    
    .product-info .category {
        font-size: clamp(0.65rem, 2vw, 0.75rem) !important;
    }
    
    .product-info .price {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem) !important;
    }
    
    .product-info .stock {
        font-size: clamp(0.7rem, 2vw, 0.8rem) !important;
    }
    
    /* Button text adjustments */
    .view-details,
    .add-to-cart-btn {
        font-size: clamp(0.7rem, 2vw, 0.8rem) !important;
        padding: clamp(0.5rem, 1.5vw, 0.7rem) clamp(0.8rem, 2vw, 1rem) !important;
    }
}

@media (max-width: 480px) {
    .products-page {
        padding: 1rem 2%;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .product-image {
        width: 100%;
        aspect-ratio: 1/1;
    }
    
    .product-info {
        padding: clamp(0.6rem, 2vw, 0.8rem);
        min-height: 100px;
    }
    
    /* Enhanced text scaling for small screens */
    .product-title a {
        font-size: clamp(0.7rem, 3vw, 0.8rem) !important;
        line-height: 1.2;
    }
    
    .product-info .category {
        font-size: clamp(0.6rem, 2.5vw, 0.7rem) !important;
    }
    
    .product-info .price {
        font-size: clamp(0.75rem, 3vw, 0.8rem) !important;
    }
    
    .product-info .stock {
        font-size: clamp(0.65rem, 2.5vw, 0.75rem) !important;
    }
    
    /* Button adjustments for small screens */
    .view-details,
    .add-to-cart-btn {
        font-size: clamp(0.65rem, 2.5vw, 0.75rem) !important;
        padding: clamp(0.4rem, 1.5vw, 0.6rem) clamp(0.6rem, 2vw, 0.8rem) !important;
    }
    
    .filters-sidebar {
        padding: 1rem;
    }
    
    .price-inputs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .price-inputs input {
        width: 100%;
    }

    /* Very small screens - ensure 2 columns still work */
    @media (max-width: 360px) {
        .products-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 0.3rem;
        }
        
        .product-info {
            padding: clamp(0.4rem, 1.5vw, 0.6rem);
            min-height: 90px;
        }
        
        /* Ultra-small screen text adjustments */
        .product-title a {
            font-size: clamp(0.65rem, 3.5vw, 0.75rem) !important;
            line-height: 1.1;
        }
        
        .product-info .category {
            font-size: clamp(0.55rem, 3vw, 0.65rem) !important;
        }
        
        .product-info .price {
            font-size: clamp(0.7rem, 3.5vw, 0.75rem) !important;
        }
        
        .product-info .stock {
            font-size: clamp(0.6rem, 3vw, 0.7rem) !important;
        }
        
        .product-actions {
            gap: 0.5rem;
        }
        
        .view-details,
        .add-to-cart-btn {
            font-size: clamp(0.6rem, 3vw, 0.7rem) !important;
            padding: clamp(0.3rem, 1.2vw, 0.5rem) clamp(0.5rem, 1.8vw, 0.7rem) !important;
        }
    }

    /* Header responsive */
    .header {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 3%;
    }

    .search-bar {
        order: 2;
    }

    .search-bar input {
        width: 100%;
        max-width: 300px;
    }

    .nav {
        justify-self: center;
        order: 3;
    }

    /* Home page responsive */
    .featured-products .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.3rem;
    }

    .featured-products .product-card {
        min-width: 0;
        max-width: 100%;
        padding: 0.2rem;
    }

    .featured-products .product-image {
        width: 100%;
        aspect-ratio: 1/1;
    }

    .featured-products .product-info {
        padding: clamp(0.2rem, 1vw, 0.4rem);
    }

    .featured-products .product-info h3 {
        font-size: clamp(0.55rem, 2.5vw, 0.7rem) !important;
        line-height: 1.2;
    }

    .featured-products .product-info .category {
        font-size: clamp(0.5rem, 2vw, 0.6rem) !important;
    }

    .featured-products .product-info .price {
        font-size: clamp(0.6rem, 2.5vw, 0.7rem) !important;
    }
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 5% 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    color: #3498db;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #27ae60;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1002;
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Apply Filters Button */
.apply-filters {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.apply-btn {
    width: 100%;
    padding: 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.apply-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Search Container and Suggestions */
.search-container {
    position: relative;
    width: 100%;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.2s ease;
}

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

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item i {
    color: #95a5a6;
    font-size: 0.9rem;
    width: 16px;
}

.suggestion-item span {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
}

.suggestion-item small {
    color: #95a5a6;
    font-size: 0.8rem;
}

.suggestion-item.no-results {
    color: #95a5a6;
    font-style: italic;
    cursor: default;
}

.suggestion-item.no-results:hover {
    background: white;
}

/* Responsive adjustments for search */
@media (max-width: 1024px) {
    .search-container {
        width: 100%;
    }
    
    .search-suggestions {
        position: absolute;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .apply-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .suggestion-item {
        padding: 0.6rem 0.8rem;
    }
    
    .suggestion-item span {
        font-size: 0.9rem;
    }
    
    .suggestion-item small {
        font-size: 0.7rem;
    }
}

/* Cart Panel Styles */
.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-panel.active {
    right: 0;
}

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.cart-panel-header h2 {
    margin: 0;
    color: #2c3e50;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
}

.close-cart:hover {
    color: #e74c3c;
}

.cart-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-panel-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cart Header Actions */
.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cart-icon-btn:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

/* Product View Page Layout */
.product-view-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem 5%;
}

.breadcrumb {
    font-size: 0.95rem;
    color: #95a5a6;
    margin-bottom: 2rem;
}
.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}
.breadcrumb span {
    color: #2c3e50;
    font-weight: 500;
}

/* Product Info Card */
.product-info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.product-title-section h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}



/* Product Content Grid */
.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Left Column: Gallery */
.product-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-image-container {
    aspect-ratio: 1/1;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.main-product-image:hover {
    transform: scale(1.02);
}

.thumbnail-container {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item:hover {
    border-color: #3498db;
}

.thumbnail-item.active {
    border-color: #3498db;
}

/* Right Column: Details */
.product-details-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-info-section h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.info-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-item label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.info-item p {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

.info-item .price {
    font-size: 1.5rem;
    color: #27ae60;
    font-weight: 700;
}

.info-item .stock-info .out-of-stock {
    color: #e74c3c;
    font-weight: 600;
}



.info-item .stock-info .in-stock {
    color: #27ae60;
    font-weight: 600;
}

.description-section {
    margin-bottom: 1.5rem;
}

.description-section label {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.description-section p {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
}

.quantity-selector label {
    font-size: 1rem;
    color: #2c3e50;
}

.quantity-selector input[type="number"] {
    width: 60px;
    padding: 0.3rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}



.add-to-cart-btn {
    background: #3498db;
    color: #fff;
}

.add-to-cart-btn:hover:not(.disabled) {
    background: #2980b9;
    transform: translateY(-2px);
}

.add-to-cart-btn.disabled {
    background: #95a5a6;
    cursor: not-allowed;
}



/* Recent Activity */
.recent-activity-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.recent-activity-card h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.reviews-grid {
    display: grid;
    gap: 1rem;
}

.review-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: 600;
    color: #2c3e50;
}

.review-stars {
    display: flex;
    gap: 0.2rem;
    color: #f39c12;
}

.review-comment {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.review-date {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* Related Products */
.related-products-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-top: 2rem;
}

.related-products-section h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-product-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

.related-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.related-product-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-info {
    padding: 0.75rem;
}

.related-product-info h3 {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.related-product-actions .view-details {
    padding: 0.4rem 0.6rem;
    background: transparent;
    color: #3498db;
    border: 1px solid #3498db;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.related-product-actions .view-details:hover {
    background: #3498db;
    color: #fff;
}

.related-product-actions .add-to-cart-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
}

/* Mobile responsive for related products */
@media (max-width: 768px) {
    .related-products-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .related-product-image {
        height: 120px;
    }
    
    .related-product-info {
        padding: 0.6rem;
    }
    
    .related-product-info h3 {
        font-size: 0.85rem;
    }
    
    .related-product-actions {
        margin-top: 0.5rem;
    }
    
    .related-product-actions .view-details,
    .related-product-actions .add-to-cart-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .related-products-section {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .related-product-image {
        height: 100px;
    }
    
    .related-product-info {
        padding: 0.5rem;
    }
    
    .related-product-info h3 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .related-product-actions {
        margin-top: 0.4rem;
        gap: 0.4rem;
    }
    
    .related-product-actions .view-details,
    .related-product-actions .add-to-cart-btn {
        padding: 0.3rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* Image Zoom Overlay */
.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.zoomed-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 900px) {
    .product-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 1150px) {
    .product-view-page {
        padding: 1rem 0.5rem;
    }
    
    .product-info-card,
    .recent-activity-card,
    .related-products-section {
        padding: 1.5rem;
    }
    
    .product-title-section h1 {
        font-size: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.7rem;
        align-items: stretch;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Categories Dropdown */
.categories-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.categories-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.categories-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.dropdown-item img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}

.dropdown-item i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #7f8c8d;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;

}

.mobile-menu.active {
    right: 0;

}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.mobile-menu-header h3 {
    margin: 0;
    color: #2c3e50;
}

/* Mobile Logo Section */
.mobile-logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.mobile-logo-text {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

/* Responsive adjustments for very small screens */
@media (max-width: 480px) {
    .mobile-logo-section {
        gap: 0.5rem;
    }
    
    .mobile-logo-image {
        width: 28px;
        height: 28px;
    }
    
    .mobile-logo-text {
        font-size: 0.9rem;
    }
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.3s ease;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background-color: #f8f9fa;
    color: #3498db;
}

.mobile-menu-item i {
    width: 20px;
    text-align: center;
}

.mobile-cart-count {
    margin-left: auto;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}

/* Mobile Categories Section */
.mobile-categories-section {
    border-bottom: 1px solid #f8f9fa;
}

.mobile-categories-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-categories-header:hover {
    background-color: #f8f9fa;
}

.mobile-categories-toggle {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.mobile-categories-section.active .mobile-categories-toggle {
    transform: rotate(180deg);
}

.mobile-categories-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-categories-section.active .mobile-categories-list {
    max-height: 500px;
}

.mobile-category-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem 0.8rem 3rem;
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.3s ease;
}

.mobile-category-item:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.mobile-category-item img {
    width: 25px;
    height: 25px;
    object-fit: cover;
    border-radius: 4px;
}

.mobile-category-item i {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #7f8c8d;
}

@media (max-width: 1150px) {
    .header {
        grid-template-columns: 1fr auto !important;
        justify-items: center;
        gap: 1rem;
    }
    .nav {
        display: none !important;
    }
    .logo-image {
        height: 36px;
    }
    .search-bar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 100;
        display: flex !important;
        justify-content: center;
    }
    .search-bar input {
        width: 100%;
        max-width: 300px;
    }
    .hamburger-menu {
        display: flex;
    }
    .featured-products .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.3rem;
    }
    .featured-products .product-card {
        min-width: 0;
        max-width: 100%;
        padding: 0.2rem;
    }
    .featured-products .product-image {
        width: 100%;
        aspect-ratio: 1/1;
    }
    .featured-products .product-info {
        padding: 0.2rem;
    }
    .featured-products .product-info h3,
    .featured-products .product-info .category,
    .featured-products .product-info .price {
        font-size: 0.6rem;
    }
}

/* Customer Feedback Section */
.customer-feedback {
    padding: 60px 20px;
    background: #f8f9fa;
    text-align: center;
}

.customer-feedback .scroll-hint {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}

/* Container for better centering */
.feedback-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.customer-feedback h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.5rem;
}

.feedback-grid {
    display: flex;
    gap: 30px;
    margin: 0 auto;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    justify-content: center;
    align-items: center;
    width: max-content;
    min-width: 100%;
}

.feedback-grid::-webkit-scrollbar {
    height: 8px;
}

.feedback-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.feedback-grid::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.feedback-grid::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Ensure feedback cards are centered when there's enough space */
.feedback-grid {
    justify-content: center;
}

/* Add some visual feedback for scrollable content */
.feedback-grid::after {
    content: '';
    min-width: 20px;
    height: 1px;
}

/* Ensure smooth scrolling on all devices */
.feedback-grid {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #3498db #f1f1f1;
}

/* Smooth scroll snap for better UX */
.feedback-grid {
    scroll-snap-type: x mandatory;
}

.feedback-card {
    scroll-snap-align: center;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
}

/* Add smooth transitions for better UX */
.feedback-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.feedback-card .product-image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.feedback-card .product-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #e9ecef;
    color: #6c757d;
    font-size: 2rem;
}

.feedback-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.customer-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.rating {
    display: flex;
    gap: 2px;
}

.rating .fas.fa-star {
    color: #ddd;
    font-size: 14px;
}

.rating .fas.fa-star.filled {
    color: #ffc107;
}

.feedback-content {
    margin-bottom: 15px;
}

.feedback-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.feedback-date {
    color: #999;
    font-size: 0.9rem;
    text-align: right;
}

/* Mobile responsiveness for feedback */
@media (max-width: 768px) {
    .feedback-grid {
        gap: 20px;
        padding: 15px 0;
        justify-content: flex-start;
    }
    
    .feedback-card {
        padding: 20px;
        min-width: 280px;
        max-width: 280px;
    }
    
    .feedback-card .product-image {
        width: 100%;
        aspect-ratio: 1/1;
    }
    
    .customer-feedback h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .feedback-grid {
        gap: 1rem;
        padding: 10px 0;
    }
    
    .feedback-card {
        padding: 1rem;
        min-width: 260px;
        max-width: 260px;
    }
    
    .customer-info h4 {
        font-size: 0.85rem;
    }
    
    .rating i {
        font-size: 0.75rem;
    }
    
    .feedback-content p {
        font-size: 0.8rem;
    }
}

/* Discount Styles */
.price-with-discount {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    font-weight: normal;
}

.final-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
}

.discount-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    animation: pulse 2s infinite;
}

.discount-badge.free-shipping {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

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

/* Product card discount positioning */
.product-card {
    position: relative;
}

/* GLOBAL OVERRIDE: Force all product images to be square */
.product-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
    overflow: hidden !important;
    min-height: 0 !important;
    max-height: none !important;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* Mobile-specific overrides */
@media (max-width: 767px) {
    .product-image {
        height: auto !important;
        aspect-ratio: 1/1 !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    
    .product-image img {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    
    /* Ensure out-of-stock styling works on mobile */
    .product-image.out-of-stock img {
        filter: grayscale(100%) !important;
        opacity: 0.7 !important;
    }
}

@media (max-width: 480px) {
    .product-image {
        height: auto !important;
        aspect-ratio: 1/1 !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    
    .product-image img {
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}

.product-card .discount-badge {
    top: 10px;
    right: 10px;
}

.featured-products .product-card .discount-badge {
    top: 8px;
    right: 8px;
}

.related-product-card .discount-badge {
    top: 8px;
    right: 8px;
}

/* Responsive discount styles */
@media (max-width: 768px) {
    .discount-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .final-price {
        font-size: 1em;
    }
    
    .original-price {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .discount-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    
    .price-with-discount {
        gap: 0.2rem;
    }
}

/* Cart Discount Styles */
.cart-item-price .original-price {
    font-size: 0.85em;
    color: #95a5a6;
    text-decoration: line-through;
}

.cart-item-price .final-price {
    font-size: 1em;
    color: #e74c3c;
    font-weight: bold;
}

.cart-item-price .discount-badge {
    font-size: 0.75em;
    padding: 1px 4px;
    margin-left: 3px;
}

.discount-item {
    color: #e74c3c;
    font-weight: bold;
}

.summary-item.discount-item {
    color: #e74c3c;
    font-weight: bold;
}

/* Cart Page Styles */
.cart-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 5%;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.cart-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
}

.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.continue-shopping:hover {
    background-color: #2980b9;
    color: white;
    text-decoration: none;
}

.track-order-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #17a2b8;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.track-order-link:hover {
    background-color: #138496;
    color: white;
    text-decoration: none;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cart-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.cart-items {
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: #3498db;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #2980b9;
}

.quantity-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.remove-item {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.remove-item:hover {
    background: #c0392b;
}

.cart-summary {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 25px;
    height: fit-content;
}

.cart-summary h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.summary-content {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.summary-item.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    border-top: 2px solid #3498db;
    margin-top: 10px;
    padding-top: 15px;
}

.shipping-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.shipping-info i {
    color: #3498db;
    font-size: 1.2rem;
}

.shipping-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout-btn:hover:not(:disabled) {
    background: #229954;
}

.checkout-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.empty-cart p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.customer-info {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.customer-info h2 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.customer-form {
    display: grid;
    gap: 15px;
}

.customer-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .customer-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-summary {
        order: -1;
    }
    
    .cart-item-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-item-quantity {
        align-self: flex-end;
    }
} 

/* Mobile Search Button */
.mobile-search-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1002;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.mobile-search-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

/* Mobile Search Panel */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.mobile-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-search-panel {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1004;
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-search-panel.active {
    left: 0;
}

.mobile-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

.mobile-search-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-mobile-search {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.close-mobile-search:hover {
    color: #e74c3c;
}

.mobile-search-content {
    flex: 1;
    padding: 1.5rem;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
}

.search-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-input-group button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-input-group button:hover {
    background: #2980b9;
}

/* Filter Sections */
.filter-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.filter-checkbox:hover {
    background: #f8f9fa;
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #3498db;
    border-color: #3498db;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Price Filter */
.price-filter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-range-display {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    color: #2c3e50;
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

/* Sort Options */
.sort-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sort-radio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.sort-radio:hover {
    background: #f8f9fa;
}

.sort-radio input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.sort-radio input[type="radio"]:checked + .radio-mark {
    border-color: #3498db;
}

.sort-radio input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3498db;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.apply-filters-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.apply-filters-btn:hover {
    background: #229954;
}

.clear-filters-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.clear-filters-btn:hover {
    background: #7f8c8d;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-search-btn {
        display: block;
    }
    
    .mobile-search-panel {
        width: 100%;
        left: -100%;
    }
    
    .mobile-search-panel.active {
        left: 0;
    }
}

@media (max-width: 480px) {
    .mobile-search-btn {
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .mobile-search-content {
        padding: 1rem;
    }
    
    .mobile-search-header {
        padding: 1rem;
    }
}

/* Hide search bar on mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}




/* Filter Sidebar */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filters-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.filters-sidebar.active {
    right: 0;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

.filters-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.close-filters {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.close-filters:hover {
    color: #e74c3c;
}

/* Filter Sections */
.category-filters,
.price-filter,
.stock-filter {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.category-filters h4,
.price-filter h4,
.stock-filter h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Filter Options */
.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.filter-option:hover {
    background: #f8f9fa;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.filter-option input[type="radio"] + .checkmark {
    border-radius: 50%;
}

.filter-option input[type="radio"]:checked + .checkmark,
.filter-option input[type="checkbox"]:checked + .checkmark {
    background: #3498db;
    border-color: #3498db;
}

.filter-option input[type="radio"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.filter-label {
    color: #2c3e50;
    font-size: 0.95rem;
}

/* Price Filter */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-inputs input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.price-inputs span {
    color: #666;
    font-weight: 500;
}

.price-range-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Filter Actions */
.apply-filters,
.clear-filters {
    padding: 1.5rem;
}

.apply-filters {
    border-bottom: 1px solid #eee;
}

.apply-btn,
.clear-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.apply-btn {
    background: #27ae60;
    color: white;
}

.apply-btn:hover {
    background: #229954;
}

.clear-btn {
    background: #95a5a6;
    color: white;
}

.clear-btn:hover {
    background: #7f8c8d;
}

/* Filter Toggle Button */
.filter-toggle-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
    margin-right: 1rem;
}

.filter-toggle-btn:hover {
    background: #2980b9;
}

/* Mobile Responsive for Filters */
@media (max-width: 768px) {
    .filters-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .filters-sidebar.active {
        right: 0;
    }
    
    .filter-toggle-btn {
        display: none;
    }
}

/* Mobile Logo Styling */
@media (max-width: 768px) {
    .header .logo {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .header .logo-image {
        width: 80px;
        height: 80px;
        object-fit: contain;
    }
    
    .header .logo-text {
        font-size: 1.2rem;
        text-align: center;
        margin: 0;
    }
    
    .header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .header .nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .header .hamburger-menu {
        order: 2;
    }
    
    .header .mobile-search-btn {
        order: 1;
    }
}

@media (max-width: 480px) {
    .header .logo-image {
        width: 70px;
        height: 70px;
    }
    
    .header .logo-text {
        font-size: 1.1rem;
    }
    
    .header {
        padding: 0.75rem;
    }
}

/* Order Confirmation Modal Styles */
.order-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.order-modal-content {
    background-color: #fff;
    margin: 20px;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.order-modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.order-modal-body {
    padding: 25px;
}

.order-notice {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border-left: 5px solid #3498db;
}

.order-notice h3 {
    color: #2c3e50;
    margin: 15px 0;
    font-size: 1.3rem;
}

.order-notice p {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

.facebook-info {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid #1877f2;
}

.facebook-info strong {
    display: block;
    color: #1877f2;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    background: #f0f2f5;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.facebook-link:hover {
    background: #1877f2;
    color: white;
    transform: translateY(-2px);
}

.order-process {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-top: 20px;
}

.order-process strong {
    color: #2c3e50;
}

.order-summary,
.order-status,
.customer-info-summary {
    margin-bottom: 25px;
}

.order-summary h4,
.order-status h4,
.customer-info-summary h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ecf0f1;
    font-size: 1.1rem;
}

.order-status {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.processing {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #b8daff;
}

.status-badge.shipped {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.delivered {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-info p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.tracking-info {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.tracking-info h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.tracking-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tracking-notice p {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
    flex: 1;
}

.tracking-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #17a2b8;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
}

.tracking-link:hover {
    background: #138496;
    color: white;
}

.order-items {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.order-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    align-items: center;
}

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

.order-item .item-name {
    font-weight: 500;
    color: #2c3e50;
}

.order-item .item-quantity,
.order-item .item-price,
.order-item .item-total {
    text-align: center;
    color: #555;
}

.order-item .item-total {
    font-weight: 600;
    color: #2c3e50;
}

.order-discount {
    text-align: right;
    padding: 15px 20px;
    background: #fff3cd;
    border-top: 1px solid #ffeaa7;
    color: #856404;
    font-weight: 600;
}

.order-total {
    text-align: right;
    padding: 20px;
    background: white;
    border-top: 2px solid #3498db;
    margin-top: 15px;
    border-radius: 0 0 8px 8px;
}

.order-total strong {
    font-size: 1.2rem;
    color: #2c3e50;
}

.customer-detail {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.customer-detail:last-child {
    border-bottom: none;
}

.customer-detail strong {
    color: #2c3e50;
    margin-right: 10px;
}

.order-modal-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    border-top: 1px solid #dee2e6;
}

.btn-secondary,
.btn-primary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .order-modal-header {
        padding: 15px 20px;
    }
    
    .order-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .order-modal-body {
        padding: 20px;
    }
    
    .order-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .order-item .item-quantity,
    .order-item .item-price,
    .order-item .item-total {
        text-align: center;
    }
    
    .order-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .order-modal-content {
        width: 98%;
        margin: 5px;
    }
    
    .order-modal-header {
        padding: 15px;
    }
    
    .order-modal-body {
        padding: 15px;
    }
    
    .order-notice {
        padding: 20px 15px;
    }
    
    .facebook-info {
        padding: 15px 10px;
    }
}

/* Product Reviews Section Styles */
.reviews-section {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reviews-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.review-header {
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.reviewer-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-rating .fas.fa-star {
    font-size: 16px;
}

.review-rating .fas.fa-star.filled {
    color: #f39c12;
}

.review-rating .fas.fa-star.empty {
    color: #bdc3c7;
}

.rating-text {
    margin-left: 8px;
    color: #7f8c8d;
    font-weight: 500;
}

.review-comment {
    margin-bottom: 20px;
}

.review-comment p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.review-images {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.review-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid #e9ecef;
}

.review-image:hover {
    transform: scale(1.05);
    border-color: #3498db;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.no-reviews i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.no-reviews p {
    font-size: 1.1rem;
    margin: 0;
}

/* Review Image Modal Styles */
.review-image-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.review-image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-review-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.close-review-modal:hover {
    background: rgba(0, 0, 0, 0.9);
}

.modal-review-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

/* Responsive Design for Reviews */
@media (max-width: 768px) {
    .reviews-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    .reviews-section h2 {
        font-size: 1.5rem;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .reviewer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-images {
        gap: 10px;
    }
    
    .review-image {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 15px;
    }
    
    .review-card {
        padding: 15px;
    }
    
    .review-images {
        gap: 8px;
    }
    
    .review-image {
        width: 70px;
        height: 70px;
    }
}

/* Customer Feedback Carousel Styles */
.feedback-carousel {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.feedback-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.feedback-card {
    flex: 0 0 calc(25% - 20px);
    margin: 0 10px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.feedback-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feedback-card .product-image {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
}

.feedback-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.feedback-card .no-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.feedback-card .no-image i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feedback-header {
    margin-bottom: 15px;
}

.customer-info h4 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.rating {
    display: flex;
    gap: 2px;
}

.rating .fas.fa-star {
    color: #f39c12;
    font-size: 14px;
}

.feedback-content {
    margin-bottom: 20px;
}

.feedback-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.product-link-section {
    text-align: center;
}

.view-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-product-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn i {
    color: #2c3e50;
    font-size: 1rem;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bdc3c7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #3498db;
    transform: scale(1.2);
}

.indicator:hover {
    background: #3498db;
}

/* Responsive Design for Carousel */
@media (max-width: 1200px) {
    .feedback-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .feedback-card {
        flex: 0 0 calc(50% - 20px);
    }
    
    .carousel-controls {
        display: none;
    }
}

@media (max-width: 480px) {
    .feedback-card {
        flex: 0 0 calc(100% - 20px);
        margin: 0 5px;
    }
    
    .feedback-track {
        margin: 0 5px;
    }
}