/* ============================================
   ClothFit - CSS Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --accent-hover: #ff6b6b;
    --success: #4ecca3;
    --text: #eaeaea;
    --text-muted: #a0a0a0;
    --bg: #0f0f1a;
    --card-bg: rgba(22, 33, 62, 0.7);
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #4ecca3, #45b393);
    bottom: -150px;
    right: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.05);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }
    75% {
        transform: translate(-50px, -30px) scale(1.02);
    }
}

/* Container */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #ff8a80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Progress Steps */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.4);
}

.progress-step.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-step.active .step-label {
    color: var(--text);
}

.progress-line {
    width: 80px;
    height: 2px;
    background: var(--border);
    margin: 0 10px;
    margin-bottom: 24px;
}

/* Form Card */
.form-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: var(--shadow);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.step-description {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

input, select {
    width: 100%;
    padding: 14px 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input::placeholder {
    color: var(--text-muted);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

select option {
    background: var(--secondary);
    color: var(--text);
}

/* Buttons */
button {
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.05rem;
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(233, 69, 96, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    width: 100%;
    padding: 14px 24px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    margin-top: 16px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.btn-back {
    padding: 14px 24px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-back:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.button-group {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.button-group .btn-primary {
    flex: 1;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--glass);
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.05);
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.7;
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.upload-subtext {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.upload-guidelines {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
}

.upload-guidelines h4 {
    font-size: 0.85rem;
    color: var(--success);
    margin-bottom: 8px;
}

.upload-guidelines ul {
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.upload-guidelines li {
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.upload-guidelines li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Preview */
.preview-container {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

#photo-preview {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.remove-photo {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-photo:hover {
    background: #ff4757;
    transform: scale(1.1);
}

/* Camera Modal */
.camera-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.camera-modal.active {
    display: flex;
}

.camera-content {
    width: 90%;
    max-width: 500px;
    text-align: center;
}

#camera-feed {
    width: 100%;
    border-radius: 16px;
    transform: scaleX(-1);
}

.camera-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

.btn-capture {
    padding: 14px 40px;
    background: var(--accent);
    color: white;
    font-size: 1.1rem;
}

.btn-capture:hover {
    background: #ff6b6b;
    transform: scale(1.05);
}

.btn-cancel {
    padding: 14px 30px;
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Loading */
.loading-container {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.loading-steps {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    margin-top: 20px;
}

.error-icon {
    font-size: 1.5rem;
}

.error-message p {
    color: #ff6b6b;
    font-size: 0.9rem;
}

/* Results */
.results-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Body Shape Card */
.body-shape-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(78, 204, 163, 0.15), rgba(78, 204, 163, 0.05));
    border: 1px solid rgba(78, 204, 163, 0.3);
    border-radius: 16px;
    margin-bottom: 24px;
}

.shape-icon {
    font-size: 2.5rem;
}

.shape-info {
    display: flex;
    flex-direction: column;
}

.shape-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shape-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--success);
}

/* Measurements Grid */
.measurements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.measurement-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.measurement-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(233, 69, 96, 0.15);
}

.measurement-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
}

.measurement-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.measurement-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.measurement-unit {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Sizes Section */
.sizes-section {
    margin-bottom: 30px;
}

.sizes-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 16px;
}

.sizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.size-card {
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.3);
}

.size-type {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.size-value {
    font-size: 2rem;
    font-weight: 700;
}

.btn-shop {
    background: linear-gradient(135deg, var(--success), #45b393);
    box-shadow: 0 8px 20px rgba(78, 204, 163, 0.3);
}

.btn-shop:hover {
    box-shadow: 0 12px 30px rgba(78, 204, 163, 0.4);
}

/* Intro Animation Screen */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: introFadeIn 0.5s ease;
}

.intro-screen.hidden {
    display: none;
}

@keyframes introFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.intro-content {
    text-align: center;
    animation: introSlideUp 1s ease;
}

@keyframes introSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.intro-logo-icon {
    font-size: 4rem;
    animation: introPulse 2s ease-in-out infinite;
}

@keyframes introPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.intro-logo-text {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #ff8a80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: introTextGlow 2s ease-in-out infinite;
}

@keyframes introTextGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(233, 69, 96, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(233, 69, 96, 0.8));
    }
}

.intro-tagline {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tagline-word {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text);
    opacity: 0;
    animation: introWordFade 0.5s ease forwards;
}

.tagline-word:nth-child(1) { animation-delay: 0.3s; }
.tagline-word:nth-child(2) { animation-delay: 0.5s; }
.tagline-word:nth-child(3) { animation-delay: 0.7s; }
.tagline-word:nth-child(4) { animation-delay: 0.9s; }

@keyframes introWordFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-loader {
    width: 200px;
    height: 4px;
    background: var(--glass);
    border-radius: 2px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.intro-loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 2px;
    animation: introLoadBar 2s ease-in-out forwards;
}

@keyframes introLoadBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

.intro-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: introSubFade 0.5s ease 1.5s forwards;
}

@keyframes introSubFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Main container is always visible */
#main-container {
    opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 16px;
    }
    
    .form-card {
        padding: 24px;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .intro-logo-text {
        font-size: 3rem;
    }
    
    .intro-logo-icon {
        font-size: 3rem;
    }
    
    .tagline-word {
        font-size: 1.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .progress-line {
        width: 40px;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
    }
    
    .measurements-grid {
        grid-template-columns: 1fr;
    }
    
    .sizes-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
}

/* ============================================
   Navigation Menu
   ============================================ */

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.top-bar .logo {
    margin-bottom: 0;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.top-bar-avatar:hover {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(233, 69, 96, 0.4);
    transform: scale(1.08);
}

.top-bar-avatar.active-page {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(233, 69, 96, 0.35);
}

.topbar-avatar-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.topbar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.nav-btn {
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.nav-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ============================================
   Profile Page
   ============================================ */

.profile-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 3rem;
    overflow: hidden;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.profile-email {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.profile-details-card,
.profile-measurements-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.profile-details-card h3,
.profile-measurements-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    margin-bottom: 0;
}

.btn-edit-profile {
    padding: 8px 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    font-size: 0.85rem;
}

.btn-edit-profile:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.profile-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.profile-info .info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-value {
    color: var(--text);
    font-weight: 500;
}

.profile-edit-form {
    margin-top: 20px;
}

.edit-profile-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.edit-profile-actions .btn-secondary {
    flex: 1;
    margin-top: 0;
}

.edit-profile-actions .btn-primary {
    flex: 1;
}

.measurements-list .measurement-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.measurements-list .measurement-row:last-child {
    border-bottom: none;
}

.measurements-list .measurement-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.measurements-list .measurement-value {
    color: var(--text);
    font-weight: 500;
}

.btn-remeasure {
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-remeasure:hover {
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

/* ============================================
   Shopping Page
   ============================================ */

.shopping-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.shopping-header {
    text-align: center;
    margin-bottom: 30px;
}

.shopping-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 8px;
}

.shopping-header p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.size-tags {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.size-tag {
    padding: 8px 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
}

.size-tag strong {
    color: var(--success);
    margin-left: 4px;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    font-size: 0.9rem;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.category-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.product-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(78, 204, 163, 0.1));
    overflow: hidden;
    position: relative;
}

/* Detail Page Try On Button */
.detail-try-on-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: rgba(233, 69, 96, 0.1);
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 16px 28px;
    border-radius: 16px;
    font-size: 1.05rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.detail-try-on-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

/* ============================================
   Try-On Modal
   ============================================ */
.tryon-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.tryon-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.tryon-modal-content {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 36px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: tryonSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tryonSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tryon-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tryon-close-btn:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.tryon-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tryon-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.tryon-preview {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.06), rgba(78, 204, 163, 0.06));
    margin-bottom: 20px;
    position: relative;
}

.tryon-user-photo {
    width: 100%;
    height: 100%;
    position: relative;
}

.tryon-user-photo #tryon-user-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tryon-product-overlay {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: auto;
    object-fit: contain;
    opacity: 0.85;
    pointer-events: none;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    transition: all 0.2s ease;
}

.tryon-no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    gap: 8px;
}

.tryon-no-photo-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.tryon-no-photo p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.tryon-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tryon-control-group {
    flex: 1;
    min-width: 120px;
}

.tryon-control-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.tryon-control-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
}

