/*
Theme Name: Infinity Glory
Theme URI: https://infinityglorycars.com/
Description: A premium racing theme — exact NASCAR.com replica for Infinity Glory Cars.
Author: Antigravity
Version: 2.8.0
Text Domain: infinity-glory
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ===== FONTS ===== */
@font-face {
    font-family: 'Stainless';
    src: url('./fonts/Stainless-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Stainless';
    src: url('./fonts/Stainless-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Stainless';
    src: url('./fonts/Stainless-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===== RESET & VARIABLES ===== */
:root {
    --ig-black: #000000;
    --ig-white: #ffffff;
    --ig-offwhite: #eaeaea; /* Updated to match NASCAR */
    --ig-grey-light: #e8e8e8;
    --ig-grey: #999999;
    --ig-grey-dark: #333333;
    --ig-blue: #007cc2;
    --ig-red: #e10600;
    --ig-yellow: #ffd500;
    --ig-stripe-blue: #005696;
    --ig-font-heading: 'Stainless', sans-serif;
    --ig-font-body: 'Stainless', sans-serif;
    --header-h: 56px;
    --mobile-pad: 16px;
}

body, p, ul, ol, li, input, textarea, select, button {
    font-family: 'Stainless', sans-serif !important;
    color: var(--ig-black);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Stainless', sans-serif !important;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
}

/* Shop Padding */
.woocommerce-shop .container,
.woocommerce-shop #primary {
    padding: 40px 20px !important;
}

/* Remove bottom things on shop */
.woocommerce-shop .footer-widgets,
.woocommerce-shop .sidebar,
.woocommerce-shop #secondary {
    display: none !important;
}

/* NASCAR-style italic condensed headings */
h1, h2, h3 {
    font-family: var(--ig-font-heading);
    font-weight: 900;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

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

body {
    font-family: var(--ig-font-body);
    background: var(--ig-offwhite);
    color: var(--ig-black);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--mobile-pad); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: var(--ig-font-heading);
    font-weight: 900;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.05;
}

/* ===== TRICOLOR STRIPE ===== */
.tricolor-stripe {
    height: 4px;
    background: linear-gradient(90deg, #005696 33.33%, #e10600 33.33%, #e10600 66.66%, #ffd500 66.66%);
    width: 100%;
    margin-bottom: 12px;
}

/* ===== SCOREBOARD TICKER ===== */
.scoreboard-ticker {
    background: var(--ig-offwhite);
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 0;
    font-size: 0.78rem;
    scrollbar-width: none;
}
.scoreboard-ticker::-webkit-scrollbar { display: none; }
.ticker-inner { display: flex; gap: 8px; padding: 0 var(--mobile-pad); align-items: center; }
.ticker-item {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--ig-white); border: 1px solid var(--ig-grey-light);
    padding: 8px 16px; border-radius: 6px; font-weight: 600; flex-shrink: 0;
}
.ticker-item .track-name { font-weight: 700; font-size: 0.82rem; }
.ticker-item .race-date { color: var(--ig-grey); font-size: 0.72rem; }
.ticker-btn {
    background: var(--ig-black); color: var(--ig-white);
    padding: 6px 16px; border-radius: 4px; font-weight: 800;
    font-size: 0.68rem; text-transform: uppercase; display: inline-block;
}

/* ===== HEADER ===== */
.site-header { background: var(--ig-black); position: sticky; top: 0; z-index: 1000; }
.header-main {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h); padding: 0 var(--mobile-pad); max-width: 1400px; margin: 0 auto;
}

/* Logo */
.logo-link { display: flex; align-items: center; gap: 6px; text-decoration: none; flex: 1; min-width: 0; margin-right: 12px; }
.logo-stripes { display: flex; gap: 2px; transform: skewX(-12deg); flex-shrink: 0; }
.logo-stripes span { display: block; width: 5px; height: 22px; }
.logo-stripes .s-blue { background: var(--ig-stripe-blue); }
.logo-stripes .s-red { background: var(--ig-red); }
.logo-stripes .s-yellow { background: var(--ig-yellow); }
.logo-text {
    font-family: var(--ig-font-heading); font-weight: 900; font-style: normal;
    font-size: 1rem; color: var(--ig-white); letter-spacing: -1px;
    text-transform: uppercase; line-height: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-main { min-width: 0; }
.logo-link { max-width: 60vw; overflow: hidden; }

/* Desktop Navigation */
.main-nav { display: none; }
@media (min-width: 1024px) {
    .main-nav { display: flex; align-items: center; gap: 24px; margin-left: 30px; flex-grow: 1; }
}
.main-nav a, .main-nav button {
    color: var(--ig-white); font-family: var(--ig-font-heading); font-weight: 700;
    font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.5px;
    background: none; border: none; cursor: pointer; padding: 0;
    transition: color 0.2s;
}
.main-nav a:hover, .main-nav button:hover { color: var(--ig-grey); }

/* MORE dropdown */
.more-dropdown { position: relative; }
.more-dropdown-content {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--ig-white); min-width: 220px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 2000; padding: 8px 0; margin-top: 10px;
}
.more-dropdown:hover .more-dropdown-content,
.more-dropdown.open .more-dropdown-content { display: block; }
.more-dropdown-content a {
    display: block; padding: 10px 20px; color: var(--ig-black);
    font-family: var(--ig-font-heading); font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase;
}
.more-dropdown-content a:hover { background: var(--ig-offwhite); }

/* Header right actions — ALWAYS visible including mobile */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-pill {
    display: inline-flex; align-items: center; padding: 4px 10px;
    border: 2px solid var(--ig-white); border-radius: 50px; color: var(--ig-white);
    font-family: var(--ig-font-heading); font-weight: 800; font-size: 0.6rem;
    text-transform: uppercase; transition: 0.2s; background: transparent;
}
.btn-pill:hover { background: var(--ig-white); color: var(--ig-black); }
.header-icon {
    color: var(--ig-white); font-size: 1.3rem; cursor: pointer;
    background: none; border: none; padding: 4px;
}

/* ===== HERO SECTION ===== */
.home-hero { background: var(--ig-offwhite); padding: 16px var(--mobile-pad); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 2fr 1fr; gap: 24px; max-width: 1280px; margin: 0 auto; }
    .home-hero { padding: 24px 0; }
}
.hero-main { position: relative; overflow: hidden; background: var(--ig-white); border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.hero-main img { width: 100%; display: block; min-height: 220px; object-fit: cover; border-radius: 12px 12px 0 0; }

/* Hero Caption (Text Below Image on all screens) */
@media (min-width: 1024px) {
    .hero-main img { height: 480px; }
}
.hero-caption {
    padding: 20px 20px;
    background: var(--ig-white);
    border-radius: 0 0 12px 12px;
}
@media (min-width: 1024px) {
    .hero-caption { padding: 30px 40px; }
}
.hero-series-tag {
    color: var(--ig-blue); font-family: var(--ig-font-heading);
    font-weight: 800; font-size: 0.85rem; text-transform: uppercase;
    margin-bottom: 8px; display: block;
}
.hero-caption h1 {
    color: var(--ig-black); font-size: 2rem;
    line-height: 1; margin-bottom: 12px;
}
@media (min-width: 1024px) {
    .hero-caption h1 { font-size: 2.8rem; }
}
.hero-caption p {
    color: #444; font-size: 1rem; line-height: 1.5;
}

/* Hero sidebar (desktop only) */
.hero-sidebar {
    background: var(--ig-offwhite); padding: 20px; display: none;
    border-left: 1px solid var(--ig-grey-dark);
}
@media (min-width: 1024px) { .hero-sidebar { display: block; } }
.sidebar-title {
    color: var(--ig-black); font-family: var(--ig-font-heading);
    font-weight: 800; font-size: 1rem; text-transform: uppercase;
    margin-bottom: 15px; border-bottom: 2px solid var(--ig-red); padding-bottom: 8px;
}
.sidebar-news-item {
    display: flex; gap: 12px; padding: 12px;
    background: var(--ig-white); margin-bottom: 8px; border-radius: 4px;
    border-bottom: 1px solid var(--ig-grey-light);
}
.sidebar-news-item img { width: 80px; height: 50px; object-fit: cover; flex-shrink: 0; }
.sidebar-news-item h4 {
    color: var(--ig-black); font-family: var(--ig-font-body);
    font-weight: 700; font-size: 0.8rem; font-style: normal;
    text-transform: none; line-height: 1.3;
}

/* ===== TOP STORIES CAROUSEL ===== */
.section-stories { padding: 24px 0; }
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px; padding: 0 var(--mobile-pad);
}
.section-header h2 {
    font-size: 1.4rem; position: relative; padding-bottom: 6px;
}
.section-header h2::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 40px; height: 3px; background: var(--ig-blue);
}
.carousel-arrows { display: flex; gap: 6px; }
.carousel-arrows button {
    width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ig-grey-light);
    background: var(--ig-white); cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.carousel-arrows button:hover { background: var(--ig-offwhite); }
