/* ============================================================
   LB HARDWARE · Main Stylesheet
   Industrial · Modern · Refined
   ============================================================ */

:root {
    --gold:     #e8b84b;
    --gold-dim: #b8892b;
    --dark-0:   #0a0a0a;
    --dark-1:   #0d0d0d;
    --dark-2:   #111111;
    --dark-3:   #161410;
    --dark-4:   #1a1610;
    --border:   #2a2319;
    --text-1:   #e8e0d4;
    --text-2:   #c8bfb0;
    --text-3:   #9a8f7e;
    --text-4:   #7a6f60;
    --text-5:   #5a5040;
    --text-6:   #4a3f30;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Barlow', sans-serif;
    background: var(--dark-1);
    color: var(--text-1);
    -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav-glass {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    font-family: 'Barlow Condensed', sans-serif;
}

.logo-text { font-family: 'Bebas Neue', sans-serif; }

.nav-link {
    color: var(--text-4);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 100%;
    height: 1px;
    background: var(--gold);
    transition: right 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }

/* ── HERO / CAROUSEL ── */
.carousel-bg { z-index: 0; }

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.carousel-slide.active { opacity: 1; }

.carousel-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1208 50%, #0d0d0d 100%);
    position: relative;
    overflow: hidden;
}
.carousel-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(232,184,75,0.03) 60px, rgba(232,184,75,0.03) 61px),
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(232,184,75,0.03) 60px, rgba(232,184,75,0.03) 61px);
}
.carousel-placeholder[data-n="1"] { background: linear-gradient(135deg, #0a0a0a 0%, #1c1308 60%, #0a0a0a 100%); }
.carousel-placeholder[data-n="2"] { background: linear-gradient(135deg, #0d0a06 0%, #1a1004 60%, #0d0a06 100%); }
.carousel-placeholder[data-n="3"] { background: linear-gradient(225deg, #0a0a0a 0%, #130e04 60%, #0a0a0a 100%); }

.carousel-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.15) 30%,
        rgba(0,0,0,0.5) 70%,
        rgba(0,0,0,0.85) 100%
    );
}

.hero-content { animation: fadeUp 1.2s ease both; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fadeUp 1.2s ease 0.2s both; }
.hero-title   { animation: fadeUp 1.2s ease 0.0s both; line-height: 0.9; }
.hero-tagline { animation: fadeUp 1.2s ease 0.3s both; }

.carousel-dots { gap: 8px; }
.carousel-dot {
    width: 28px; height: 3px;
    background: rgba(255,255,255,0.2);
    border: none; cursor: pointer;
    transition: background 0.3s, width 0.3s;
    border-radius: 2px;
}
.carousel-dot.active {
    background: var(--gold);
    width: 48px;
}

.scroll-hint { opacity: 0.4; }
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, transparent, var(--gold));
    margin: 0 auto;
    animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: #0a0a0a;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #f0c65a; transform: translateY(-1px); }

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--text-4);
    border: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    letter-spacing: 0.1em;
}
.btn-ghost:hover { color: var(--gold); }
.btn-ghost .arrow { transition: transform 0.2s; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.btn-danger {
    display: inline-block;
    background: rgba(220, 38, 38, 0.1);
    color: #f87171;
    border: 1px solid rgba(220,38,38,0.3);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}
.btn-danger:hover { background: rgba(220,38,38,0.2); }

/* ── PRODUCTS ── */
.product-card {
    background: var(--dark-4);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
}
.product-card:hover {
    border-color: rgba(232,184,75,0.3);
    transform: translateY(-2px);
}

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

.product-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img { transform: scale(1.04); }

.product-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: 
        linear-gradient(135deg, var(--dark-3) 0%, var(--dark-4) 100%);
    position: relative;
}
.product-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent 0, transparent 10px,
        rgba(232,184,75,0.02) 10px, rgba(232,184,75,0.02) 11px
    );
}

.product-category-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(0,0,0,0.7);
    color: var(--gold);
    font-size: 0.65rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 8px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(232,184,75,0.2);
}

.out-of-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f87171;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.product-body {
    padding: 18px;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.82rem;
    color: var(--text-5);
    line-height: 1.5;
    margin-bottom: 14px;
    font-weight: 300;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.in-stock-badge {
    font-size: 0.65rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4ade80;
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.2);
    padding: 2px 8px;
}

.out-stock-badge {
    font-size: 0.65rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f87171;
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.2);
    padding: 2px 8px;
}

/* ── ABOUT ── */
.about-bg-accent {
    position: absolute;
    right: -200px; top: 50%;
    transform: translateY(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(232,184,75,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.stat-block { padding: 16px 0; border-top: 1px solid var(--border); }

.about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: 400px;
}
.about-img-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}
.about-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--dark-4) 0%, var(--dark-3) 100%);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.about-img-placeholder::after {
    content: '🔧';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.1;
}

.about-img-secondary { display: flex; flex-direction: column; gap: 12px; }
.about-img-small {
    flex: 1;
    background: var(--dark-3);
    border: 1px solid var(--border);
}
.about-img-small.accent {
    background: linear-gradient(135deg, #1a1208, #251a08);
    border-color: rgba(232,184,75,0.15);
}

/* ── CATEGORIES ── */
.category-pill {
    padding: 8px 20px;
    border: 1px solid var(--border);
    color: var(--text-4);
    font-size: 0.75rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.category-pill:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(232,184,75,0.05);
}

/* ── CONTACT ── */
.contact-card {
    background: var(--dark-4);
    border: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s;
}
.contact-card:hover { border-color: rgba(232,184,75,0.25); }
.contact-icon { font-size: 2rem; margin-bottom: 12px; }
.contact-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}
.contact-info {
    color: var(--text-3);
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 300;
}

/* ── SEARCH / INVENTORY ── */
.search-input {
    background: var(--dark-4);
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 8px 16px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.875rem;
    transition: border-color 0.2s;
    outline: none;
}
.search-input:focus { border-color: rgba(232,184,75,0.4); }
.search-input option { background: var(--dark-4); }

/* ── LOGIN ── */
.login-left-bg {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1208 50%, #0d0a06 100%);
}
.login-left-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(232,184,75,0.03) 80px, rgba(232,184,75,0.03) 81px),
        repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(232,184,75,0.03) 80px, rgba(232,184,75,0.03) 81px);
}

/* ── FORMS ── */
.form-label {
    display: block;
    font-size: 0.7rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-4);
    margin-bottom: 6px;
}
.form-input {
    background: var(--dark-3);
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 10px 14px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.form-input:focus { border-color: rgba(232,184,75,0.5); }
.form-input::placeholder { color: var(--text-6); }
textarea.form-input { resize: vertical; }
.file-input { cursor: pointer; color: var(--text-4); }

.form-checkbox {
    width: 16px; height: 16px;
    accent-color: var(--gold);
    cursor: pointer;
}

/* ── ALERTS ── */
.alert-success {
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.25);
    color: #4ade80;
    padding: 12px 16px;
    font-size: 0.875rem;
}
.alert-error {
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.25);
    color: #f87171;
    padding: 12px 16px;
    font-size: 0.875rem;
}

/* ── SECTION TITLE ── */
.section-title { line-height: 0.9; }
.admin-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-4);
}
