/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c5530;
    --primary-dark: #1e3a24;
    --secondary: #d4af37;
    --accent: #8b4513;
    --text: #333333;
    --text-light: #666666;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --border: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--background);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo h2 {
    color: var(--primary);
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--background-light);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    color: var(--text);
}

.icon-btn:hover {
    background: var(--background-light);
    color: var(--primary);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: var(--background);
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1001;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.mobile-nav {
    padding: 1rem;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-menu {
    padding-left: 1rem;
}

.mobile-dropdown-menu a {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: #c19b2c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #d4af37;
    color: #1e3a24;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Categories Section */
.categories {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 200px;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image i {
    font-size: 4rem;
    color: var(--primary);
}

.category-content {
    padding: 1.5rem;
    text-align: center;
}

.category-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.category-content p {
    color: var(--text-light);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.product-card {
    background: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.product-image {
    height: 250px;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--background);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
}

.product-content {
    padding: 1.5rem;
}

.product-category {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-stock {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.stock-in {
    color: #10b981;
}

.stock-out {
    color: #ef4444;
}

.add-to-cart {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--primary-dark);
}

.add-to-cart:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

/* Product Page */
.product-detail {
    padding: 100px 0 80px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.product-gallery {
    position: relative;
}

.main-image {
    background: var(--background-light);
    border-radius: var(--radius);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.main-image img {
    max-width: 90%;
    max-height: 90%;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.thumbnail {
    background: var(--background-light);
    border-radius: var(--radius);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumbnail.active {
    border-color: var(--primary);
}

.thumbnail img {
    max-width: 80%;
    max-height: 80%;
}

.product-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.product-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-specs {
    margin-bottom: 2rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.spec-label {
    font-weight: 500;
    color: var(--text-light);
}

.spec-value {
    color: var(--text);
    font-weight: 600;
}

.product-actions-large {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--background-light);
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--border);
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.btn-cart {
    flex: 2;
    background: var(--primary);
    color: white;
}

.btn-wishlist,
.btn-compare {
    flex: 1;
    background: var(--background-light);
    color: var(--text);
}

.btn-cart:hover {
    background: var(--primary-dark);
}

.btn-wishlist:hover,
.btn-compare:hover {
    background: var(--border);
}

/* Cart, Wishlist, Compare Pages */
.page-header {
    background: var(--background-light);
    padding: 100px 0 50px;
    margin-top: 70px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.page-content {
    padding: 50px 0 80px;
}

.cart-items,
.wishlist-items,
.compare-items {
    margin-bottom: 3rem;
}

.cart-item,
.wishlist-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.item-image {
    width: 100px;
    height: 100px;
    background: var(--background-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    max-width: 80%;
    max-height: 80%;
}

.item-details h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.item-category {
    color: var(--text-light);
    font-size: 0.9rem;
}

.item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    background: var(--background);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.quantity-controls button:hover {
    background: var(--background-light);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.remove-btn:hover {
    color: #ef4444;
    background: var(--background-light);
}

.cart-summary,
.wishlist-actions {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.summary-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    border-bottom: none;
}

.checkout-btn {
    width: 100%;
    margin-top: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

/* Compare Page */
.compare-table {
    overflow-x: auto;
}

.compare-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.compare-table th,
.compare-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table th {
    background: var(--background-light);
    font-weight: 600;
    color: var(--text);
}

.compare-product {
    text-align: center;
}

.compare-image {
    width: 150px;
    height: 150px;
    background: var(--background-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.compare-image img {
    max-width: 80%;
    max-height: 80%;
}

.compare-product h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.compare-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Checkout Form */
.checkout-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.order-summary {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: fit-content;
}

.order-items {
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateX(400px);
    transition: var(--transition);
    z-index: 1002;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.toast.warning {
    background: #f59e0b;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
    }
    
    .checkout-form {
        grid-template-columns: 1fr;
    }
    
    .cart-item,
    .wishlist-item {
        grid-template-columns: 80px 1fr auto;
        gap: 0.5rem;
    }
    
    .item-price,
    .quantity-controls {
        grid-column: 1 / -1;
        justify-self: start;
        margin-top: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* Category Showcase Sections */
.categories-showcase {
    padding: 80px 0;
}

.category-section {
    margin-bottom: 80px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.category-section .section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.category-section .section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.category-section .btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 600;
}

.category-section .btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Add some visual separation between sections */
.category-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.category-section:last-child {
    border-bottom: none;
}

.category-section:nth-child(even) {
    background: var(--background-light);
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Add to your CSS file */
.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

#cart-items {
    display: block !important; /* Force display */
}

.cart-item .item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.cart-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item .item-details {
    flex: 1;
}

.cart-item .item-price,
.cart-item .item-total {
    font-weight: bold;
    min-width: 100px;
    text-align: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.remove-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}


/* Categories Section with Horizontal Scroll */
.categories {
    padding: 80px 0;
    background: var(--background-light);
}

.categories-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 -20px;
    padding: 0 20px;
}

.categories-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
    width:100%;
}

.categories-track {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    width: max-content;
    transition: transform 0.3s ease;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.categories-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.scroll-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
    z-index: 2;
}

.scroll-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.scroll-btn:active {
    transform: scale(0.95);
}

.scroll-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Category Cards */
.category-card {
    flex: 0 0 280px;
    background: var(--background);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.category-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.category-image-fallback i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 85, 48, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-content {
    padding: 1.5rem;
    text-align: center;
}

.category-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.category-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Scroll Indicators */
.scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .category-card {
        flex: 0 0 260px;
    }
}

@media (max-width: 768px) {
    .categories-scroll-container {
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .scroll-btn {
        width: 40px;
        height: 40px;
        display: none; /* Hide buttons on mobile, rely on touch scroll */
    }
    
    .category-card {
        flex: 0 0 220px;
    }
    
    .category-image {
        height: 160px;
    }
    
    .category-content {
        padding: 1.25rem;
    }
    
    .category-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .category-card {
        flex: 0 0 200px;
    }
    
    .category-image {
        height: 140px;
    }
}

/* Touch device improvements */
@media (hover: none) {
    .category-card:hover {
        transform: none;
    }
    
    .scroll-btn {
        display: flex; /* Show buttons on touch devices */
    }
}

/* Loading state for images */
.category-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.category-image img.loaded {
    animation: none;
    background: none;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;/*
    background: linear-gradient(135deg, #ef4444, #dc2626);*/
    background: #059669;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Product Pricing */
.product-pricing {
    margin-bottom: 0.75rem;
}

.price-original {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.price-discount {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: #059669;
}

.discount-percent {
    background: #fef2f2;
    /*color: #dc2626;*/
    color: orange;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #fecaca;
}

.price-normal {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
}

/* Enhanced Product Card for Discount Items */
.product-card {
    position: relative;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Stock Status */
.product-stock {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.stock-in {
    color: #059669;
}

.stock-out {
    color: #dc2626;
}

/* Add to Cart Button */
.add-to-cart {
    width: 100%;
    padding: 0.75rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-to-cart:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
}

.add-to-cart:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Product Badge Positioning */
.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #f59e0b;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 1;
}

/* When both badges exist */
.product-card:has(.product-badge) .discount-badge {
    top: 3rem; /* Move discount badge down if popular badge exists */
}

/* Responsive Design */
@media (max-width: 768px) {
    .price-current {
        font-size: 1.2rem;
    }
    
    .price-original {
        font-size: 0.85rem;
    }
    
    .discount-badge,
    .product-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .discount-percent {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Animation for discount items */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.product-card:has(.discount-badge) {
    border: 2px solid transparent;
}

.product-card:has(.discount-badge):hover {
    border-color: #059669;/*
    animation: pulse-glow 2s infinite;*/
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.slide-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.indicator.active,
.indicator:hover {
    background: white;
    opacity: 1;
    transform: scale(1.2);
}

/* Navigation Arrows */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    opacity: 0;
}

.hero-slider:hover .slide-nav {
    opacity: 1;
}

.slide-prev {
    left: 20px;
}

.slide-next {
    right: 20px;
}

.slide-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slide-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slider {
        height: 300px;
    }
    
    .slide-nav {
        width: 40px;
        height: 40px;
        opacity: 0.8; /* Always visible on mobile */
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 250px;
    }
    
    .slide-nav {
        width: 35px;
        height: 35px;
    }
}

/* Animation for slide transitions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-slide.active {
    animation: slideIn 0.8s ease-out;
}

/* Pause animation on hover */
.hero-slider:hover .auto-slide {
    animation-play-state: paused;
}
