/* Gear product detail page */

/* Light page: force dark header (black menu + dark logo) from the start */
body.product-html-page #header-sticky.header-1 {
  background-color: #fff;
  box-shadow: rgba(149, 157, 165, 0.15) 0px 4px 16px;
}
body.product-html-page #header-sticky.header-1 .logo .rr-logo--dark {
  display: block !important;
}
body.product-html-page #header-sticky.header-1 .logo .rr-logo--light {
  display: none !important;
}
body.product-html-page #header-sticky.header-1 .header-main .main-menu ul li a {
  color: #030523 !important;
}
body.product-html-page #header-sticky.header-1 .header-main .main-menu ul li a:hover {
  color: #fe5900 !important;
}
body.product-html-page #header-sticky.header-1 .sidebar__toggle .header-bar span,
body.product-html-page #header-sticky.header-1 .sidebar__toggle .header-bar span:first-child,
body.product-html-page #header-sticky.header-1 .sidebar__toggle .header-bar span:last-child {
  background: #030523 !important;
}

#product-root {
  font-family: "Chakra Petch", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-transform: none;
  color: #1a1a1a;
}

#product-root :is(h1, h2, h3, h4, h5, h6) {
  font-family: inherit !important;
  text-transform: none !important;
  color: inherit !important;
  margin-top: 0;
  margin-bottom: 0;
}

.gp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.gp-left {
  position: sticky;
  top: 120px; /* keep visible below the sticky header */
  align-self: start;
  z-index: 1;
  min-width: 0;
  height: fit-content;
}

@media (max-width: 991px) {
  .gp-layout {
    grid-template-columns: 1fr;
  }

  .gp-left {
    position: static;
  }
}

.gp-featured {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.gp-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gp-featured-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-weight: 600;
}

.gp-gallery-wrap {
  position: relative;
  margin-top: 1rem;
}

.gp-gallery {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.25rem 0;
}

.gp-gallery::-webkit-scrollbar {
  display: none;
}

.gp-gallery-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f3f4f6;
  cursor: pointer;
  padding: 0;
}

.gp-gallery-thumb.is-active {
  border-color: #fe5900;
}

.gp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gp-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gp-gallery-wrap.has-overflow .gp-gallery-nav {
  display: inline-flex;
}

.gp-gallery-nav.prev {
  left: 0;
}

.gp-gallery-nav.next {
  right: 0;
}

.gp-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem !important;
}

.gp-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.gp-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  letter-spacing: 0;
  line-height: 1;
}
.gp-star {
  position: relative;
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  font-size: 1.15em;
  line-height: 1;
  color: #d1d5db;
}
.gp-star::before {
  content: "★";
  display: block;
}
.gp-star--full {
  color: #f5b301;
}
.gp-star--half::after {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #f5b301;
  pointer-events: none;
}

.gp-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.gp-price-sale {
  color: #111 !important;
  font-size: 1.75rem;
  font-weight: 700;
}

.gp-save {
  display: inline-block;
  background: #facc15;
  color: #111;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.35rem;
  letter-spacing: 0.02em;
}

.gp-price-regular {
  color: #9ca3af !important;
  text-decoration: line-through;
  font-size: 1.1rem;
  font-weight: 600;
}

.gp-shipping {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0.25rem 0 1.5rem;
}

.gp-side-block {
  margin-top: 1.5rem;
}

.gp-side-block h3 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.85rem !important;
}

.gp-side-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gp-side-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #fff;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gp-side-card:hover {
  border-color: #fe5900;
  box-shadow: 0 6px 18px rgba(254, 89, 0, 0.08);
}

.gp-side-card img,
.gp-side-card .gp-side-ph {
  width: 64px;
  height: 64px;
  border-radius: 0.55rem;
  object-fit: cover;
  background: #f3f4f6;
}

.gp-side-card .gp-side-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.7rem;
}

.gp-side-card .gp-side-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.gp-side-prices {
  text-align: right;
}

.gp-side-sale.gp-side-free {
  color: #16a34a !important;
}

.gp-side-card.gp-side-included {
  cursor: default;
  background: #f8fff9;
  border-color: #bbf7d0;
}

.gp-side-card.gp-side-included:hover {
  border-color: #86efac;
  box-shadow: none;
}

.gp-side-regular {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af !important;
  text-decoration: line-through;
}

.gp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gp-actions-top {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
}

.gp-actions-top .gp-qty {
  flex-shrink: 0;
}

.gp-actions-top #gpAddCart {
  flex: 1;
  min-width: 0;
}

.gp-actions #gpBuyNow {
  width: 100%;
}

.gp-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.gp-qty button {
  width: 40px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.gp-qty input {
  width: 48px;
  height: 44px;
  border: none;
  text-align: center;
  font-weight: 700;
  color: #111 !important;
  background: transparent;
}

.gp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
}

.gp-btn-primary {
  background: #fe5900;
  color: #fff !important;
}

.gp-btn-primary:hover {
  background: #e04f00;
}

.gp-btn-outline {
  background: #fff;
  border-color: #111;
  color: #111 !important;
}

.gp-btn-outline:hover {
  background: #111;
  color: #fff !important;
}

@media (min-width: 768px) {
  .gp-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .gp-actions-top {
    display: contents;
  }

  .gp-actions #gpAddCart,
  .gp-actions #gpBuyNow {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
}

.gp-video-section,
.gp-desc-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.gp-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: #111;
  border: 1px solid #e5e7eb;
}

.gp-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gp-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-weight: 600;
}

.gp-desc-section h2 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
}

.gp-desc-text {
  white-space: pre-wrap;
  color: #374151;
  line-height: 1.7;
  font-size: 1.05rem;
}

.gp-empty {
  color: #6b7280;
  font-size: 0.9rem;
}

.gp-catalog-card {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
}

.gp-catalog-card img,
.gp-catalog-ph {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.gp-catalog-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-weight: 600;
}

.gp-catalog-card h3 {
  margin-top: 1.25rem !important;
  text-align: center;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
}

/* --- Selectable side cards (bails / more-products) ------------------------ */
.gp-side-card.gp-side-selectable {
  grid-template-columns: 64px 1fr auto;
  cursor: pointer;
  user-select: none;
}

.gp-side-card.gp-side-selectable:hover {
  border-color: #fe5900;
  box-shadow: 0 6px 18px rgba(254, 89, 0, 0.08);
}

.gp-side-card.gp-side-selectable.is-selected {
  border-color: #fe5900;
  background: #fff5f0;
  box-shadow: 0 0 0 3px rgba(254, 89, 0, 0.12);
}

.gp-side-end {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 108px;
}

.gp-side-card.gp-side-selectable .gp-side-prices {
  text-align: right;
  flex-shrink: 0;
  transition: padding-right 0.15s ease;
}

.gp-side-card.gp-side-selectable.is-selected .gp-side-prices {
  padding-right: 92px;
}

.gp-side-card.gp-side-selectable .gp-side-qty-wrap {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

.gp-side-card.gp-side-selectable.is-selected .gp-side-qty-wrap {
  display: flex;
}

/* Hide custom mouse cursor on touch/mobile */
@media (max-width: 991px) {
  .mouseCursor {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Inline qty selector inside selectable card */
.gp-side-qty-wrap {
  display: flex; align-items: center; gap: 4px;
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 8px; padding: 3px 4px; flex-shrink: 0;
}
.gp-sq-btn {
  width: 24px; height: 24px; border: none; background: #fff;
  border-radius: 6px; cursor: pointer; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  color: #fe5900; transition: background .15s;
}
.gp-sq-btn:hover { background: #ffe8da; }
.gp-sq-val { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; color: #111; }
