/* ==========================================
   GLOBAL STYLES
   ========================================== */
body {
    background-color: #050505;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* ==========================================
   TICKER
   ========================================== */
.ticker-wrap {
    position: absolute;
    top: 0;
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 0, 51, 0.3);
    white-space: nowrap;
    z-index: 1001;
    height: 35px;
    display: flex;
    align-items: center;
}

.ticker {
    display: inline-block;
    animation: ticker 25s linear infinite;
    padding-left: 100%;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ticker-item {
    display: inline-block;
    padding: 0 30px;
}

.ticker-item span {
    color: #ff0033;
    margin-right: 10px;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================
   MAIN HEADER & CENTERED GRID MENU
   ========================================== */
.main-header {
    position: absolute;
    top: 35px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(5px);
    border-bottom: 2px solid #ff0033;
}

.flex-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
}

.site-logo {
    grid-column: 1;
    justify-self: start;
}

.desktop-menu {
    grid-column: 2;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.desktop-menu a {
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.desktop-menu a:hover,
.desktop-menu a.active {
    color: #ff0033;
}

/* ==========================================
   MOBILE MENU & TOGGLE
   ========================================== */
.menu-toggle {
    background: #111 !important;
    border: 1px solid #333 !important;
    border-left: 3px solid #ff0033 !important;
    color: #fff !important;
    cursor: pointer;
    padding: 8px 14px !important;
    font-size: 18px !important;
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase;
    display: none;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 35px);
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 3px solid #ff0033;
    padding: 20px 0;
    z-index: 999;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mobile-menu.active {
    display: flex !important;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: #ff0033 !important;
    background: rgba(255, 0, 51, 0.05);
    border-left: 4px solid #ff0033;
    border-right: 4px solid #ff0033;
}

/* ==========================================
   AUTOCROSS MERCH PRODUCT CARDS
   ========================================== */
.merch-card {
    background: #0b0b0b;
    border: 1px solid #222;
    border-top: 3px solid #ff0033;
    border-radius: 4px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.merch-card:hover {
    transform: translateY(-6px);
    border-color: #ff0033;
    box-shadow: 0 15px 40px rgba(255,0,51,0.15);
}

.card-img-wrap {
    width: 100%;
    height: 360px;
    margin: 0;
    overflow: hidden;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #ff0033;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.merch-card:hover .card-img-wrap img {
    transform: scale(1.04);
}

.product-info {
    padding: 28px 30px 32px;
}

.product-category {
    display: inline-block;
    color: #ff0033;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.merch-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.7rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.merch-card p {
    color: #aaa;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.product-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.product-details span {
    border: 1px solid #333;
    background: #111;
    color: #ccc;
    padding: 6px 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.merch-card .btn-primary {
    width: 100%;
    text-align: center;
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #222;
    display: block;
}

.home-info {
    padding: 25px;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: #030303;
    border-top: 2px solid #1a1a1a;
    text-align: center;
    padding: 50px 20px;
    color: #777;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 768px) {
    .flex-header {
        display: flex;
        justify-content: space-between;
    }
    .desktop-menu {
        display: none;
    }
    .menu-toggle {
        display: block !important;
    }
    .merch-grid {
        grid-template-columns: 1fr;
        padding: 50px 15px;
        gap: 25px;
    }
    .card-img-wrap {
        height: 320px;
    }
    .product-info {
        padding: 25px 20px 28px;
    }
}
.btn-checkout {
  display: inline-block;
  background-color: #635bff;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.btn-checkout:hover {
  background-color: #5147e5;
}
