/* === Storefront =============================================================
   Loaded on the shop archive and on a single product — one design, not two.
   ========================================================================== */

/* --- a product awaiting photography --------------------------------------
   WooCommerce's grey picture frame reads as a broken image. This reads as a
   product whose photograph has not arrived, which is the truth. */

.icrt-prodart {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 255, 255, .16) 0 3rem, transparent 3.1rem),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 13px),
    linear-gradient(140deg, var(--cw-show-deep, #0b2f6b) 0%, var(--cw-show, #1160d4) 100%);
}

.icrt-prodart__mark {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* --- what a shopper wants to know ----------------------------------------- */

.icrt-trust {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--icrt-line);
  display: grid;
  gap: 0.9rem;
}

.icrt-trust__item { display: flex; flex-direction: column; gap: 0.1rem; }

.icrt-trust__title {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--icrt-accent);
}

.icrt-trust__body { font-size: 0.9rem; line-height: 1.5; color: var(--icrt-ink-soft); }

/* --- the summary column --------------------------------------------------- */

.single-product .entry-summary .price {
  font-size: 1.6rem !important;
  font-weight: 700;
  color: var(--icrt-accent) !important;
}

.single-product .entry-summary .product_title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* === Store categories =======================================================
   A category ran on WooCommerce's default archive inside the news column, so a
   single umbrella sat in a wide empty space beside "Most read", with no way to
   reach the other two categories.
   ========================================================================== */

.icrt-shopcat { padding: 2rem 0 3.5rem; }

.icrt-shopcat__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.icrt-shopcat__eyebrow {
  margin: 0 0 .5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--icrt-accent);
}

.icrt-shopcat__title { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.1; letter-spacing: -.025em; }
.icrt-shopcat__lead { margin: .6rem 0 0; max-width: 42rem; color: var(--icrt-ink-soft); line-height: 1.6; }

.icrt-shopcat__count { margin: 0; text-align: right; }
.icrt-shopcat__countN { display: block; font-size: 1.8rem; font-weight: 700; line-height: 1; color: var(--icrt-accent); }
.icrt-shopcat__countL { display: block; margin-top: .2rem; font-size: 0.8125rem; letter-spacing: 0; text-transform: none; color: var(--icrt-muted); }

/* --- category navigation ----------------------------------------------------
   A category with no way out of it is a dead end, which is what this was. */

.icrt-shopcat__nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }

.icrt-shopchip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--icrt-line);
  background: var(--icrt-mist);
  font-size: .88rem;
  font-weight: 600;
  color: var(--icrt-ink-soft);
  text-decoration: none;
}

.icrt-shopchip:hover { border-color: var(--icrt-accent); color: var(--icrt-accent); }
.icrt-shopchip--on { background: var(--icrt-accent); border-color: var(--icrt-accent); color: #fff; }
.icrt-shopchip--on:hover { color: #fff; }

.icrt-shopchip__n {
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  opacity: .75;
}

/* --- the grid ---------------------------------------------------------------- */

.icrt-shopgrid {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.icrt-shopcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--icrt-paper);
  border: 1px solid var(--icrt-line);
}

.icrt-shopcard__art { display: block; overflow: hidden; background: var(--icrt-mist); aspect-ratio: 1 / 1; }

.icrt-shopcard__img,
.icrt-shopcard__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.icrt-shopcard:hover .icrt-shopcard__art img { transform: scale(1.04); }

.icrt-shopcard__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1rem 1.1rem 1.2rem; }

.icrt-shopcard__name { margin: 0 0 .35rem; font-size: 1rem; line-height: 1.3; letter-spacing: -.01em; }
.icrt-shopcard__name a { color: var(--icrt-ink); text-decoration: none; }
.icrt-shopcard__name a:hover { color: var(--icrt-accent); }

.icrt-shopcard__blurb { margin: 0 0 .6rem; font-size: .84rem; line-height: 1.5; color: var(--icrt-ink-soft); }

.icrt-shopcard__price { margin: 0 0 .9rem; font-size: 1.05rem; font-weight: 700; color: var(--icrt-accent); }
.icrt-shopcard__price del { opacity: .55; font-weight: 400; margin-right: .35rem; }
.icrt-shopcard__price ins { text-decoration: none; }

/* SmartMag styles bare links-as-buttons aggressively, so the add-to-cart is
   element-qualified and resets rather than nudges. */
.icrt-shopcard .button,
.icrt-shopcard a.button {
  margin-top: auto;
  align-self: flex-start;
  padding: .55rem 1.1rem;
  border-radius: .5rem;
  background: var(--icrt-accent);
  border: 0;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  min-height: 0;
  text-decoration: none;
}

.icrt-shopcard a.added_to_cart { margin-top: .5rem; font-size: .8rem; font-weight: 700; color: var(--icrt-accent); }

.icrt-shopcat__empty {
  padding: 3rem 1.5rem;
  border-radius: 1rem;
  background: var(--icrt-mist);
  text-align: center;
  color: var(--icrt-ink-soft);
}

/* --- what happens when you buy ------------------------------------------------ */

.icrt-shopcat__trust {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  padding-top: 2rem;
  border-top: 1px solid var(--icrt-line);
}

.icrt-trust__t {
  margin: 0 0 .35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--icrt-muted);
}

.icrt-trust__b { margin: 0; font-size: .89rem; line-height: 1.6; color: var(--icrt-ink-soft); }
.icrt-trust__b a { color: var(--icrt-accent); font-weight: 600; }
