
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --brand-primary: oklch(65% 0.25 260);
    --brand-secondary: oklch(75% 0.2 260);
    --accent-glow: oklch(85% 0.25 260 / 50%);

    /* Light Theme */
    --bg-light: oklch(98% 0.01 260);
    --text-light: oklch(25% 0.05 260);
    --card-bg-light: oklch(100% 0 0);
    --border-light: oklch(90% 0.02 260);

    /* Dark Theme */
    --bg-dark: oklch(20% 0.05 260);
    --text-dark: oklch(95% 0.02 260);
    --card-bg-dark: oklch(25% 0.05 260);
    --border-dark: oklch(35% 0.05 260);

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --fs-base: 16px;
    --lh-base: 1.6;

    /* Effects */
    --shadow-sm: 0 2px 4px oklch(0% 0 0 / 5%);
    --shadow-md: 0 4px 12px oklch(0% 0 0 / 10%);
    --shadow-lg: 0 10px 30px oklch(0% 0 0 / 15%);
    --shadow-inset: inset 0 2px 4px oklch(0% 0 0 / 5%);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    font-family: var(--font-main);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    background-color: var(--bg-light);
    color: var(--text-light);
    transition: background-color var(--transition-fast), color var(--transition-fast);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Dark Mode */
body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

body.dark-mode::before {
    opacity: 0.05;
}

/* Layout */
.container {
    max-width: 1280px;
}

/* Navbar */
.navbar {
    background-color: oklch(0% 0 0 / 70%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid oklch(100% 0 0 / 10%);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: oklch(100% 0 0) !important;
}

.nav-link {
    color: oklch(100% 0 0 / 70%) !important;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: oklch(100% 0 0) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-primary);
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-icons .bi {
    font-size: 1.25rem;
    color: oklch(100% 0 0);
    transition: color var(--transition-fast);
}

.nav-icons .bi:hover {
    color: var(--brand-secondary);
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid oklch(100% 0 0 / 20%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    background: oklch(100% 0 0 / 10%);
    transform: rotate(15deg);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    background: url('https://images.unsplash.com/photo-1553062407-98eeb64c6a62?q=80&w=2071&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    padding: 8rem 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, oklch(15% 0.05 260 / 85%) 0%, oklch(15% 0.05 260 / 15%) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: oklch(100% 0 0);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 20px oklch(0% 0 0 / 30%);
}

.hero-content .lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: oklch(100% 0 0 / 70%);
    max-width: 550px;
}

.btn-custom {
    background-color: oklch(100% 0 0);
    color: oklch(0% 0 0);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.btn-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px oklch(100% 0 0 / 20%);
    background-color: var(--brand-secondary);
    color: oklch(0% 0 0);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Feature Section */
.features-section {
    background-color: transparent;
    border-bottom: 1px solid var(--border-light);
    padding: 4rem 0;
}
body.dark-mode .features-section {
    border-bottom: 1px solid var(--border-dark);
}
.feature-box {
    text-align: center;
    padding: 2rem 1rem;
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform var(--transition-slow);
}
.feature-box:hover .feature-icon {
    transform: translateY(-5px) scale(1.1);
}
.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
}
.feature-text {
    font-size: 0.9rem;
    color: var(--text-light);
}
body.dark-mode .feature-text {
    color: var(--text-dark);
}

/* Product Cards */
.product-card, .card-category {
    background-color: var(--card-bg-light);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}
body.dark-mode .product-card, body.dark-mode .card-category {
    background-color: var(--card-bg-dark);
    border-color: var(--border-dark);
}
.product-card:hover, .card-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow);
}
.product-img-wrapper {
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 100%;
}
.product-img-wrapper img, .card-category img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.product-card:hover .product-img-wrapper img, .card-category:hover img {
    transform: scale(1.08);
}
.product-title, .category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.product-price, .category-price {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}
body.dark-mode .product-price, body.dark-mode .category-price {
    color: var(--text-dark);
}
.badge-sold-out {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: oklch(100% 0 0 / 80%);
    color: oklch(0% 0 0);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}
.color-swatches span {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    transition: transform var(--transition-fast);
}
body.dark-mode .color-swatches span {
    border-color: var(--border-dark);
}
.color-swatches span:hover {
    transform: scale(1.2);
}

/* About Section */
.about-section {
    background-color: var(--card-bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
body.dark-mode .about-section {
    background-color: var(--card-bg-dark);
    border-color: var(--border-dark);
}
.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Insta-Grid */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.insta-item {
    position: relative;
    padding-bottom: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.insta-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}
.insta-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.insta-item:hover img {
    transform: scale(1.1);
}
.insta-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 1.5rem;
    text-shadow: 0 2px 5px oklch(0% 0 0 / 50%);
    z-index: 2;
}

/* Footer */
footer {
    background-color: oklch(15% 0.05 260);
    color: oklch(95% 0.02 260);
    padding: 5rem 0 2rem;
    margin-top: 4rem;
}
.footer-heading {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}
.footer-links a {
    color: oklch(95% 0.02 260 / 60%);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-links a:hover {
    color: var(--brand-secondary);
}
.social-icons a {
    color: oklch(95% 0.02 260);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    transition: color var(--transition-fast);
}
.social-icons a:hover {
    color: var(--brand-primary);
}
.input-group .form-control {
    background-color: oklch(25% 0.05 260);
    border-color: oklch(35% 0.05 260);
    color: white;
}
.input-group .form-control:focus {
    box-shadow: 0 0 0 3px var(--accent-glow);
    border-color: var(--brand-primary);
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-filter {
    border: 1px solid var(--border-light);
    color: var(--text-light);
    background: transparent;
}
body.dark-mode .btn-filter {
    border-color: var(--border-dark);
    color: var(--text-dark);
}
.btn-filter:hover {
    background-color: var(--card-bg-light);
    border-color: var(--brand-primary);
}
body.dark-mode .btn-filter:hover {
    background-color: var(--card-bg-dark);
}
.btn-filter.active {
    background-color: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* Chat Button */
.chat-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: var(--brand-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.chat-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px oklch(0% 0 0 / 20%), 0 0 30px var(--accent-glow);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero { min-height: 70vh; }
    .about-content { padding-left: 0 !important; margin-top: 3rem; text-align: center; }
}

@media (max-width: 768px) {
    .navbar-nav {
        margin-top: 1.5rem;
        border-top: 1px solid oklch(100% 0 0 / 10%);
        padding-top: 1rem;
    }
    .insta-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}
