/* WooCommerce glue for Instruments Music design */

.im-theme .woocommerce-notices-wrapper,
.im-theme .woocommerce-message,
.im-theme .woocommerce-info,
.im-theme .woocommerce-error {
  max-width: 1280px;
  margin: 90px auto 0;
  padding: 0 clamp(20px, 6vw, 120px);
}

.im-theme .site-nav.is-solid,
.im-theme.im-solid-nav .site-nav,
.im-theme.im-shop .site-nav {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom-color: color-mix(in srgb, var(--text) 10%, transparent);
}

/* Override WP/Woo default blue link color on universe cards */
.im-theme a.univers-card,
.im-theme a.univers-card:visited,
.im-theme a.univers-card strong,
.im-theme .univers-card,
.im-theme .univers-card strong {
  color: var(--accent) !important;
  text-decoration: none !important;
}
.im-theme a.univers-card span,
.im-theme .univers-card span {
  color: var(--muted) !important;
}
.im-theme a.univers-card i,
.im-theme .univers-card i {
  color: var(--accent) !important;
}

.im-theme .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

@media (width <= 1100px) {
  .im-theme .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (width <= 800px) {
  .im-theme .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width <= 520px) {
  .im-theme .product-grid {
    grid-template-columns: 1fr;
  }
}

.im-theme .pcard {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.im-theme .pcard .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.im-theme .pcard .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f7f4f5;
  display: block;
}

.im-theme .pcard .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 6px;
}

.im-theme .pcard .cat {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 88%, transparent);
}

.im-theme .pcard .body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
  flex: 1;
}

.im-theme .pcard-brand {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.im-theme .pcard .name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.im-theme .pcard .price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}

.im-theme .pcard .price .now {
  font-weight: 800;
  font-size: 16px;
}

.im-theme .pcard .price .was,
.im-theme .pcard .price del {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 13px;
}

.im-theme .pcard .price .woocommerce-Price-amount {
  font-weight: inherit;
}

.im-theme .pcard .add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #ece7e9;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.im-theme .pcard .add:hover {
  background: var(--accent);
  color: #fff;
}

.im-theme .shop-toolbar .field input,
.im-theme .shop-toolbar .field select {
  width: 100%;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 48px;
  font: inherit;
}

.im-theme .im-cart-count {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent2);
}

.im-theme .hero-autoplay .beat {
  pointer-events: auto;
}

.im-theme .hero-autoplay .beat > * {
  --o: 1;
  opacity: 1;
  transform: none !important;
  filter: none !important;
}

.im-theme .hero-autoplay .stage.is-live .hero-video {
  opacity: 1;
}

.im-theme .hero-autoplay .plate {
  z-index: 0;
}

.im-theme .hero-autoplay .hero-video {
  z-index: 1;
}

.im-theme .hero-autoplay .veil,
.im-theme .hero-autoplay .beat,
.im-theme .hero-autoplay .scroll-cue {
  z-index: 2;
}

.im-theme .im-story {
  min-height: auto;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 8vw, 160px);
  background: var(--surface);
}

.im-theme .shop-pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.im-theme .shop-pagination .page-numbers li {
  list-style: none;
}

.im-theme .shop-pagination .page-numbers a,
.im-theme .shop-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.im-theme .shop-pagination .page-numbers .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.im-theme .single_add_to_cart_button.button,
.im-theme button.button.alt {
  background: var(--accent) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 14px 24px !important;
  font-weight: 700 !important;
}

.im-theme .quantity .qty {
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  padding: 10px;
  min-width: 64px;
}

.im-theme .site-footer {
  margin-top: 0;
}

.im-theme .footer-brand .brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.im-theme .footer-brand .mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  display: flex;
}

.im-theme .footer-brand .mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide default WP admin clutter on storefront */
.im-theme .wp-block-group.has-global-padding {
  padding: 0;
}
