/* ============================================================
   SCCS eBay Listing Template — Sun Coast Cycle Sports
   Hosted: assets.suredone.com/683984/ebay_listing_template/
   Replaces Frooition template (Template ID 4483, Tab 3055)
   ============================================================ */

/* ---- Base ---- */
.sccs-template {
  max-width: 960px;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  line-height: 1.6;
  font-size: 14px;
}

/* ---- Header ---- */
.sccs-header {
  padding: 0;
  border-bottom: 1px solid #eee;
}

/* Shared: full-width responsive images */
.sccs-header-img,
.sccs-footer-img,
.sccs-catbox img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

/* ---- Category Nav ---- */
.sccs-catnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

.sccs-catnav a {
  color: #333;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  white-space: nowrap;
}

.sccs-catnav a:hover {
  color: #F26522;
}

/* ---- Welcome Banner ---- */
.sccs-banner {
  background: #2a2a2a url('https://assets.suredone.com/683984/ebay_listing_template/mainbanner.jpg') no-repeat right center;
  background-size: cover;
  color: #fff;
  padding: 40px 30px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.sccs-banner-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

/* Dark overlay for text readability over the photo */
.sccs-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,.4) 70%, transparent 100%);
  z-index: 1;
}

.sccs-banner-welcome {
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  color: #ccc;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.sccs-banner-name {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 2px;
  text-shadow: 1px 1px 3px rgba(0,0,0,.5);
}

.sccs-banner-sub {
  font-size: 18px;
  text-transform: uppercase;
  color: #ccc;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.sccs-banner-text {
  font-size: 13px;
  line-height: 1.6;
  color: #bbb;
  margin: 0 0 18px 0;
}

