/* ============================================================
   TeaPoy - Luxury Furniture Website
   Design: Dark theme matching reference site
   ============================================================ */

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

/* --- CSS Variables --- */
:root {
    --primary: #DD7210;
    --primary-rgb: 221, 114, 16;
    --dark: #101010;
    --dark-2: #1a1a1a;
    --dark-3: #2b2b2b;
    --border: #3a3a3a;
    --text: #a9a9a9;
    --text-light: #6e6e6e;
    --white: #ffffff;
    --font-heading: 'Marcellus', serif;
    --font-body: 'Mulish', sans-serif;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 90px;
    --radius: 0px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.625;
    color: var(--text);
    background-color: var(--dark);
    overflow-x: hidden;
}

a { color: var(--white); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

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

h1 { font-size: clamp(40px, 6vw, 70px); }
h2 { font-size: clamp(32px, 5vw, 60px); }
h3 { font-size: clamp(26px, 4vw, 40px); }
h4 { font-size: clamp(22px, 3vw, 30px); }
h5 { font-size: 24px; }
h6 { font-size: 20px; }

p { color: var(--text); line-height: 1.8; }

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

ul { list-style: none; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 30px; }
.container-wide { max-width: 1600px; margin: 0 auto; padding: 0 40px; }

.accent { color: var(--primary); }

/* ============================================================
   Page Loader
   ============================================================ */
.site-loader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-loader.loaded { opacity: 0; visibility: hidden; }

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

.loader-brand {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--white);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.loader-brand span { color: var(--primary); }

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--dark-3);
    margin: 0 auto;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    background: var(--primary);
    width: 0;
    animation: loaderFill 1.5s ease forwards;
}

@keyframes loaderFill { to { width: 100%; } }

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-h);
    transition: var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(16, 16, 16, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: 70px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
}

/* Logo */
.header-logo a { display: block; }

.logo-text {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-text .accent { color: var(--primary); }

.logo-img { height: 50px; width: auto; }

/* Navigation */
.header-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.header-nav .nav-list > li {
    position: relative;
}

.header-nav .nav-list > li > a {
    display: block;
    padding: 0 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    transition: var(--transition);
    line-height: var(--header-h);
}

.site-header.scrolled .header-nav .nav-list > li > a {
    line-height: 70px;
}

.header-nav .nav-list > li > a:hover,
.header-nav .nav-list > li.active > a { color: var(--primary); }

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    min-width: 220px;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-top: 2px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text);
    border-bottom: 1px solid var(--dark-3);
    transition: var(--transition);
}

.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { color: var(--primary); padding-left: 28px; background: rgba(221,114,16,0.05); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; }

.action-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.action-btn:hover { color: var(--primary); border-color: var(--border); }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16,16,16,0.97);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.search-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
}

.search-close:hover { color: var(--primary); transform: rotate(90deg); }

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 700px;
    padding: 0 40px;
    border-bottom: 2px solid var(--primary);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-heading);
    font-size: 40px;
    color: var(--white);
    padding: 20px 0;
}

.search-input::placeholder { color: var(--text-light); }

.search-submit {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 28px;
    cursor: pointer;
    padding: 10px;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16,16,16,0.85) 0%, rgba(16,16,16,0.4) 60%, rgba(16,16,16,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding: calc(var(--header-h) + 60px) 40px 80px;
    margin-left: 8%;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--primary);
}

.hero-title {
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 48px;
    max-width: 520px;
    line-height: 1.8;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-sm { padding: 10px 24px; font-size: 11px; }

.btn i { font-size: 14px; transition: transform 0.3s; }
.btn:hover i { transform: translateX(4px); }

/* ============================================================
   Section Styles
   ============================================================ */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 140px 0; }

.section-header {
    margin-bottom: 60px;
}

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

.section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--primary);
}

.section-eyebrow.no-line::before,
.section-eyebrow.no-line::after { display: none; }

.section-title { color: var(--white); margin-bottom: 16px; }

.section-subtitle {
    font-size: 16px;
    color: var(--text);
    max-width: 600px;
    line-height: 1.8;
}

