/* 
 * Luxtro - Premium Indian Clothing Store
 * Style.css - v2.0 (Luxury Theme)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Instrument+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    /* Color Palette - Dark Royal Theme */
    --bg-body: #0b1120;
    /* Very Dark Navy */
    --bg-card: #1e293b;
    /* Slate 800 */

    --primary: #f8fafc;
    /* White/Light (for text/headings) */
    --primary-muted: #94a3b8;
    /* Muted text */

    --brand-dark: #0f172a;
    /* Original Deep Blue (for gradients/accents) */

    --accent: #d97706;
    /* Amber 600 */
    --accent-hover: #b45309;
    /* Amber 700 */

    --text-main: #f1f5f9;
    /* Slate 100 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --border-color: #334155;
    /* Slate 700 */

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 100px;
    /* Increased from 120px */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* --- Resets & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    background: rgba(11, 17, 32, 0.85);
    /* Dark background with blur */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    /* Slate 700 with opacity */
    height: var(--header-height);
    position: relative;
    /* Changed from sticky to relative as requested */
    /* top: 0; Removed */
    z-index: 1000;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    /* Changed from flex-end to space-between */
    align-items: center;
    width: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    /* Changed from absolute */
    left: auto;
    /* Reset left */
    transform: none;
    /* Reset transform */
    z-index: 10;
    overflow: visible;
}

.logo-img {
    height: auto;
    max-height: 200px;
    /* Increased from 110px */
    width: auto;
    object-fit: contain;
    z-index: 12;
    transform: none;
    /* Reset transform */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Rotating Ring Effect Removed */

/* Rotating Ring Effect Removed */


/* 
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.5px;
} 
*/

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    /* Fixed: Was primary-light */
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    /* Changed from primary (white) to accent */
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 2000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.nav-icon:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* --- Hero Section (New) --- */
.hero {
    /* Darker gradient for dark theme */
    /* Deep Space Gradient */
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    box-shadow: 0 0 50px rgba(217, 119, 6, 0.05) inset;
    /* Subtle interior glow */
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    /* Larger for impact */
    margin-bottom: 20px;
    background: linear-gradient(to right, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(248, 250, 252, 0.1);
    /* Text glow */
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* --- Buttons --- */
/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.3);
    /* Golden Glow */
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    /* White */
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    /* Slight white tint */
    border-color: var(--text-muted);
    color: white;
}


.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

.product-card {
    background: rgba(30, 41, 59, 0.6);
    /* Translucent Slate */
    backdrop-filter: blur(12px);
    /* Glassmorphism */
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(217, 119, 6, 0.2);
    /* Golden Glow */
    border-color: var(--accent);
}

.product-image-container {
    height: 320px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}


.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}

.card-actions {
    margin-top: auto;
}

/* --- Detail Page Layout --- */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.detail-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* --- Image Slider Items --- */
.detail-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 1 / 1;
}

.slider-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeEffect 0.5s;
}

.slider-image.active {
    display: block;
}

@keyframes fadeEffect {
    from {
        opacity: 0.8
    }

    to {
        opacity: 1
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background 0.3s;
    user-select: none;
    z-index: 10;
    /* Added z-index */
}

.slider-btn:hover {
    background: var(--accent);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-dots-container {
    text-align: center;
    margin-top: 15px;
}

.slider-dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active,
.slider-dot:hover {
    background-color: var(--accent);
}

.detail-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.detail-price {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 2rem;
}

.size-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    /* Ensure wrapping on mobile */
}

.size-option input {
    display: none;
}

.size-option {
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.size-option:has(input:checked) {
    background: var(--accent);
    /* Changed from primary (white) to accent */
    color: white;
    border-color: var(--accent);
}

/* --- Cart & Admin --- */
.cart-item,
.order-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    /* Changed from white */
    padding: 15px;
    margin-bottom: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.cart-item img,
.order-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.cart-item>div,
.order-item>div {
    flex: 1;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Unequal split */
    gap: 30px;
    margin-top: 30px;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 20px;
}

label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
    color: var(--text-muted);
    /* Fixed: Was primary-light */
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="file"],
/* Added file input */
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: #0f172a;
    /* Darker than card for contrast */
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    /* Changed from primary (white) to accent for focus */
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
    /* Accent glow */
}

/* --- Utilities --- */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

.mb-4 {
    margin-bottom: 40px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .container {
        width: 95%;
        /* More width on mobile */
        padding: 0 15px;
    }

    .hero {
        padding: 50px 20px;
        border-radius: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns side by side */
        gap: 10px;
    }

    .product-image-container {
        height: 180px;
        /* Slightly smaller images for 2-column mobile view */
    }

    /* Smaller buttons for mobile grid */
    .product-grid .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .product-grid .btn-large {
        padding: 10px;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 30px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a:not(.nav-icon) {
        display: none;
        /* Hide text links */
    }

    /* Cart Mobile Optimization */
    .cart-layout {
        display: flex !important;
        /* Override inline grid */
        flex-direction: column;
        gap: 20px !important;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }

    .cart-item img {
        width: 100% !important;
        height: 200px !important;
        margin-right: 0 !important;
        margin-bottom: 15px;
    }

    .cart-item>div {
        width: 100%;
        margin-bottom: 15px;
    }

    .cart-item button {
        width: 100%;
        padding: 12px;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    /* Sticky Summary Adjustment */
    #cart-summary {
        position: static !important;
        /* Unstick on mobile */
        margin-top: 20px;
    }
}

/* --- Payment Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-card);
    margin: auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: var(--shadow-hover);
    animation: zoomIn 0.3s ease;
    max-height: 90vh;
    /* Limit height to 90% of viewport */
    overflow-y: auto;
    /* Enable vertical output */
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close-modal:hover {
    color: var(--accent);
}

.qr-container {
    text-align: center;
    margin: 20px 0;
    background: white;
    /* QR needs white background */
    padding: 15px;
    border-radius: var(--radius-sm);
}

.qr-image {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.highlight-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
}