.sccs-banner-btn {
  display: inline-block;
  background: #F26522;
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sccs-banner-btn:hover {
  background: #d9551a;
}

/* ---- Trust Bar ("Why Buy From Us") ---- */
.sccs-trust-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #f8f8f8;
  border-bottom: 2px solid #F26522;
  padding: 16px 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.sccs-trust-item {
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.sccs-trust-number {
  font-size: 22px;
  font-weight: bold;
  color: #F26522;
  line-height: 1.2;
}

.sccs-trust-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Scarcity Badge ---- */
.sccs-listing-badges {
  padding: 12px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sccs-scarcity-badge {
  display: inline-block;
  background: #fff3e0;
  color: #c65100;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid #F26522;
  border-radius: 3px;
}

/* Shared: hidden form inputs for CSS-only interactivity */
.sccs-menu-checkbox,
.sccs-img-radio,
.sccs-tab-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ---- Mobile Hamburger Menu (CSS-only) ---- */

.sccs-hamburger {
  display: none; /* hidden on desktop */
}

/* ---- Two-Column Layout ---- */
.sccs-columns {
  display: flex;
}

/* Left Sidebar */
.sccs-sidebar {
  width: 200px;
  min-width: 200px;
  border-right: 1px solid #eee;
  padding: 15px 0;
  font-size: 13px;
}

.sccs-sidebar-section {
  padding: 0 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.sccs-sidebar-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.sccs-sidebar-title {
  font-weight: bold;
  color: #333;
  padding: 8px 0 6px;
  border-bottom: 1px solid #eee;
  margin-bottom: 4px;
}

.sccs-sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sccs-sidebar-links li {
  border-bottom: 1px solid #f0f0f0;
}

.sccs-sidebar-links li a {
  display: block;
  padding: 5px 0;
  color: #333;
  text-decoration: none;
  font-size: 12px;
}

.sccs-sidebar-links li a:hover {
  color: #F26522;
}

/* Sub-category dropdowns */
.sccs-has-sub {
  position: relative;
}

.sccs-has-sub > a::after {
  content: " \25B8";
  font-size: 10px;
  color: #aaa;
}

.sccs-sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 2px 2px 6px rgba(0,0,0,.12);
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 180px;
  z-index: 100;
}

.sccs-has-sub:hover > .sccs-sub-menu {
  display: block;
}

.sccs-sub-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.sccs-sub-menu li:last-child {
  border-bottom: none;
}

.sccs-sub-menu li a {
  display: block;
  padding: 4px 12px;
  color: #333;
  text-decoration: none;
  font-size: 11px;
  white-space: nowrap;
}

.sccs-sub-menu li a:hover {
  color: #F26522;
  background: #f9f9f9;
}

/* Main Content */
.sccs-main {
  flex: 1;
  min-width: 0;
}

/* ---- Product Title ---- */
.sccs-product-title {
  margin: 0;
  padding: 18px 20px 12px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  line-height: 1.3;
}

/* ---- Item Description Heading ---- */
.sccs-desc-heading {
  margin: 0;
  padding: 0 20px 8px;
  font-size: 16px;
  font-weight: bold;
  color: #555;
}

/* ---- CSS-Only Image Gallery ---- */
.sccs-gallery {
  padding: 0 20px 15px;
  position: relative;
}

.sccs-gallery-main {
  position: relative;
  width: 100%;
  background: #fff;
  text-align: center;
  margin-bottom: 10px;
  min-height: 200px;
}

.sccs-gallery-slide {
  display: none;
}

.sccs-gallery-slide img {
  max-width: 100%;
  max-height: 500px;
  height: auto;
  border: 0;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

/* Hover zoom on main gallery image */
.sccs-gallery-slide img:hover {
  transform: scale(1.5);
  z-index: 10;
  position: relative;
}

/* Hide empty image slots (when SureDone variable renders empty) */
.sccs-gallery-slide img[src=""],
.sccs-gallery-slide img:not([src]),
.sccs-gallery-thumbs label:has(img[src=""]),
.sccs-gallery-thumbs label:has(img:not([src])) {
  display: none;
}

/* Show first slide by default */
.sccs-gallery-slide-1 {
  display: block;
}

/* Show slide when corresponding radio is checked */
#sccs-img-1:checked ~ .sccs-gallery-main .sccs-gallery-slide-1,
#sccs-img-2:checked ~ .sccs-gallery-main .sccs-gallery-slide-2,
#sccs-img-3:checked ~ .sccs-gallery-main .sccs-gallery-slide-3,
#sccs-img-4:checked ~ .sccs-gallery-main .sccs-gallery-slide-4,
#sccs-img-5:checked ~ .sccs-gallery-main .sccs-gallery-slide-5,
#sccs-img-6:checked ~ .sccs-gallery-main .sccs-gallery-slide-6,
#sccs-img-7:checked ~ .sccs-gallery-main .sccs-gallery-slide-7,
#sccs-img-8:checked ~ .sccs-gallery-main .sccs-gallery-slide-8,
#sccs-img-9:checked ~ .sccs-gallery-main .sccs-gallery-slide-9,
#sccs-img-10:checked ~ .sccs-gallery-main .sccs-gallery-slide-10 {
  display: block;
}

/* Hide all others when a radio is checked */
#sccs-img-2:checked ~ .sccs-gallery-main .sccs-gallery-slide-1,
#sccs-img-3:checked ~ .sccs-gallery-main .sccs-gallery-slide-1,
#sccs-img-4:checked ~ .sccs-gallery-main .sccs-gallery-slide-1,
#sccs-img-5:checked ~ .sccs-gallery-main .sccs-gallery-slide-1,
#sccs-img-6:checked ~ .sccs-gallery-main .sccs-gallery-slide-1,
#sccs-img-7:checked ~ .sccs-gallery-main .sccs-gallery-slide-1,
#sccs-img-8:checked ~ .sccs-gallery-main .sccs-gallery-slide-1,
#sccs-img-9:checked ~ .sccs-gallery-main .sccs-gallery-slide-1,
#sccs-img-10:checked ~ .sccs-gallery-main .sccs-gallery-slide-1 {
  display: none;
}

/* Thumbnails */
.sccs-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.sccs-gallery-thumbs label {
  display: block;
  width: 75px;
  height: 75px;
  border: 2px solid #ddd;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}

.sccs-gallery-thumbs label img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* Highlight active thumbnail */
#sccs-img-1:checked ~ .sccs-gallery-thumbs label[for="sccs-img-1"],
#sccs-img-2:checked ~ .sccs-gallery-thumbs label[for="sccs-img-2"],
#sccs-img-3:checked ~ .sccs-gallery-thumbs label[for="sccs-img-3"],
#sccs-img-4:checked ~ .sccs-gallery-thumbs label[for="sccs-img-4"],
#sccs-img-5:checked ~ .sccs-gallery-thumbs label[for="sccs-img-5"],
#sccs-img-6:checked ~ .sccs-gallery-thumbs label[for="sccs-img-6"],
#sccs-img-7:checked ~ .sccs-gallery-thumbs label[for="sccs-img-7"],
#sccs-img-8:checked ~ .sccs-gallery-thumbs label[for="sccs-img-8"],
#sccs-img-9:checked ~ .sccs-gallery-thumbs label[for="sccs-img-9"],
#sccs-img-10:checked ~ .sccs-gallery-thumbs label[for="sccs-img-10"] {
  border-color: #F26522;
}

/* ---- Description Areas ---- */
.sccs-description {
  padding: 20px 20px 10px;
  margin-bottom: 0;
}

.sccs-longdescription {
  padding: 0 20px 10px;
  margin-bottom: 20px;
}

/* ---- Best Sellers ---- */
.sccs-bestsellers {
  text-align: center;
  padding: 10px 16px 24px;
}

.sccs-bestsellers-title {
  font-size: 17px;
  font-weight: bold;
  color: #333;
  margin-bottom: 14px;
}

.sccs-bestsellers-grid {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.sccs-catbox {
  display: block;
  position: relative;
  flex: 1;
  max-width: 50%;
  text-decoration: none;
  overflow: hidden;
}

.sccs-catbox-label {
  position: absolute;
  bottom: 50px;
  left: 16px;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(0,0,0,.6);
}

.sccs-catbox-btn {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: #F26522;
  color: #fff;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

/* ---- Info Panel (CSS-only tabs — no JavaScript) ---- */
.sccs-info-panel {
  background: #333;
  color: #ccc;
  margin: 0 0 24px 0;
  overflow: hidden;
}

/* Tab bar */
.sccs-tab-bar {
  display: flex;
  background: #444;
}

.sccs-tab-bar label {
  flex: 1;
  text-align: center;
  padding: 13px 8px;
  font-size: 13px;
  font-weight: bold;
  color: #aaa;
  border-right: 1px solid #555;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.sccs-tab-bar label:last-child {
  border-right: none;
}

.sccs-tab-bar label:hover {
  color: #fff;
}

/* Tab content — hidden by default */
.sccs-tab-content {
  display: none;
  padding: 22px 28px;
}

.sccs-tab-content h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

.sccs-tab-content p {
  margin: 0 0 5px 0;
  font-size: 13px;
  line-height: 1.75;
  color: #ccc;
}

.sccs-tab-content p:last-child {
  margin-bottom: 0;
}

/* Active tab — show content + highlight label */
#sccs-tab-1:checked ~ .sccs-tab-bar label[for="sccs-tab-1"],
#sccs-tab-2:checked ~ .sccs-tab-bar label[for="sccs-tab-2"],
#sccs-tab-3:checked ~ .sccs-tab-bar label[for="sccs-tab-3"],
#sccs-tab-4:checked ~ .sccs-tab-bar label[for="sccs-tab-4"],
#sccs-tab-5:checked ~ .sccs-tab-bar label[for="sccs-tab-5"],
#sccs-tab-6:checked ~ .sccs-tab-bar label[for="sccs-tab-6"] {
  color: #fff;
  border-bottom: 3px solid #F26522;
}

#sccs-tab-1:checked ~ .sccs-tab-content-1,
#sccs-tab-2:checked ~ .sccs-tab-content-2,
#sccs-tab-3:checked ~ .sccs-tab-content-3,
#sccs-tab-4:checked ~ .sccs-tab-content-4,
#sccs-tab-5:checked ~ .sccs-tab-content-5,
#sccs-tab-6:checked ~ .sccs-tab-content-6 {
  display: block;
}

/* ---- Brand Logos ---- */
.sccs-brands {
  text-align: center;
  padding: 28px 16px 20px;
}

.sccs-brands h3 {
  margin: 0 0 18px 0;
  font-size: 17px;
  font-weight: bold;
  color: #333;
}

.sccs-brand-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.sccs-brand-grid img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border: 0;
  flex: 0 0 calc(20% - 12px);
  padding: 10px;
  box-sizing: border-box;
}

/* ---- Footer ---- */
.sccs-footer {
  text-align: center;
  padding: 0;
  border-top: 1px solid #e0e0e0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media screen and (max-width: 768px) {

  .sccs-trust-bar {
    padding: 12px 6px;
  }

  .sccs-trust-number {
    font-size: 18px;
  }

  .sccs-trust-label {
    font-size: 10px;
  }

  .sccs-listing-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .sccs-bc-heading {
    font-size: 18px;
  }

  .sccs-columns {
    flex-direction: column;
  }

  /* Show hamburger button on mobile */
  .sccs-hamburger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #333;
    color: #fff;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
  }

  .sccs-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
  }

  /* Hide sidebar by default on mobile */
  .sccs-sidebar {
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
    display: none;
  }

  /* Show sidebar when hamburger is checked */
  #sccs-menu-toggle:checked ~ .sccs-sidebar {
    display: block;
  }

  /* Rotate hamburger lines to X when open */
  #sccs-menu-toggle:checked ~ .sccs-hamburger {
    background: #F26522;
  }

  /* On mobile, sub-menus expand inline instead of flyout */
  .sccs-sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    background: #f9f9f9;
  }

  .sccs-has-sub:hover > .sccs-sub-menu {
    display: none;
  }

  .sccs-has-sub > a::after {
    content: "";
  }

  .sccs-bestsellers-grid {
    flex-direction: column;
    align-items: center;
  }

  .sccs-catbox {
    max-width: 100%;
  }

  .sccs-catnav {
      padding: 8px 6px;
  }

  .sccs-catnav a {
    font-size: 12px;
    padding: 5px 8px;
  }

  .sccs-banner {
    padding: 28px 20px;
  }

  .sccs-banner-name {
    font-size: 24px;
  }

  .sccs-banner-sub {
    font-size: 15px;
  }
}

@media screen and (max-width: 640px) {

  .sccs-template {
    font-size: 13px;
  }

  .sccs-description,
  .sccs-longdescription {
    padding-left: 12px;
    padding-right: 12px;
  }

  .sccs-tab-bar {
    flex-wrap: wrap;
  }

  .sccs-tab-bar label {
    flex: 1 0 33%;
    padding: 10px 4px;
    font-size: 12px;
    border-bottom: 1px solid #555;
  }

  .sccs-tab-content {
    padding: 16px;
  }

  .sccs-tab-content h3 {
    font-size: 15px;
  }

  .sccs-brand-grid img {
    flex: 0 0 calc(33.33% - 8px);
    max-width: 110px;
  }

  .sccs-banner-name {
    font-size: 20px;
  }
}

@media screen and (max-width: 420px) {

  .sccs-tab-bar label {
    flex: 1 0 50%;
    font-size: 11px;
    padding: 9px 4px;
  }

  .sccs-brand-grid img {
    flex: 0 0 calc(50% - 8px);
    max-width: 130px;
  }

  .sccs-tab-content {
    padding: 14px 12px;
  }

  .sccs-catnav a {
    font-size: 11px;
    padding: 4px 6px;
  }
}
