@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

body.igcs-shop-archive,
body.igcs-shop-car {
  --igcs-page-bg: #050505;
  --igcs-bg-image: url("https://www.initialg.gg/wp-content/uploads/2026/05/damWEBCARBON.png");
  --igcs-panel: radial-gradient(circle at 100% 0%, rgba(255, 0, 237, 0.14) 0%, rgba(17, 11, 20, 0.86) 42%, rgba(4, 4, 6, 0.94) 100%);
  --igcs-card: linear-gradient(145deg, rgba(17, 11, 20, 0.88), rgba(14, 16, 18, 0.92));
  --igcs-border: rgba(223, 223, 223, 0.24);
  --igcs-border-strong: rgba(255, 0, 237, 0.45);
  --igcs-text: #ffffff;
  --igcs-muted: #b3b3b3;
  --igcs-action: #ff00ed;
  --igcs-active: #00ffaa;
  --igcs-radius: 10px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, sans-serif;
}

body.igcs-shop-archive .content-page,
body.igcs-shop-car .content-page {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.58), rgba(5, 5, 5, 0.94)),
    var(--igcs-bg-image) center / cover fixed;
}

/* Hide XStore global Formula G custom tab on IGCS products */
body.igcs-shop-car #tab_9,
body.igcs-shop-car #content_tab_9,
body.igcs-shop-car .tabs-nav li#tab_9 {
  display: none !important;
}

/* Archive grid */
body.igcs-shop-archive .products .product {
  background: var(--igcs-card);
  border: 1px solid var(--igcs-border);
  border-radius: var(--igcs-radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.igcs-shop-archive .products .product:hover {
  border-color: var(--igcs-border-strong);
  transform: translateY(-2px);
}

body.igcs-shop-archive .products .product .woocommerce-loop-product__title,
body.igcs-shop-archive .products .product h2 {
  color: var(--igcs-text);
  font-weight: 600;
  font-size: 1rem;
}

body.igcs-shop-archive .products .product .price,
body.igcs-shop-archive .products .product .igcs-gcoin-price-html {
  color: var(--igcs-active);
  font-weight: 700;
}

body.igcs-shop-archive .products .product .woocommerce-placeholder,
body.igcs-shop-archive .products .product img {
  background: rgba(0, 0, 0, 0.35);
}

body.igcs-shop-archive .igcs-tier-badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--igcs-action);
  border: 1px solid rgba(255, 0, 237, 0.35);
  border-radius: 999px;
}

/* Single product */
body.igcs-shop-car .product .summary,
body.igcs-shop-car .product .woocommerce-product-gallery {
  background: var(--igcs-panel);
  border: 1px solid var(--igcs-border);
  border-radius: calc(var(--igcs-radius) + 4px);
  padding: clamp(16px, 3vw, 28px);
}

body.igcs-shop-car .product_title {
  color: var(--igcs-text);
  font-weight: 700;
}

body.igcs-shop-car .igcs-gcoin-price,
body.igcs-shop-car .igcs-gcoin-price-html {
  color: var(--igcs-active);
  font-size: 1.15rem;
}

body.igcs-shop-car .woocommerce-tabs .tabs li a {
  font-family: inherit;
  font-weight: 600;
}

body.igcs-shop-car .woocommerce-tabs .panel {
  color: var(--igcs-muted);
}

/* Vehicle Specs tab */
.igcs-vehicle-specs {
  color: var(--igcs-text, #fff);
  font-family: "Montserrat", system-ui, sans-serif;
}

.igcs-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}

.igcs-spec-cell {
  background: var(--igcs-card, rgba(17, 11, 20, 0.88));
  border: 1px solid var(--igcs-border, rgba(223, 223, 223, 0.24));
  border-radius: var(--igcs-radius, 10px);
  padding: 14px 16px;
}

.igcs-spec-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--igcs-muted, #b3b3b3);
  margin-bottom: 0.35rem;
}

.igcs-spec-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--igcs-active, #00ffaa);
}

.igcs-specs-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 24px;
  margin: 0 0 1.25rem;
}

.igcs-meta-row {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.igcs-meta-row dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--igcs-muted, #b3b3b3);
  margin: 0;
}

.igcs-meta-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--igcs-text, #fff);
}

.igcs-specs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.igcs-spec-tag {
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--igcs-action, #ff00ed);
  border: 1px solid rgba(255, 0, 237, 0.35);
  border-radius: 999px;
}