.section-header.center .section-subtitle { margin: 0 auto; }

/* ============================================================
   Product Card
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.products-grid-4 { grid-template-columns: repeat(4, 1fr); }
.products-grid-2 { grid-template-columns: repeat(2, 1fr); }

.product-card {
    background: var(--dark);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover { z-index: 2; }

.product-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--dark-2);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 1;
}

.badge-sale { background: var(--primary); color: var(--white); }
.badge-new { background: var(--dark-3); color: var(--white); border: 1px solid var(--border); }

.product-actions {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    display: flex;
    gap: 1px;
    background: var(--border);
    transition: var(--transition);
}

.product-card:hover .product-actions { bottom: 0; }

.product-action-btn {
    flex: 1;
    padding: 12px;
    background: var(--dark);
    border: none;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.product-action-btn:hover { background: var(--primary); color: var(--white); }

.product-info {
    padding: 24px;
    border-top: 1px solid var(--dark-3);
}

.product-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-name a { color: inherit; }
.product-name a:hover { color: var(--primary); }

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.price-original {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-sale { color: var(--primary); }

/* ============================================================
   Featured Section
   ============================================================ */
.featured-section { background: var(--dark); }

.featured-section .products-grid { margin-top: 0; }

/* ============================================================
   About/Story Section
   ============================================================ */
.story-section {
    background: var(--dark-2);
    overflow: hidden;
}

.story-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.story-media {
    position: relative;
    overflow: hidden;
}

.story-media img,
.story-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 80px 80px 60px;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid var(--border);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--primary);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
}

/* ============================================================
   Gallery Section
   ============================================================ */
.gallery-section { background: var(--dark); overflow: hidden; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 1px;
    background: var(--border);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--dark-2);
    aspect-ratio: 1;
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.05); }

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16,16,16,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay i { font-size: 32px; color: var(--white); }

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 13px;
    letter-spacing: 1px;
}

.gallery-placeholder i { font-size: 28px; color: var(--border); }

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
    background: var(--dark-3);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(221,114,16,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-title { margin-bottom: 20px; }

.cta-subtitle {
    max-width: 500px;
    margin: 0 auto 40px;
    font-size: 16px;
    color: var(--text);
}

/* ============================================================
   Features / Icons Section
   ============================================================ */
.features-section {
    background: var(--dark-3);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.feature-item {
    padding: 50px 40px;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: var(--transition);
}

.feature-item:last-child { border-right: none; }
.feature-item:hover { background: rgba(221,114,16,0.04); }

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(221,114,16,0.1);
    border: 1px solid rgba(221,114,16,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 22px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--white);
    margin-bottom: 10px;
}

.feature-text { font-size: 14px; color: var(--text); }

/* ============================================================
   Catalog / Shop Page
   ============================================================ */
.page-hero {
    padding: calc(var(--header-h) + 60px) 0 60px;
    background: var(--dark-2);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 16px;
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 60px 0;
}

.catalog-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.sidebar-widget:last-child { border-bottom: none; }

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.category-list li { margin-bottom: 4px; }

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(58,58,58,0.5);
    transition: var(--transition);
}

.category-list a:hover,
.category-list a.active { color: var(--primary); }

.category-count {
    font-size: 11px;
    color: var(--text-light);
    background: var(--dark-3);
    padding: 2px 8px;
    border-radius: 20px;
}

.catalog-main {}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.catalog-count { font-size: 13px; color: var(--text-light); }

.catalog-count span { color: var(--white); font-weight: 700; }

.sort-select {
    background: var(--dark-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 16px;
    font-size: 13px;
    font-family: var(--font-body);
    cursor: pointer;
    outline: none;
}

.sort-select:focus { border-color: var(--primary); }

/* Catalog grid with border separation */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.catalog-grid .product-card { background: var(--dark); }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    border: 1px solid var(--border);
    transition: var(--transition);
    background: var(--dark);
}

