/* =========================================
   1. Fonts (From main.css)
   ========================================= */
@font-face {
    font-family: 'Outfit';
    src: url('fonts/static/Outfit-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('fonts/static/Outfit-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* =========================================
   2. Variables (Base from main.css + Overrides)
   ========================================= */
:root {
    /* Base Variables */
    --nav-height: 70px;

    /* Dark Premium Theme Overrides */
    --bg-color: #0a0a0a;
    --surface-color: #1a1a1a;
    --surface-color-hover: #252525;
    --primary-color: #ffffff;
    --secondary-color: #b3b3b3;
    --accent-color: #e0e0e0;
    --border-color: #333;
    --text-color: #ffffff;
    --subtle-text: #a0a0a0;

    --font-primary: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* =========================================
   3. Reset & Base (Merged)
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

/* =========================================
   4. Typography
   ========================================= */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* =========================================
   5. Utilities
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--bg-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* =========================================
   6. Hero Section
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--primary-color);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(10, 10, 10, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeUp 1s ease-out;
}

/* =========================================
   7. Products Grid
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-speed), background-color var(--transition-speed);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    background: var(--surface-color-hover);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: 25px;
}

.feature-list {
    list-style: none;
    margin-top: 15px;
}

.feature-list li {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '•';
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* =========================================
   8. Dimensions Section
   ========================================= */
.dimensions-section {
    background: var(--surface-color);
    border-radius: 12px;
    margin-top: 40px;
    padding: 30px;
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    text-align: center;
    padding: 5px;
}

.dimension-item {
    padding: 15px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.dimension-item:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.dimension-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.dimension-item div:last-child {
    font-size: 0.85rem;
    color: #e0e0e0;
    font-weight: 500;
}

/* =========================================
   9. Footer
   ========================================= */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

/* =========================================
   10. Animations
   ========================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   11. Lightbox (From main.css)
   ========================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3001;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3005;
}

/* =========================================
   12. Mobile Adjustments
   ========================================= */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 50px 0;
    }
}