/* 
  Theme: Premium Dark Mode
  Brand: Evamatemr
  Font: Outfit
*/

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

:root {
    --bg-dark: #ffffff;
    --bg-surface: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.8);

    --primary-gradient: linear-gradient(135deg, #b91c1c, #ef4444);
    --secondary-gradient: linear-gradient(135deg, #f1f5f9, #e2e8f0);

    --text-white: #1e293b;
    --text-grey: #64748b;
    --text-accent: #ef4444;

    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(239, 68, 68, 0.4);

    --transition-fast: 0.3s ease;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

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

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.btn-outline:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.section-padding {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-fast);
    background: #000000;
    /* Permanent black background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 90px;
    /* Increased logo size */
    width: auto;
    object-fit: contain;
}


.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: #ffffff;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-link:hover,
.nav-link.active {
    color: #ef4444;
}

.navbar.scrolled .nav-link {
    color: #ffffff;
    text-shadow: none;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: #ef4444;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-btn {
    font-size: 1.4rem;
    position: relative;
    cursor: pointer;
    color: #ffffff;
    transition: var(--transition-fast);
}

.navbar.scrolled .icon-btn {
    color: #ffffff;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-gradient);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Mobile Menu */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
}

.navbar.scrolled .hamburger {
    color: #ffffff;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top right, rgba(185, 28, 28, 0.2), transparent 40%),
        radial-gradient(circle at bottom left, rgba(239, 68, 68, 0.15), transparent 40%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    /* Full visibility behind overlay */
}

/* Optional overlay for better text readability if images are too bright */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    z-index: 1;
}


.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 10;
    /* Shift content to the left */
    transform: translateX(-100px);
    margin-left: 0;
}


.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    letter-spacing: -2px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 40px;
    max-width: 500px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: #ef4444;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-grey);
    font-size: 0.9rem;
}

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

.product-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-fast);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(255, 255, 255, 0.1);
}

.product-image {
    height: 300px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-height: 80%;
    transition: 0.5s ease;
}

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

.product-info {
    padding: 25px;
}

.product-cat {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-grey);
    margin-bottom: 5px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: var(--primary-gradient);
}

/* Product Detail Page */
.product-detail-container {
    padding-top: 20px;
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 40px;
    min-height: 80vh;
    align-items: start;
    /* Prevent stretching */
}

.detail-gallery {
    background: transparent;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
}

.detail-info {
    padding: 20px 0;
}

.detail-cat {
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
}

.detail-title {
    font-size: 3rem;
    margin: 10px 0 20px;
}

.detail-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    display: block;
}

.option-group {
    margin-bottom: 30px;
}

.option-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-grey);
    margin-bottom: 15px;
    display: block;
}

.color-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    /* Allow grouping to next line */
}

.color-circle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    /* Prevent squashing */
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    transition: var(--transition-fast);
}

.color-circle.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--text-accent);
}

.color-black {
    background: #111;
}

.color-beige {
    background: #e0c097;
}

.color-grey {
    background: #555;
}

.edge-red {
    background: #ef4444;
}

.edge-blue {
    background: #3a86ff;
}

.edge-black {
    background: #000;
}

.detail-actions {
    margin-top: 50px;
    display: flex;
    gap: 20px;
}

/* Cart Page */
.cart-page {
    padding-top: 140px;
}

/* Cart Refreshed */
.cart-header {
    margin-top: 40px;
    margin-bottom: 30px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

.cart-item-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-soft);
}

.cart-item-img-box {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-white);
}

.cart-item-variant {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.cart-item-price {
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-summary-card {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 120px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-total {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

@media (max-width: 900px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary-card {
        position: static;
        order: 2;
    }
}


/* Checkout */
.checkout-form {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-grey);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #ef4444;
}

/* Gallery */
.gallery-section {
    overflow: hidden;
}

.gallery-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
}

.gallery-item {
    min-width: 300px;
    height: 400px;
    border-radius: var(--radius-lg);
    background-color: var(--bg-surface);
    object-fit: cover;
}

/* Sidebar Navigation */
.nav-links {
    display: none !important;
    /* Force hide standard links */
}

.hamburger {
    display: flex !important;
    /* Always show hamburger */
    z-index: 1002;
    background: rgba(0, 0, 0, 0.05);
    /* Slight grey background */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    cursor: pointer;
}

.hamburger:hover {
    background: #ef4444;
    color: white;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: #000000;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 100px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-menu.active {
    transform: translateX(0);
}

.sidebar-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    display: block;
    position: relative;
}

.sidebar-link:hover {
    color: var(--text-accent);
    transform: translateX(10px);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .hero-content {
        transform: none;
        /* Reset desktop shift */
        text-align: center;
        margin: 0 auto;
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
        padding-top: 50px;
        /* Reduced padding */
    }

    .detail-gallery {
        position: static;
        /* Disable sticky on mobile */
        height: auto;
        margin-bottom: 30px;
    }

    .layered-image-container {
        height: 350px !important;
        /* Prevent collapse due to absolute children */
    }


    .section-padding {
        padding: 60px 0;
    }

    .sidebar-menu {
        width: 100%;
    }
}

/* Corporate Footer */
.site-footer {
    background: #000000;
    color: #94a3b8;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-gradient);
}

.footer-logo {
    height: 100px;
    width: auto;
    margin-bottom: 20px;
}

.footer-desc {
    margin-bottom: 25px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.footer-contact-item i {
    color: #ef4444;
    font-size: 1.2rem;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}