.pagination a:hover { border-color: var(--primary); color: var(--primary); background: rgba(221,114,16,0.05); }
.pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ============================================================
   Single Product Page
   ============================================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 80px 0;
}

.product-gallery-main {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    height: fit-content;
}

.product-main-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--dark-2);
    margin-bottom: 12px;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.5s ease;
}

.product-main-image:hover img { transform: scale(1.03); }

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.product-thumb-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb-item.active { border-color: var(--primary); }
.product-thumb-item:hover { border-color: var(--border); }

.product-info-detail {}

.product-detail-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.product-detail-name {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--white);
    margin-bottom: 24px;
}

.product-detail-price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 28px;
}

.product-detail-desc {
    font-size: 15px;
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.product-detail-actions { margin-bottom: 36px; }

.product-detail-meta {
    font-size: 13px;
    color: var(--text-light);
}

.product-detail-meta span { color: var(--text); }

.product-detail-meta p { margin-bottom: 8px; }

/* ============================================================
   About Page
   ============================================================ */
.about-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
}

.about-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--dark) 30%, transparent 80%);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 40px 80px;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-grid.reverse .about-image { order: -1; }

.about-image { overflow: hidden; }

.about-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img { transform: scale(1.03); }

.about-text .section-eyebrow { margin-bottom: 16px; }
.about-text .section-title { margin-bottom: 24px; }

.team-section { background: var(--dark-2); padding: 100px 0; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

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

.team-image {
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--dark-3);
}

.team-image img { width: 100%; height: 100%; object-fit: cover; }

.team-name {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--white);
    margin-bottom: 6px;
}

.team-role { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); }

/* ============================================================
   Contact Page
   ============================================================ */
.contact-section { padding: 100px 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info { padding-right: 40px; }

.contact-info-items { margin-top: 40px; }

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(221,114,16,0.1);
    border: 1px solid rgba(221,114,16,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item-content h5 {
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 6px;
}

.contact-item-content p,
.contact-item-content a {
    font-size: 15px;
    color: var(--text);
}

.contact-item-content a:hover { color: var(--primary); }

.contact-form { }

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

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    background: var(--dark-2);
    border: 1px solid var(--border);
    padding: 14px 18px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus { border-color: var(--primary); background: var(--dark-3); }
.form-control::placeholder { color: var(--text-light); }

textarea.form-control { resize: vertical; min-height: 150px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-success {
    padding: 20px;
    background: rgba(76,175,80,0.1);
    border: 1px solid rgba(76,175,80,0.3);
    color: #81c784;
    margin-bottom: 24px;
    display: none;
}

.form-error {
    padding: 20px;
    background: rgba(244,67,54,0.1);
    border: 1px solid rgba(244,67,54,0.3);
    color: #e57373;
    margin-bottom: 24px;
    display: none;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--dark-2); border-top: 1px solid var(--border); }

.footer-top { padding: 80px 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--white);
    display: block;
    margin-bottom: 16px;
}

.footer-logo span { color: var(--primary); }

.footer-brand > p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.8;
}

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

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.5px;
}

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

.footer-links ul li a {
    font-size: 13px;
    color: var(--text);
    padding: 6px 0;
    display: block;
    transition: var(--transition);
}

.footer-links ul li a:hover { color: var(--primary); padding-left: 8px; }

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 12px;
}

.footer-contact ul li i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.footer-contact ul li a { color: var(--text); font-size: 13px; }
.footer-contact ul li a:hover { color: var(--primary); }

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p { font-size: 13px; color: var(--text-light); }

/* ============================================================
   Scroll to Top
   ============================================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--dark-3); }

/* ============================================================
   Animations
   ============================================================ */
