/* --- VARIABLES (Update colors here easily) --- */
:root {
    --primary-color: #000000;  /* Black from logo */
    --accent-color: #DC9814;   /* Gold/Orange from reference site */
    --text-color: #333333; 
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --font-alt: 'Quicksand', sans-serif;
    --border-radius: 8px;
}

/* --- RESET & GLOBAL --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); color: var(--text-color); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 60px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 40px; font-weight: 800; text-transform: uppercase; }

/* --- TOP BAR --- */
.top-bar { background: var(--light-bg); padding: 10px 0; font-size: 0.9rem; border-bottom: 1px solid #eee; }
.top-bar .top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    text-align: center;
}
.top-bar-content .phone-number {
    font-weight: 800; /* Makes the phone number bold */
}
.top-bar-content .free-ship-notice {
    color: #3BB54A; /* Green accent color */
    font-weight: 800; /* Makes it bold */
}
.top-bar-content .free-ship-notice i {
    margin-right: 8px; /* Adds space between truck and text */
}

/* --- HEADER --- */
.site-header { 
    padding: 10px 0; /* Reduced padding for a tighter look */
    position: sticky; 
    top: 0; 
    background: var(--white); 
    z-index: 100; 
    border-bottom: 1px solid #eee; /* Subtle bottom border */
}
.header-flex {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Left, Center (auto-width), Right */
    align-items: center;
    gap: 20px;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.logo img { max-height: 60px; /* Increased logo size */ }
.logo-2 img { max-height: 60px; } /* Styles the second logo */

.main-nav ul { 
    display: flex; 
    gap: 25px; /* Reduced gap between nav items */
}
.main-nav a { font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }
.main-nav a:hover { color: var(--accent-color); }
.header-right { 
    display: flex; 
    justify-content: flex-end; /* Aligns icons to the far right */
    gap: 20px; font-size: 1.2rem; 
}
.cart-icon { position: relative; }
.cart-count { position: absolute; top: -8px; right: -8px; background: var(--accent-color); color: var(--white); font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* --- HERO SECTION --- */
.hero {
    position: relative; /* Needed for the overlay */
    height: 75vh; /* A bit taller for more impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden; /* Hides any video overflow */
}
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Places it behind the content */
    background: rgba(0,0,0,0.5); /* Dark overlay for text readability */
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the area */
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Soft shadow for readability */
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Soft shadow for readability */
}
.hero-buttons { display: flex; gap: 20px; justify-content: center; }
.hero-buttons .btn { text-shadow: 0 1px 5px rgba(0,0,0,0.4); } /* Shadow for button text */


/* --- BUTTONS --- */
.btn { padding: 12px 30px; border-radius: 50px; font-weight: 600; text-transform: uppercase; display: inline-block; cursor: pointer; }
.btn-primary { background: var(--accent-color); color: var(--white); border: 2px solid var(--accent-color); }
.btn-primary:hover { background: transparent; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary-color); }
.btn-cart { width: 100%; background: var(--primary-color); color: var(--white); border-radius: var(--border-radius); margin-top: 10px; font-size: 0.9rem; }
.btn-cart:hover { background: var(--accent-color); }

/* --- CATEGORIES --- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.cat-card { height: 250px; background-size: cover; background-position: center; border-radius: var(--border-radius); overflow: hidden; position: relative; }
.cat-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--white); transition: 0.3s; }
.cat-card:hover .cat-overlay { background: rgba(0,0,0,0.2); }
.cat-overlay h3 { font-size: 1.8rem; margin-bottom: 10px; }
.cat-overlay a { font-weight: 600; border-bottom: 2px solid var(--accent-color); }

/* --- PRODUCTS --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.product-card { border: 1px solid #eee; border-radius: var(--border-radius); overflow: hidden; transition: 0.3s; }
.product-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.1); transform: translateY(-5px); }
.product-image { height: 280px; position: relative; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent-color); color: var(--white); padding: 5px 10px; font-size: 0.7rem; font-weight: bold; border-radius: 4px; }
.badge.sale { background: red; }
.product-info { padding: 20px; text-align: center; }
.product-info .category { font-size: 0.8rem; color: #888; text-transform: uppercase; }
.product-info h4 { font-size: 1rem; margin: 5px 0; }
.product-info .price { font-weight: 800; font-size: 1.1rem; color: var(--primary-color); }
.product-info .price del { color: #aaa; font-size: 0.9rem; margin-right: 5px; font-weight: 400; }

/* --- FEATURES / TRUST --- */
.features { background: var(--light-bg); padding: 50px 0; margin-top: 50px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; gap: 30px; }
.feature-item i { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 15px; }
.feature-item h4 { margin-bottom: 10px; font-weight: 700; }

/* --- FOOTER --- */
footer { background: #222; color: #ccc; padding-top: 60px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-col h3 { color: var(--white); margin-bottom: 20px; }
.footer-col a { display: block; margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent-color); }
.copyright { border-top: 1px solid #333; text-align: center; padding: 20px 0; font-size: 0.9rem; }

/* --- MOBILE RESPONSIVE --- */
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 992px) {
    .header-flex {
        grid-template-columns: auto 1fr auto; /* Logo, Nav, Icons */
        gap: 15px;
    }
    .main-nav ul { gap: 15px; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }
    .category-grid, .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .footer-content { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
}

@media (max-width: 768px) { /* Tablet and smaller phones */
    .mobile-toggle { display: block; }
    .header-flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .header-left { order: 1; } /* Keep logo on left */
    .header-right { order: 2; display: flex; gap: 10px; font-size: 1.1rem; margin-left: auto; margin-right: 15px; }
    .mobile-toggle { order: 3; margin-left: 0; } /* Move toggle to the right */
    
    .main-nav { display: none; position: absolute; top: 80px; left: 0; width: 100%; background: var(--white); box-shadow: 0 5px 10px rgba(0,0,0,0.1); border-top: 1px solid #eee; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; padding: 20px; gap: 15px; }
    
    .hero { height: 60vh; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    
    .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 0 10px; }
    .feature-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .top-bar .top-bar-content { flex-direction: column; text-align: center; gap: 5px; }
}

@media (max-width: 480px) { /* Extra small phones */
    .site-header { padding: 8px 0; }
    .logo img, .logo-2 img { max-height: 50px; }
    .header-right { gap: 10px; font-size: 1rem; }
    .hero { height: 50vh; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 0.9rem; }
    .hero-buttons .btn { padding: 10px 20px; font-size: 0.9rem; }
    
    .section-title { font-size: 2rem; margin-bottom: 30px; }
    .category-grid, .product-grid { grid-template-columns: 1fr; gap: 15px; padding: 0 15px; }
    .product-image { height: 250px; }
    .product-info h4 { font-size: 0.9rem; }
    .product-info .price { font-size: 1rem; }
    .btn-cart { padding: 10px; font-size: 0.8rem; }
    
    .feature-item h4 { font-size: 1rem; }
    .footer-col h3 { font-size: 1.2rem; }
    .footer-col a { font-size: 0.9rem; }
    .copyright p { font-size: 0.8rem; }
}

/* --- SEARCH STYLES --- */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 15px;
}

#search-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
    font-size: 0.9rem;
    outline: none;
}

#search-input:focus {
    border-color: var(--accent-color);
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-dropdown a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

.search-dropdown a:hover {
    background: #f9f9f9;
}

@media (max-width: 768px) {
    .search-container {
        display: flex;
    }
    #search-input {
        width: 120px;
    }
}