:root {
    /* Premium Dark Theme Palette */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-primary: #ff2e63; /* Vibrant Pink/Red */
    --accent-secondary: #08d9d6; /* Cyan/Teal */
    --accent-tertiary: #ff9a9e; /* Soft Pink */
    
    /* Enhanced Glassmorphism */
    --glass-bg: rgba(20, 20, 20, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(255, 46, 99, 0.15);
    
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 90px; /* Increased for mobile nav */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Header */
header {
    background-color: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

header h1 a {
    text-decoration: none;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modern Search Bar */
.search-container input {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 50px;
    width: 300px;
    font-size: 14px;
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 46, 99, 0.2);
    width: 320px;
    background-color: var(--bg-secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 46, 99, 0.08) 0%, transparent 60%);
    animation: pulse 15s infinite ease-in-out;
    pointer-events: none;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.4; }
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Coupon Section */
.coupon-section {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 50px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.coupon-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.5), transparent);
}

.coupon-section h3 {
    color: #ffc107;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.coupon-button {
    display: inline-block;
    background: linear-gradient(45deg, #ffc107, #ffca28);
    color: #000;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
}

.coupon-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Premium Product Card */
.product-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(255, 46, 99, 0.4);
    background-color: #202020;
}

.product-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.product-actress {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.product-actress::before {
    content: '👤';
    margin-right: 6px;
    font-size: 12px;
    opacity: 0.8;
}

.product-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-bottom: auto; /* Push rating to bottom */
}

/* Badge Colors */
.badge-debut { background: linear-gradient(45deg, #28a745, #34ce57); color: white; }
.badge-nakadashi { background: linear-gradient(45deg, #dc3545, #ff4d5a); color: white; }
.badge-ntr { background: linear-gradient(45deg, #6f42c1, #8e44ad); color: white; }
.badge-amateur { background: linear-gradient(45deg, #fd7e14, #ff9f43); color: white; }
.badge-oppai { background: linear-gradient(45deg, #e83e8c, #ff6b81); color: white; }
.badge-bishoujo { background: linear-gradient(45deg, #20c997, #1dd1a1); color: white; }
.badge-hitozuma { background: linear-gradient(45deg, #6c757d, #95a5a6); color: white; }
.badge-jk { background: linear-gradient(45deg, #ffc107, #feca57); color: #333; }
.badge-default { background: linear-gradient(45deg, var(--accent-primary), #ff6b81); color: white; }

.product-rating {
    font-size: 13px;
    color: #ffc107;
    margin-top: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    width: 100%;
}

/* Loading & Error States */
.loading {
    text-align: center;
    padding: 80px;
    font-size: 18px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #ff6b6b;
    padding: 30px;
    border-radius: var(--radius-md);
    margin: 30px 0;
    text-align: center;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Footer */
footer {
    background-color: #0a0a0a;
    color: var(--text-secondary);
    text-align: center;
    padding: 60px 0;
    margin-top: 80px;
    border-top: 1px solid var(--glass-border);
}

/* Mobile Bottom Nav */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 15, 15, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 12px 0;
    z-index: 1000;
    justify-content: space-around;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.nav-item {
    color: #888;
    text-decoration: none;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
    width: 60px;
}

.nav-item.active, .nav-item:active {
    color: var(--accent-primary);
}

.nav-icon {
    font-size: 22px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h2 {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .search-container input {
        width: 100%;
        padding: 10px 20px;
    }

    .mobile-nav {
        display: flex;
    }

    .product-image {
        height: 130px; /* Smaller image on mobile */
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .product-actress {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .product-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .product-rating {
        font-size: 11px;
        margin-top: 8px;
        padding-top: 8px;
    }

    .collection-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Hide desktop header elements on mobile if needed, or adjust */
    header h1 {
        font-size: 20px;
    }
}
