@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Sticky Navbar */
.navbar {
    background: #fff;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* LEFT - LOGO */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0;
    /* 👈 important */
}

/* CENTER - SEARCH */
.search-bar {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 20px;
}

.search-bar input {
    width: 100%;
    max-width: 500px;
    border-radius: 6px;
    border: none;
    background: #f0f0f5;
}


/* RIGHT - ICONS */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0;
}

.logo-area,
.nav-right {
    flex: 0 0 auto;
}

.menu-toggle {
    font-size: 24px;
    cursor: pointer;
}

.close-btn1 {
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
}

.close-btn1:hover {
    color: #000;
    transform: scale(1.2);
    transition: 0.2s;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
}

.logo span {
    color: #ff3f6c;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    margin-right: 20px;
    font-size: 14px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    background: #f0f0f5;
    padding: 8px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    width: 200px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 13px;
}

.new-collection-btn {
    background: #ff3f6c;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: left 0.3s ease;
}

.sidebar-header {
    background: #ff3f6c;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-links a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

/* Banner */
.banner {
    height: 350px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('bannertrends.png') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.banner h1 {
    font-size: 48px;
}

/* Grid Sections */
.cat-section {
    padding: 50px 5%;
}

.title {
    font-size: 26px;
    border-left: 5px solid #ff3f6c;
    padding-left: 15px;
    margin-bottom: 10px;
}

.sub-categories {
    color: #888;
    font-size: 14px;
    margin-bottom: 25px;
    cursor: pointer;
}

.sub-categories span:hover {
    color: #ff3f6c;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card img {
    aspect-ratio: 3/4;
    width: 100%;
    object-fit: cover;
}

.info {
    padding: 15px;
    text-align: center;
}

.info h3 {
    font-size: 15px;
    color: #444;
}

.info p {
    color: #ff3f6c;
    font-weight: 700;
    margin-top: 5px;
}

/* Mobile View */
@media (max-width: 768px) {

    .nav-links,
    .new-collection-btn {
        display: none;
    }

    .search-bar {
        display: flex;
        width: 100%;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .banner h1 {
        font-size: 28px;
    }

    .card img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

    .btn-group {
        display: flex;
        flex-direction: row;
        gap: 8px;
        width: 100%;              /* 🔥 ADD THIS */
    }

    .btn {
        flex: 1;
        width: 100%;              /* 🔥 CHANGE THIS */
        display: flex;            /* 🔥 ADD THIS */
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 8px;
        font-size: 11px;
        white-space: nowrap; 
    }

}

.btn-group {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* COMMON BUTTON */
.btn {
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    background: #333;
    color: white;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.btn i {
    font-size: 12px;
}

/* HOVER EFFECT */
.btn:hover {
    background: #000;
    transform: scale(1.05);
}

/* BUY NOW BUTTON */
.btn.buy {
    background: #ff3f6c;
}

.btn.buy:hover {
    background: #e6004c;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;

    overflow-y: auto;
    /* 🔥 MAIN FIX */
}

.modal-box {
    position: relative;
    background: white;
    padding: 20px;
    width: 350px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
}

.modal-box input,
.modal-box textarea,
.modal-box select {
    width: 100%;
    margin: 5px 0 10px;
    padding: 8px;
}

.place-btn {
    background: #ff3f6c;
    color: white;
    padding: 10px;
    width: 100%;
    border: none;
    margin-top: 10px;
    cursor: pointer;
}

.close-btn {
    background: #333;
    color: white;
    padding: 10px;
    width: 100%;
    border: none;
    margin-top: 5px;
    cursor: pointer;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step {
    padding: 10px;
    border-left: 5px solid #ccc;
    background: #f5f5f5;
    border-radius: 5px;
    opacity: 0.5;
    transition: 0.3s;
}

.step.active {
    border-left: 5px solid #4CAF50;
    background: #e8f5e9;
    opacity: 1;
    font-weight: bold;
}
#toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: 0.3s;
    z-index: 9999;
}

#toast.show {
    opacity: 1;
}