.tryon-control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.5);
}

.tryon-control-group input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.5);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-emoji {
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 12px;
}

.product-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.size-badge {
    padding: 4px 8px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.size-badge.recommended {
    background: rgba(78, 204, 163, 0.2);
    border-color: var(--success);
    color: var(--success);
}

.recommended-badge {
    display: block;
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
}

/* Responsive for profile and shopping */
@media (max-width: 600px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .size-tags {
        flex-direction: column;
        align-items: center;
    }
    
    .category-filter {
        flex-wrap: wrap;
    }
}

/* Shop Title and Subtitle */
.shop-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 8px;
}

.shop-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

/* User Sizes Display */
.user-sizes-display {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.size-badge-item {
    padding: 12px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.size-badge-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.size-badge-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.shopping-container .category-btn {
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    font-size: 0.9rem;
}

.shopping-container .category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.shopping-container .category-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ============================================
   Gender Toggle
   ============================================ */

.gender-toggle {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.gender-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--glass);
    border: 2px solid var(--border);
    color: var(--text);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gender-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.gender-btn.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2), rgba(233, 69, 96, 0.1));
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.2);
}

.gender-btn.active[data-gender="male"] {
    border-color: var(--male-color);
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.2), rgba(74, 144, 217, 0.1));
    box-shadow: 0 8px 20px rgba(74, 144, 217, 0.2);
}

