/* ============================================================
   CoreTrack.net — Main Stylesheet
   Brand: Carbon Black #0d1117 | Track Green #00E5A0 | Performance Blue #0f3460
   ============================================================ */

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

:root {
    --black:      #0d1117;
    --green:      #00E5A0;
    --green-dark: #00b87f;
    --blue:       #0f3460;
    --white:      #ffffff;
    --gray-light: #f8f9fa;
    --gray:       #6c757d;
    --gray-dark:  #343a40;
    --danger:     #dc3545;
    --font-heading: 'Exo 2', sans-serif;
    --font-body:    'Inter', sans-serif;
    --radius:     8px;
    --radius-lg:  14px;
    --shadow:     0 2px 20px rgba(0,0,0,0.08);
    --transition: all 0.25s ease;
}

body {
    font-family: var(--font-body);
    color: var(--gray-dark);
    background: var(--white);
    line-height: 1.6;
}

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

/* ── HEADER ── */
.header {
    background: var(--black);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--green);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
}

.logo-core  { color: var(--white); }
.logo-track { color: var(--green); }

.nav { display: flex; gap: 24px; }
.nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.nav a:hover { color: var(--green); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.icon-btn {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 20px;
    position: relative;
    transition: var(--transition);
}
.icon-btn:hover { color: var(--green); }

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--green);
    color: var(--black);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── FLASH ── */
.flash {
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
.flash-success { background: #d4edda; color: #155724; }
.flash-error   { background: #f8d7da; color: #721c24; }
.flash-info    { background: #d1ecf1; color: #0c5460; }

/* ── HERO ── */
.hero {
    background: var(--black);
    padding: 80px 0;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-badge {
    display: inline-block;
    background: var(--green);
    color: var(--black);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 54px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title span { color: var(--green); }

.hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

.stat { text-align: center; }
.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--green);
}
.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Watch Illustration */
.hero-watch-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--blue);
    border: 4px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(0,229,160,0.2);
}

.watch-screen { text-align: center; }
.watch-time {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
}
.watch-bpm {
    font-size: 20px;
    color: var(--green);
    margin-top: 8px;
}

/* ── TRUST BAR ── */
.trust-bar {
    background: var(--green);
    padding: 12px 0;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
}

/* ── SECTIONS ── */
.section { padding: 70px 0; }

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 40px;
    text-align: center;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section-header .section-title { margin-bottom: 0; }

.view-all {
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* ── CATEGORIES ── */
.categories-section { background: var(--gray-light); }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--gray-dark);
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
}

.category-icon { font-size: 32px; margin-bottom: 10px; }
.category-name { font-size: 13px; font-weight: 600; }

/* ── PRODUCTS GRID ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.product-image-wrap {
    display: block;
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--gray-light);
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: var(--gray-light);
}

.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-info { padding: 16px; }

.product-category {
    font-size: 11px;
    color: var(--green-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-name a { color: var(--black); text-decoration: none; }
.product-name a:hover { color: var(--green-dark); }

.product-price { margin-bottom: 14px; }

.price-regular { font-size: 20px; font-weight: 700; color: var(--black); }
.price-sale    { font-size: 20px; font-weight: 700; color: var(--danger); margin-right: 8px; }
.price-original { font-size: 14px; color: var(--gray); text-decoration: line-through; }

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--green);
    color: var(--black);
    border-color: var(--green);
}
.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-add-cart {
    width: 100%;
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-add-cart:hover { background: var(--green); color: var(--black); }

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

/* ── FEATURES ── */
.features-section { background: var(--gray-light); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
}
.feature-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ── FOOTER ── */
.footer {
    background: var(--black);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

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

.footer-brand p { font-size: 14px; margin: 12px 0 20px; }

.social-links { display: flex; gap: 16px; }
.social-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}
.social-links a:hover { color: var(--green); }

.footer-links h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--green); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    flex-wrap: wrap;
    gap: 8px;
}

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--gray-dark); }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--white);
}
.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,229,160,0.1);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 36px; }
    .hero-image { display: none; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .nav { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust-items { gap: 16px; }
    .section-header { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr; }
}
