/* --- Variables & Reset --- */
:root {
    --primary: #98CC55;       /* Electric Green */
    --primary-dark: #86b647;  /* Slightly darker for hover */
    --secondary: #001A70;     /* Midnight Blue */
    --secondary-dark: #001250;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f9fafb;
    --border-radius: 8px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: var(--border-radius); }

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
    box-shadow: 0 4px 6px rgba(152, 204, 85, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(152, 204, 85, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--white);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    background-color: var(--primary);
    color: var(--secondary);
}

.center-btn { text-align: center; margin-top: 40px; }

/* --- Top Bar & Navbar --- */
.top-bar {
    background-color: var(--secondary);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.top-links a { margin-left: 20px; color: rgba(255,255,255,0.8); }
.top-links a:hover { color: var(--white); }

.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary);
}
.logo img {
    /* Precise dimensions requested */
    width: 240px;
    height: 55px;
    
    /* UI/UX Best Practice: Prevents distortion if the source 
       image aspect ratio doesn't perfectly match 240:55 */
    object-fit: contain;
    
    /* Ensures the logo is vertically centered within the link */
    display: block;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Increase padding slightly to give the larger logo breathing room */
    padding: 10px 0;
}

/* Mobile Adjustment: Ensure the logo doesn't 
   overflow small screens */
@media (max-width: 480px) {
    .logo img {
        width: 180px; /* Scale down slightly for mobile */
        height: auto;
    }
}

.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    font-weight: 500;
    color: var(--secondary);
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary-dark); }

.nav-icons { display: flex; gap: 20px; align-items: center; color: var(--secondary); }
.mobile-toggle { display: none; cursor: pointer; font-size: 1.2rem; }

/* --- Hero Section --- */
.hero {
    /* Keep height, or reduce it to 'auto' / specific pixel height if you want it to shrink to the image size */
    height: 80vh; 
    min-height: 500px;
    
    /* CHANGE: 'cover' -> 'contain' ensures the whole image is visible */
    background: url('https://www.sefiles.net/images/library/site/SE_LIB_HH1920x640_ValentinesDay21-bg.jpg?t=1769717611899') center / contain no-repeat;
    
    /* ADDED: A background color to fill the empty space around the contained image */
    background-color: #000; /* Change this hex code to match the image background if needed */
    
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 26, 112, 0.4); /* Blue overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero .highlight { color: var(--primary); }

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --- Categories Grid --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cat-card {
    height: 300px;
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    transition: var(--transition);
}

.cat-card:hover::before { background: linear-gradient(to top, rgba(0,0,0,0.5), transparent); }

.cat-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cat-content h3 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* --- Product Slider (Modern Snap Scroll) --- */
.product-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.product-slider::-webkit-scrollbar { display: none; }

.product-card {
    min-width: 280px;
    flex: 0 0 280px;
    scroll-snap-align: center;
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
}

.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

.product-card .badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--primary);
    color: var(--secondary);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
}

.product-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 15px;
}

.p-details h4 {
    font-family: var(--font-heading);
    color: var(--secondary);
    margin-bottom: 5px;
}

.stars { color: #f5c518; font-size: 0.9rem; margin-bottom: 10px; }
.rating-count { color: #999; font-size: 0.8rem; }

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.product-card button { width: 100%; }

/* --- Info Cards Grid --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    position: relative;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
}

.info-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.info-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-content h3 { color: var(--white); font-family: var(--font-heading); }

/* --- Split Feature Sections --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.split-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.split-image img {
    box-shadow: 20px 20px 0px rgba(152, 204, 85, 0.2); /* Offset backing */
    border-radius: 12px;
}

/* --- Newsletter Bar --- */
.newsletter-bar {
    background-color: var(--primary);
    padding: 40px 0;
    text-align: center;
}

.newsletter-bar h3 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.newsletter-bar form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
}

.newsletter-bar button {
    padding: 12px 30px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* --- Footer --- */
.footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 80px 0 20px;
    /* Optional geometric pattern for footer bg */
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer p, .footer a {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: block;
}

.footer a:hover { color: var(--primary); }

.social-icons { margin-top: 20px; }
.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--white);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.8rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav-links, .nav-icons a:not(:last-child) { display: none; }
    .mobile-toggle { display: block; }
    
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .split-image.order-2 { order: -1; } /* Image on top for mobile */
    
    .hero { height: 60vh; }
    .hero h1 { font-size: 2.5rem; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}