/* Cache-busted v0.4 layout overrides. */
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::before,
body.igcs-shop-archive .products.products-grid::after {
  display: none !important;
  content: none !important;
}

body.igcs-shop-archive .products.products-grid > .product {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  display: flex;
  width: auto !important;
  min-width: 0;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  background: rgba(8, 9, 12, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

body.igcs-shop-archive .products .product .content-product {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  background: transparent;
}

body.igcs-shop-archive .products .product .product-image-wrapper {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #030304;
}

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 240ms ease-out, filter 240ms ease-out;
}

body.igcs-shop-archive .products .product:hover {
  border-color: rgba(255, 0, 237, 0.55);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42), 0 0 28px rgba(255, 0, 237, 0.08);
}

body.igcs-shop-archive .products .product:hover img {
  transform: scale(1.025);
  filter: saturate(1.08);
}

body.igcs-shop-archive .products .product .product-details,
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-details {
  padding: 18px 18px 20px;
}

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 !important;
  align-items: center;
  gap: 8px;
  color: #00ffaa !important;
  font-weight: 700;
  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-tier-badge {
  align-self: flex-start;
  margin-top: 12px;
  padding: 5px 10px;
  color: #ff8bf7;
  background: rgba(255, 0, 237, 0.08);
  border: 1px solid rgba(255, 0, 237, 0.38);
  border-radius: 999px;
}

body.igcs-shop-archive .igcs-view-car.button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 38px;
  margin-top: 16px;
  padding: 9px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

body.igcs-shop-archive .igcs-view-car.button:hover,
body.igcs-shop-archive .igcs-view-car.button:focus-visible {
  color: #00180f;
  background: #00ffaa;
  border-color: #00ffaa;
}

body.igcs-shop-car .single-product-builder {
  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.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

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 rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

body.igcs-shop-car .product .woocommerce-product-gallery {
  padding: 0;
  background: transparent;
  border: 0;
}

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 .product_title {
  max-width: 12ch;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

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: 10px;
}

body.igcs-shop-car .igcs-unlock-button.button {
  display: inline-flex !important;
  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;
}

body.igcs-shop-car .igcs-unlock-gcoin.button {
  color: #00180f;
  background: #00ffaa;
  box-shadow: 0 10px 28px rgba(0, 255, 170, 0.2);
}

body.igcs-shop-car .igcs-unlock-gcoin.button:hover,
body.igcs-shop-car .igcs-unlock-gcoin.button:focus-visible {
  color: #00180f;
  background: #3dffbe;
  box-shadow: 0 14px 34px rgba(0, 255, 170, 0.3);
}

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.button:hover,
body.igcs-shop-car .igcs-unlock-patreon.button:focus-visible {
  color: #fff;
  background: #ff424d;
  border-color: #ff424d;
}

.igcs-patreon-icon {
  width: 23px;
  height: 23px;
}

body.igcs-shop-car .woocommerce-tabs {
  margin-top: clamp(24px, 5vw, 58px);
  padding: clamp(18px, 3vw, 36px);
  background: rgba(8, 9, 12, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

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: rgba(255, 255, 255, 0.12);
  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-car .single-product-builder {
    padding: 10px;
  }

  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,
  .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 img {
    transition: none;
  }

  body.igcs-shop-archive .products .product:hover img {
    transform: none;
  }
}