.stories-track {
    display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--mobile-pad) 10px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.stories-track::-webkit-scrollbar { display: none; }
.story-card {
    flex: 0 0 160px; scroll-snap-align: start;
    border-radius: 12px; overflow: hidden; position: relative;
    aspect-ratio: 9/14; cursor: pointer;
}
@media (min-width: 768px) { .story-card { flex: 0 0 200px; } }
.story-card img, .story-card video { width: 100%; height: 100%; object-fit: cover; }
.story-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--ig-red); color: var(--ig-white);
    font-size: 0.6rem; font-weight: 900; padding: 2px 8px;
    border-radius: 3px; text-transform: uppercase;
}
.story-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 40px 12px 12px; color: var(--ig-white);
    font-family: var(--ig-font-heading); font-weight: 800;
    font-size: 0.85rem; font-style: normal;
}

/* ===== INSTAGRAM STORY VIEWER ===== */
.story-viewer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 5000;
    display: none; align-items: center; justify-content: center;
}
.story-viewer.active { display: flex; }
.story-viewer-inner {
    position: relative; width: 100%; max-width: 420px; height: 100vh;
    max-height: 100dvh; overflow: hidden;
}
@media (min-width: 768px) {
    .story-viewer-inner { height: 90vh; max-height: 800px; border-radius: 12px; }
}
.story-viewer-media {
    width: 100%; height: 100%; object-fit: cover;
    background: var(--ig-black);
}
.story-viewer-media img { width: 100%; height: 100%; object-fit: cover; }

/* Progress bars */
.story-progress {
    position: absolute; top: 8px; left: 8px; right: 8px;
    display: flex; gap: 4px; z-index: 10;
}
.story-progress-bar {
    flex: 1; height: 3px; background: rgba(255,255,255,0.3);
    border-radius: 2px; overflow: hidden;
}
.story-progress-bar .fill {
    height: 100%; background: var(--ig-white); width: 0%;
    transition: width 5s linear;
}
.story-progress-bar.active .fill { width: 100%; }
.story-progress-bar.done .fill { width: 100%; transition: none; }

/* Story viewer header */
.story-viewer-header {
    position: absolute; top: 18px; left: 14px; right: 14px;
    display: flex; justify-content: space-between; align-items: center; z-index: 10;
}
.story-viewer-title {
    color: var(--ig-white); font-family: var(--ig-font-body);
    font-weight: 700; font-size: 0.85rem;
}
.story-viewer-time { color: rgba(255,255,255,0.6); font-size: 0.75rem; margin-left: 8px; }
.story-viewer-close {
    background: none; border: none; color: var(--ig-white);
    font-size: 1.6rem; cursor: pointer; padding: 4px;
}
.story-viewer-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 60px 20px 30px; color: var(--ig-white);
    font-family: var(--ig-font-heading); font-weight: 900;
    font-size: 1.2rem; font-style: normal; text-transform: uppercase;
    line-height: 1.1; z-index: 10;
}

