/* IntexZone Product Card Pro v3.0 — "Splash"
   Type: Outfit (display) + Manrope (text). Palette: pool aqua, deep-water navy, sunshine yellow.
   Spacing on a 4px grid. */

.izc-product {
  --ink: #0b2540;          /* deep water */
  --ink-2: #4d6479;
  --ink-3: #8699aa;
  --hair: #e1eef4;
  --aqua-50: #f1fbfd;
  --aqua-100: #e0f6fb;
  --aqua-200: #c4edf6;
  --aqua-500: #14b8d9;
  --blue-600: #0a84c6;
  --blue-700: #0969a3;
  --sun: #ffd23f;
  --coral: #ef5a3c;
  --coral-50: #fff0eb;
  --green: #0e9f7a;
  --buy: #1680c2;
  --buy-hover: #126fa9;
  --pad: 20px;
  --r-card: 24px;
  --r-well: 18px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --display: "Outfit", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --text: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

/* ---------- Shell ---------- */
.izc-product .col-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6f2f7;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 37, 64, .04), 0 12px 28px -16px rgba(10, 132, 198, .22);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.izc-product .col-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(11, 37, 64, .04), 0 24px 48px -20px rgba(10, 132, 198, .38);
}

/* Theme parts the card replaces */
.izc-product .box-text.box-text-products,
.izc-product .badge-container,
.izc-product .image-tools { display: none !important; }
.izc-product .product-small.box { box-shadow: none !important; background: none !important; }

/* ---------- Image well: sky → water with a slow wave ---------- */
.izc-product .box-image {
  position: relative;
  margin: 8px 8px 0;
  border-radius: var(--r-well);
  background: linear-gradient(180deg, #f6fcfe 0%, var(--aqua-100) 100%);
  overflow: hidden;
  isolation: isolate;
}
.izc-product .box-image::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26%;
  z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 14' preserveAspectRatio='none'%3E%3Cpath d='M0 7C20 0 40 0 60 7s40 7 60 0 30-7 40 0V14H0z' fill='%23c4edf6'/%3E%3C/svg%3E") 0 0 / 160px 14px repeat-x,
    linear-gradient(180deg, transparent 13px, var(--aqua-200) 13px);
  opacity: .75;
  animation: izc-wave 9s linear infinite;
  animation-play-state: paused;
}
.izc-product .col-inner:hover .box-image::before { animation-play-state: running; }
.izc-product .box-image img {
  display: block;
  mix-blend-mode: multiply;
  transform: scale(.9);
  transition: transform .8s var(--ease);
}
.izc-product .col-inner:hover .box-image img { transform: scale(.94) translateY(-6px); }

/* Sunshine discount sticker */
.izc-product .izc .izc-sticker {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 3;
  padding: 6px 10px 5px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font: 700 12px/1 var(--display);
  letter-spacing: .01em;
  transform: rotate(-4deg);
  box-shadow: 0 6px 14px -6px rgba(214, 160, 0, .7);
  transition: transform .45s var(--ease);
}
.izc-product .col-inner:hover .izc-sticker { transform: rotate(0) scale(1.06); }

/* ---------- Reset theme typography inside the card ---------- */
.izc-product .izc :where(h2, p, div, span, a, del, small) {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
  text-decoration: none;
  background: none;
  box-shadow: none;
  height: auto;
}

