/* =====================================================================
   STREET GEEK BD - SHOP PAGE STYLES (css/shop.css)
   Pure white background, crisp ink typography (#0b0b0b),
   borderless/boxless sort controls, clean 1:1 product cards without external
   controls, and 16-items-per-page sequential pagination.
   ===================================================================== */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.sg-shop-main {
  min-height: 100vh;
  background-color: #ffffff;
  color: #0b0b0b;
  padding: 0 0 72px;
  box-sizing: border-box;
  width: 100%;
}

.sg-shop-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 0;
  box-sizing: border-box;
}

/* Breadcrumbs */
.sg-breadcrumbs {
  margin-bottom: 18px;
}

.sg-breadcrumbs__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.sg-breadcrumbs__link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.18s ease;
}

.sg-breadcrumbs__link:hover {
  color: #0b0b0b;
}

.sg-breadcrumbs__separator {
  color: #9ca3af;
  user-select: none;
  font-size: 12px;
}

.sg-breadcrumbs__item.is-active {
  color: #0b0b0b;
  font-weight: 700;
}

/* Shop Header */
.sg-shop-header {
  margin-bottom: 24px;
}

.sg-shop-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b0b0b;
  line-height: 1.15;
}

/* Motion Filter Slot */
#sgMotionFilterMount,
#sgShopFilterMount {
  width: 100%;
  margin: 0 0 24px;
  min-height: 2px;
  clear: both;
}

/* Borderless Sort Bar */
.sg-shop-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 4px;
  border-bottom: none;
}

.sg-shop-sort-meta {
  font-size: 13.5px;
  color: #6b7280;
}

.sg-shop-sort-meta b {
  color: #0b0b0b;
  font-weight: 700;
}

.sg-shop-sort-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sg-sort-field {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sg-sort-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sg-sort-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sg-sort-select {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0 16px 0 2px;
  color: #0b0b0b;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: color 0.18s ease;
}

.sg-sort-select:hover,
.sg-sort-select:focus {
  color: #ff3b1f;
}

.sg-sort-select option {
  background: #ffffff;
  color: #0b0b0b;
  padding: 6px 10px;
}

.sg-sort-chevron {
  position: absolute;
  right: 0;
  width: 12px;
  height: 12px;
  color: #0b0b0b;
  pointer-events: none;
}

.sg-sort-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  color: #0b0b0b;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  user-select: none;
  transition: color 0.18s ease;
}

.sg-sort-order-btn:hover {
  color: #ff3b1f;
}

.sg-sort-order-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.sg-sort-order-btn[data-order="asc"] .sg-sort-order-icon {
  transform: rotate(180deg);
}

/* Product Grid & Cards */
.sg-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 20px;
  width: 100%;
}

.sg-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
}

.sg-product-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.sg-product-card__image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.sg-product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sg-product-card__link:hover .sg-product-card__img {
  transform: scale(1.04);
}

.sg-product-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  text-align: center;
  padding: 12px 2px 0;
  width: 100%;
}

.sg-product-card__category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111111;
  margin-bottom: 4px;
  width: 100%;
}

.sg-product-card__title {
  margin: 0 0 6px;
  font: inherit;
  font-size: clamp(13px, 1.1vw, 14.5px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #0b0b0b;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  transition: color 0.18s ease;
}

.sg-product-card__link:hover .sg-product-card__title {
  color: #ff3b1f;
}

.sg-product-card__price {
  font-size: 14px;
  font-weight: 800;
  color: #0b0b0b;
  letter-spacing: 0.01em;
  width: 100%;
  margin-top: auto;
}

/* Sequential Pagination */
.sg-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.sg-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #0b0b0b;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.sg-page-btn svg {
  width: 14px;
  height: 14px;
}

.sg-page-btn:hover:not(:disabled) {
  border-color: #0b0b0b;
}

.sg-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.sg-page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sg-page-num {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #0b0b0b;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.sg-page-num:hover:not(.is-active) {
  border-color: #0b0b0b;
}

.sg-page-num.is-active {
  background: #0b0b0b;
  border-color: #0b0b0b;
  color: #ffffff;
}

/* Shop Hero Promotional Banner */
.sgbd-shop-hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background-color: #0b0b0b;
}

.sgbd-shop-hero img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 4.8;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 18px;
}

.sgbd-shop-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.22) 50%, rgba(0,0,0,0.58) 100%);
  padding: 95px 24px 32px;
  border-radius: 18px;
  z-index: 2;
}

.sgbd-shop-hero__container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.sgbd-shop-hero .sg-breadcrumbs {
  margin-bottom: 8px;
  align-self: flex-start;
}

.sgbd-shop-hero .sg-breadcrumbs__link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.sgbd-shop-hero .sg-breadcrumbs__link:hover {
  color: #ffffff;
}

.sgbd-shop-hero .sg-breadcrumbs__separator {
  color: rgba(255, 255, 255, 0.6);
}

.sgbd-shop-hero .sg-breadcrumbs__item.is-active {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.sgbd-shop-hero .sg-shop-header {
  margin: auto 0;
  padding: 12px 0;
  text-align: center;
  width: 100%;
}

.sgbd-shop-hero .sg-shop-title {
  color: #ffffff;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,0.75), 0 1px 4px rgba(0,0,0,0.9);
  margin: 0;
  line-height: 1.1;
}

/* Global Header contrast adjustments over Hero */
.sg-page-white .sg-global-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.sg-page-white .sg-global-header .sg-nav-link,
.sg-page-white .sg-global-header .sg-icon-btn,
.sg-page-white .sg-global-header .sg-mobile-toggle {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.sg-page-white .sg-global-header .sg-dropdown-chevron {
  stroke: #ffffff;
}

.sg-page-white .sg-global-header .sgbd-live-3d-logo {
  filter: none;
}

/* Responsive Media Queries */
@media (min-width: 992px) {
  .sgbd-shop-hero {
    min-height: 440px;
    background-color: #111111;
    border-radius: 20px;
  }

  .sgbd-shop-hero img {
    aspect-ratio: 16 / 5.2;
    border-radius: 20px;
  }

  .sgbd-shop-hero__overlay {
    padding: 95px 32px 42px;
    justify-content: flex-start;
    border-radius: 20px;
  }

  .sgbd-shop-hero .sg-breadcrumbs {
    margin-bottom: 12px;
  }

  .sgbd-shop-hero .sg-shop-header {
    margin: 80px 0 auto;
  }
}

@media (max-width: 1024px) {
  .sg-shop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 16px;
  }
}

@media (max-width: 767px) {
  .sg-shop-container {
    padding: 20px 16px 0;
  }

  .sgbd-shop-hero {
    min-height: 220px;
    border-radius: 12px;
  }

  .sgbd-shop-hero img {
    aspect-ratio: 16 / 7.5;
    border-radius: 12px;
  }

  .sgbd-shop-hero__overlay {
    padding: 58px 16px 36px;
    justify-content: flex-start;
    border-radius: 12px;
  }

  .sgbd-shop-hero .sg-breadcrumbs {
    margin-bottom: 12px;
  }

  .sgbd-shop-hero .sg-shop-header {
    margin: 6px 0 auto;
    padding: 6px 0;
  }

  .sgbd-shop-hero .sg-shop-title {
    font-size: clamp(26px, 6vw, 36px);
  }

  .sg-shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  .sg-shop-sort-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .sg-shop-sort-controls {
    width: 100%;
    justify-content: space-between;
  }

  .sg-pagination {
    margin-top: 36px;
    padding-top: 18px;
  }

  .sg-page-btn span {
    display: none;
  }

  .sg-page-btn {
    padding: 0 10px;
  }
}