/* =======================================================
   1. COLOR PALETTE & VARIABLES
   ======================================================= */
:root {
    --primary-green: #127A75;  
    --hover-green: #1B9C96;    
    --earth-brown: #5D4037;    
    --pure-white: #FFFFFF;     
    --off-white: #F0F8F8;      
}

/* =======================================================
   2. GLOBAL RESETS
   ======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

body {
    background-color: var(--pure-white);
    color: var(--earth-brown);
    line-height: 1.6;
}

/* =======================================================
   3. HEADER STYLING
   ======================================================= */
header {
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    padding: 15px 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--earth-brown);
}

.logo img {
    height: 50px;
    cursor: pointer;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
    display: block;
}

/* --- FIXED NAVBAR SPACING --- */
.navbar {
    margin-left: 40px;
    /* This creates the perfect equal gap */
    display: flex;
    align-items: center;
    gap: 40px; 
}

.navbar a {
    color: var(--pure-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;
    /* REMOVED: margin-right (Gap handles it now) */
}

.navbar a:hover {
    color: #A0E0DC;
}

/* User Actions (Right Side) */
.user-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto; 
}

/* Dropdown (Account) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: var(--pure-white);
    border: 1px solid var(--pure-white);
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dropbtn:hover {
    background-color: var(--earth-brown);
    border-color: var(--earth-brown);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--pure-white);
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    border-top: 3px solid var(--earth-brown);
}

.dropdown-content a {
    color: var(--earth-brown);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Cart Icon */
.cart-icon {
    color: var(--pure-white);
    font-size: 22px;
    position: relative;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--earth-brown);
    color: var(--pure-white);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    border: 1px solid var(--pure-white);
}

/* =======================================================
   4. SLIDER SECTION
   ======================================================= */
.slider-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    overflow: hidden;
    border-bottom: 5px solid var(--primary-green);
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.text {
    background-color: rgba(18, 122, 117, 0.9); 
    color: var(--pure-white);
    font-size: 24px;
    font-weight: 300;
    padding: 15px 30px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    border-radius: 5px;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* =======================================================
   5. TOP SELLERS & PRODUCTS
   ======================================================= */
.top-sellers {
    padding: 40px 50px;
    background-color: var(--pure-white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.section-header h2 {
    color: var(--primary-green);
    font-size: 28px;
    font-weight: 700;
}

.view-all-btn {
    text-decoration: none;
    color: var(--earth-brown);
    font-weight: bold;
    font-size: 14px;
    border: 1px solid var(--earth-brown);
    padding: 8px 15px;
    border-radius: 20px;
    transition: 0.3s;
}

.view-all-btn:hover {
    background-color: var(--earth-brown);
    color: var(--pure-white);
}

.product-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 18px;
    color: var(--earth-brown);
    margin: 10px 0;
    height: 44px;
    overflow: hidden;
}

.price {
    font-size: 18px;
    color: var(--primary-green);
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.add-btn {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.add-btn:hover {
    background-color: var(--hover-green);
}

@media screen and (max-width: 768px) {
    .product-row {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* =======================================================
   6. FOOTER STYLING
   ======================================================= */
.site-footer {
    background-color: var(--earth-brown);
    color: var(--pure-white);
    padding-top: 50px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px 40px 20px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin: 10px 20px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #A0E0DC; 
    border-bottom: 2px solid var(--primary-green);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #f0f0f0;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #A0E0DC;
    padding-left: 5px;
}

.social-icons a {
    color: white;
    font-size: 18px;
    margin-right: 15px;
    transition: 0.3s;
    background-color: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 50%;
}

.social-icons a:hover {
    background-color: var(--primary-green);
}

.footer-bottom {
    background-color: #3e2b25;
    text-align: center;
    padding: 15px;
    font-size: 13px;
    color: #aaa;
    border-top: 1px solid rgba(255,255,255,0.1);
}


/* =======================================================
   8. STORE DROPDOWN MENU (MEGA MENU)
   ======================================================= */
/* The Container for the Store Link */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* The Box that appears when you hover */
.nav-dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    left: 0;
    top: 100%; /* Appears directly below the link */
    background-color: var(--pure-white);
    min-width: 450px; /* Wide enough for 2 columns */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-top: 4px solid var(--earth-brown);
    padding: 20px;
    border-radius: 0 0 5px 5px;
    cursor: default;
}

/* Show the menu when hovering over the container */
.nav-dropdown:hover .nav-dropdown-content {
    display: flex; /* Makes the columns sit side-by-side */
    gap: 30px;     /* Space between columns */
}

/* Style for the Columns (Pharmaceutical / Personal Care) */
.nav-column {
    flex: 1; /* Makes columns equal width */
}

.nav-column h3 {
    color: var(--primary-green);
    font-size: 16px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Style for the links inside the menu */
.nav-column a {
    color: var(--earth-brown) !important; /* Force dark color */
    padding: 8px 0;
    text-decoration: none;
    display: block;
    font-size: 14px;
    margin: 0;
    font-weight: 400; /* Regular weight, not bold */
    text-transform: none; /* Normal capitalization */
    border: none;
}

.nav-column a:hover {
    color: var(--primary-green) !important;
    padding-left: 5px; /* Slide effect */
    background: transparent;
    border: none;
}




