/* 
   MADHUCART - Premium Fashion Experience
   Design System: Deep Navy & Rose Gold (Visual Luxury)
   Version: 2.0 (Polished & Robust)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* -- BRAND PALETTE -- */
    --navy-950: #020617;
    /* Deepest Background */
    --navy-900: #0F172A;
    /* Primary Dark */
    --navy-800: #1E293B;
    /* Secondary Dark */
    --navy-700: #334155;
    /* Borders / Lines */

    --gold-300: #FDBA74;
    /* Light Accent */
    --gold-400: #E2B091;
    /* Primary Gold */
    --gold-500: #C28B6B;
    /* Dark Gold/Bronze */
    --gold-100: #FFF7ED;
    /* Pale Wash */

    /* -- NEUTRALS -- */
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-500: #6B7280;
    --gray-800: #1F2937;

    /* -- SEMANTIC -- */
    --text-main: var(--navy-900);
    --text-body: var(--navy-800);
    --text-muted: var(--gray-500);
    --text-light: var(--gray-50);

    --success: #10B981;
    --error: #EF4444;

    /* -- TYPOGRAPHY -- */
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    /* Added for extra elegance */
    --font-body: 'Inter', sans-serif;

    /* -- SHADOWS & RADIUS -- */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-gold: 0 20px 25px -5px rgba(226, 176, 145, 0.15), 0 10px 10px -5px rgba(226, 176, 145, 0.1);

    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* -- LAYOUT -- */
    --container-width: 1280px;
    --header-height: 80px;
}

/* -- RESET -- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease-in-out;
}

ul {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* -- TYPOGRAPHY UTILS -- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.font-serif {
    font-family: var(--font-serif);
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-gold {
    color: var(--gold-400);
}

.text-navy {
    color: var(--navy-900);
}

.text-white {
    color: var(--white);
}

.text-muted {
    color: var(--text-muted);
}

/* -- LAYOUT UTILS -- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.w-full {
    width: 100%;
}

/* -- COMPONENTS -- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--navy-900);
    color: var(--white);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: var(--navy-950);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background-color: var(--gold-400);
    color: var(--navy-900);
    border: 1px solid transparent;
    font-weight: 600;
}

.btn-accent:hover {
    background-color: var(--gold-500);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    border: 1px solid var(--navy-900);
    color: var(--navy-900);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--navy-900);
    color: var(--white);
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: -0.02em;
}

.brand-logo span {
    color: var(--gold-400);
}

.desktop-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--navy-800);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-400);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-btn {
    font-size: 1.25rem;
    color: var(--navy-800);
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.icon-btn:hover {
    background-color: var(--gray-100);
    color: var(--gold-500);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--gold-400);
    color: var(--navy-900);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    height: 85vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    background-color: var(--navy-900);
    display: flex;
    align-items: center;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    /* Darken for text readability */
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 700px;
    padding: 2rem;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-400);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.8;
}

/* Section Headlines */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--gold-400);
    margin: 1rem auto 0;
}

/* Category Grid */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cat-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    group: cat-card;
    box-shadow: var(--shadow-md);
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.cat-card:hover img {
    transform: scale(1.1);
}

.cat-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent);
    color: white;
}

.cat-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cat-link {
    display: inline-block;
    color: var(--gold-400);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Product Grid */
.products-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem;
}

.product-item {
    background: var(--white);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-8px);
}

.prod-image-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 0.8;
    background-color: var(--gray-100);
    margin-bottom: 1rem;
}

.prod-actions {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-item:hover .prod-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-900);
    transition: 0.2s;
}

.action-icon:hover {
    background: var(--gold-400);
    color: white;
}

.prod-meta {
    text-align: center;
}

.prod-cat {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prod-name {
    font-size: 1.1rem;
    margin: 0.25rem 0;
    font-weight: 600;
    color: var(--navy-900);
}

.prod-price {
    font-weight: 700;
    color: var(--text-main);
}

.prod-sale {
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

/* Features / Trust */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: -4rem;
    position: relative;
    z-index: 20;
}

.feature-box {
    text-align: center;
    padding: 1.5rem;
    border-right: 1px solid var(--gray-200);
}

.feature-box:last-child {
    border-right: none;
}

.feature-icon {
    font-size: 2rem;
    color: var(--gold-400);
    margin-bottom: 1rem;
}

/* Forms */
.form-wrap {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--navy-800);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background-color: var(--gray-50);
}

.form-input:focus {
    outline: none;
    border-color: var(--navy-800);
    background-color: var(--white);
}

/* Footer */
.site-footer {
    background-color: var(--navy-950);
    color: var(--gray-200);
    padding: 5rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-col h4 {
    color: var(--gold-400);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: var(--gray-500);
    transition: 0.2s;
}

.footer-nav a:hover {
    color: var(--white);
    padding-left: 5px;
}

.newsletter-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    /* Add mobile menu later if needed */
    .hero-title {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        margin-top: 2rem;
        border-right: none;
    }

    .feature-box {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-wrapper {
        min-height: 500px;
    }

    .form-wrap {
        padding: 1.5rem;
    }
}