/* Nav zones */
.story-nav-left, .story-nav-right {
    position: absolute; top: 0; bottom: 0; width: 40%; z-index: 5; cursor: pointer;
}
.story-nav-left { left: 0; }
.story-nav-right { right: 0; }

/* ===== LATEST NEWS — NASCAR Card Style ===== */
.section-news { padding: 24px 0; }
.news-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) {
    .news-layout { grid-template-columns: 1fr 340px; }
}

/* Mobile news cards (NASCAR style — title left, icon right) */
.news-card-nascar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--ig-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-decoration: none;
    color: var(--ig-black);
    margin-bottom: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}
.news-card-nascar-body { flex: 1; }
.news-card-nascar-body h3 {
    font-family: var(--ig-font-body); font-weight: 700;
    font-size: 1rem; line-height: 1.3; font-style: normal;
    text-transform: none;
}
.news-card-nascar-icon {
    width: 70px; height: 70px; border-radius: 50%;
    background: var(--ig-offwhite); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.news-card-nascar-icon img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

/* Desktop news cards (traditional image+text) */
.news-card {
    display: flex; gap: 16px; padding: 16px 0;
    border-bottom: 1px solid var(--ig-grey-light);
    text-decoration: none; color: var(--ig-black);
}
.news-card-img { width: 180px; height: 100px; object-fit: cover; flex-shrink: 0; border-radius: 4px; }
.news-card-body { flex: 1; }
.news-tag {
    font-family: var(--ig-font-heading); font-weight: 800;
    font-size: 0.7rem; color: var(--ig-blue); text-transform: uppercase;
    margin-bottom: 4px; display: block;
}
.news-card-body h3 {
    font-family: var(--ig-font-heading); font-weight: 800;
    font-size: 1.1rem; line-height: 1.2; margin-bottom: 4px;
    text-transform: none; font-style: normal;
}
.news-card-body h3 a { color: var(--ig-black); }
.news-card-body h3 a:hover { color: var(--ig-blue); }
.news-timestamp { font-size: 0.75rem; color: var(--ig-grey); text-transform: uppercase; }

/* Promo banner */
.promo-banner {
    display: flex; align-items: center; gap: 16px;
    padding: 16px var(--mobile-pad); margin: 8px calc(-1 * var(--mobile-pad));
    background: var(--ig-white); border-bottom: 1px solid var(--ig-grey-light);
}
.promo-badge {
    background: var(--ig-red); color: var(--ig-white);
    font-size: 0.6rem; font-weight: 900; padding: 3px 8px;
    border-radius: 3px; text-transform: uppercase; margin-bottom: 4px;
    display: inline-block;
}
.promo-text { flex: 1; }
.promo-text p { font-size: 0.9rem; font-weight: 600; }
.promo-text a { color: var(--ig-blue); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; }
.promo-logo {
    font-family: var(--ig-font-heading); font-weight: 900;
    font-size: 0.9rem; font-style: normal; white-space: nowrap;
}

/* Standings widget */
.standings-widget {
    background: var(--ig-black); color: var(--ig-white); padding: 20px; border-radius: 4px;
}
.standings-widget h3 {
    font-size: 1rem; margin-bottom: 12px;
    border-bottom: 2px solid var(--ig-red); padding-bottom: 8px;
}
.standings-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid var(--ig-grey-dark);
    font-size: 0.85rem;
}
.standings-row .rank { font-weight: 900; width: 24px; }
.standings-row .driver-name { flex: 1; margin-left: 8px; font-weight: 600; }
.standings-row .pts { font-weight: 900; color: var(--ig-yellow); }
.view-all-link {
    display: inline-block; margin-top: 12px; color: var(--ig-red);
    font-weight: 800; font-size: 0.8rem; text-transform: uppercase;
}

/* ===== EDITORS PICKS (horizontal scroll with icons) ===== */
.section-editors { padding: 24px 0; }
.editors-track {
    display: flex; gap: 12px; overflow-x: auto; padding: 0 var(--mobile-pad) 10px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.editors-track::-webkit-scrollbar { display: none; }
.editor-card {
    flex: 0 0 280px; scroll-snap-align: start;
    position: relative; overflow: hidden; border-radius: 8px;
    display: block;
}
@media (min-width: 768px) { .editor-card { flex: 0 0 340px; } }
.editor-card img { width: 100%; height: 200px; object-fit: cover; }
.editor-card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 30px 14px 14px; color: var(--ig-white);
}
.editor-card-overlay h3 {
    font-family: var(--ig-font-body); font-weight: 700;
    font-size: 0.9rem; line-height: 1.3; text-transform: none; font-style: normal;
}
.editor-card-type {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,0.6); color: var(--ig-white);
    width: 32px; height: 32px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}

/* ===== SERIES SECTION ===== */
.section-series { padding: 24px 0; background: var(--ig-offwhite); }
.series-grid {
    display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 768px) { .series-grid { grid-template-columns: 1fr 1fr 1fr; } }
