/* ===========================================================
   BAJA HOBBY USA
   Version 2.1 - Cleaned CSS
=========================================================== */

/* ==========================
   RESET / BASE
========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================
   CONTAINER
========================== */

.container {
    width: 95%;
    max-width: 1400px;
    margin: auto;
}

/* ==========================
   TOP BAR
========================== */

.top-bar {
    background: #002b5b;
    color: white;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.top-bar a {
    color: #ffd24d;
}

/* ==========================
   HEADER
========================== */

.site-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-content {
    display: grid;
    grid-template-columns: 250px 1fr 260px;
    gap: 30px;
    align-items: center;
    padding: 20px 0;
}

.logo {
    max-height: 90px;
}

.search-area {
    display: flex;
}

.search-area input {
    flex: 1;
    padding: 14px;
    border: 2px solid #d9d9d9;
    border-radius: 6px 0 0 6px;
    font-size: 16px;
}

.search-area button {
    background: #d71920;
    color: white;
    border: none;
    padding: 14px 28px;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    font-size: 16px;
    transition: .3s;
}

.search-area button:hover {
    background: #b00000;
}

.contact-area {
    text-align: right;
}

.contact-area strong {
    display: block;
    font-size: 20px;
    color: #002b5b;
}

.contact-area span {
    color: #777;
}

/* ==========================
   NAVIGATION
========================== */

.main-nav {
    background: #004a94;
}

.nav-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-content a {
    color: white;
    padding: 18px 28px;
    font-weight: bold;
    transition: .3s;
}

.nav-content a:hover {
    background: #d71920;
}

/* ==========================
   HERO
========================== */

.hero {
    background: linear-gradient(90deg, #002b5b, #004d96);
    color: white;
    padding: 80px 0;
}

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

.hero h1 {
    font-size: 52px;
    line-height: 1.2;
    margin: 20px 0;
}

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

.hero-badge {
    display: inline-block;
    background: #d71920;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: bold;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

/* ==========================
   BUTTONS
========================== */

.btn,
.details-btn,
.secondary-btn,
.primary-btn {
    display: inline-block;
    border-radius: 8px;
    font-weight: bold;
    transition: .3s;
}

.btn {
    padding: 14px 34px;
}

.primary-btn {
    background: #d71920;
    color: white;
    padding: 14px 34px;
}

.primary-btn:hover {
    background: #b40000;
}

.secondary-btn {
    background: white;
    color: #002b5b;
    padding: 12px 24px;
    margin-left: 15px;
}

.secondary-btn:hover {
    background: #ececec;
}

.details-btn {
    margin-top: 20px;
    background: #004a94;
    color: white;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
}

.details-btn:hover {
    background: #d71920;
}

/* ==========================
   SECTION
========================== */

.section {
    padding: 80px 0;
}

.light-section {
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 38px;
    color: #002b5b;
}

.section-title p {
    color: #666;
    margin-top: 10px;
}

/* ==========================
   CATEGORY GRID
========================== */

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

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: .3s;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,.15);
}

.category-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.category-card h3 {
    padding: 20px;
    color: #002b5b;
}

/* ==========================
   PRODUCTS
========================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
    transition: .3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
}

.product-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    color: #002b5b;
    margin-bottom: 10px;
    font-size: 24px;
}

.product-info p {
    color: #666;
}

.price,
.product-price {
    font-weight: bold;
    color: #d71920;
}

.price {
    margin-top: 10px;
    font-size: 18px;
}

.sku {
    color: #d71920;
    font-weight: bold;
    margin-bottom: 12px;
}

/* ==========================
   BADGES
========================== */

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    z-index: 5;
}

.in-stock {
    background: #28a745;
}

.call {
    background: #ff9800;
}

.product-content .badge,
.product-detail-info .badge {
    position: static;
    display: inline-block;
    margin-bottom: 15px;
}

/* ==========================
   QUICK LINKS / FILTERS
========================== */

.quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.quick-links a,
.quick-links button {
    border-radius: 30px;
}

.quick-links a {
    background: white;
    padding: 14px 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    transition: .3s;
}

.quick-links a:hover {
    background: #004a94;
    color: white;
}

/* ==========================
   PROMO STRIP
========================== */

.promo-strip {
    background: #002b5b;
    color: white;
    text-align: center;
    padding: 70px 20px;
}

.promo-strip h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.promo-strip p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* ==========================
   PRODUCT DETAIL PAGE
========================== */

.product-detail-page {
    padding: 45px 0 70px;
}

.breadcrumb {
    margin-bottom: 25px;
    color: #666;
}

.breadcrumb a {
    color: #004a94;
    font-weight: bold;
}

.product-detail,
.product-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 45px;
    align-items: start;
}

.product-detail-card,
.product-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
}

.product-detail-card {
    padding: 35px;
}

.product-content,
.product-detail-info {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
}

.product-content h1,
.product-content h2,
.product-detail-info h1 {
    color: #002b5b;
    font-size: 36px;
    line-height: 1.2;
    margin: 15px 0 10px;
}

.product-price {
    font-size: 28px;
    margin: 20px 0;
}

.product-meta,
.cta-box {
    background: #f5f7fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.page-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.page-buttons .secondary-btn {
    margin-left: 0;
}

.product-section {
    margin-top: 35px;
    padding: 30px;
}

.product-section h2,
.product-section h3 {
    color: #002b5b;
    margin-bottom: 15px;
}

/* ==========================
   PRODUCT GALLERY
========================== */

.product-gallery {
    max-width: 900px;
}

.main-product-image {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: block;
}

