/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0
*/

body { outline: 10px solid red !important; }







.brand-page-wrap {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.brand-header {
  margin-bottom: 30px;
}

.brand-desc {
  color: #555;
  max-width: 800px;
}

.brand-bike-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.bike-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: 0.25s ease;
}

.bike-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.bike-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.bike-title {
  font-size: 16px;
  margin: 12px 0 6px;
}

.bike-meta {
  font-size: 13px;
  color: #666;
}

.bike-price {
  font-weight: 600;
  margin-top: 4px;
}









/* ================================
   BRAND PAGE GRID
================================ */

.brand-page-wrap {
  margin-top: 30px;
}

.brand-header {
  max-width: 900px;
  margin-bottom: 40px;
}

.brand-desc {
  color: #555;
  line-height: 1.6;
}

/* GRID */
.brand-bike-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* CARD */
.bike-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

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

/* IMAGE */
.bike-thumb {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

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

/* TITLE */
.bike-title {
  font-size: 15px;
  margin: 6px 0;
  line-height: 1.3;
}

/* META */
.bike-meta {
  font-size: 13px;
  color: #1a73e8;
  margin-bottom: 4px;
}

/* PRICE */
.bike-price {
  font-weight: 600;
  color: #111;
}

/* TABLET */
@media (max-width: 1024px) {
  .brand-bike-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* MOBILE */
@media (max-width: 640px) {
  .brand-bike-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}







.bike-card {
  text-align: center;
}

/* image center fix */
.bike-thumb img {
  margin: 0 auto;
}

/* title spacing */
.bike-title {
  text-align: center;
  min-height: 42px; /* keeps cards equal height */
}

/* meta + price */
.bike-meta,
.bike-price {
  text-align: center;
}





@media (max-width: 640px) {
  .bike-title {
    font-size: 14px;
  }
}






/* ================================
   FILTER BAR
================================ */

.brand-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.brand-filters select,
.brand-filters button {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.brand-filters button {
  background: #ff6a00;
  color: #fff;
  border: none;
  cursor: pointer;
}

.clear-filter {
  align-self: center;
  font-size: 14px;
}





/* ================================
   CHECKBOX STYLING
================================ */

.bike-card-wrap {
  position: relative;
}

.compare-check {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.9);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 5;
}







/* ================================
   FLOATING COMPARE BUTTON
================================ */
#compare-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ff6a00;
  color: #fff;
  padding: 12px 18px;
  border-radius: 30px;
  cursor: pointer;
  display: none;
  z-index: 999;
  font-weight: 600;
}





/* ================================
   GRID + CARD CSS
================================ */

.brand-bike-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:24px;
  margin-top:30px;
}

.bike-card{
  background:#fff;
  border-radius:14px;
  padding:16px;
  text-align:center;
  box-shadow:0 6px 20px rgba(0,0,0,0.06);
}

.bike-thumb img{
  max-width:100%;
  height:auto;
  object-fit:contain;
}

.bike-title{
  font-size:18px;
  margin:12px 0 6px;
}

.bike-title a{
  color:#0b1b2b;
  text-decoration:none;
}

.bike-meta-row{
  display:flex;
  justify-content:space-between;
  font-size:14px;
  margin-top:6px;
}

.bike-price{
  color:#2563eb;
  font-weight:600;
}

.compare-box{
  display:block;
  margin-top:10px;
  font-size:13px;
}




/* ================================
   STYLE COMPARE TABLE
================================ */

.compare-table{
  width:100%;
  border-collapse:collapse;
  margin-top:30px;
}

.compare-table th,
.compare-table td{
  border:1px solid #ddd;
  padding:12px;
  text-align:center;
}

.compare-table th{
  background:#f5f7fa;
  text-align:left;
}



.compare-table tr:first-child{
  position:sticky;
  top:0;
  background:#fff;
  z-index:10;
}



/* ================================
   COMPARE URL LINKS
================================ */

.compare-links {
  margin-top: 8px;
  font-size: 13px;
}