/* v0.4 product experience */
body.igcs-shop-archive,
body.igcs-shop-car {
  --igcs-surface: rgba(8, 9, 12, 0.92);
  --igcs-surface-raised: rgba(17, 14, 21, 0.94);
  --igcs-line: rgba(255, 255, 255, 0.12);
  --igcs-line-hover: rgba(255, 0, 237, 0.52);
  --igcs-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  color: var(--igcs-text);
}

body.igcs-shop-archive .content-page,
body.igcs-shop-car .content-page {
  padding-top: clamp(22px, 4vw, 48px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

body.igcs-shop-archive .products.products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  height: auto !important;
  margin: 0 !important;
}

body.igcs-shop-archive .products.products-grid > .product {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  width: auto !important;
  min-width: 0;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--igcs-surface);
  border: 1px solid var(--igcs-line);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

body.igcs-shop-archive .products .product .content-product {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
}

body.igcs-shop-archive .products .product .product-image-wrapper {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 70% 15%, rgba(255, 0, 237, 0.14), transparent 40%),
    #050506;
}

body.igcs-shop-archive .products .product .product-content-image,
body.igcs-shop-archive .products .product .product-content-image img {
  display: block;
  width: 100%;
  height: 100%;
}

body.igcs-shop-archive .products .product .product-content-image img {
  object-fit: cover;
  transition: transform 280ms ease-out, filter 280ms ease-out;
}

body.igcs-shop-archive .products .product:hover {
  border-color: var(--igcs-line-hover);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38), 0 0 28px rgba(255, 0, 237, 0.08);
}

body.igcs-shop-archive .products .product:hover .product-content-image img {
  transform: scale(1.025);
  filter: saturate(1.08);
}

body.igcs-shop-archive .products .product .product-details {
  display: flex;
  flex: 1;
  padding: 18px 18px 20px;
}

body.igcs-shop-archive .products .product .light-left-side,
body.igcs-shop-archive .products .product .switcher-wrapper,
body.igcs-shop-archive .products .product .price-switcher,
body.igcs-shop-archive .products .product .price-switch {
  display: flex;
  flex: 1;
  flex-direction: column;
}

body.igcs-shop-archive .products .product .product-title {
  min-height: 3.1em;
  margin: 0 0 16px;
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  line-height: 1.55;
}

body.igcs-shop-archive .products .product .product-title a {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.igcs-shop-archive .products .product .switcher-wrapper {
  margin-top: auto;
}

.igcs-gcoin-price-html {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--igcs-active);
  font-variant-numeric: tabular-nums;
}

.igcs-gcoin-icon {
  display: inline-block !important;
  flex: 0 0 auto;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
}

body.igcs-shop-archive .igcs-gcoin-price-html {
  margin-top: auto;
  font-size: 0.9rem;
}

body.igcs-shop-archive .igcs-gcoin-price-html .igcs-gcoin-icon {
  width: 20px !important;
  height: 20px !important;
}

body.igcs-shop-archive .igcs-tier-badge {
  align-self: flex-start;
  margin-top: 12px;
  padding: 5px 10px;
  color: #ff8bf7;
  background: rgba(255, 0, 237, 0.08);
  border-color: rgba(255, 0, 237, 0.38);
}

body.igcs-shop-car .single-product-builder {
  overflow: hidden;
  padding: clamp(14px, 2vw, 24px);
  background:
    radial-gradient(circle at 76% 10%, rgba(255, 0, 237, 0.15), transparent 30%),
    radial-gradient(circle at 12% 22%, rgba(0, 255, 170, 0.08), transparent 28%),
    rgba(3, 4, 6, 0.84);
  border: 1px solid var(--igcs-line);
  border-radius: 22px;
  box-shadow: var(--igcs-shadow);
}

body.igcs-shop-car .etheme-woocommerce-product-gallery,
body.igcs-shop-car .et_product-block:has(.product_title) {
  height: 100%;
  padding: clamp(18px, 3vw, 34px) !important;
  background: linear-gradient(145deg, rgba(15, 13, 19, 0.94), rgba(6, 7, 9, 0.94));
  border: 1px solid var(--igcs-line);
  border-radius: 16px;
}

body.igcs-shop-car .product .woocommerce-product-gallery {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 12px;
}

body.igcs-shop-car .woocommerce-product-gallery__image {
  overflow: hidden;
  border-radius: 12px;
  background: #020203;
}

