/* =====================================================
   GLOBAL RESET
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    padding-top: 70px; /* Space for fixed navbar */
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

/* =====================================================
   NAVBAR 
===================================================== */

/* ================= NAVBAR ================= */
.main-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: #b3cad0;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    max-width: 1300px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo {
    height: 320px;
    width: auto;
}

/* Nav Content Layout */
.nav-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

/* Left & Right Menus */

/* Nav Links */
.nav-left a {
    position: relative;
    text-decoration: none;
    color: black; /* change if needed */
    font-weight: 500;
    padding: 5px 0;
}

/* Underline effect */
.nav-left a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: black; /* underline color */
    transition: width 0.3s ease;
}

/* Hover animation */
.nav-left a:hover::after {
    width: 100%;
}
.nav-left,
.nav-right {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-left li,
.nav-right li {
    margin-left: 20px;
    margin-top: 5px;
}

.nav-left a,
.nav-right a {
    text-decoration: none;
    color: #131517;
    font-weight: 500;
    position: relative;
    transition: 0.3s ease;

}

.nav-left a:hover,
.nav-right a:hover {
    color: #07a4ff;
}

/* Logout color */
.logout-link {
    color: #ff4d4d;
}

/* ================= SEARCH ================= *//* SEARCH WRAPPER */

.search-box{
position:relative;
width:40%;
}

/* SEARCH FORM */

.search-form{
display:flex;
align-items:center;
width:100% !important;
background:#fff;
border-radius:30px;
border:1px solid #ddd;
overflow:hidden;
}

/* INPUT */

.search-form input{
flex:1;
padding:12px 18px;
border:none;
outline:none;
font-size:14px;
}

/* BUTTON */

.search-form button{
width:50px;
height:50px;
border:none;
background:#ffc107;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
}

.search-form button i{
font-size:16px;
}

/* SEARCH RESULT DROPDOWN */

#search-result{
position:absolute;
top:105%;
left:0;
width:100%;
background:#fff;
border:1px solid #ddd;
border-radius:6px;
display:none;
z-index:9999;
max-height:400px;
overflow-y:auto;
box-shadow:0 6px 20px rgba(0,0,0,0.15);
}

/* SEARCH ITEM */

.search-item{
display:flex;
align-items:center;
gap:12px;
padding:10px 14px;
cursor:pointer;
border-bottom:1px solid #eee;
text-decoration:none;
color:#333;
}

.search-item img{
width:40px;
height:40px;
object-fit:contain;
}

.search-item:hover{
background:#f7f7f7;
}

/* TEXT INFO */

.search-info{
display:flex;
flex-direction:column;
}

.search-name{
font-size:14px;
font-weight:500;
}

.search-category{
font-size:12px;
color:#0a66c2;
}

.cart-link{
position:relative;
display:flex;
align-items:center;
gap:6px;
font-size:18px;
}

.cart-count{
background:red;
color:white;
font-size:12px;
padding:2px 6px;
border-radius:50%;
font-weight:bold;
}
.cart-btn{
background:#ff6a00;
color:white;
padding:10px 18px;
border:none;
border-radius:6px;
font-weight:600;
cursor:pointer;
text-decoration:none;
display:inline-block;
}

.cart-btn:hover{
background:#e65c00;
}



/* ================= MOBILE ================= */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* Responsive */
@media (max-width: 992px) {

    .menu-toggle {
        display: block;
    }

    .nav-content {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        background: #85c9c9;
        flex-direction: column;
        padding: 20px;
        transition: 0.4s ease;
    }

    .nav-content.active {
        left: 0;
    }

    .nav-left,
    .nav-right {
        flex-direction: column;
        margin: 15px 0;
    }

    .search-form {
        width: 100%;
        margin: 15px 0;
    }

    .nav-left li,
    .nav-right li {
        margin: 10px 0;
    }
}
/* =====================================================
   CATEGORY BAR FINAL
===================================================== */

.category-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    position: relative;   
}

/* Scroll Wrapper */
.category-wrapper {
    display: flex;
    align-items: center;
    gap: 100px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 50px;   
}

.category-wrapper::-webkit-scrollbar {
    display: none;
}

/* Category Item */
.category-item {
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease;
}