.gender-btn.active[data-gender="female"] {
    border-color: var(--female-color);
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.2), rgba(233, 30, 140, 0.1));
    box-shadow: 0 8px 20px rgba(233, 30, 140, 0.2);
}

.gender-icon {
    font-size: 1.3rem;
}

/* Gender-specific colors */
:root {
    --male-color: #4a90d9;
    --female-color: #e91e8c;
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state p {
    color: var(--text-muted);
}

/* ============================================
   Full-Screen Product Detail Page
   ============================================ */

.product-detail-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 2000;
    overflow-y: auto;
    display: none;
    opacity: 0;
    perspective: 1200px;
}

.product-detail-page.active {
    display: block;
    animation: detailPageOpen 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.product-detail-page.closing {
    animation: detailPageClose 0.5s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes detailPageOpen {
    0% {
        opacity: 0;
        transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) scale(0.7) translateZ(-200px);
        filter: blur(8px);
    }
    40% {
        opacity: 0.7;
        transform: perspective(1200px) rotateY(2deg) rotateX(-1deg) scale(0.95) translateZ(-40px);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: perspective(1200px) rotateY(0) rotateX(0) scale(1) translateZ(0);
        filter: blur(0);
    }
}

@keyframes detailPageClose {
    0% {
        opacity: 1;
        transform: perspective(1200px) rotateY(0) rotateX(0) scale(1) translateZ(0);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: perspective(1200px) rotateY(8deg) rotateX(-4deg) scale(0.6) translateZ(-300px);
        filter: blur(12px);
    }
}

/* Detail Header */
.product-detail-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 20px 40px;
    background: linear-gradient(180deg, var(--bg) 60%, transparent);
    animation: detailHeaderSlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes detailHeaderSlide {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-back-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.3);
}

.back-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.detail-back-btn:hover .back-arrow {
    transform: translateX(-4px);
}

/* Detail Content Layout */
.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

/* Detail Image Section */
.detail-image-section {
    position: relative;
    animation: detailImageZoom 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

@keyframes detailImageZoom {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateY(-5deg) scale(0.85);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: perspective(800px) rotateY(0) scale(1);
        filter: blur(0);
    }
}

/* ============================================
   Product Image
   ============================================ */

.detail-slider {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.08), rgba(78, 204, 163, 0.08));
}

.detail-slide {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.detail-slide.active {
    opacity: 1;
    z-index: 2;
}

.detail-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease;
    position: relative;
}

.img-try-on-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.5);
    letter-spacing: 0.5px;
}

.img-try-on-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.6);
}

.detail-image-wrapper:hover {
    transform: scale(1.02);
}

.detail-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-image-wrapper .detail-emoji {
    font-size: 10rem;
}

