/* Design System: B&R Tech Premium */
:root {
    --primary: #0066FF;
    --primary-hover: #0052cc;
    --accent: #ff4d4d; /* Red for prices and CTA */
    --bg-dark: #000000;
    --bg-light: #f6f8fb;
    --bg-card: #ffffff;
    --text-dark: #111111;
    --text-muted: #888888;
    --border: #eef1f5;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Header */
header {
    background: #000;
    color: white;
    padding: 12px 0;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.search-bar {
    flex: 0 1 550px;
}

.search-bar input {
    width: 100%;
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    background: #fff;
    font-size: 14px;
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.header-actions {
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.header-actions i {
    font-size: 18px;
}

.cart-badge {
    background: var(--accent);
    color: white;
    padding: 2px 7px;
    border-radius: 50%;
    font-size: 11px;
    margin-left: -10px;
    vertical-align: top;
}

/* Nav Bar */
.nav-bar {
    background: #111;
    padding: 12px 0;
    border-top: 1px solid #222;
}

.nav-bar .container {
    display: flex;
    gap: 35px;
}

.nav-bar a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-bar a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: #000 radial-gradient(circle at 75% 50%, #1a1a1a 0%, #000 100%);
    height: 600px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 100px rgba(0, 102, 255, 0.2);
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero h1 .blue { color: var(--primary); }

.hero p {
    font-size: 18px;
    margin-bottom: 35px;
    color: #eee;
}

.btn-hero {
    background: #d32f2f;
    color: white;
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

.btn-hero:hover {
    background: #b71c1c;
    transform: translateY(-3px);
}

/* Categories Strip */
.categories-section {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.categories-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    height: 60px;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Content Sections */
.section {
    padding: 80px 0;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.section-header h2 {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    color: #222;
}

.btn-view-all {
    background: #004d99;
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
}

/* Product Cards (Two-Tone - Compact) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; /* Reduced gap */
}

.product-card {
    background: #fff;
    border-radius: 6px; /* Slightly sharper corners */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-img {
    background: #ebf1f7;
    height: 180px; /* More compact height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card-body {
    padding: 15px;
}

.product-title {
    font-size: 13px; /* Smaller font */
    font-weight: 600;
    height: 36px;
    line-height: 1.4;
    overflow: hidden;
    margin-bottom: 10px;
    color: #333;
}

.product-prices {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.old-price {
    font-size: 11px;
    color: #999;
    display: block;
    margin-bottom: 1px;
}

.new-price {
    font-size: 17px; /* More compact price */
    font-weight: 800;
    color: var(--accent);
}

.new-price span {
    font-size: 13px;
    color: #222;
    font-weight: 500;
    margin-left: 5px;
}

/* Footer Styles (Already Professional) */
footer {
    background: #000;
    color: #fff;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: #aaa; text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 30px;
    font-size: 13px;
    color: #555;
}

/* Admin Styles (Keep them at bottom) */
.admin-body { display: flex; min-height: 100vh; background: #050505; }
.admin-sidebar { width: 280px; background: #111; border-right: 1px solid #222; padding: 30px 20px; position: fixed; height: 100vh; }
.admin-main { flex: 1; margin-left: 280px; padding: 40px 60px; color: white; }
.stat-card { background: #111; padding: 30px; border-radius: 20px; border: 1px solid #222; }
.admin-section { background: #111; border-radius: 24px; border: 1px solid #222; padding: 30px; }
.admin-table th { color: #666; border-bottom: 1px solid #222; }
.admin-table td { color: #eee; border-bottom: 1px solid #222; }

/* Search Suggestions */
.search-suggestions-box { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: 0 15px 50px rgba(0,0,0,0.15); z-index: 1000; margin-top: 10px; overflow: hidden; border: 1px solid #eee; }
.suggestion-item { display: flex; align-items: center; gap: 15px; padding: 12px 20px; text-decoration: none; color: #333; border-bottom: 1px solid #f5f5f5; transition: background 0.2s; }
.suggestion-item:hover { background: #f8f9fa; }
.suggestion-item img { width: 40px; height: 40px; object-fit: contain; background: #fff; padding: 2px; border-radius: 4px; }
.suggestion-info { display: flex; flex-direction: column; }
.suggestion-name { font-size: 14px; font-weight: 600; }
.suggestion-price { font-size: 12px; color: var(--accent); font-weight: 700; }

/* --- REFINAMIENTO ADMIN (LIGHT MODE) --- */
.admin-body { display: flex; min-height: 100vh; background: #f4f7f6; color: #333; font-family: Inter, sans-serif; }
.admin-header { background: transparent; color: inherit; padding: 0; display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border: none; }
.admin-header h1 { font-size: 28px; color: #1e293b; margin-bottom: 5px; line-height: 1.2; }
.admin-sidebar { width: 260px; background: #ffffff; border-right: 1px solid #e1e8ed; padding: 25px; height: 100vh; position: fixed; box-shadow: 2px 0 10px rgba(0,0,0,0.02); }
.admin-main { margin-left: 260px; padding: 40px; width: calc(100% - 260px); }
.admin-card { background: #ffffff; border: 1px solid #e1e8ed; border-radius: 12px; padding: 25px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.admin-table { width: 100%; border-collapse: collapse; background: #ffffff; border-radius: 8px; overflow: hidden; }
.admin-table th { background: #f8fafc; padding: 14px 15px; text-align: left; color: #64748b; font-size: 12px; text-transform: uppercase; font-weight: 700; border-bottom: 2px solid #e2e8f0; }
.admin-table td { padding: 14px 15px; border-bottom: 1px solid #f1f5f9; font-size: 14px; color: #334155; }
.product-img-mini { width: 40px; height: 40px; object-fit: contain; background: #f8fafc; padding: 4px; border-radius: 6px; border: 1px solid #e2e8f0; }
.btn-admin { padding: 6px 12px; border-radius: 6px; font-size: 12px; text-decoration: none; font-weight: 600; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; }
.btn-edit { background: #eff6ff; color: var(--primary); border: 1px solid #bfdbfe; }
.btn-edit:hover { background: var(--primary); color: #fff; }
.btn-delete { background: #fef2f2; color: var(--accent); border: 1px solid #fecaca; }
.btn-delete:hover { background: var(--accent); color: #fff; }