.category-item i {
    font-size: 22px;
    display: block;
    margin-bottom: 5px;
    color: #444;
}

.category-item span {
    font-size: 13px;
    font-weight: 500;
}

.category-item:hover i,
.category-item:hover span {
    color: #2874f0;
}

/* ================= Scroll Buttons ================= */

.cat-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #55585c;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: 0.3s ease;
}

.cat-scroll-btn.left {
    left: 10px;
}

.cat-scroll-btn.right {
    right: 10px;
}

.cat-scroll-btn:hover {
    background: #1f5fd1;
}

/* ===============================
   SEARCH BAR
================================= */

.search-form {
    width: 45%;
    position: relative;
}

.search-input {
    border-radius: 4px 0 0 4px;
    border: none;
    padding: 8px 12px;
}

.search-input:focus {
    box-shadow: none;
}

.search-btn {
    background: #ffc107;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 8px 15px;
}

.search-btn:hover {
    background: #e0a800;
}

/* Responsive */
@media (max-width: 991px) {
    .search-form {
        width: 100%;
        margin: 10px 0;
    }
}

/* ===============================
   HERO SLIDER
================================= */

.hero-slider {
    position: relative;
    margin-bottom: 20px;
}

.carousel-fade .carousel-item {
    transition: opacity 1s ease-in-out;
}

.slider-img {
    height: 540px;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.453);
    display: flex;
    align-items: center;        /* vertical center */
    justify-content: center;    /* ✅ horizontal center */
    text-align: center;    
    color: #fff;
}

.slider-overlay h1 {
    font-size: 40px;
    font-weight: 700;
}

.slider-overlay p {
    font-size: 18px;
    margin: 15px 0;
}

@media(max-width:768px){
    .slider-img {
        height: 250px;
    }

    .slider-overlay h1 {
        font-size: 24px;
    }
}

.slider-overlay h1,
.slider-overlay p,
.slider-overlay .btn {
    animation: slideUp 0.01s ease forwards;
    opacity: 0;
}

.carousel-item.active .slider-overlay h1,
.carousel-item.active .slider-overlay p,
.carousel-item.active .slider-overlay .btn {
    opacity: 1;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===============================
   SLIDER INDICATORS
================================= */

.carousel-indicators {
    bottom: 15px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    border: none;
    margin: 0 5px;
    transition: 0.3s ease;
}

.carousel-indicators .active {
    background-color: #ffc107;
    transform: scale(1.2);
}





/* ===============================
   TRENDING SECTION
================================= */
/* ================= TRENDING FIX ================= */

.flipkart-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.flipkart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Fixed Image Area */
.product-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #fff;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* Important */
    padding: 10px;
}

/* Make button stay bottom */
.flipkart-card .p-2 {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* ===============================   SUGGESTED PRODUCTS SECTION
================================= */

.suggestion-section {
    position: relative;
    padding: 20px;
}

.suggestion-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px;
}

.suggestion-container::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: orange;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

/* ================= TOP DEALS ================= */

.deal-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.deal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.deal-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.deal-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff3d00;
    color: #fff;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 6px;
}

.deal-content {
    padding: 15px;
    text-align: center;
}

.deal-price {
    font-size: 18px;
    font-weight: 600;
    color: #d32f2f;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    margin-left: 8px;
    font-size: 14px;
}


/* ================= FEATURED PRODUCTS FINAL ================= */

.simple-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s ease;
    padding: 6px;
    height: 800%;
}