.detail-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
}

.detail-badge.gender {
    background: rgba(74, 144, 217, 0.85);
    color: white;
}

.detail-badge.gender.female {
    background: rgba(233, 30, 140, 0.85);
}

.detail-badge.discount {
    background: var(--accent);
    color: white;
}

.detail-badge.your-size {
    background: rgba(78, 204, 163, 0.85);
    color: white;
}

/* Detail Info Section */
.detail-info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: detailInfoSlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

@keyframes detailInfoSlide {
    0% {
        opacity: 0;
        transform: translateX(60px) translateZ(-100px);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateZ(0);
        filter: blur(0);
    }
}

.detail-brand {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 8px;
}

.detail-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text), rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-price-row .detail-current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success);
}

.detail-price-row .detail-original-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.detail-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* Detail Specs Grid */
.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.detail-spec-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.detail-spec-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.detail-spec-icon {
    font-size: 1.4rem;
}

.detail-spec-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-spec-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

/* Detail Sizes Section */
.detail-sizes-section {
    margin-bottom: 28px;
}

.detail-sizes-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text);
}

.detail-sizes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-size-btn {
    padding: 12px 20px;
    min-width: 52px;
    background: var(--glass);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    position: relative;
}

.detail-size-btn:hover {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.1);
    transform: translateY(-2px);
}

.detail-size-btn.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.35);
    transform: translateY(-2px);
}

.detail-size-btn.recommended {
    border-color: var(--success);
    position: relative;
}

.detail-size-btn.recommended::after {
    content: '★';
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.65rem;
    background: var(--success);
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-size-btn.recommended.selected {
    border-color: var(--success);
    background: var(--success);
}

.detail-recommended-note {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 500;
}

/* Detail Actions */
.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-add-cart-btn {
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    border: none;
    border-radius: 16px;
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.3);
}

.detail-add-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(233, 69, 96, 0.45);
}

.detail-add-cart-btn:active {
    transform: translateY(-1px);
}

.detail-add-cart-btn.added {
    background: linear-gradient(135deg, var(--success), #45b393);
    box-shadow: 0 8px 24px rgba(78, 204, 163, 0.3);
}

/* Detail page responsive */
@media (max-width: 900px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px 40px;
    }

    .product-detail-header {
        padding: 16px 20px;
    }

    .detail-name {
        font-size: 1.8rem;
    }

    .detail-slider {
        aspect-ratio: 1;
    }

    .slider-arrow {
        opacity: 1;
    }

    .detail-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .detail-specs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .detail-name {
        font-size: 1.5rem;
    }

    .detail-size-btn {
        padding: 10px 14px;
        min-width: 44px;
        font-size: 0.8rem;
    }
}

/* ============================================
   Quick View Modal
   ============================================ */

.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    animation: quickViewSlide 0.3s ease;
}

@keyframes quickViewSlide {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.quick-view-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.quick-view-close:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.quick-view-image {
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(78, 204, 163, 0.1));
    border-radius: 20px 0 0 20px;
}

.quick-view-emoji {
    font-size: 8rem;
}

.quick-view-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
}

.quick-view-details {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.quick-view-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.quick-view-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 16px;
}

.quick-view-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quick-view-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--glass);
    border-radius: 12px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 500;
}

.quick-view-sizes {
    margin-bottom: 24px;
}

.sizes-title {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.sizes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sizes-list .size-badge {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
    margin-top: auto;
}

@media (max-width: 768px) {
    .quick-view-content {
        grid-template-columns: 1fr;
    }
    
    .quick-view-image {
        min-height: 250px;
        border-radius: 20px 20px 0 0;
    }
}

/* ============================================
   Product Gender Styling
   ============================================ */

.product-card.male {
    border-left: 3px solid var(--male-color);
}

.product-card.female {
    border-left: 3px solid var(--female-color);
}

.product-gender-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-gender-badge.male {
    background: rgba(74, 144, 217, 0.9);
    color: white;
}

.product-gender-badge.female {
    background: rgba(233, 30, 140, 0.9);
    color: white;
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-brand {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-price-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}

.btn-add-cart.added {
    background: var(--success);
}
