/* ============================================================
   THE BLUES STUDIOS — AMBIENT BACKGROUND
   ============================================================ */

:root {
  --tbs-ambient-base: #090e17;
}

html,
body {
  background-color: var(--tbs-ambient-base);
}

/* Let the ambient background show through */
body > .site {
  background-color: transparent;
  background-image: none;
}

/* Subtle blue ambient lighting */
body {
  background-image:
    radial-gradient(
      ellipse 48% 37% at 7% 28%,
      rgba(45, 119, 229, .20),
      transparent 100%
    ),
    radial-gradient(
      ellipse 44% 34% at 93% 65%,
      rgba(34, 119, 178, .17),
      transparent 100%
    ),
    radial-gradient(
      ellipse 35% 30% at 48% 100%,
      rgba(45, 119, 229, .11),
      transparent 100%
    );

  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Mobile ambient lighting */
@media (max-width: 600px) {
  body {
    background-image:
      radial-gradient(
        ellipse 90% 35% at 0% 20%,
        rgba(45, 119, 229, .15),
        transparent 100%
      ),
      radial-gradient(
        ellipse 90% 35% at 100% 78%,
        rgba(34, 119, 178, .12),
        transparent 100%
      );

    background-attachment: scroll;
  }
}

/* ============================================================
   DISABLE EXO PAGE TRANSITION FLASH
   ============================================================ */

@view-transition {
  navigation: none;
}

html,
body,
body::before,
.site,
.site-header,
.site-navigation {
  view-transition-name: none !important;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none !important;
}

/* ============================================================
   CATEGORY PAGE — FULL WIDTH WITHOUT SIDEBAR
   ============================================================ */

body.tbs-category-page .tbs-category-layout {
  display: block !important;
  width: calc(100% - 48px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.tbs-category-page .tbs-category-main {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

body.tbs-category-page .tbs-category-products {
  width: 100%;
  min-width: 0;
}

@media (min-width: 701px) {
  body.tbs-category-page .tbs-category-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.tbs-category-page .tbs-category-layout {
    width: calc(100% - 28px);
  }
}

/* THE BLUES STUDIOS — PRODUCT TABS DESIGN ONLY
   Add at the VERY END of existing tbs-custom.css.
   Does not change radio controls, tab display logic or JavaScript. */

body.tbs-detail-page .tbs-detail-product .tbs-detail-tabs.tbs-detail-panel {
  padding: 0;
  border: 1px solid #285482;
  border-radius: 12px;
  background: #101e34;
  overflow: hidden;
}

body.tbs-detail-page .tbs-detail-product .tbs-detail-tabs .tbs-tab-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 8px 10px 0;
  background: #0c1b30;
  border-bottom: 1px solid #285482;
  overflow-x: auto;
}

body.tbs-detail-page .tbs-detail-product .tbs-detail-tabs .tbs-tab-nav label {
  position: relative;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 8px 8px 0 0;
  color: #b7c5da;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

body.tbs-detail-page .tbs-detail-product .tbs-detail-tabs .tbs-tab-nav label:hover {
  color: #fff;
  background: rgba(45, 135, 244, .12);
}

/* Highlight whichever native radio is checked. No functionality changes. */
body.tbs-detail-page .tbs-detail-product .tbs-detail-tabs #tbs-tab-description:checked ~ .tbs-tab-nav label[for="tbs-tab-description"],
body.tbs-detail-page .tbs-detail-product .tbs-detail-tabs #tbs-tab-features:checked ~ .tbs-tab-nav label[for="tbs-tab-features"],
body.tbs-detail-page .tbs-detail-product .tbs-detail-tabs #tbs-tab-installation:checked ~ .tbs-tab-nav label[for="tbs-tab-installation"],
body.tbs-detail-page .tbs-detail-product .tbs-detail-tabs #tbs-tab-requirements:checked ~ .tbs-tab-nav label[for="tbs-tab-requirements"],
body.tbs-detail-page .tbs-detail-product .tbs-detail-tabs #tbs-tab-updates:checked ~ .tbs-tab-nav label[for="tbs-tab-updates"],
body.tbs-detail-page .tbs-detail-product .tbs-detail-tabs #tbs-tab-support:checked ~ .tbs-tab-nav label[for="tbs-tab-support"] {
  color: #65bdff !important;
  background: rgba(32, 110, 207, .24) !important;
  box-shadow: inset 0 -3px 0 #35b5ff !important;
}

body.tbs-detail-page .tbs-detail-product .tbs-detail-tabs .tbs-tab-content {
  padding: 25px 24px;
}

@media (max-width: 600px) {
  body.tbs-detail-page .tbs-detail-product .tbs-detail-tabs .tbs-tab-nav {
    padding: 5px 6px 0;
  }
  body.tbs-detail-page .tbs-detail-product .tbs-detail-tabs .tbs-tab-nav label {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
  }
  body.tbs-detail-page .tbs-detail-product .tbs-detail-tabs .tbs-tab-content {
    padding: 19px 17px;
  }
}


/* ============================================
   TBS – PRODUCT DESCRIPTION TYPOGRAPHY
   Design only | Product detail pages only
   ============================================ */

/* Consistent text spacing */
body.tbs-detail-page .tbs-tab-content .descr {
  color: #b7c5da;
  font-size: 14px;
  line-height: 1.75;
}

body.tbs-detail-page .tbs-tab-content .descr p {
  margin: 0 0 16px;
  line-height: 1.75;
}

/* Section headings inside the description */
body.tbs-detail-page .tbs-tab-content .descr h2 {
  margin: 28px 0 14px;
  color: #79baff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

body.tbs-detail-page .tbs-tab-content .descr h3 {
  margin: 24px 0 12px;
  color: #79baff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

/* Avoid unnecessary space at the top */
body.tbs-detail-page .tbs-tab-content .descr > :first-child {
  margin-top: 0;
}

/* Cleaner lists */
body.tbs-detail-page .tbs-tab-content .descr ul,
body.tbs-detail-page .tbs-tab-content .descr ol {
  margin: 10px 0 22px;
  padding-left: 23px;
  color: #b7c5da;
}

body.tbs-detail-page .tbs-tab-content .descr li {
  margin-bottom: 7px;
  padding-left: 3px;
  line-height: 1.65;
}

body.tbs-detail-page .tbs-tab-content .descr li::marker {
  color: #48aaff;
}

/* Emphasized text */
body.tbs-detail-page .tbs-tab-content .descr strong {
  color: #e2eeff;
  font-weight: 700;
}

/* Clean ending */
body.tbs-detail-page .tbs-tab-content .descr > :last-child {
  margin-bottom: 0;
}

/* Mobile */
@media (max-width: 600px) {
  body.tbs-detail-page .tbs-tab-content .descr h2 {
    font-size: 18px;
  }

  body.tbs-detail-page .tbs-tab-content .descr h3 {
    font-size: 16px;
  }

  body.tbs-detail-page .tbs-tab-content .descr li {
    margin-bottom: 6px;
  }
}


/* TBS – Compact product description lists */
body.tbs-detail-page .tbs-tab-content .descr li {
  margin-top: 0;
  margin-bottom: 3px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.6;
}

body.tbs-detail-page .tbs-tab-content .descr li p {
  margin: 0;
}
