body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag {
  background:
    radial-gradient(circle at 0 0, rgba(125, 145, 157, .08), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(223, 227, 229, .70), transparent 24%),
    linear-gradient(180deg, #fbfbfa, #edf0f0);
  color: #1f2a31;
}

body.post-type-archive-product header.wp-block-template-part,
body.post-type-archive-product footer.wp-block-template-part,
body.woocommerce-page header.wp-block-template-part,
body.woocommerce-page footer.wp-block-template-part {
  display: none;
}

.woocommerce-products-header,
.term-description,
.woocommerce-result-count,
.woocommerce-ordering {
  display: none;
}

.ai-dtc-shop-hero {
  padding: 0 20px 14px;
}

.ai-dtc-shop-shell {
  padding: 18px 20px 0;
}

.ai-dtc-shop-topbar {
  max-width: 1200px;
  margin: 0 auto 18px;
  min-height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ai-dtc-shop-topbar__brand {
  color: #1f2a31;
  font-size: 31px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.ai-dtc-shop-topbar__nav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ai-dtc-shop-topbar__nav a {
  color: #44535d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ai-dtc-shop-page {
  padding: 0 20px 56px;
}

.ai-dtc-shop-collection {
  max-width: 1200px;
  margin: 0 auto;
}

.ai-dtc-shop-collection__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 18px;
}

.ai-dtc-shop-collection__header h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.02;
}

.ai-dtc-shop-collection__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ai-dtc-shop-collection-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(31, 42, 49, .06);
  box-shadow: 0 10px 24px rgba(31, 42, 49, .05);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ai-dtc-shop-collection-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(31, 42, 49, .08);
  border-color: rgba(31, 42, 49, .10);
}

/* Product card hover image swap (for ProductCardRenderer cards inside collection grid) */
.ai-dtc-product-card__media {
  position: relative;
  overflow: hidden;
}

.ai-dtc-product-card__media img {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.ai-dtc-product-card__img-hover {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ai-dtc-product-card:hover .ai-dtc-product-card__img-hover {
  opacity: 1;
}

.ai-dtc-shop-collection-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.14;
  background: linear-gradient(180deg, #f8f5ef, #eee7db);
  overflow: hidden;
}

.ai-dtc-shop-collection-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.35s ease;
}

.ai-dtc-shop-collection-card__media .ai-dtc-product-card__img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ai-dtc-shop-collection-card:hover .ai-dtc-product-card__img-hover {
  opacity: 1;
}

.ai-dtc-shop-collection-card__body {
  padding: 18px 18px 16px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.ai-dtc-shop-collection-card__body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
}

.ai-dtc-shop-collection-card__body h3 a {
  color: #1f2a31;
  text-decoration: none;
}

.ai-dtc-shop-collection-card__body p {
  margin: 8px 0 0;
  color: #61707a;
  font-size: 13px;
  line-height: 1.55;
}

.ai-dtc-shop-collection-card__footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.ai-dtc-shop-collection-card__price {
  color: #1f2a31;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.ai-dtc-shop-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(243,244,244,.94));
  border: 1px solid rgba(31, 42, 49, .10);
  box-shadow: 0 20px 40px rgba(31, 42, 49, .08);
  display: grid;
  gap: 18px;
}

.ai-dtc-shop-eyebrow {
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #596a74;
  background: rgba(125, 145, 157, .12);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.ai-dtc-shop-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: .96;
}

.ai-dtc-shop-hero p {
  margin: 0;
  max-width: 34rem;
  color: #61707a;
  font-size: 15px;
  line-height: 1.7;
}

.ai-dtc-shop-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-dtc-shop-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ai-dtc-shop-collection-card__link {
  color: #53636d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
}

.ai-dtc-shop-collection-card__link::after {
  content: " →";
}

.ai-dtc-shop-btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #7d919d, #596a74);
  box-shadow: 0 10px 22px rgba(89, 106, 116, .20);
}

.ai-dtc-shop-btn--secondary {
  color: #1f2a31;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(31, 42, 49, .10);
}

