.okegas-template-catalog,
.okegas-template-single {
  padding: 140px 0 0;
}

.okegas-template-catalog__container,
.okegas-template-single__container {
  width: min(1324px, calc(100% - 32px));
  margin: 0 auto;
}

.okegas-template-catalog__hero,
.okegas-template-single__product,
.okegas-template-single__section {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.07);
}

.okegas-template-catalog__hero {
  position: relative;
  overflow: hidden;
  padding: 38px 40px;
  margin-bottom: 24px;
}

.okegas-template-catalog__hero::after {
  content: '';
  position: absolute;
  top: -64px;
  right: -56px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0));
  pointer-events: none;
}

.okegas-template-catalog__eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
}

.okegas-template-catalog__description {
  max-width: 760px;
  margin: 0;
  color: #526276;
  line-height: 1.75;
}

.okegas-template-catalog__description p {
  margin-bottom: 0;
}

h1.woocommerce-products-header__title {
  margin-bottom: 10px;
}

.okegas-template-catalog__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.okegas-template-catalog__filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin: 0;
}

.okegas-template-catalog__filters--access {
  overflow-x: auto;
  scrollbar-width: thin;
}

.okegas-template-catalog__filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #d5dfec;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.okegas-template-catalog__filter.is-active,
.okegas-template-catalog__filter:hover {
  border-color: #bfd5ff;
  background: linear-gradient(180deg, #eff6ff 0%, #e3efff 100%);
  color: #1d4ed8;
}

.okegas-template-catalog__category-wrap {
  flex: 0 0 260px;
  max-width: 260px;
  min-width: 220px;
}

.okegas-template-catalog__select {
  width: 100%;
  min-height: 46px;
  padding: 0 42px 0 16px;
  border: 1px solid #d2dceb;
  border-radius: 999px;
  background-color: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.okegas-template-catalog__results {
  position: relative;
}

.okegas-template-catalog__results.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.okegas-template-catalog__results.is-loading::after {
  content: 'Loading templates...';
  position: absolute;
  inset: 0 auto auto 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.okegas-template-grid.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.okegas-template-grid.products::before,
.okegas-template-grid.products::after {
  display: none;
}

.okegas-template-grid.products li.product {
  width: auto;
  margin: 0;
  float: none;
}

.okegas-template-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 24px;
  box-shadow: 0 5px 10px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.okegas-template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.16);
}

.okegas-template-card__link,
.okegas-related-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.okegas-template-card__media,
.okegas-template-single__gallery,
.okegas-related-card__media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #dbeafe, #eff6ff 58%, #f8fafc);
}

.okegas-template-card__media,
.okegas-related-card__media {
  aspect-ratio: 16 / 10;
}

.okegas-template-single__gallery {
  min-height: 320px;
  border-radius: 22px;
}

.okegas-template-card__image,
.okegas-template-single__image,
.okegas-related-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.okegas-template-card__placeholder,
.okegas-template-single__placeholder,
.okegas-related-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), rgba(191, 219, 254, 0.8));
}

.okegas-template-card__badges,
.okegas-template-single__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.okegas-template-card__badges {
  position: absolute;
  left: 16px;
  top: 16px;
}

.okegas-template-card__badge,
.okegas-template-single__badge,
.okegas-related-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.okegas-template-card__badge,
.okegas-related-card__badge {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
}

.okegas-template-card__badge--tone-commerce,
.okegas-template-single__badge,
.okegas-related-card__badge--commerce {
  background: #eff6ff;
  color: #1d4ed8;
}

.okegas-template-card__badge--tone-included,
.okegas-related-card__badge--free {
  background: #ecfdf5;
  color: #047857;
}

.okegas-template-card__body,
.okegas-template-card__footer {
  padding: 22px 24px;
}

.okegas-template-card__body {
  flex: 1 1 auto;
}

.okegas-template-card__title {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.25;
  color: #0f172a;
}

.okegas-template-card__vendor,
.okegas-template-single__vendor {
  margin: 0 0 12px;
  color: #64748b;
  font-weight: 600;
}

.okegas-template-card__excerpt,
.okegas-template-single__excerpt,
.okegas-template-single__content {
  color: #334155;
  line-height: 1.7;
}

.okegas-template-card__footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.okegas-template-card__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.okegas-template-card__prices,
.okegas-template-single__prices,
.okegas-related-card__prices {
  display: grid;
  gap: 7px;
}

.okegas-template-card__price,
.okegas-template-single__price,
.okegas-related-card__price {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #0f172a;
}

.okegas-template-card__price::before,
.okegas-template-single__price::before,
.okegas-related-card__price::before {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  min-width: 30px;
  position: relative;
  top: -3px;
}

.okegas-template-card__price--usd,
.okegas-template-single__price--usd,
.okegas-related-card__price--usd {
  font-size: 17px;
  font-weight: 700;
}