body.igcs-shop-car .woocommerce-product-gallery__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

body.igcs-shop-car .woocommerce-product-gallery .swiper-control-bottom {
  margin-top: 14px;
}

body.igcs-shop-car .woocommerce-product-gallery .swiper-control-bottom img {
  border-radius: 8px;
}

body.igcs-shop-car .product_title {
  max-width: 12ch;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

body.igcs-shop-car .price .igcs-gcoin-price-html {
  margin: 8px 0 20px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 700;
}

body.igcs-shop-car form.cart > .quantity,
body.igcs-shop-car form.cart > .single_add_to_cart_button:not(.igcs-unlock-button),
body.igcs-shop-car form.cart > .et-or-wrapper {
  display: none !important;
}

.igcs-unlock-actions {
  display: grid;
  gap: 12px;
  width: min(100%, 420px);
  margin-top: 8px;
}

body.igcs-shop-car .igcs-unlock-button,
body.igcs-shop-car .igcs-unlock-button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 14px 20px;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

body.igcs-shop-car .igcs-unlock-gcoin,
body.igcs-shop-car .igcs-unlock-gcoin.button {
  color: #00180f;
  background: var(--igcs-active);
  box-shadow: 0 10px 26px rgba(0, 255, 170, 0.18);
}

body.igcs-shop-car .igcs-unlock-gcoin:hover,
body.igcs-shop-car .igcs-unlock-gcoin:focus-visible {
  color: #00180f;
  background: #3dffbe;
  box-shadow: 0 14px 34px rgba(0, 255, 170, 0.3);
}

body.igcs-shop-car .igcs-unlock-patreon,
body.igcs-shop-car .igcs-unlock-patreon.button {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.22);
}

body.igcs-shop-car .igcs-unlock-patreon:hover,
body.igcs-shop-car .igcs-unlock-patreon:focus-visible {
  color: #fff;
  background: #ff424d;
  border-color: #ff424d;
}

.igcs-patreon-icon {
  width: 23px;
  height: 23px;
}

body.igcs-shop-car .igcs-unlock-button:focus-visible,
body.igcs-shop-car .woocommerce-product-gallery a:focus-visible,
body.igcs-shop-archive .product a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

body.igcs-shop-car .woocommerce-tabs {
  margin-top: clamp(24px, 5vw, 58px);
  padding: clamp(18px, 3vw, 36px);
  background: var(--igcs-surface);
  border: 1px solid var(--igcs-line);
  border-radius: 16px;
}

body.igcs-shop-car .woocommerce-tabs .tabs {
  gap: 28px;
  margin-bottom: 26px;
}

body.igcs-shop-car .woocommerce-tabs .et-woocommerce-tab a {
  color: var(--igcs-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body.igcs-shop-car .woocommerce-tabs .et-woocommerce-tab.active a,
body.igcs-shop-car .woocommerce-tabs .et-woocommerce-tab a:hover {
  color: var(--igcs-active);
}

body.igcs-shop-car #tab-title-et_custom_tab_02,
body.igcs-shop-car #tab-et_custom_tab_02 {
  display: none !important;
}

.igcs-specs-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.igcs-spec-cell {
  min-height: 102px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(22, 17, 26, 0.94), rgba(9, 11, 14, 0.96));
  border-color: var(--igcs-line);
  border-radius: 12px;
}

.igcs-spec-value {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.igcs-specs-meta {
  padding: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--igcs-line);
  border-radius: 12px;
}

@media (max-width: 1199px) {
  body.igcs-shop-archive .products.products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.igcs-shop-archive .products.products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.igcs-shop-archive .products .product .product-details {
    padding: 14px;
  }

  body.igcs-shop-car .single-product-builder {
    padding: 10px;
    border-radius: 16px;
  }

  body.igcs-shop-car .etheme-woocommerce-product-gallery,
  body.igcs-shop-car .et_product-block:has(.product_title) {
    padding: 18px !important;
  }

  body.igcs-shop-car .product_title {
    max-width: none;
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .igcs-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  body.igcs-shop-archive .products.products-grid {
    grid-template-columns: 1fr;
  }

  .igcs-specs-grid,
  .igcs-specs-meta {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.igcs-shop-archive .products .product,
  body.igcs-shop-archive .products .product .product-content-image img,
  body.igcs-shop-car .igcs-unlock-button {
    transition: none;
  }

  body.igcs-shop-archive .products .product:hover .product-content-image img {
    transform: none;
  }
}