.thumbnail-gallery {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnail-gallery img,
.thumbnail {
    width: 110px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    transition: .25s;
}

.thumbnail-gallery img:hover,
.thumbnail:hover {
    border-color: #004a94;
    transform: scale(1.05);
}

/* ==========================
   SPEC TABLE
========================== */

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.spec-table th {
    width: 35%;
    color: #002b5b;
}

/* ==========================
   VIDEO
========================== */

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================
   FOOTER
========================== */

.site-footer {
    background: #111;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-grid h3,
.footer-grid h4 {
    margin-bottom: 18px;
}

.footer-grid a {
    display: block;
    color: #d7d7d7;
    margin-bottom: 10px;
    transition: .3s;
}

.footer-grid a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #444;
    color: #aaa;
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 900px) {
    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-area {
        text-align: center;
    }

    .hero-content,
    .product-detail,
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 38px;
    }

    .search-area {
        margin-top: 20px;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .secondary-btn {
        margin-left: 0;
        margin-top: 15px;
    }

    .product-content h1,
    .product-content h2,
    .product-detail-info h1 {
        font-size: 30px;
    }

    .main-product-image {
        max-height: 420px;
    }

    .thumbnail-gallery img,
    .thumbnail {
        width: 90px;
        height: 65px;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 50px 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .search-area {
        flex-direction: column;
    }

    .search-area input,
    .search-area button {
        width: 100%;
        border-radius: 6px;
    }

    .nav-content a {
        padding: 14px 16px;
    }
}


.thumbnail-gallery {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 20px;
    min-height: 90px;
}

.thumbnail-gallery img,
.thumbnail {
    display: block !important;
    width: 110px !important;
    height: 80px !important;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: white;
}

.thumbnail.active {
    border: 3px solid #d71920 !important;

    
}




/* =========================================================
   BAJA HOBBY USA - GLOBAL WEBSITE STYLES
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #222222;
  font-family: Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  transition: color 0.2s ease,
              background-color 0.2s ease;
}


/* =========================================================
   TOP CONTACT BAR
========================================================= */

.top-bar {
  width: 100%;
  min-height: 42px;
  padding: 8px 35px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;

  background: #050505;
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.top-contact {
  display: flex;
  align-items: center;
  gap: 35px;
}

.top-bar a {
  color: #ffffff;
  text-decoration: none;
}

.top-bar a:hover {
  color: #ed1c24;
}


/* =========================================================
   MAIN HEADER
========================================================= */

.site-header {
  width: 100%;
  min-height: 128px;
  padding: 18px 35px;

  display: grid;
  grid-template-columns: 300px minmax(300px, 1fr) 330px;
  align-items: center;
  gap: 35px;

  background: #ffffff;
  border-bottom: 1px solid #dddddd;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: block;
}

.logo img {
  display: block;
  width: 270px;
  max-height: 110px;
  object-fit: contain;
}


/* =========================================================
   SEARCH
========================================================= */

.search {
  width: 100%;
  display: flex;
  align-items: stretch;
}

.search input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 18px;

  border: 1px solid #b7b7b7;
  border-right: none;
  border-radius: 6px 0 0 6px;

  background: #f4f4f4;
  color: #222222;

  font-size: 16px;
}

.search input:focus {
  outline: none;
  border-color: #ed1c24;
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.12);
}

.search button {
  width: 60px;
  height: 50px;

  border: none;
  border-radius: 0 6px 6px 0;

  background: #ed1c24;
  color: #ffffff;

  font-size: 21px;
  cursor: pointer;
}

.search button:hover {
  background: #bd1016;
}


/* =========================================================
   ORDER BOX
========================================================= */

.order-box {
  min-height: 75px;
  padding: 13px 18px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  border: 1px solid #777777;
  border-radius: 6px;

  background: #111111;
  color: #ffffff;

  text-align: center;
  text-transform: uppercase;
}

.order-box strong {
  display: block;
  margin-bottom: 7px;

  color: #ed1c24;
  font-size: 20px;
}

.order-box span {
  font-size: 14px;
  line-height: 1.5;
}

.order-box a {
  color: #ffffff;
  text-decoration: none;
}

.order-box a:hover {
  color: #ed1c24;
}


/* =========================================================
   MAIN NAVIGATION
========================================================= */

.main-nav {
  width: 100%;
  min-height: 54px;
  padding: 0 25px;

  display: flex;
  justify-content: center;
  align-items: stretch;

  background: linear-gradient(
    to bottom,
    #292929,
    #111111
  );

  border-bottom: 4px solid #ed1c24;
}

.main-nav a {
  min-height: 54px;
  padding: 0 25px;

  display: flex;
  justify-content: center;
  align-items: center;

  color: #ffffff;
  text-decoration: none;

  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: #ed1c24;
  color: #ffffff;
}


/* =========================================================
   MAIN PAGE CONTENT
========================================================= */

main {
  display: block;
}

.contact-page {
  width: 100%;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  margin-top: 0;
  background: #101010;
  color: #dddddd;
  border-top: 5px solid #ed1c24;
}

.footer-content {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 45px 0;

  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
}

.footer-content h3 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 20px;
  text-transform: uppercase;
}

.footer-content p {
  margin: 8px 0;
  line-height: 1.6;
}

.footer-content a {
  color: #dddddd;
  text-decoration: none;
}

.footer-content a:hover {
  color: #ed1c24;
}

.footer-bottom {
  padding: 17px 20px;
  background: #050505;
  color: #aaaaaa;
  text-align: center;
  font-size: 14px;
}


/* =========================================================
   TABLET LAYOUT
========================================================= */

@media (max-width: 1100px) {

  .site-header {
    grid-template-columns: 240px 1fr;
    gap: 20px;
  }

  .logo img {
    width: 220px;
  }

  .order-box {
    grid-column: 1 / -1;
    width: 100%;
  }

  .main-nav {
    padding: 0;
    flex-wrap: wrap;
  }

  .main-nav a {
    padding: 0 17px;
  }
}


/* =========================================================
   MOBILE LAYOUT
========================================================= */