.simple-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Image */
.simple-img {
    height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.simple-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Text */
.simple-name {
    font-size: 20px;
    height: 34px;
    overflow: hidden;
    margin-top: 6px;
    color: #333;
}

.rating {
    font-size: 12px;
    color: #388e3c;
    margin: 3px 0;
}

.rating span {
    font-size: 11px;
    color: #777;
}

.simple-price {
    font-size: 14px;
    font-weight: 600;
}



/* =====================================================
   FOOTER
===================================================== */
footer {
    background: linear-gradient(135deg, #0f172a, #020617);
    color: #cbd5f5;
    padding: 50px 0 25px;
    font-family: 'Segoe UI', Arial;
}

/* Headings */
footer h5 {
    font-weight: 600;
    margin-bottom: 18px;
    color: #fff;
}

/* Links */
footer a {
    color: #cbd5f5;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #22c55e;
    padding-left: 6px;
}

/* Divider */
footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 25px 0;
}

/* ===============================
   SOCIAL ICONS 🔥
================================= */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon i {
    font-size: 16px;
    color: #cbd5f5;
    transition: 0.3s;
}

/* Hover Effect */
.social-icon:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Brand Colors */
.social-icon.facebook:hover {
    background: linear-gradient(45deg, #1877f2, #0a58ca);
}
.social-icon.facebook:hover i {
    color: white;
}
.social-icon.instagram:hover {
    background: linear-gradient(
        45deg,
        #feda75,
        #fa7e1e,
        #d62976,
        #962fbf,
        #4f5bd5
    );
}

.social-icon.instagram:hover i {
    color: white;
}
.social-icon.youtube:hover {
    background: linear-gradient(45deg, #ff0000, #cc0000);
}
.social-icon.youtube:hover i {
    color: white;
}
.social-icon.whatsapp:hover {
    background: linear-gradient(45deg, #25d366, #128c7e);
}
.social-icon.whatsapp:hover i {
    color: white;
}


/* Glow Effect */
.social-icon:hover {
    background: rgba(255,255,255,0.1);
}
.social-icon:hover {
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}



/* Title Gradient */
.amlora-title {
    font-size: 30px;
    font-weight: 800;

    background: linear-gradient(90deg, #facc15, #f59e0b);

    /* Required for gradient text */
    -webkit-background-clip: text;
    background-clip: text;

    /* Make text transparent to show gradient */
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Tagline */
.amlora-tagline {
    font-size: 14px;
    color: #9ca3af;
    margin: 6px 0;
}

.amlora-tagline span {
    color: #ffd900;
    font-weight: 600;
}

/* Description */
.amlora-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e1;
}

/* CTA */
.amlora-cta {
    font-size: 14px;
    color: #facc15;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.amlora-cta span {
    margin-right: 6px;
}

/* Hover Effect */
.amlara-title:hover {
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
}
/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991px) {

    body {
        padding-top: 65px;
    }

    .nav-link {
        margin-left: 0;
        padding: 8px 0;
    }

    .main-banner {
        height: 220px;
        text-align: center;
    }

    .category-wrapper {
        gap: 25px;
    }

    footer {
        text-align: center;
    }
}

/* ===== ADVANCED SUCCESS TOAST (FIXED UI) ===== */
.success-toast {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    min-width: 320px;
    max-width: 90%;
    padding: 16px 22px;

    /* 🔥 DARK GLASS EFFECT */
    background: rgba(15, 23, 42, 0.85); /* dark glass */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(34, 197, 94, 0.4);

    color: #e5e7eb;
    font-weight: 500;
    border-radius: 16px;

    box-shadow: 
        0 20px 40px rgba(0,0,0,0.35),
        0 0 20px rgba(34,197,94,0.2);

    display: flex;
    align-items: center;
    gap: 14px;

    z-index: 99999;

    animation: toastIn 0.6s ease forwards,
               toastOut 0.5s ease 4s forwards;
}

/* ICON */
.success-toast .icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;

    box-shadow: 0 0 12px rgba(34,197,94,0.7);
}

/* TEXT */
.success-toast .text {
    flex: 1;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* PROGRESS BAR */
.success-toast::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    animation: progressBar 4s linear forwards;
}

/* ENTRY ANIMATION */
@keyframes toastIn {
    0% {
        top: -120px;
        opacity: 0;
        transform: translateX(-50%) scale(0.9);
    }
    60% {
        top: 25px;
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
    100% {
        top: 20px;
        transform: translateX(-50%) scale(1);
    }
}

/* EXIT */
@keyframes toastOut {
    to {
        opacity: 0;
        top: -120px;
    }
}

/* PROGRESS */
@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    font-size: 26px;
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    border-radius: 50%;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.7);
    transition: all 0.3s ease;
    animation: pulse 1.8s infinite;
}

/* Hover effect */
.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(37, 211, 102, 1),
                0 0 40px rgba(37, 211, 102, 0.8);
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}