.series-card {
    background: var(--ig-white); border-radius: 8px; overflow: hidden;
    border-top: 4px solid var(--ig-blue);
}
.series-card.gold { border-color: #c49b1c; }
.series-card.red { border-color: var(--ig-red); }
.series-card-body { padding: 16px; }
.series-card-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.series-card-body p { color: var(--ig-grey); font-size: 0.82rem; line-height: 1.4; }

/* ===== SCHEDULE PAGE ===== */
.page-header {
    background: var(--ig-black); padding: 30px 0; color: var(--ig-white);
}
.page-header h1 { font-size: 2.5rem; }
.schedule-highlights {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0;
}
@media (max-width: 768px) { .schedule-highlights { grid-template-columns: 1fr; } }
.highlight-card {
    background: var(--ig-white); border: 1px solid var(--ig-grey-light);
    padding: 24px; border-radius: 6px;
}
.highlight-label {
    font-family: var(--ig-font-heading); font-weight: 800;
    font-size: 0.75rem; color: var(--ig-grey); text-transform: uppercase;
    margin-bottom: 8px;
}
.highlight-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.highlight-card .track-info { color: var(--ig-grey); font-size: 0.85rem; }
.schedule-list { margin: 20px 0; }
.schedule-row {
    display: grid; grid-template-columns: 80px 1fr auto;
    gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--ig-grey-light);
    align-items: center;
}
@media (max-width: 600px) { .schedule-row { grid-template-columns: 60px 1fr; } .schedule-actions { grid-column: 1 / -1; } }
.schedule-date {
    font-family: var(--ig-font-heading); font-weight: 800;
    font-size: 0.75rem; text-transform: uppercase;
}
.schedule-date .day { font-size: 1.3rem; display: block; }
.schedule-race h3 { font-size: 0.95rem; margin-bottom: 2px; text-transform: none; font-style: normal; }
.schedule-race .track { color: var(--ig-grey); font-size: 0.78rem; }
.schedule-actions { display: flex; gap: 8px; }
.btn-sm {
    padding: 6px 14px; font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; border-radius: 3px; border: none; cursor: pointer;
    display: inline-block;
}
.btn-dark { background: var(--ig-black); color: var(--ig-white); }
.btn-outline { background: transparent; color: var(--ig-black); border: 1px solid var(--ig-black); }

/* ===== RESULTS PAGE ===== */
.winner-hero {
    background: var(--ig-black); color: var(--ig-white);
    padding: 40px 0; text-align: center;
}
.winner-hero h2 { font-size: 2rem; margin-bottom: 8px; }
.winner-hero .winner-name { font-size: 3rem; color: var(--ig-yellow); }
@media (max-width: 600px) { .winner-hero .winner-name { font-size: 2rem; } }
.winner-stats { display: flex; justify-content: center; gap: 30px; margin-top: 16px; flex-wrap: wrap; }
.winner-stat { text-align: center; }
.winner-stat .val { font-size: 2rem; font-weight: 900; display: block; }
.winner-stat .lbl { font-size: 0.7rem; color: var(--ig-grey); text-transform: uppercase; }

/* ===== DATA TABLES ===== */
.data-table { width: 100%; border-collapse: collapse; background: var(--ig-white); font-size: 0.82rem; }
.data-table th {
    background: var(--ig-black); color: var(--ig-grey);
    text-align: left; padding: 10px 12px;
    font-family: var(--ig-font-heading); font-weight: 700;
    font-size: 0.72rem; text-transform: uppercase; white-space: nowrap;
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--ig-grey-light); }
.data-table tr:nth-child(even) { background: var(--ig-offwhite); }
.data-table .car-num {
    background: var(--ig-black); color: var(--ig-white);
    padding: 2px 6px; font-weight: 900; font-size: 0.72rem;
    display: inline-block; min-width: 26px; text-align: center;
}
.tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: nowrap; overflow-x: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
    padding: 8px 12px; background: var(--ig-offwhite); flex-shrink: 0;
    border: 1px solid var(--ig-grey-light); font-family: var(--ig-font-heading);
    font-weight: 800; font-size: 0.72rem; text-transform: uppercase;
    cursor: pointer; transition: 0.2s; white-space: nowrap;
}
.tab-btn.active { background: var(--ig-red); color: var(--ig-white); border-color: var(--ig-red); }

/* ===== DRIVERS GRID ===== */
.drivers-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px; padding: 24px 0;
}
@media (max-width: 600px) { .drivers-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }
.driver-card {
    background: var(--ig-white); border: 1px solid var(--ig-grey-light);
    overflow: hidden; transition: transform 0.2s; display: block;
}
.driver-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.driver-card-img {
    background: linear-gradient(135deg, #1a1a1a, #333);
    height: 260px; display: flex; align-items: flex-end; justify-content: center;
    overflow: hidden; position: relative;
}
@media (max-width: 600px) { .driver-card-img { height: 180px; } }
.driver-card-img img { height: 90%; width: auto; object-fit: contain; }
.driver-card-num {
    position: absolute; top: 12px; right: 12px;
    font-family: var(--ig-font-heading); font-weight: 900;
    font-size: 2.5rem; color: rgba(255,255,255,0.2); font-style: normal;
}
.driver-card-info { padding: 12px; border-top: 3px solid var(--ig-red); }
.driver-card-info .first-name {
    font-family: var(--ig-font-heading); font-weight: 600;
    font-size: 0.72rem; text-transform: uppercase; color: var(--ig-grey);
}
.driver-card-info .last-name {
    font-family: var(--ig-font-heading); font-weight: 900;
    font-size: 1.2rem; text-transform: uppercase; font-style: normal;
}

/* ===== TEAMS GRID ===== */
.teams-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px; padding: 24px 0;
}
.team-card {
    background: var(--ig-white); border: 1px solid var(--ig-grey-light);
    padding: 30px; text-align: center;
}
.team-card-logo { height: 80px; margin: 0 auto 16px; object-fit: contain; }
.team-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.btn-team {
    display: inline-block; padding: 10px 24px;
    background: var(--ig-black); color: var(--ig-white);
    font-family: var(--ig-font-heading); font-weight: 800;
    font-size: 0.78rem; text-transform: uppercase;
}

/* ===== FOOTER ===== */
.site-footer { background: var(--ig-black); color: var(--ig-white); padding: 40px 0 0; }
.footer-top {
    display: grid; grid-template-columns: 1fr; gap: 24px;
    padding-bottom: 30px; border-bottom: 1px solid var(--ig-grey-dark);
}
@media (min-width: 768px) { .footer-top { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.5fr repeat(4, 1fr); } }
.footer-col h4 { font-size: 0.72rem; margin-bottom: 12px; letter-spacing: 1px; font-style: normal; }
.footer-col a { display: block; padding: 3px 0; font-size: 0.78rem; color: var(--ig-grey); transition: color 0.2s; }
.footer-col a:hover { color: var(--ig-white); }
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social a { display: flex; align-items: center; gap: 6px; padding: 0; font-size: 0.78rem; color: var(--ig-white); }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 0.68rem; color: var(--ig-grey); }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 10px; }

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--ig-white); border-top: 1px solid var(--ig-grey-light);
    display: flex; z-index: 1000; padding: 0; padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (min-width: 1024px) { .mobile-bottom-nav { display: none; } }