@media (max-width: 750px) {

  .top-bar {
    padding: 10px 15px;
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .top-contact {
    flex-direction: column;
    gap: 4px;
  }

  .site-header {
    padding: 18px 15px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .logo {
    justify-content: center;
  }

  .logo img {
    width: 250px;
    max-height: 120px;
  }

  .search {
    width: 100%;
  }

  .order-box {
    grid-column: auto;
  }

  .main-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    border-bottom-width: 3px;
  }

  .main-nav a {
    min-height: 48px;
    padding: 10px 8px;
    border-bottom: 1px solid #333333;
    font-size: 13px;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 460px) {

  .main-nav {
    grid-template-columns: 1fr;
  }

  .logo img {
    width: 215px;
  }

  .order-box strong {
    font-size: 18px;
  }
  
  
  
  .small-section {
    padding: 25px 0;
}

.small-section .section-title h2 {
    margin-bottom: 8px;
}

.small-section .section-title p {
    margin-bottom: 0;
}
}




/* =====================================================
   PRODUCT VARIANT SELECTOR
===================================================== */

.variant-section {
  margin: 25px 0 18px;
}

.variant-section h3 {
  margin: 0 0 14px;
  color: #002f63;
  font-size: 20px;
}

.variant-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.variant-option {
  padding: 15px;
  border: 2px solid #d5dbe3;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.variant-option:hover {
  border-color: #0057a8;
  transform: translateY(-2px);
}

.variant-option.active {
  border-color: #0057a8;
  background: #eef6ff;
  box-shadow: 0 0 0 3px rgba(0, 87, 168, 0.1);
}

.variant-option-name,
.variant-option-price {
  display: block;
  font-weight: 800;
}

.variant-option-name {
  margin-bottom: 5px;
  color: #002f63;
  font-size: 17px;
}

.variant-option-price {
  color: #e2171d;
  font-size: 18px;
}


/* =====================================================
   SELECTED VARIANT
===================================================== */

.selected-variant-box {
  margin: 18px 0;
  padding: 18px;
  border-radius: 9px;
  background: #f3f6fa;
}

.selected-variant-label {
  color: #687386;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.selected-variant-box h3 {
  margin: 6px 0;
  color: #002f63;
  font-size: 22px;
}

.selected-variant-box .sku {
  margin: 6px 0;
  color: #e2171d;
  font-weight: 700;
}

.selected-variant-box .product-price {
  margin: 13px 0 0;
  color: #e2171d;
  font-size: 29px;
  font-weight: 800;
}


/* =====================================================
   VARIANT COMPARISON
===================================================== */

.variant-comparison-section {
  margin-top: 35px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.comparison-card {
  padding: 20px;
  border: 2px solid #d8dee7;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.comparison-card:hover {
  transform: translateY(-2px);
}

.comparison-card.active {
  border-color: #0057a8;
  box-shadow: 0 7px 18px rgba(0, 87, 168, 0.13);
}

.comparison-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  padding-bottom: 12px;
  border-bottom: 1px solid #e1e5ea;
}

.comparison-heading h3 {
  margin: 0;
  color: #002f63;
  font-size: 21px;
}

.comparison-heading strong {
  color: #e2171d;
  font-size: 19px;
}

.comparison-summary {
  margin: 15px 0;
  color: #4d5968;
  line-height: 1.55;
}

.comparison-card h4 {
  margin: 17px 0 8px;
  color: #002f63;
  font-size: 14px;
  text-transform: uppercase;
}

.included-list,
.required-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.included-list li,
.required-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 22px;
  color: #374151;
  line-height: 1.45;
}

.included-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #20a146;
  font-weight: 900;
}

.required-list li::before {
  content: "•";
  position: absolute;
  left: 5px;
  color: #e2171d;
  font-weight: 900;
}


/* =====================================================
   MOBILE VARIANTS
===================================================== */

@media (max-width: 760px) {

  .variant-options,
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}