:root {
    --primary-purple: #a29bfe;
    --soft-pink: #ff75a0;
    --glass: rgba(255, 255, 255, .7);
    --glass-border: rgba(255, 255, 255, .3);
    --bg-body: #f8f9fd;
    --pink: #ff75a0;
    --purple: #a29bfe;
    --border: rgba(255, 255, 255, .3);
    --dark: #2d3436;
    --grad: linear-gradient(135deg, #fdfcfb, #e2d1f9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background: var(--bg-body);
    padding-bottom: 90px;
}

a {
    text-decoration: none;
    color: #000;
}

header {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 15px 6%;
    position: sticky;
    top: 0;
    z-index: 2000;
}

.nav-top {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(to right, #6c5ce7, var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-toggle {
    font-size: 20px;
    cursor: pointer;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.search-container input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
}

.search-container i {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.voice-btn {
    position: absolute;
    right: 18px !important;
    font-size: 18px;
    color: #b2bec3;
    cursor: pointer;
    transition: 0.3s;
}

.voice-btn.active {
    color: var(--pink);
}

.desktop-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}

.desktop-links a {
    text-decoration: none;
    color: #666;
}

.desktop-links a:hover {
    color: var(--pink);
}

.nav-actions {
    display: flex;
    gap: 18px;
    font-size: 18px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100%;
    background: white;
    padding: 25px;
    z-index: 2100;
    transition: .4s;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    display: block;
    margin: 15px 0;
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.main-wrapper {
    display: flex;
    padding: 20px 4%;
    gap: 30px;
}

.sidebar {
    width: 280px;
    background: white;
    padding: 25px;
    position: fixed;
    left: -320px;
    top: 0;
    height: 100vh;
    z-index: 2100;
    border-radius: 0 30px 30px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
    transition: 0.4s ease;
}

.sidebar.active {
    left: 0;
}

.filter-btn {
    width: 100%;
    padding: 8px;
    border: none;
    background: #f1f1f1;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.check-item input {
    accent-color: var(--primary-purple);
    cursor: pointer;
}

.shop-main {
    flex: 1;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #888;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 22px;
    padding: 15px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.img-box {
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.img-box img {
    max-width: 99%;
}

.price {
    font-weight: 700;
    color: var(--soft-pink);
    margin: 12px 0;
    display: block;
}

.add-btn, .btn-cart {
    width: 100%;
    padding: 8px;
    border: none;
    background: #f1f1f1;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: block;
}

.product-card:hover .add-btn {
    background: var(--primary-purple);
    color: white;
}

.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 35px;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 2000;
}

.nav-item {
    text-align: center;
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
}

.nav-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 600;
}

.nav-item.active {
    color: var(--primary-purple);
}

.nav-item:hover {
    color: var(--soft-pink);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 2050;
}

.overlay.active {
    display: block;
}

.filter-close {
    display: none;
    cursor: pointer;
    font-size: 20px;
    color: #999;
}

#voiceOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

#voiceOverlay.active {
    display: flex;
}

.voice-box {
    text-align: center;
    color: white;
}

.voice-box p {
    margin-top: 15px;
    font-size: 18px;
}

.wave {
    width: 10px;
    height: 40px;
    background: #ff75a0;
    display: inline-block;
    margin: 0 4px;
    animation: wave 1s infinite ease-in-out;
    border-radius: 5px;
}

.wave:nth-child(2) {
    animation-delay: 0.2s;
}

.wave:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes wave {
    0% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.5); }
    100% { transform: scaleY(0.5); }
}

@media(max-width: 992px) {
    .filter-close { display: block; }
}

@media(max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .img-box { height: 140px; }
    .logo { font-size: 20px; }
}

@media only screen and (max-width: 370px) {
    .grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
}