/* premium_theme.css - Myntra Style UI */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;600;700;800&display=swap');

:root {
    /* Light Mode Variables - Myntra Style */
    --surface-bg: #ffffff; /* Base background */
    --surface-card: #ffffff; /* Card background */
    --surface-elevated: #ffffff; /* Dropdowns, modals */
    
    --text-primary: #282c3f; /* Dark text */
    --text-secondary: #535766; /* Gray text */
    --text-muted: #7e818c;
    
    --border-color: #eaeaec;
    
    --accent-color: #ff3f6c; /* Myntra Pink */
    --accent-hover: #e11b4c;
    
    --success: #03a685; /* Myntra Green */
    --warning: #ff905a;
    --error: #ff3f6c;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
    --shadow-float: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
    
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 4px;
    --radius-xl: 4px;
    --radius-pill: 4px; /* Flatter buttons instead of pills */
    
    --font-primary: 'Assistant', sans-serif;
    --font-secondary: 'Assistant', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Keep it mostly light for the exact Myntra feel, or just slight dims */
        --surface-bg: #121212; 
        --surface-card: #1e1e1e; 
        --surface-elevated: #2c2c2c; 
        
        --text-primary: #f5f5f6; 
        --text-secondary: #a9abb3; 
        --text-muted: #7e818c;
        
        --border-color: #282c3f;
        
        --accent-color: #ff3f6c; 
        --accent-hover: #ff527b;
    }
}

/* Global Setup */
body, html {
    font-family: var(--font-secondary);
    background-color: var(--surface-bg);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p, span, div, a {
    font-family: var(--font-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Base Components & Overrides */
.card, .premium-card {
    background-color: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn-premium-primary {
    background-color: var(--accent-color);
    color: #FFFFFF !important;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    font-weight: 600;
    font-family: var(--font-primary);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-premium-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--accent-color);
}

.btn-premium-outline {
    background-color: transparent;
    color: var(--text-primary) !important;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-premium-outline:hover {
    border-color: var(--text-primary);
    background-color: var(--surface-card);
}

/* Product Card Specifics */
/* Product Card Specifics - Myntra Style */
.product-card {
    background: var(--surface-card);
    border: none;
    border-radius: 0;
    padding: 0;
    position: relative;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: none;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.product-image-wrap {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 3 / 4; /* Myntra uses slightly taller images */
    background: var(--surface-bg);
    margin-bottom: 12px;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none; /* Removed hover zoom */
}

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

.product-badge {
    position: absolute;
    bottom: 12px; /* Rating badge at bottom left of image */
    left: 12px;
    background: rgba(255,255,255,0.9);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--surface-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 2;
    transition: all 0.2s ease;
}

.product-wishlist-btn:hover {
    color: var(--error);
    transform: scale(1.1);
}

.product-title {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding: 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Single line description */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.product-price-old {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 500;
}

/* Form Elements */
.form-control-premium {
    background-color: var(--surface-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-family: var(--font-secondary);
    transition: all 0.3s ease;
    width: 100%;
}

.form-control-premium:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background-color: var(--surface-elevated);
}

.form-control-premium::placeholder {
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--surface-card) 25%, var(--border-color) 50%, var(--surface-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Utilities */
.text-muted-premium { color: var(--text-muted) !important; }
.bg-surface { background-color: var(--surface-bg) !important; }
.bg-card { background-color: var(--surface-card) !important; }
.border-premium { border: 1px solid var(--border-color) !important; }

/* Overriding Bootstrap Defaults for Dark Mode Compatibility */
.text-dark { color: var(--text-primary) !important; }
.bg-light { background-color: var(--surface-card) !important; }
.bg-white { background-color: var(--surface-card) !important; }
.text-muted { color: var(--text-secondary) !important; }
.dropdown-menu { 
    background-color: var(--surface-elevated); 
    border: 1px solid var(--border-color);
}
.dropdown-item {
    color: var(--text-primary);
}
.dropdown-item:hover {
    background-color: var(--surface-bg);
    color: var(--accent-color);
}