.ai-dtc-shop-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-dtc-shop-hero__meta span {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(31, 42, 49, .10);
  color: #61707a;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .ai-dtc-shop-collection__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ai-dtc-shop-page {
    padding: 0 14px 44px;
  }

  .ai-dtc-shop-shell,
  .ai-dtc-shop-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ai-dtc-shop-topbar {
    padding: 0 14px;
  }

  .ai-dtc-shop-hero__inner {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .ai-dtc-shop-collection__header {
    align-items: start;
    flex-direction: column;
  }

  .ai-dtc-shop-collection__grid {
    grid-template-columns: 1fr;
  }
}

.woocommerce .site-main,
.woocommerce-page .site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 16px 16px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(31, 42, 49, .08);
  box-shadow: 0 14px 34px rgba(31, 42, 49, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(31, 42, 49, .10);
  border-color: rgba(31, 42, 49, .14);
}

.woocommerce ul.products li.product a img.attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product a img.woocommerce-placeholder {
  display: none !important;
}

.ai-dtc-shop-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f4ef, #f2eee6);
}

.ai-dtc-shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block !important;
  transition: opacity 0.35s ease;
}

.ai-dtc-shop-card__img-hover {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.woocommerce ul.products li.product:hover .ai-dtc-shop-card__img-hover,
.ai-dtc-product-card:hover .ai-dtc-shop-card__img-hover {
  opacity: 1;
}

.ai-dtc-shop-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(31, 42, 49, .08);
  color: #596a74;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0;
  margin-top: 4px;
  color: #1f2a31;
  font-size: 21px;
  line-height: 1.18;
}

.ai-dtc-shop-card__summary {
  margin: 10px 0 0;
  color: #61707a;
  font-size: 14px;
  line-height: 1.6;
}

.woocommerce ul.products li.product .price {
  margin-top: 14px;
  color: #1f2a31;
  font-size: 15px;
  font-weight: 800;
}

.woocommerce ul.products li.product .button {
  margin-top: 14px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #7d919d, #596a74);
  box-shadow: 0 10px 22px rgba(89, 106, 116, .16);
  text-align: center;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #payment button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  min-height: 46px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #7d919d, #596a74);
  box-shadow: 0 10px 22px rgba(89, 106, 116, .20);
}

.woocommerce-cart .cart_totals,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-checkout #payment {
  border-radius: 24px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(31, 42, 49, .10);
  box-shadow: 0 20px 44px rgba(31, 42, 49, .08);
}

.woocommerce-cart .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout #payment {
  padding: 22px;
}

.woocommerce-checkout #customer_details {
  padding: 24px;
}

.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table,
.woocommerce-checkout form .form-row input.input-text,
.woocommerce-checkout form .form-row textarea,
.woocommerce-checkout form .form-row select {
  border-radius: 16px;
  border-color: rgba(31, 42, 49, .12);
}

.woocommerce-checkout #payment div.payment_box {
  border-radius: 18px;
  background: rgba(125, 145, 157, .08);
}

.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-message {
  border-radius: 16px;
  border-top-color: #596a74;
  background: rgba(255,255,255,.84);
}

@media (max-width: 960px) {
  .woocommerce ul.products,
  .ai-dtc-shop-collection__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .ai-dtc-shop-shell,
  .ai-dtc-shop-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ai-dtc-shop-topbar {
    min-height: auto;
    padding: 6px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-dtc-shop-topbar__brand {
    font-size: 26px;
  }

  .ai-dtc-shop-page,
  .ai-dtc-shop-collection {
    padding-left: 0;
    padding-right: 0;
  }

  .ai-dtc-shop-collection__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-dtc-shop-hero__inner,
  .woocommerce .site-main,
  .woocommerce-page .site-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ai-dtc-shop-hero__inner {
    padding: 24px;
  }

  .woocommerce ul.products,
  .ai-dtc-shop-collection__grid {
    grid-template-columns: 1fr;
  }
}