.mob-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 8px 0; text-decoration: none;
    color: var(--ig-grey); font-size: 0.58rem; font-weight: 700;
    text-transform: uppercase; background: none; border: none; cursor: pointer;
}
.mob-nav-item .mob-icon { font-size: 1.2rem; margin-bottom: 2px; }
.mob-nav-item.active { color: var(--ig-black); }
.mob-nav-item.active .mob-nav-stripe { display: block; width: 100%; height: 3px; margin-bottom: 4px; }
.mob-nav-stripe { display: none; }

/* ===== MOBILE OVERLAY MENU ===== */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.97); z-index: 2000;
    display: none; flex-direction: column; padding: 30px;
    overflow-y: auto;
}
.menu-overlay.active { display: flex; }
.menu-close {
    align-self: flex-end; font-size: 2rem; color: var(--ig-white);
    cursor: pointer; background: none; border: none;
}
.overlay-links { margin-top: 30px; }
.overlay-links a {
    display: block; font-family: var(--ig-font-heading); font-weight: 900;
    font-size: 1.8rem; color: var(--ig-white); margin-bottom: 16px;
    font-style: normal; text-transform: uppercase;
}

/* ===== RESPONSIVE ===== */
.desktop-only { display: none; }
@media (min-width: 1024px) {
    .desktop-only { display: block; }
    .mobile-only { display: none !important; }
    body { padding-bottom: 0; }
}
@media (max-width: 1023px) {
    body { padding-bottom: 60px; }
}

/* ===== SINGLE NEWS ===== */
.single-news { padding: 30px var(--mobile-pad); }
.single-news h1 { font-size: 2rem; margin-bottom: 14px; }
@media (max-width: 600px) { .single-news h1 { font-size: 1.5rem; } }
.single-news .meta { color: var(--ig-grey); font-size: 0.82rem; margin-bottom: 20px; }
.single-news .content { font-size: 1rem; line-height: 1.7; max-width: 800px; }
.single-news .content p { margin-bottom: 16px; }

/* ===== WOOCOMMERCE ===== */
.woocommerce .products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.woocommerce ul.products li.product { margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation { font-family: var(--ig-font-body); }

/* ===== TABLE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .data-table th, .data-table td { padding: 8px 6px; font-size: 0.72rem; }
    .winner-stats { gap: 16px; }
    .winner-stat .val { font-size: 1.4rem; }
}

/* ===== TICKETS PAGE ===== */
.tickets-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .tickets-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tickets-grid { grid-template-columns: 1fr; } }
.ticket-card {
    background: var(--ig-white); border: 1px solid var(--ig-grey-light);
    overflow: hidden; border-radius: 6px;
    transition: box-shadow 0.2s;
}
.ticket-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }/* NASCAR Style News List (for both mobile and desktop col) */
.news-card-nascar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 0; border-bottom: 1px solid var(--ig-grey-light);
    text-decoration: none; color: inherit; gap: 16px;
}
.news-card-nascar:last-child { margin-bottom: 0; }
.news-card-nascar-body { flex: 1; }
.news-card-nascar-body h3 {
    font-size: 1.1rem; line-height: 1.25; color: var(--ig-black);
    font-weight: 900; text-transform: none;
}
.news-card-nascar-icon { width: 80px; height: 80px; flex-shrink: 0; }
.news-card-nascar-icon img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
@media (min-width: 1024px) {
    .news-card-nascar { padding: 30px; }
    .news-card-nascar-icon { width: 100px; height: 100px; }
    .news-card-nascar-body h3 { font-size: 1.4rem; }
}

/* Hide old news-card since we are standardizing on the nascar-list-style */
.news-card { display: none !important; }

/* WooCommerce Shop Redesign */
.nascar-shop-redesign {
    background: var(--ig-offwhite);
    padding-bottom: 60px;
}

/* Promo Bar */
.shop-promo-bar {
    background: #a10000; /* Darker NASCAR red */
    color: var(--ig-white);
    text-align: center;
    padding: 8px 0;
    font-family: var(--ig-font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.promo-inner { display: flex; flex-direction: column; gap: 2px; }
.promo-tag { letter-spacing: 1px; }
.promo-desc { font-size: 0.65rem; font-weight: 500; opacity: 0.8; }

/* Discount Banner */
.shop-discount-banner {
    background: var(--ig-white);
    border-bottom: 1px solid var(--ig-grey-light);
    padding: 12px 0;
}
.discount-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
}
.discount-box .icon-tag { color: var(--ig-red); }
.discount-box a { color: var(--ig-blue); text-decoration: underline; font-size: 0.75rem; }

/* Shop By Driver */
.shop-by-driver { padding: 40px 0; background: var(--ig-white); }
.section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.section-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0;
    font-style: italic;
}
.view-all-btn {
    font-family: var(--ig-font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 6px 16px;
    border: 1px solid var(--ig-grey-light);
    border-radius: 4px;
    transition: 0.2s;
}
.view-all-btn:hover { background: var(--ig-offwhite); }

.driver-circles-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
}
.driver-circles-row::-webkit-scrollbar { display: none; }
.driver-circle {
    flex: 0 0 100px;
    text-align: center;
    text-decoration: none;
}
.circle-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--ig-offwhite);
    position: relative;
    border: 3px solid transparent;
    transition: 0.2s;
    overflow: hidden;
}
.driver-circle:hover .circle-box { border-color: var(--ig-blue); transform: scale(1.05); }
.circle-box img { width: 100%; height: 100%; object-fit: cover; }
.circle-box .placeholder { width: 100%; height: 100%; background: #ccc; }
.car-num-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--ig-black);
    color: var(--ig-white);
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 3px;
    font-style: italic;
}
.driver-name {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ig-black);
}