[data-aos] {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-down"] { transform: translateY(-40px); }
[data-aos="fade-left"] { transform: translateX(40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="zoom-in"] { transform: scale(0.9); }

[data-aos].aos-animate {
    opacity: 1;
    transform: none;
}

/* Stagger delays */
[data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos-delay="300"] { transition-delay: 300ms; }
[data-aos-delay="400"] { transition-delay: 400ms; }
[data-aos-delay="500"] { transition-delay: 500ms; }
[data-aos-delay="600"] { transition-delay: 600ms; }

/* ============================================================
   Utility Classes
   ============================================================ */
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-light) !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ============================================================
   Responsive - Tablet (1024px)
   ============================================================ */
@media (max-width: 1200px) {
    .container { padding: 0 24px; }
    .header-inner { padding: 0 24px; }
    .hero-content { margin-left: 4%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .story-content { padding: 60px 50px 60px 40px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 1024px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-sidebar { position: static; }
    .about-grid { grid-template-columns: 1fr; }
    .about-grid.reverse .about-image { order: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { padding-right: 0; }
    .story-inner { grid-template-columns: 1fr; }
    .story-media { min-height: 400px; }
    .product-detail { grid-template-columns: 1fr; }
    .product-gallery-main { position: static; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Responsive - Mobile (768px)
   ============================================================ */
@media (max-width: 768px) {
    :root { --header-h: 70px; }
    .container { padding: 0 16px; }
    .header-inner { padding: 0 16px; }

    .header-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: var(--dark-2);
        z-index: 999;
        transition: right 0.35s ease;
        overflow-y: auto;
        padding-top: 80px;
        border-left: 1px solid var(--border);
    }

    .header-nav.open { right: 0; }

    .header-nav .nav-list { flex-direction: column; align-items: stretch; }
    .header-nav .nav-list > li > a { line-height: 1; padding: 16px 24px; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; border: none; border-top: 1px solid var(--border); background: var(--dark); }

    .mobile-menu-toggle { display: flex; z-index: 1001; }

    .products-grid { grid-template-columns: 1fr; }
    .products-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .catalog-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:nth-child(1) { grid-column: span 2; }
    .story-stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .stat-number { font-size: 36px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-content { margin-left: 0; padding: calc(var(--header-h) + 40px) 20px 60px; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 70px 0; }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .products-grid-4 { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .gallery-item:nth-child(1) { grid-column: span 1; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .story-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Hero Scroll Indicator
   ============================================================ */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-scroll a:hover { color: rgba(255,255,255,0.8); }

.scroll-line {
    display: block;
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    animation: scrollLine 1.5s ease infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   Empty State Placeholders
   ============================================================ */
.empty-products-placeholder {
    text-align: center;
    padding: 80px 0;
    color: var(--text-light);
}

.empty-products-placeholder i {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
    color: var(--border);
}

.empty-products-placeholder a { color: var(--primary); }

/* ============================================================
   No-image placeholder patterns
   ============================================================ */
.img-placeholder {
    background: linear-gradient(135deg, #1a1a1a 0%, #2b2b2b 50%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
    font-size: 40px;
}

/* ============================================================
   Enhanced Product Card Hover
   ============================================================ */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    transition: var(--transition);
    pointer-events: none;
    z-index: 3;
}

.product-card:hover::after {
    border-color: rgba(221,114,16,0.3);
}

/* ============================================================
   Gallery hover enhancement
   ============================================================ */
.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(16,16,16,0.6) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.gallery-item:hover::after { opacity: 1; }

/* ============================================================
   CTA section glow enhancement
   ============================================================ */
.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

/* ============================================================
   Button shine effect
   ============================================================ */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before { left: 100%; }

/* ============================================================
   Smooth loading for images
   ============================================================ */
.product-thumb img,
.gallery-item img,
.story-media img {
    background: var(--dark-2);
}

/* ============================================================
   Section divider decoration
   ============================================================ */
.section-header.center .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin: 20px auto 0;
}

/* ============================================================
   Footer brand enhancement
   ============================================================ */
.footer-logo:hover span { 
    text-shadow: 0 0 20px rgba(221,114,16,0.5); 
}

/* ============================================================
   Selection color
   ============================================================ */
::selection {
    background: rgba(221,114,16,0.3);
    color: var(--white);
}

::-moz-selection {
    background: rgba(221,114,16,0.3);
    color: var(--white);
}

/* ============================================================
   Scrollbar styling
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark-3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
   Focus outlines for accessibility
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
