/* Goshen Media Brand Colors */
:root {
    --primary-red: #e63946;
    --dark-black: #1a1a1a;
    --clean-white: #ffffff;
    --light-gray: #f4f4f4;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
}

/* Header & Navigation */
header {
    background-color: var(--dark-black);
    color: var(--clean-white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--primary-red);
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

header h1 span {
    color: var(--primary-red);
}

/* Product Grid */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Product Cards */
.card {
    background: var(--clean-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card-content h3 {
    margin: 10px 0;
    color: var(--dark-black);
}

.price {
    font-weight: bold;
    color: var(--primary-red);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Red Action Button */
.btn-add {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}

.btn-add:hover {
    background-color: #c12e3a;
}
/* Header Layout Adjustments */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-nav a, .nav-link {
    color: var(--clean-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover, .nav-link:hover {
    color: var(--primary-red);
}

/* Dropdown Menu (For "Add Items", etc.) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dark-black);
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-top: 2px solid var(--primary-red);
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: #333;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* User Actions & Cart */
.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    background: var(--primary-red);
    padding: 8px 15px;
    border-radius: 20px;
    color: white !important;
    font-size: 0.9rem;
}
/* Add these to your existing style.css */

.image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #fff;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the product photo isn't awkwardly cropped */
}

.btn-view-details {
    display: block;
    background-color: var(--dark-black);
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    transition: background 0.3s;
    border: 1px solid var(--primary-red);
}

.btn-view-details:hover {
    background-color: var(--primary-red);
}
.cart-icon {
    background-color: var(--primary-red);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.cart-icon span {
    background: white;
    color: var(--primary-red);
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 0.9rem;
}
/* Logo container styling */
.logo {
    display: flex;
    align-items: center;
}

/* Specific styling for the logo image */
.header-logo {
    height: 70px; /* Adjust this to fit your header height */
    width: auto;  /* Keeps the logo from stretching */
    display: block;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05); /* Slight zoom when hovering */
}

/* 1. Default State (Desktop) */
.menu-toggle {
    display: none; /* Hide toggle on desktop */
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--dark-black);
    cursor: pointer;
}

/* 2. Mobile State (Phones and Tablets) */
@media screen and (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block; /* Show toggle on mobile */
    }

    .main-nav {
        display: none; /* Hide menu by default on mobile */
        width: 100%;   /* Take up full width when shown */
        margin-top: 10px;
    }

    .main-nav.active {
        display: block; /* Show menu when toggle is clicked */
    }

    .main-nav ul {
        flex-direction: column; /* Stack menu items vertically */
        gap: 0;
    }

    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .main-nav ul li a {
        padding: 15px;
        display: block;
    }

    .dropdown-content {
        position: static; /* Make dropdown push content down on mobile */
        box-shadow: none;
        background: #f9f9f9;
        padding-left: 20px;
    }
}
/* Clean Header Base */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: #1a1a1a; /* Matching your black header in the photo */
    position: relative;
}

.header-logo {
    height: 60px; /* Reduced for mobile space */
    width: auto;
}

/* The Toggle Button Styling */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: 1px solid #fff;
    color: white;
    font-size: 24px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* Mobile Fixes (Max width 768px) */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show the button */
        order: 2; /* Put it after the logo */
    }

    .logo {
        order: 1;
    }

    .user-actions {
        order: 3;
    }

    .header-logo {
        height: 45px; /* Make logo smaller on phone */
    }

    .cart-icon {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    /* The Hidden Menu */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%; /* Sits right under the black header */
        left: 0;
        width: 100%;
        background: #1a1a1a;
        z-index: 999;
        border-top: 1px solid #333;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0;
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
    }

    .main-nav ul li a {
        padding: 15px;
        border-bottom: 1px solid #333;
        color: white;
        display: block;
    }
}
.hero-slider {
    position: relative;
    height: 250px; /* Reduced to half of the original 500px */
    overflow: hidden;
    background: #111;
    border-bottom: 3px solid var(--primary-red);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 1.8rem; /* Scaled down for the smaller height */
    margin: 0;
    color: #fff;
}

.hero-content p {
    font-size: 1rem;
    color: var(--primary-red);
    font-weight: bold;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    .hero-slider { 
        height: 175px; /* Scaled for mobile */
    }
    .hero-content h2 { 
        font-size: 1.3rem; 
    }
}
/* Slider Container */
.hero-slider {
    position: relative;
    height: 250px; /* Your requested half-height */
    width: 100%;
    overflow: hidden;
}

/* Individual Slides */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

/* Dots Styling */
.slider-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background-color: var(--primary-red);
    transform: scale(1.2);
}
:root {
    --primary-red: #e60000; /* Adjust to your specific Goshen Red */
}

/* The Header Background - Fills 100% of the screen */
.main-header {
    background: #000;
    padding: 10px 0;
    border-bottom: 3px solid #e60000; /* Goshen Red */
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%; /* Ensures background fills the browser width */
}

/* The Content Container - Logo and Menu placement */
.header-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%; /* Removes the 1200px limit */
    max-width: 100%; /* Overrides previous constraints */
    margin: 0; /* No longer needs to be centered because it fills the space */
    padding: 0 40px; /* Added padding so logo/menu don't touch the edges */
    box-sizing: border-box; /* Ensures padding doesn't push the width over 100% */
}

/* Ensure the Logo size remains strictly controlled */
.logo img {
    height: 60px !important;
    width: auto !important;
    display: block;
}

/* Desktop Navigation */
.nav-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-red);
}

.admin-btn {
    border: 1px solid var(--primary-red);
    padding: 5px 15px;
    border-radius: 4px;
}

/* --- Responsive Mobile Menu --- */
.nav-toggle { display: none; }

.nav-toggle-label {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    padding: 10px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: #fff;
    height: 2px;
    width: 25px;
    position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after { content: ''; position: absolute; }
.nav-toggle-label span::before { bottom: 7px; }
.nav-toggle-label span::after { top: 7px; }

@media screen and (max-width: 768px) {
    .nav-toggle-label { display: block; }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        background: #111;
        width: 100%;
        height: 0; /* Hidden by default */
        overflow: hidden;
        transition: height 0.3s ease-in-out;
    }

    .nav-links ul {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    /* Show menu when checkbox is checked */
    .nav-toggle:checked ~ .nav-links {
        height: 250px;
    }
}
.back-navigation {
    margin-bottom: 30px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.btn-back .arrow {
    margin-right: 8px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-back:hover {
    color: #e60000; /* Goshen Red */
}

.btn-back:hover .arrow {
    transform: translateX(-5px); /* Subtle movement effect */
}
/* 1. The Container: Force it to stay full width of the card */
.image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3; /* Forces a professional rectangular shape (4:3 ratio) */
    overflow: hidden;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. The Image: Force it to fit the container perfectly */
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Use 'contain' to see the WHOLE image without cropping */
    /* OR use 'cover' if you want the image to fill the box completely without white space */
    display: block;
}

/* 3. The Card: Ensure the card itself doesn't shrink */
.card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures all cards in a row are equal height */
}
#productSearch:focus {
    border-color: #e60000; /* Goshen Red highlight */
    box-shadow: 0 0 8px rgba(230, 0, 0, 0.2);
    transition: 0.3s;
}
/* Floating WhatsApp Styling */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #e60000; /* Goshen Red */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.whatsapp-float:hover {
    background-color: #b30000; /* Darker red on hover */
    transform: scale(1.1);
    text-decoration: none;
}

/* Optional: Pulse Animation to catch the eye */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(230, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 0, 0, 0); }
}

.whatsapp-float {
    animation: pulse-red 2s infinite;
}