/* Hero Banners */
.shop-hero-banners { padding: 20px 0; }
.winner-banner {
    display: flex;
    align-items: center;
    background: var(--ig-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    border-left: 6px solid var(--ig-blue);
}
.winner-left { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    padding: 30px; 
    flex: 1; 
}
.winner-stripes { display: flex; flex-direction: column; gap: 3px; }
.winner-stripes span { display: block; width: 40px; height: 3px; }
.winner-stripes span:nth-child(1) { background: var(--ig-blue); }
.winner-stripes span:nth-child(2) { background: var(--ig-red); }
.winner-stripes span:nth-child(3) { background: var(--ig-yellow); }
.winner-tag { color: var(--ig-blue); font-weight: 900; font-size: 0.75rem; letter-spacing: 1px; }
.winner-info h3 { font-size: 1.8rem; margin: 4px 0; }
.winner-img { width: 180px; flex-shrink: 0; }
.winner-img img { width: 100%; transform: scale(1.1); margin-bottom: -10px; }
.winner-right { padding: 0 40px; }

.shop-btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--ig-black);
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.2s;
}
.shop-btn-outline:hover { background: var(--ig-black); color: var(--ig-white); }

.promo-banner-large {
    height: 360px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px;
    overflow: hidden;
}
.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.banner-content { position: relative; z-index: 1; max-width: 500px; color: var(--ig-white); }
.banner-content h2 { font-size: 3rem; margin-bottom: 10px; line-height: 0.95; }
.banner-content p { font-size: 1.1rem; font-weight: 600; opacity: 0.9; margin-bottom: 24px; }
.shop-btn-red {
    display: inline-block;
    padding: 14px 34px;
    background: var(--ig-red);
    color: var(--ig-white);
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(225, 6, 0, 0.3);
}
.shop-btn-red:hover { background: #c10500; transform: translateY(-2px); }

/* Trending Grid */
.shop-trending { padding: 40px 0; }
.trending-grid .products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
}

/* Premium Product Card */
.woocommerce ul.products li.product {
    background: var(--ig-white);
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-align: center !important;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1) !important;
}
.woocommerce ul.products li.product img {
    border-radius: 4px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
    object-fit: contain !important;
    background: #f9f9f9 !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--ig-font-body) !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
    min-height: 2.6em !important;
    margin-bottom: 12px !important;
    color: var(--ig-black) !important;
    text-transform: none !important;
    font-style: normal !important;
}
.woocommerce ul.products li.product .price {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    color: var(--ig-red) !important;
    margin-bottom: 20px !important;
    display: block !important;
    font-family: var(--ig-font-heading) !important;
}
.woocommerce ul.products li.product .button {
    margin-top: auto !important;
    width: 100% !important;
    background: var(--ig-black) !important;
    color: var(--ig-white) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 1.5px !important;
    border-radius: 4px !important;
    padding: 14px !important;
    border: none !important;
}
.woocommerce ul.products li.product .button:hover { background: var(--ig-red) !important; }

/* Ensure Shop pages use full width since sidebar is often hidden */
.woocommerce-shop #primary, .archive.post-type-archive-product #primary { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
.woocommerce-shop .woo-container, .archive.post-type-archive-product .woo-container { max-width: 1600px !important; }
aside#secondary { display: none !important; } /* Nuke the sidebar definitively */

/* Category Navigation Bar */
.shop-category-nav {
    background: #f4f4f4;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}
.category-nav-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
}
.cat-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    transition: 0.3s ease;
    flex: 0 0 140px; /* Force minimum width to prevent squashing */
}
.cat-nav-item:hover { transform: translateY(-3px); }
.cat-icon {
    width: 80px;
    height: 80px;
    background: var(--ig-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.cat-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}
.cat-nav-item .cat-title {
    font-family: var(--ig-font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--ig-black);
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
}
.cat-nav-item:hover .cat-title { color: var(--ig-red); }

@media (max-width: 768px) {
    .category-nav-grid { gap: 20px; }
    .cat-nav-item { width: 80px; }
    .cat-icon { width: 50px; height: 50px; }
    .cat-icon img { width: 25px; height: 25px; }
}

/* Split Category Banners */
.shop-split-sections { padding: 40px 0; }
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.split-card {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.split-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.split-card:hover img { transform: scale(1.05); }
.split-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--ig-white);
    text-align: left;
}
.split-overlay h3 { font-size: 2.2rem; margin-bottom: 15px; }