.izc {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px var(--pad) var(--pad);
  container-type: inline-size;
  font-family: var(--text);
  font-size: 14px;
  line-height: 1.43;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.izc a { transition: color .2s var(--ease), background-color .2s var(--ease); }
.izc .izc-cur { font-family: -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; font-size: .82em; font-weight: 600; margin-right: 1px; }
.izc .izc-v, .izc .izc-price, .izc .izc-deal { font-variant-numeric: tabular-nums; }

/* ---------- Heading block ---------- */
.izc .izc-meta {
  display: flex;
  gap: 6px;
  min-height: 16px;
  margin-bottom: 4px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  white-space: nowrap;
  overflow: hidden;
}
.izc .izc-meta > span { color: var(--aqua-200); }
.izc .izc-meta a:hover { color: var(--ink); }

.izc .izc-title {
  font-family: var(--display);
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.izc .izc-title a { color: var(--ink); }
.izc .izc-title a:hover { color: var(--blue-600); }

.izc .izc-desc {
  margin-top: 4px;
  min-height: 40px;
  font-size: 13.5px;
  line-height: 20px;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Spec panel ---------- */
.izc .izc-specs {
  margin-top: 16px;
  padding: 4px 14px;
  border-radius: 16px;
  background: var(--aqua-50);
}
.izc .izc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 20px;
}
.izc .izc-row + .izc-row { border-top: 1px solid var(--hair); }
.izc .izc-k { color: var(--ink-2); white-space: nowrap; }
.izc .izc-v { color: var(--ink); font-weight: 700; text-align: right; white-space: nowrap; }
.izc .izc-v a:hover { color: var(--blue-600); }

.izc .izc-extra {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 20px;
  margin-top: 12px;
  padding: 0 2px;
  font-size: 13px;
  line-height: 20px;
}
.izc .izc-incl { color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.izc .izc-incl a { color: var(--ink); font-weight: 600; }
.izc .izc-incl a:hover { color: var(--blue-600); }
.izc .izc-sheet { order: -1; color: var(--blue-600); font-weight: 600; white-space: nowrap; }
.izc .izc-sheet::after { content: " ›"; }
.izc .izc-sheet:hover { color: var(--blue-700); }

/* ---------- Price + actions (pinned to bottom so a row lines up) ---------- */
.izc .izc-buy { margin-top: auto; padding-top: 20px; }

.izc .izc-price-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.izc .izc-price {
  font-family: var(--display);
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.izc .izc-price small { font-family: var(--text); font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }

.izc .izc-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.izc .izc-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.izc .izc-stock.is-in   { color: var(--green); }
.izc .izc-stock.is-in::before { animation: izc-ripple 2.4s var(--ease) infinite; }
.izc .izc-stock.is-out  { color: var(--ink-3); }
.izc .izc-stock.is-back { color: #c77700; }

.izc .izc-deal { display: flex; align-items: center; gap: 8px; min-height: 24px; margin-top: 2px; font-size: 13px; line-height: 20px; }
.izc .izc-deal del { color: var(--ink-3); text-decoration: line-through; }
.izc .izc-save {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--coral-50);
  color: var(--coral);
  font-weight: 700;
  font-size: 12px;
}

.izc .izc-note { margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--ink-3); }

.izc .izc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.izc .izc-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.izc .izc-btn:active { transform: scale(.97); }
/* Soft ocean-blue pill, no shadow. Hover deepens slightly; a soft light sweeps across. */
.izc .izc-btn--fill { background-color: var(--buy); color: #fff; }
.izc .izc-btn--fill::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-120%);
}
.izc .izc-btn--fill:hover { background-color: var(--buy-hover); color: #fff; }
.izc .izc-btn--fill:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.izc .izc-btn--soft { background-color: var(--aqua-100); color: var(--blue-700); }
.izc .izc-btn--soft:hover { background-color: var(--aqua-200); color: var(--ink); }
.izc a:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; border-radius: 6px; }
.izc .izc-btn:focus-visible { border-radius: 999px; }

.izc .izc-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--ink-2);
}
.izc .izc-links a:hover { color: var(--blue-600); }

/* ---------- Phones: give the grid breathing room ---------- */
@media (max-width: 549px) {
  .category-page-row > .col { padding-left: 0 !important; padding-right: 0 !important; }
  .shop-container > .intex-main-wrapper { padding-left: 16px !important; padding-right: 16px !important; box-sizing: border-box; }
  .products.row:has(> .izc-product) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 16px !important;
    width: auto !important;
  }
  .products.row > .izc-product.col { padding: 0 0 16px !important; }
  .products.row.small-columns-2 > .izc-product.col:nth-child(odd)  { padding-right: 6px !important; }
  .products.row.small-columns-2 > .izc-product.col:nth-child(even) { padding-left: 6px !important; }
}

