/* Home-specific styles that don't conflict with common-nav.css */
.hero {
    padding: 60px 0;
    text-align: center;
    background-color: #1a1a1a;
}

.hero-logo img {
    max-width: 300px;
    height: auto;
}

/* Make sure we're not affecting the nav logo */
.home-header .nav-container .logo img {
    height: 40px;
    width: auto;
}

@media (max-width: 768px) {
    .home-header .nav-container .logo img {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .home-header .nav-container .logo img {
        height: 30px;
    }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Make sure the cart icon stays white on hover */
.cart-icon:hover,
.cart-icon a:hover {
    color: #e0e0e0;
}

/* Responsive adjustments for home header */
@media (max-width: 768px) {
    .home-header .nav-container {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .home-header .cart-icon {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .home-header .nav-container {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .home-header .cart-icon {
        right: 10px;
    }
}

/* Hero Section */
.hero {
    background-color: #1a1a1a;
    padding: 80px 0;
    text-align: center;
}

.hero-logo {
    margin-bottom: 40px;
}

.hero-logo img {
    max-width: 300px; /* Reduced from 800px */
    height: auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Products - now the first section */
.featured-products {
    padding: 60px 0 80px;
    background-color: #1a1a1a; /* Slightly lighter than pure black */
    margin-top: 0;
}

.featured-products h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    padding-top: 20px;
}

/* Add some extra padding at the top for the first section */
@media (max-width: 768px) {
    .featured-products {
        padding-top: 80px; /* Increased from 40px to add more space below menu */
    }
    
    .featured-products h2 {
        font-size: 2rem;
        margin-bottom: 30px;
        padding-top: 10px;
    }
}

@media (max-width: 480px) {
    .featured-products {
        padding-top: 70px; /* Increased from 30px to add more space below menu */
    }
    
    .featured-products h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
        padding-top: 5px;
    }
}

/* Carousel styles */
.carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    overflow: hidden;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-slide {
    display: flex;
    transition: transform 0.3s ease;
    width: auto; /* Allow natural width based on content */
}

.product-card {
    background: #1a1a1a;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #333;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.product-card p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-card .price {
    color: #fff;
    font-size: 1.25rem;
    font-weight: bold;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Category Buttons section */
.category-buttons {
    background-color: #1a1a1a; /* Darker background for the entire category section */
    padding: 30px 0;
    margin-bottom: 0; /* Remove any margin that might create space */
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: #222222; /* Darker background for category buttons */
    border-radius: 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-btn:hover {
    transform: translateY(-5px);
    background: #2a2a2a; /* Slightly lighter on hover */
}

.category-btn i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.category-btn span {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
}

/* Footer - darkest shade */
footer {
    background-color: #121212; /* Very dark gray for the footer */
    padding: 60px 0 0; /* Remove bottom padding */
    color: #fff;
    margin-top: 0; /* Remove top margin to eliminate gap */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo img {
    max-width: 150px;
}

.footer-sections {
    display: flex;
    gap: 60px;
}

.footer-nav h3,
.footer-contact h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #ccc;
}

.footer-contact p {
    margin-bottom: 10px;
}

.whatsapp-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.whatsapp-link:hover {
    color: #25D366;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0; /* Add padding to top and bottom */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0a0a0a; /* Even darker for footer bottom */
    margin-top: 0; /* Remove top margin */
}

.footer-bottom p {
    margin: 0; /* Remove margin from paragraph to prevent extra space */
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .product-card {
        flex: 0 0 calc(50% - 20px);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-sections {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        flex: 0 0 calc(100% - 20px);
    }
}

/* Responsive carousel styles */
@media (max-width: 768px) {
    .carousel {
        padding: 0 30px;
    }
    
    .carousel-button {
        width: 35px;
        height: 35px;
    }
}

/* Mobile-specific carousel styling */
@media (max-width: 480px) {
    .carousel {
        padding: 0 20px;
    }
    
    .carousel-container {
        overflow: hidden;
        touch-action: pan-y;
    }
    
    .carousel-slide {
        display: flex;
        transition: transform 0.3s ease;
        will-change: transform;
    }
    
    .product-card {
        padding: 15px;
        margin: 0 20px;
        flex-shrink: 0;
    }
    
    .product-image {
        height: 220px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-image img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
    }
    
    .carousel-button {
        width: 30px;
        height: 30px;
        background: rgba(0, 0, 0, 0.7);
        z-index: 10;
    }
}

/* Desktop carousel styles */
@media (min-width: 769px) {
    .carousel-slide {
        display: flex;
        flex-wrap: nowrap;
        overflow: visible; /* Allow overflow to be visible */
    }
    
    .product-card {
        flex: 0 0 auto;
        width: calc(33.333% - 20px);
        margin: 0 10px;
    }
}