/* Brand Blocks */
.shop-brand-blocks { padding: 40px 0; background: var(--ig-white); }
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.brand-card {
    border: 1px solid var(--ig-grey-light);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: 0.2s;
}
.brand-card:hover { border-color: var(--ig-blue); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.brand-logo {
    height: 60px;
    margin-bottom: 15px;
    font-family: var(--ig-font-heading);
    font-weight: 900;
    font-size: 2rem;
    color: var(--ig-grey);
}
.brand-card h4 {
    font-family: var(--ig-font-body);
    font-weight: 600;
    font-size: 0.85rem;
    height: 3em;
    overflow: hidden;
    margin-bottom: 15px;
    text-transform: none;
    font-style: normal;
    color: #555;
}
.brand-card a {
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 1023px) {
    .nascar-shop-redesign { overflow-x: hidden; }
    .winner-banner { flex-direction: column; text-align: center; border-left: none; border-top: 6px solid var(--ig-blue); }
    .winner-left { flex-direction: column; padding: 20px; }
    .winner-stripes { flex-direction: row; }
    .winner-img { width: 140px; }
    .winner-right { padding-bottom: 30px; }
    
    .promo-banner-large { height: 450px; padding: 30px; align-items: flex-end; }
    .banner-content h2 { font-size: 2.2rem; }
    
    .trending-grid .products { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    
    .split-grid { grid-template-columns: 1fr; }
    .split-card { height: 300px; }
    
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Category Page Adjustments */
.archive.tax-product_cat .woocommerce-products-header { padding-top: 40px; }
.archive.tax-product_cat .woocommerce-products-header h1 { font-style: italic; font-weight: 900; border-bottom: 4px solid var(--ig-red); display: inline-block; }

/* Sidebar/Filter Styling */
@media (min-width: 1024px) {
    .archive.tax-product_cat .woo-container { display: flex; gap: 40px; }
    .archive.tax-product_cat #primary { flex: 1; }
    .archive.tax-product_cat .sidebar { display: block !important; width: 280px; flex-shrink: 0; }
}
.widget_product_categories h2 { font-size: 1rem; margin-bottom: 15px; border-bottom: 2px solid var(--ig-black); padding-bottom: 8px; }
.widget_product_categories ul li { padding: 8px 0; border-bottom: 1px solid var(--ig-offwhite); font-weight: 600; font-size: 0.85rem; }
.widget_product_categories ul li a:hover { color: var(--ig-red); }

/* Remove footer widgets and sidebars from shop and single products */
.woocommerce-shop .footer-widgets, .woocommerce-shop #secondary,
.single-product .sidebar, .single-product #secondary { display: none !important; }

/* Single Product Centered Layout */
.single-product .content-area { width: 100% !important; float: none !important; max-width: 1000px; margin: 0 auto; padding: 40px 20px; }
.woocommerce-tabs, .upsells, .related { display: none !important; } /* Hide reviews and related per request */
.ticket-card-img { width: 100%; height: 180px; object-fit: cover; }
.ticket-card-body { padding: 16px; }
.ticket-card-body h3 {
    font-size: 1.1rem; margin-bottom: 4px;
}
.ticket-location {
    color: var(--ig-grey); font-size: 0.8rem;
    text-transform: uppercase; font-weight: 600; margin-bottom: 6px;
}
.ticket-dates {
    font-family: var(--ig-font-heading); font-weight: 800;
    font-size: 0.82rem; text-transform: uppercase; margin-bottom: 6px;
}
.ticket-series {
    font-size: 0.72rem; color: var(--ig-grey); margin-bottom: 12px;
}
.ticket-btn-buy {
    display: inline-block; color: var(--ig-blue);
    font-family: var(--ig-font-heading); font-weight: 800;
    font-size: 0.88rem; text-transform: uppercase;
    margin-right: 16px;
}
.ticket-btn-buy:hover { text-decoration: underline; }
.ticket-btn-info {
    color: var(--ig-grey-dark); font-size: 0.78rem; font-weight: 600;
}

/* ===== EDITORS PICKS GRID (Desktop: 1 big + 4 stacked) ===== */
.editors-grid-layout {
    display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 768px) {
    .editors-grid-layout { grid-template-columns: 1fr 1fr; }
}
.editor-card-big { position: relative; border-radius: 8px; overflow: hidden; display: block; }
.editor-card-big img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.editor-card-stack { display: flex; flex-direction: column; gap: 20px; }
.editor-card-sm {
    display: flex; gap: 12px; background: var(--ig-white);
    border-radius: 6px; overflow: hidden; text-decoration: none;
    color: var(--ig-black);
}
.editor-card-sm img { width: 130px; height: 85px; object-fit: cover; flex-shrink: 0; }
.editor-card-sm-body { padding: 10px 10px 10px 0; flex: 1; }
.editor-card-sm-body .type-icon {
    font-size: 0.7rem; margin-bottom: 4px; display: block;
}
.editor-card-sm-body h4 {
    font-family: var(--ig-font-body); font-weight: 700;
    font-size: 0.85rem; line-height: 1.3; font-style: normal;
    text-transform: none;
}

/* ===== RACE EVENT SECTION ===== */
.section-event {
    padding: 30px 0 60px;
    border-top: 1px solid var(--ig-grey-light);
    background: transparent;
}
.event-header { margin-bottom: 24px; }
.event-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 1024px) {
    .event-cards { grid-template-columns: repeat(5, 1fr); gap: 24px; }
}
.event-card {
    display: block; text-decoration: none; color: inherit;
}
.event-card img {
    width: 100%; height: 120px; object-fit: cover; border-radius: 6px;
}
.event-card-body { padding: 12px 0; }
.event-tag {
    display: block; font-family: var(--ig-font-heading); font-weight: 800;
    font-size: 0.65rem; color: var(--ig-blue); margin-bottom: 4px;
}
.event-card h4 { font-size: 0.85rem; line-height: 1.2; }
@media (min-width: 1024px) {
    .event-card h4 { font-size: 0.95rem; }
}

/* ===== FAN REWARDS / PROMO SECTION ===== */
.section-fan { padding: 40px 0; background: var(--ig-offwhite); }
.fan-grid {
    display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 768px) { .fan-grid { grid-template-columns: 1fr 1fr; } }
.fan-card {
    border-radius: 12px; padding: 40px; display: flex; flex-direction: column;
    justify-content: center; min-height: 200px; color: var(--ig-white);
}
.fan-card.dark { background: #111; }
.fan-card.grey { background: #333; }
.fan-card h3 {
    font-size: 2rem; margin-bottom: 12px; color: var(--ig-white) !important;
}
.fan-card p { font-size: 1rem; line-height: 1.4; margin-bottom: 20px; color: rgba(255,255,255,0.9) !important; }
.fan-card .btn-fan {
    display: inline-block; padding: 12px 30px; border-radius: 4px;
    font-family: var(--ig-font-heading); font-weight: 900;
    font-size: 0.9rem; text-transform: uppercase;
    align-self: flex-start;
}
.fan-card.dark .btn-fan { background: var(--ig-white); color: var(--ig-black); }
.fan-card.grey .btn-fan { background: var(--ig-yellow); color: var(--ig-black); }

/* ===== WOOCOMMERCE CART & CHECKOUT REDESIGN ===== */
.woocommerce-cart, .woocommerce-checkout {
    background: #0a0a0a; color: #fff; padding: 60px 0; min-height: 80vh;
}
.woocommerce-cart .container, .woocommerce-checkout .container {
    max-width: 1000px; margin: 0 auto;
}
.woocommerce-cart table.cart, .woocommerce-checkout #order_review, 
.woocommerce-checkout table.shop_table {
    background: #151515 !important; border: 1px solid #333 !important;
    border-radius: 12px; overflow: hidden; border-collapse: separate !important;
}
.woocommerce-cart table.cart thead th, .woocommerce-checkout table.shop_table thead th {
    background: #222 !important; color: #fff !important; border: none !important;
    text-transform: uppercase; font-family: var(--ig-font-heading); padding: 15px !important;
}
.woocommerce-cart table.cart td, .woocommerce-checkout table.shop_table td {
    border-top: 1px solid #333 !important; color: #ccc !important; padding: 20px !important;
}
.woocommerce-cart .cart-collaterals, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review {
    margin-top: 40px;
}
.cart_totals h2, #order_review_heading {
    font-family: var(--ig-font-heading); font-weight: 900; color: #fff;
    text-transform: uppercase; margin-bottom: 20px; font-size: 1.8rem;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button, 
#place_order, .woocommerce-cart .button[name="update_cart"] {
    background: var(--ig-yellow) !important; color: #000 !important;
    font-weight: 900 !important; text-transform: uppercase !important;
    border-radius: 4px !important; padding: 15px 30px !important;
    font-size: 1rem !important; transition: transform 0.2s;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover, #place_order:hover {
    transform: translateY(-2px); opacity: 0.9;
}
.woocommerce-checkout .col-1, .woocommerce-checkout .col-2 {
    max-width: 100% !important; flex: 0 0 100% !important;
}
.woocommerce-checkout h3 {
    font-family: var(--ig-font-heading); font-weight: 900; color: #fff;
    text-transform: uppercase; margin: 30px 0 15px;
}
.woocommerce input.input-text, .woocommerce textarea, .select2-container--default .select2-selection--single {
    background: #222 !important; border: 1px solid #444 !important;
    color: #fff !important; border-radius: 4px !important; padding: 12px !important;
}
.woocommerce-checkout .form-row label { color: #aaa !important; font-weight: 600; }
.woocommerce-checkout #payment { background: #151515 !important; border: 1px solid #333 !important; border-radius: 12px; padding: 20px; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid #333 !important; }
.woocommerce-checkout #payment div.payment_box { background: #222 !important; color: #ccc !important; }

/* Empty state styling */
.cart-empty, .return-to-shop { padding: 100px 0; text-align: center; }
.cart-empty { font-size: 1.5rem; color: #888; margin-bottom: 30px; }
.return-to-shop a.button {
    background: #fff !important; color: #000 !important; border-radius: 4px !important;
}

/* My Account Redesign */
.woocommerce-account {
    background: #0a0a0a; color: #fff; padding: 60px 0; min-height: 80vh;
}
.woocommerce-account .container { max-width: 1200px; margin: 0 auto; }
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    background: #151515; border: 1px solid #333; border-radius: 8px; overflow: hidden;
    margin-bottom: 30px;
}
@media (min-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation { float: left; width: 25%; }
    .woocommerce-account .woocommerce-MyAccount-content { float: right; width: 70%; }
}
.woocommerce-MyAccount-navigation ul {
    list-style: none !important; padding: 0 !important; margin: 0 !important;
    background: #111 !important; border-radius: 8px !important; overflow: hidden !important;
}
.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #333 !important;
}
.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none !important;
}
.woocommerce-MyAccount-navigation ul li a {
    display: block !important; padding: 15px 20px !important; color: #aaa !important; font-weight: 700 !important; text-transform: uppercase !important; transition: 0.2s !important; text-decoration: none !important;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background: #222 !important; color: #fff !important; border-left: 4px solid var(--ig-red) !important;
}
.woocommerce-MyAccount-content {
    background: #151515 !important; border: 1px solid #333 !important; border-radius: 8px !important; padding: 30px !important; color: #ccc !important;
}
.woocommerce-account .woocommerce-MyAccount-content a { color: var(--ig-blue); }
.woocommerce-account h2, .woocommerce-account h3, .woocommerce-account h1 {
    font-family: var(--ig-font-heading); color: #fff; text-transform: uppercase; margin-bottom: 20px;
}

/* My Account Buttons */
.woocommerce-account .button, .woocommerce-account a.button {
    background: #fff !important; color: #000 !important; font-weight: 800;
    text-transform: uppercase; padding: 12px 24px; border-radius: 4px;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1); border: none; transition: 0.2s;
}
.woocommerce-account .button:hover, .woocommerce-account a.button:hover {
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.2); transform: translateY(-2px);
}
.woocommerce-account .woocommerce-MyAccount-content p { color: #ccc; }
.woocommerce-account .woocommerce-MyAccount-content strong { color: #fff; }

/* Checkout Input Fix */
.woocommerce-checkout input.input-text, .woocommerce-checkout textarea,
.select2-container--default .select2-selection--single,
.select2-search__field {
    background-color: #333 !important; color: #fff !important; border: 1px solid #555 !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
}

/* Cart & Checkout Specific Ticker & Padding overrides */
.woocommerce-cart .scoreboard-ticker, .woocommerce-checkout .scoreboard-ticker {
    color: #000;
}
.woocommerce-cart .scoreboard-ticker *, .woocommerce-checkout .scoreboard-ticker * {
    color: #000 !important;
}
.woocommerce-cart, .woocommerce-checkout {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* WooCommerce Notices */
.woocommerce-message, 
.woocommerce-info, 
.woocommerce-error {
    background-color: #111 !important;
    color: #fff !important;
    border-top: 3px solid var(--ig-red) !important;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    padding: 15px 25px !important;
    margin-bottom: 30px;
}

.woocommerce-message a.button, 
.woocommerce-info a.button, 
.woocommerce-error a.button {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    border-radius: 30px !important;
    padding: 8px 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    float: right;
    margin-left: 20px;
}

.woocommerce-message a.button:hover, 
.woocommerce-info a.button:hover, 
.woocommerce-error a.button:hover {
    background: #fff !important;
    color: #000 !important;
}

.woocommerce-message::before, 
.woocommerce-info::before, 
.woocommerce-error::before {
    color: var(--ig-red) !important;
}