/* ---------- Narrow cards (2-up grids, related products) ---------- */
@container (max-width: 200px) {
  .izc { --pad: 12px; }
  .izc .izc-meta { font-size: 10px; letter-spacing: .06em; }
  .izc .izc-title { font-size: 17px; line-height: 22px; }
  .izc .izc-desc { font-size: 12px; line-height: 16px; min-height: 32px; }
  .izc .izc-specs { margin-top: 12px; padding: 2px 10px; border-radius: 12px; }
  .izc .izc-row { display: block; padding: 6px 0; font-size: 12px; line-height: 16px; }
  .izc .izc-k { display: block; font-size: 11px; color: var(--ink-3); }
  .izc .izc-v { display: block; text-align: left; white-space: normal; }
  .izc .izc-extra { display: block; margin-top: 8px; font-size: 12px; }
  .izc .izc-incl { display: block; }
  .izc .izc-buy { padding-top: 16px; }
  .izc .izc-price-line { display: block; }
  .izc .izc-price { display: block; font-size: 22px; line-height: 26px; }
  .izc .izc-stock { margin-top: 4px; font-size: 11px; }
  .izc .izc-deal { flex-wrap: wrap; gap: 4px 6px; font-size: 12px; }
  .izc .izc-note { font-size: 11px; }
  .izc .izc-actions { grid-template-columns: 1fr; margin-top: 12px; }
  .izc .izc-btn { height: 40px; font-size: 14px; }
  .izc .izc-links { flex-direction: column; align-items: center; gap: 8px; margin-top: 12px; font-size: 11px; }
  .izc-product .izc .izc-sticker { top: 14px; left: 14px; font-size: 11px; }
}

/* ---------- Motion ---------- */
@keyframes izc-wave { to { background-position: 160px 0, 0 0; } }
@keyframes izc-ripple {
  0%   { box-shadow: 0 0 0 0 rgba(14, 159, 122, .45); }
  70%  { box-shadow: 0 0 0 6px rgba(14, 159, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 159, 122, 0); }
}

/* Entrance: JS marks off-screen cards .izc-wait, then .izc-in */
.izc-product.izc-wait .col-inner { opacity: 0; transform: translateY(20px); }
.izc-product.izc-in .col-inner {
  transition: opacity .7s var(--ease) var(--izc-delay, 0s), transform .7s var(--ease) var(--izc-delay, 0s), box-shadow .45s var(--ease);
}
.izc-product.izc-in .col-inner:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .izc-product.izc-wait .col-inner { opacity: 1; transform: none; }
  .izc-product .col-inner, .izc-product .box-image img, .izc .izc-btn, .izc .izc-sticker { transition: none !important; }
  .izc-product .col-inner:hover { transform: none; }
  .izc-product .col-inner:hover .box-image img { transform: scale(.9); }
  .izc-product .box-image::before, .izc .izc-stock.is-in::before { animation: none; }
}

/* ---------- Shop toolbar + pagination ---------- */
.woocommerce-shop form.woocommerce-ordering,
.woocommerce-shop .woocommerce-result-count,
.select-wrapper.products-per-page { display: none !important; }

.woocommerce-pagination .page-numbers { display: flex; justify-content: center; gap: 8px; }
.woocommerce-pagination .page-number {
  min-width: 42px; height: 42px; line-height: 42px;
  border: 0 !important; border-radius: 999px !important;
  font-family: "Outfit", -apple-system, sans-serif; font-weight: 600; color: #0b2540;
  background: #e0f6fb;
}
.woocommerce-pagination .page-number:hover { background: #c4edf6 !important; }
.woocommerce-pagination .page-number.current { background: linear-gradient(135deg, #22c9e8, #0a84c6) !important; color: #fff !important; }
