/* Base & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /* Subtle, minimal gradient: pure white to a very faint hint of theme green */
    background: linear-gradient(135deg, #ffffff 0%, #a9c9b4 50%, #91e6b3 100%);
    color: #333;
    min-height: 100vh; /* Ensures the gradient stretches the full height of the screen */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Top Header */
.top-header {
    padding: 1.5rem 5%;
    border-bottom: 1px solid rgba(234, 234, 234, 0.5); /* Softened border */
    
    position: sticky;
    top: 0;
    /* Makes the header slightly transparent with a beautiful blur behind it */
    background-color: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); /* For Safari support */
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between; /* Pushes the logo left and cart right */
    align-items: center;
    width: 100%; /* Ensures the container takes up the full screen width */
    max-width: 1400px;
    margin: 0 auto;
}

.logo-img {
    height: 45px; /* Adjust height to fit your navbar */
    width: auto;  /* Maintains aspect ratio */
    display: block;
    object-fit: contain;
}
/* Search Bar */
.search-bar {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    width: 50%;
}

.search-select {
    padding: 0.8rem;
    border: none;
    background-color: #f8f8f8;
    border-right: 1px solid #ccc;
    outline: none;
    color: #555;
}

.search-bar input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    outline: none;
}

.search-btn {
    padding: 0 1.2rem;
    background: white;
    border: none;
    cursor: pointer;
    color: #555;
}

/* Header Icons */
.header-icons {
    margin-left: auto; /* Guarantee fix: Forces the cart icon to the absolute right */
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.5rem; /* Makes the cart icon slightly larger and easier to click */
}

.cart-icon { position: relative; }
#cart-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Main Navigation & Dropdown */
.main-nav {
    border-bottom: 1px solid #eaeaea;
    background: #fff;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu > li > a {
    display: block;
    padding: 1rem 0;
    font-weight: 500;
    color: #0056b3; /* Primary link color */
    font-size: 0.95rem;
}

.nav-menu > li > a i { font-size: 0.7rem; margin-left: 3px; }

/* Dropdown specific styles */
.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 10;
    border: 1px solid #eee;
}

.dropdown:hover .dropdown-content { display: block; }

.dropdown-content li a {
    padding: 12px 16px;
    display: block;
    color: #0056b3;
    border-bottom: 1px solid #f5f5f5;
}
.dropdown-content li a:hover { background-color: #f9f9f9; }

.track-order a {
    color: #e74c3c;
    font-weight: 500;
}

/* Common Section Styles */
section { padding: 3rem 5%; max-width: 1400px; margin: 0 auto; }

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    font-weight: 400;
    font-size: 1.5rem;
    color: #0056b3;
}

.view-all {
    font-size: 0.9rem;
    color: #666;
    text-decoration: underline;
}

/* Collections (Circles) */
.collection-row {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.collection-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.circle-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #f4f4f5;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #555;
    transition: transform 0.3s;
}

.collection-item:hover .circle-img { transform: scale(1.05); }
.collection-item span { color: #0056b3; font-weight: 500; }

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Base Product Card */
.product-card {
    background: #fff;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea; /* Adds a faint border */
    border-radius: 6px;
    
    /* This makes the hover animation smooth instead of instant */
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

/* New Hover Effect */
.product-card:hover {
    transform: translateY(-8px); 
    /* This creates a soft shadow using your specific theme green (#1a5632) */
    box-shadow: 0 12px 20px rgba(26, 86, 50, 0.25); 
    /* Changes the border to match the green shadow */
    border-color: #1a5632; 
}

.product-placeholder {
    height: 180px;
    background-color: #f4f4f5;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    flex-grow: 1; /* Pushes button to bottom */
}

.product-price {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
}

.add-cart-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #1a5632; /* Deep green for buttons as requested in layout */
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.add-cart-btn:hover { background-color: #123e24; }
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between logo and text */
    text-decoration: none;
}

.logo-img {
    height: 42px; /* Adjust height to match text scale */
    width: auto;
    display: block;
    object-fit: contain;
}

.logo h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #333333;
    margin: 0;
    letter-spacing: 0.5px;
}
/* Cart Page Specific Styles */
.cart-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eaeaea;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.cart-item-info i {
    font-size: 1.5rem;
    color: #0056b3;
}

.cart-item-price {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.remove-btn {
    background: #fff;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.remove-btn:hover {
    background: #e74c3c;
    color: white;
}

.cart-summary {
    text-align: right;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #eaeaea;
}

.cart-summary h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.checkout-btn {
    padding: 1rem 2.5rem;
    background-color: #1a5632;
    color: white;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
/* =========================================
   Footer Styles
   ========================================= */
   .site-footer {
    background-color: #1a1a1a;
    color: #f4f4f5;
    padding: 4rem 5% 1rem 5%;
    margin-top: 4rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid #333;
    padding-bottom: 3rem;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-col p {
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Contact Info Specifics */
.contact-info li {
    display: flex;
    gap: 15px;
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-info i {
    color: #1a5632; /* Matches your checkout button green */
    font-size: 1.1rem;
    margin-top: 3px;
}

/* Footer Bottom Bar */
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    color: #777;
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
/* Cart Actions (Buttons side-by-side) */
.cart-actions {
    display: flex;
    justify-content: flex-end; /* Pushes both buttons to the right */
    align-items: center;
    gap: 2rem; /* Space between the two buttons */
    margin-top: 1rem;
}

/* Return to Home Button */
.return-home-btn {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.return-home-btn:hover {
    color: #1a5632; /* Matches your theme green on hover */
    text-decoration: underline;
}

/* Mobile Responsiveness for Cart Buttons */
@media (max-width: 768px) {
    .cart-actions {
        flex-direction: column-reverse; /* Stacks buttons on mobile */
        gap: 1rem;
    }
    
    .checkout-btn {
        width: 100%; /* Makes checkout button full width on phones */
    }
}
/* Product Image Styling */
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the box without distorting */
    border-radius: 4px;
}

/* Cart Image Styling */
.cart-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eaeaea;
}

/* Remove the gray background from the placeholder since we have real photos now */
.product-placeholder {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    background-color: transparent; 
}
/* =========================================
   Category Filters
   ========================================= */
   .category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background-color: #f4f4f5;
    color: #333;
    border: 1px solid #eaeaea;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e0e0e0;
}

/* Active State for the selected category */
.filter-btn.active {
    background-color: #1a5632;
    color: #fff;
    border-color: #1a5632;
    box-shadow: 0 4px 10px rgba(26, 86, 50, 0.2);
}
.filter-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-3px); /* Lifts the button slightly */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds a soft drop shadow */
}

/* Active Category Button Hover (Darker Green) */
.filter-btn.active:hover {
    background-color: #123e24; 
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(26, 86, 50, 0.3); /* Green tinted shadow */
}

/* 2. Add to Cart Button Hover */
.add-cart-btn {
    transition: all 0.3s ease; /* Smooths out the animation */
}

.add-cart-btn:hover { 
    background-color: #123e24; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 86, 50, 0.2);
}

/* 3. Secure Checkout Button Hover (Cart Page) */
.checkout-btn {
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background-color: #123e24;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(26, 86, 50, 0.3);
}