.compare-links strong {
  display: block;
  margin-bottom: 4px;
  color: #555;
}

.compare-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-links li {
  margin-bottom: 3px;
}

.compare-links a {
  color: #ff6b00;
  text-decoration: none;
}

.compare-links a:hover {
  text-decoration: underline;
}


/* ================================
   FULL SPECS TABLE CSS
================================ */

.bike-full-specs {
  margin-top: 40px;
}

.spec-section {
  margin-bottom: 40px;
}

.spec-section h3 {
  font-size: 22px;
  margin-bottom: 10px;
  border-left: 4px solid #ff6a00;
  padding-left: 10px;
}

.spec-section table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.spec-section td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}

.spec-section td:first-child {
  width: 45%;
  font-weight: 600;
  color: #333;
}

@media (max-width: 768px) {
  .spec-section td {
    font-size: 14px;
    padding: 8px;
  }
}




/* ===== ROTATE DEVICE OVERLAY (FOR COMPARE PAGE) ===== */

#rotateNotice {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.75);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

#rotateNotice .rotate-box {
  background: #ffffff;
  padding: 22px 26px;
  border-radius: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  max-width: 85%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}


/* ===== BIKE HIGHLIGHTS BOX (FOR SINGLE BIKE PAGE) ===== */

.bike-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 14px;
  border-radius: 10px;
  margin: 20px 0 28px;
}

.highlight-item {
  text-align: center;
  padding: 10px 6px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.highlight-item .label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.highlight-item .value {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
}

.highlight-item.price .value {
  color: #0f766e;
}

@media (max-width: 640px) {
  .bike-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ---------- City Price Box ---------- */

.city-price-box {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0 28px;
  background: #f9fafb;
}

.city-price-header {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

.city-select-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.city-select-row label {
  font-size: 13px;
  color: #6b7280;
}

.city-select-row select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 14px;
}

.city-price-amount {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 700;
  color: #16a34a;
}

.price-disclaimer {
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.4;
}

/* Mobile spacing tweak */
@media (max-width: 768px) {
  .city-price-box {
    padding: 14px;
  }

  .city-price-amount {
    font-size: 22px;
  }
}



/* ---------- SPECS TABS ---------- */

.spec-tabs-wrap {
  margin-top: 30px;
}

.spec-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #eee;
  margin-bottom: 15px;
  overflow-x: auto;
}

.spec-tab-btn {
  background: none;
  border: none;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.spec-tab-btn.active {
  border-color: #ff6a00;
  color: #ff6a00;
}

.spec-tab-content {
  display: none;
}

.spec-tab-content.active {
  display: block;
}



/* ---------- SPECS TAB SWITCH ---------- */
.spec-tab-content {
  display: none;
}

.spec-tab-content.active {
  display: block;
}

.spec-tab-btn.active {
  color: #ff6b00;
  border-bottom: 3px solid #ff6b00;
}




.spec-tabs-nav {
  position: relative;
  z-index: 50;
}

.spec-tab-btn {
  pointer-events: auto !important;
  position: relative;
  z-index: 60;
}


.spec-tabs-wrap {
  position: relative;
  z-index: 10;
}



/* ---------- HOME PAGE - BIKE SEARCH BOX ---------- */

.home-bike-search {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  max-width: 900px;
  margin: 30px auto 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
}

.home-bike-search h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

#bikeSearchForm {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

#bikeSearchForm select,
#bikeSearchForm input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  min-width: 220px;
  font-size: 15px;
}

#bikeSearchForm button {
  background: #ff6b00;
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

#bikeSearchForm button:hover {
  background: #e85f00;
}


.home-bike-search select,
.home-bike-search input {
  width: 100%;
  max-width: 320px;
  height: 48px;
  appearance: none;
  background-color: #fff;
}

@media (min-width: 768px) {
  #bikeSearchForm {
    flex-wrap: nowrap;
  }
}


/* ===============================
   HOMEPAGE — BROWSE Bikes Tabs
================================ */

