/* Bold Glassmorphism Theme */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.25);
    --card-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --text-color: #2d3436;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    background-color: #a18cd1;
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    z-index: -1;
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glass Utility Classes */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.75);
}

.header-glass {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.nav-glass .nav-link {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    margin: 0 5px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.nav-glass .nav-link.active {
    background: white;
    color: #ae67d0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.form-control-glass {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #333;
}

.form-control-glass:focus {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}

/* Category Sidebar */
.category-item {
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.4);
    color: #444;
    transition: all 0.2s;
    cursor: pointer;
    font-weight: 500;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.7);
    padding-left: 20px;
}

.category-item.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 10px rgba(118, 75, 162, 0.4);
}

/* Product Cards */
.product-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 15px;
}

.product-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2d3436;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #e84393;
}

/* Modal */
.glass-modal {
    background: rgba(45, 52, 54, 0.85);
    /* Dark Modal */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
}

.glass-modal .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.glass-modal .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Logo */
.logo-img {
    max-height: 80px;
    border-radius: 15px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    padding: 6px 20px;
    /* Reduced padding */
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.5);
    background: var(--primary-gradient);
}

.buy-btn {
    font-size: 0.85rem;
    z-index: 5;
}