.okegas-template-card__price--usd::before,
.okegas-template-single__price--usd::before,
.okegas-related-card__price--usd::before {
  content: 'USD';
}

.okegas-template-card__price--idr,
.okegas-template-single__price--idr,
.okegas-related-card__price--idr {
  font-size: 17px;
  font-weight: 600;
  color: #475569;
}

.okegas-template-card__price--idr::before,
.okegas-template-single__price--idr::before,
.okegas-related-card__price--idr::before {
  content: 'IDR';
}

.okegas-template-card__price--free,
.okegas-template-single__price--free,
.okegas-related-card__price--free,
.okegas-related-card__price--commercial {
  font-size: 16px;
  font-weight: 700;
}

.okegas-template-card__price--free::before,
.okegas-template-single__price--free::before,
.okegas-related-card__price--free::before,
.okegas-related-card__price--commercial::before {
  content: 'Access';
}

.okegas-template-card__version {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.okegas-template-empty {
  border-radius: 20px;
  padding: 20px 24px;
}

.okegas-template-catalog__pagination ul {
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.okegas-template-catalog__pagination ul li {
  border: 0;
}

.okegas-template-single__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 12px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.okegas-template-single__breadcrumb a,
.okegas-template-single__section-head a {
  color: #1d4ed8;
  text-decoration: none;
}

.okegas-template-single__breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.58);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.okegas-template-single__breadcrumb a:hover {
  background: rgba(191, 219, 254, 0.9);
  color: #1e40af;
  transform: translateY(-1px);
}

.okegas-template-single__breadcrumb span {
  color: #94a3b8;
  font-weight: 600;
}

.okegas-template-single__product {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 34px;
  padding: 34px;
}

.okegas-template-single__summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.okegas-template-single__summary .product_title {
  margin: 0;
  font-size: clamp(34px, 4vw, 34px);
  line-height: 1.1;
  color: #0f172a;
}

.okegas-template-single__prices {
  padding: 18px 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
}

.okegas-template-single__meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.okegas-template-single__meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.okegas-template-single__meta strong {
  color: #0f172a;
}

.okegas-template-single__meta span {
  color: #475569;
  text-align: right;
}

.okegas-template-single__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.okegas-template-single__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.okegas-template-single__button--ghost {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  color: #0f172a;
}

.okegas-template-single__button--purchase {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.okegas-template-single__sections {
  margin-top: 28px;
  display: grid;
  gap: 24px;
}

.okegas-template-single__section {
  padding: 30px;
}

.okegas-template-single__section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  color: #0f172a;
}

.okegas-template-single__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.okegas-template-single__section-head h2 {
  margin: 0;
}

.okegas-template-single__section-head a {
  font-weight: 700;
}

.okegas-related-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(248px, 320px);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.85) rgba(226, 232, 240, 0.8);
}

.okegas-related-carousel::-webkit-scrollbar {
  height: 10px;
}

.okegas-related-carousel::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.7);
  border-radius: 999px;
}

.okegas-related-carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.95), rgba(59, 130, 246, 0.95));
  border-radius: 999px;
}

.okegas-related-card {
  scroll-snap-align: start;
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.okegas-related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.okegas-related-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
}

.okegas-related-card__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.16) 100%);
  pointer-events: none;
}

.okegas-related-card__body {
  display: grid;
  gap: 12px;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.okegas-related-card__body h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  color: #0f172a;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.okegas-related-card__body p {
  margin: 0;
  color: #64748b;
  font-weight: 600;
}

.okegas-related-card__prices {
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.okegas-related-card__price--usd {
  font-size: 18px;
}

.okegas-related-card__price--idr {
  font-size: 15px;
}

@media (max-width: 980px) {
  .okegas-template-catalog__controls {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .okegas-template-catalog__category-wrap {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }

  .okegas-template-grid.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .okegas-template-single__product {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .okegas-template-catalog,
  .okegas-template-single {
    padding: 85px 0 0;
  }

  .okegas-template-catalog__container,
  .okegas-template-single__container {
    width: min(1324px, calc(100% - 0px));
  }

  .okegas-template-grid.products {
    grid-template-columns: 1fr;
  }

  .okegas-template-catalog__hero,
  .okegas-template-single__product,
  .okegas-template-single__section {
    padding: 22px;
    border-radius: 20px;
  }

  .okegas-template-catalog__controls {
    padding: 14px;
  }

  .okegas-template-card__body,
  .okegas-template-card__footer {
    padding: 18px;
  }

  .okegas-template-card__meta,
  .okegas-template-single__meta li {
    flex-direction: column;
    align-items: flex-start;
  }

  .okegas-template-single__meta span {
    text-align: left;
  }

  .okegas-template-single__section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .okegas-template-single__breadcrumb {
    display: flex;
    border-radius: 20px;
    padding: 12px 14px;
  }

  .okegas-template-single__breadcrumb a {
    min-height: 28px;
    padding: 0 9px;
  }
}