.home-brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.home-brand-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.home-brand-card:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.brand-logo {
  max-width: 90px;
  max-height: 40px;
  object-fit: contain;
  margin-bottom: 10px;
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
  color: #111;
}

.brand-count {
  display: block;
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

/* Mobile */
@media (max-width: 768px) {
  .home-brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* COLLAPSE LOGIC */
.home-brand-grid {
  transition: max-height 0.35s ease;
  overflow: hidden;
}

/* Desktop: show 2 rows initially (6 x 2 = 12 brands) */
.brand-collapsed {
  max-height: 260px;
}

/* Expanded */
.brand-expanded {
  max-height: 2000px;
}

/* Toggle button */
.brand-toggle-wrap {
  text-align: center;
  margin-top: 18px;
}

.brand-toggle-btn {
  background: transparent;
  border: none;
  color: #007bff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.brand-toggle-btn:hover {
  text-decoration: underline;
}

/* Mobile tuning */
@media (max-width: 768px) {
  .brand-collapsed {
    max-height: 340px; /* ~3 rows on mobile */
  }
}



/* ===============================
   HOMEPAGE — LATEST BIKES
================================ */

.home-latest-bikes{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:22px;
  margin-top:25px;
}

.latest-bike-card{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  text-decoration:none;
  transition:.25s ease;
}

.latest-bike-card:hover{
  transform:translateY(-5px);
  box-shadow:0 16px 35px rgba(0,0,0,.14);
}

.latest-bike-img img{
  width:100%;
  height:170px;
  object-fit:contain;
  background:#f7f7f7;
}

.latest-bike-info{
  padding:14px 16px 18px;
}

.latest-bike-info h3{
  font-size:16px;
  margin:0 0 6px;
  color:#111;
}

.latest-bike-meta{
  display:flex;
  justify-content:space-between;
  font-size:14px;
  color:#666;
}

.home-section-title{
  text-align:center;
  font-size:25px;
  font-weight:700;
  margin:60px 0 25px;
  color:#0b2545;
}

@media(max-width:768px){
  .home-section-title{
    font-size:24px;
    margin:40px 0 18px;
  }
}


/* ===== Desktop Grid (default) ===== */

.latest-bikes-scroll{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}


/* ===== Mobile Horizontal Scroll ===== */

@media (max-width: 768px){

  .latest-bikes-scroll{
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 5px 20px;
    scroll-snap-type: x mandatory;
  }

  .latest-bikes-scroll::-webkit-scrollbar{
    display: none;
  }

  .latest-bikes-scroll > *{
    min-width: 260px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}




/* ===============================
   FEATURED BIKE COMPARISONS
================================ */

.featured-comparisons {
  margin: 60px 0;
}

/* Horizontal scroll */
.comparison-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 6px 18px;
  scroll-snap-type: x mandatory;
}

/* Card */
.comparison-card {
  width: 300px;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  flex-shrink: 0;
  scroll-snap-align: start;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Bike row */
.compare-bikes {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* Single bike */
.compare-bikes .bike {
  flex: 1;
  text-align: center;
}

/* Bike image */
.compare-bikes .bike img {
  width: 100%;
  max-width: 120px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 6px;
  display: block;
}

/* Bike name */
.compare-bikes .bike-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #1a4cff;
  margin-bottom: 4px;
}

/* Price */
.compare-bikes .bike-price {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.compare-bikes .bike-price small {
  font-size: 11px;
  font-weight: 500;
  color: #666;
  margin-left: 2px;
}

/* VS */
.compare-bikes .vs {
  font-size: 13px;
  font-weight: 700;
  color: #ff6a00;
  align-self: center;
}

/* CTA */
.compare-cta {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #ff6a00;
}

/* Mobile */
@media (max-width: 768px) {
  .comparison-card {
    width: 260px;
  }

  .compare-bikes .bike img {
    max-width: 100px;
    height: 80px;
  }

  .compare-bikes .bike-name,
  .compare-bikes .bike-price {
    font-size: 13px;
  }
}
