:root {
    --primary: #FFB22C; /* Orange-Yellow from palette */
    --secondary: #000000; /* Black from palette */
    --accent: #854836; /* Dark Brown from palette */
    --bg-light: #F7F7F7; /* Very Light Gray from palette */
    --text-dark: #000000; /* Black from palette */
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body { background-color: var(--bg-light); color: var(--text-dark); overflow-x: hidden; }

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

/* HEADER */
.navbar {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand { font-size: 1.8rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.brand span { color: var(--secondary); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-item { 
    font-weight: 500; 
    font-size: 0.95rem; 
    cursor: pointer; 
    position: relative; 
    color: #006070; /* Darker, vivid Amazon Blue */
    text-shadow: 0 0 1px rgba(0,0,0,0.1); /* Subtle text shadow */
    transition: color 0.3s ease, font-weight 0.3s ease;
}
.nav-item:hover { 
    color: var(--primary); 
    font-weight: 600; /* Slightly bolder on hover */
}
/* Underline effect */
.nav-item::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px; /* Position below text */
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease-out;
}

.nav-item:hover::after {
    width: 100%;
}


.nav-actions { display: flex; gap: 1rem; align-items: center; }
.btn-auth { padding: 0.6rem 1.2rem; border-radius: 50px; font-size: 0.9rem; font-weight: 600; }
.btn-login { border: 1px solid var(--secondary); color: var(--secondary); }
.btn-login:hover { background: var(--secondary); color: var(--white); }
.btn-signup { background: var(--primary); color: var(--secondary); border: 1px solid var(--primary); }
.btn-signup:hover { background: #e09b24; color: var(--white); } /* Darker shade of primary */

/* DROPDOWN */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 10px 0;
    display: none;
    flex-direction: column;
    animation: fadeIn 0.2s ease;
}
.dropdown:hover .dropdown-menu { display: flex; }
.dropdown-item { padding: 10px 20px; font-size: 0.9rem; color: var(--text-dark); display: flex; align-items: center; gap: 10px; }
.dropdown-item:hover { background: var(--bg-light); color: var(--primary); }

/* MARQUEE */
.announcement { background: var(--secondary); color: var(--white); padding: 8px 0; font-size: 0.9rem; }

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5%;
    background: linear-gradient(135deg, #FFF8E1 0%, #F7F7F7 100%); /* Light Amber to Light Gray */
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero-content { max-width: 50%; z-index: 2; }
.hero-tag { color: #006070; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 1rem; display: block; }
.hero-title { font-size: 3.5rem; line-height: 1.2; font-weight: 800; margin-bottom: 1.5rem; color: var(--secondary); }
.hero-title span { color: var(--primary); }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.6; }

.hero-btns { display: flex; gap: 1rem; }
.btn-hero { padding: 1rem 2rem; border-radius: 50px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.btn-primary { background: var(--primary); color: var(--secondary); box-shadow: 0 10px 20px -10px var(--primary); }
.btn-primary:hover { color: var(--secondary); opacity: 0.9; }
.btn-outline { border: 2px solid var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: var(--white); }

.hero-image { position: relative; width: 45%; }
.hero-image img { width: 100%; animation: float 6s ease-in-out infinite; }

/* SEARCH BAR */
.search-container {
    margin: -30px auto 50px;
    background: var(--white);
    padding: 1rem;
    width: 80%;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}
.search-input { flex: 1; border: none; padding: 10px 20px; font-size: 1.1rem; outline: none; }
.search-btn { background: var(--secondary); color: var(--white); border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.search-btn:hover { background: var(--primary); color: var(--white); transform: rotate(90deg); }

/* SECTIONS */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.2rem; font-weight: 700; color: var(--secondary); }
.section-title p { color: var(--text-muted); margin-top: 0.5rem; }
.section-container { padding: 4rem 5%; }

/* PRODUCT CARD */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    border: 1px solid #f1f5f9;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.card-img-wrapper { position: relative; padding-top: 100%; /* 1:1 Aspect Ratio */ overflow: hidden; background: #f1f5f9; }
.card-img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.product-card:hover .card-img-wrapper img { transform: scale(1.1); }

.card-actions {
    position: absolute;
    top: 10px;
    right: -50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: 0.3s;
}
.product-card:hover .card-actions { right: 10px; }
.action-btn { width: 35px; height: 35px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); cursor: pointer; color: var(--text-dark); }
.action-btn:hover { background: var(--primary); color: var(--secondary); }

.card-info { padding: 1.5rem; }
.card-cat { font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 5px; }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price { font-size: 1.2rem; color: var(--primary); font-weight: 700; }
.card-rating { display: flex; gap: 2px; color: var(--accent); font-size: 0.9rem; margin-top: 5px; }

/* SPLIDE CUSTOM */
.splide__slide { padding: 15px; }
.splide__pagination { bottom: -30px; }
.splide__pagination__page.is-active { background: var(--primary); }

/* Splide Arrows Styling */
.splide__arrow {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    width: 2.5rem; /* Smaller width */
    height: 2.5rem; /* Smaller height */
    border-radius: 50%; /* Make it round */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    color: var(--white); /* Arrow color */
    opacity: 1; /* Ensure visibility */
}

.splide__arrow:hover {
    background: var(--primary); /* Highlight on hover */
    color: var(--secondary);
}

.splide__arrow svg {
    fill: currentColor; /* Use current color for SVG */
    width: 1.2em; /* Adjust SVG size */
    height: 1.2em;
}

/* Position arrows outside the track for better visibility */
.splide__arrow--prev {
    left: -3rem; /* Position to the left of the slider */
}

.splide__arrow--next {
    right: -3rem; /* Position to the right of the slider */
}

.splide__track {
    padding: 0 4rem; /* Add padding to make space for arrows outside */
}


/* CATEGORY GRID (Sections) */
.category-section { margin-bottom: 4rem; }
.cat-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; border-bottom: 2px solid #e2e8f0; padding-bottom: 1rem; }
.cat-title { font-size: 1.8rem; font-weight: 700; color: var(--secondary); display: flex; align-items: center; gap: 10px; }
.see-all { font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 5px; }
.see-all:hover { text-decoration: underline; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* FOOTER */
footer { background: var(--secondary); color: var(--white); padding: 4rem 5% 2rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h3 { font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--white); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b0b0b0; /* Light gray for better contrast on black */ }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.social-links { display: flex; gap: 1rem; }
.social-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.social-icon:hover { background: var(--primary); transform: translateY(-3px); color: var(--secondary); }

.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; color: #b0b0b0; font-size: 0.9rem; }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; }
    .nav-links { display: none; } /* Mobile menu needed, keeping simple for now */
    .hero { flex-direction: column-reverse; text-align: center; padding-top: 2rem; }
    .hero-content, .hero-image { width: 100%; max-width: 100%; }
    .hero-btns { justify-content: center; }
    .search-container { width: 95%; }
}