/*
 * Print.az — Category page visual system (Category Standard).
 *
 * Shared by category listing pages (e.g. korporativ-cap-mehsullari/,
 * mohur-ve-stamplar/). Load only on those pages.
 *
 * Scope: all rules are under .category-page to avoid leaking into
 * product configurators, homepage, or other layouts.
 *
 * Does not contain product names, routes, or image paths.
 */

.category-page {
  --cp-accent: #d71920;
  --cp-accent-dark: #a80f16;
  --cp-ink: #17191d;
  --cp-muted: #4f5865;
  --cp-line: #e6e8ec;
  --cp-soft: #f6f7f9;
  --cp-white: #ffffff;
}

.category-page h1,
.category-page h2,
.category-page h3,
.category-page p {
  margin-top: 0;
}

/* --- Hero --- */

.category-page .hero {
  /* Compact, image-first hero: quick path to the product grid.
     Mobile-first: the balanced mobile value is the base and the approved
     desktop value is restored at the 680px breakpoint below, so desktop is
     untouched at every width above it. */
  padding: 36px 0 40px;
  background:
    radial-gradient(circle at 90% 0%, rgba(215, 25, 32, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
}

.category-page .hero-inner {
  display: grid;
  gap: 28px;
  align-items: center;
}

.category-page .eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--cp-accent-dark);
  background: rgba(215, 25, 32, 0.08);
  border: 1px solid rgba(215, 25, 32, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.category-page .hero h1 {
  max-width: 16ch;
  /* No top margin at mobile: it stacks on the hero's padding-top and tips the
     band top-heavy. Restored at 680px with the rest of the desktop hero. */
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--cp-ink);
}

.category-page .hero-copy {
  max-width: 52ch;
  margin: 0;
  color: var(--cp-muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
}

/* Decorative product montage (desktop only) — Korporativ multi-tile. */
.category-page .hero-montage {
  display: none;
}

.category-page .hero-montage__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 14px;
  background: #f4f5f7;
  border: 1px solid var(--cp-line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.category-page .hero-montage__tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Single category hero image (desktop only) — same column / frame language. */
.category-page .hero-visual {
  display: none;
}

.category-page .hero-visual__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 18px;
  background: #f4f5f7;
  border: 1px solid var(--cp-line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
  overflow: hidden;
}

.category-page .hero-visual__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* --- Product section + grid --- */

.category-page > section:not(.hero) {
  /* Shorter gap so the first product row starts sooner. */
  padding: 36px 0 64px;
}

.category-page .product-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 14px;
  row-gap: 22px;
}

/* --- Product cards --- */

.category-page .product-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--card-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.category-page .product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Image-dominant media area (~60% of card height): framed like every other
   card's media box (same background/border/radius via the shared
   --card-media-* tokens), inset within the card's own padding instead of
   flush to its edges. aspect-ratio keeps a fixed (definite) box height so
   the image's width/height:100% below can actually fill it; min-height:0
   stops replaced content from growing it past that. overflow:hidden +
   this box's own border-radius clips the image to the frame's rounded
   corners -- it fills edge-to-edge (object-fit: cover), no interior gap. */
.category-page .product-card__media {
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--card-media-bg);
  border: var(--card-media-border);
  border-radius: var(--card-media-radius);
}

.category-page .product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.category-page .product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
}

.category-page .product-card__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--cp-ink);
}

.category-page .product-card__desc {
  margin: 0;
  color: var(--cp-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-page .product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--cp-accent-dark);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.015em;
}

.category-page .product-card__cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.24s ease;
}

@media (hover: hover) {
  .category-page .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(17, 24, 39, 0.12);
    border-color: rgba(215, 25, 32, 0.28);
  }
  .category-page .product-card:hover .product-card__media img {
    transform: scale(1.03);
  }
  .category-page .product-card:hover .product-card__cta svg {
    transform: translateX(3px);
  }
}

/* Keyboard focus: same emphasis as hover, ring on the real anchor. */
.category-page .product-card:has(.product-card__link:focus-visible) {
  outline: 3px solid rgba(215, 25, 32, 0.55);
  outline-offset: 3px;
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.12);
  border-color: rgba(215, 25, 32, 0.28);
}
.category-page .product-card:has(.product-card__link:focus-visible) .product-card__media img {
  transform: scale(1.03);
}
.category-page .product-card:has(.product-card__link:focus-visible) .product-card__cta svg {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .category-page .product-card,
  .category-page .product-card__media img,
  .category-page .product-card__cta svg {
    transition: box-shadow 0.24s ease, border-color 0.24s ease;
  }
  .category-page .product-card:hover,
  .category-page .product-card:has(.product-card__link:focus-visible) {
    transform: none;
  }
  .category-page .product-card:hover .product-card__media img,
  .category-page .product-card:has(.product-card__link:focus-visible) .product-card__media img,
  .category-page .product-card:hover .product-card__cta svg,
  .category-page .product-card:has(.product-card__link:focus-visible) .product-card__cta svg {
    transform: none;
  }
}

/* Lead-generation card: matches product cards, opens shared quote modal.
   This variant shows a centered icon instead of a photo -- the base
   .product-card__media no longer centers its content (the photo variant
   fills the box edge-to-edge via width/height:100%), so the icon variant
   needs its own centering restored. */
.category-page .product-card--lead .product-card__media--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cp-accent);
}

.category-page .product-card--lead .product-card__media--icon svg {
  width: 52px;
  height: 52px;
  opacity: 0.88;
  transition: transform 0.24s ease;
}

@media (hover: hover) {
  .category-page .product-card--lead:hover .product-card__media--icon svg {
    transform: scale(1.03);
  }
}

.category-page .product-card--lead:has(.product-card__link:focus-visible) .product-card__media--icon svg {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .category-page .product-card--lead .product-card__media--icon svg {
    transition: none;
  }
  .category-page .product-card--lead:hover .product-card__media--icon svg,
  .category-page .product-card--lead:has(.product-card__link:focus-visible) .product-card__media--icon svg {
    transform: none;
  }
}

/* --- Product image disclaimer (catalog note) --- */

.category-page .category-image-disclaimer {
  width: min(1120px, calc(100% - 32px));
  /* Sits AFTER the grid now, so the gap belongs above it, not below. */
  margin: 28px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
  background: #f7f4ef;
  color: #3f4651;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
}

.category-page .category-image-disclaimer__label {
  font-weight: 600;
  color: #2f3540;
}

/* --- Breakpoints --- */

@media (max-width: 559.98px) {
  .category-page .product-card {
    padding: 20px;
  }
}

@media (min-width: 680px) {
  /* Desktop hero restored unchanged -- approved, and verified unmoved at
     1280 and 1920. Only the mobile base above differs. */
  .category-page .hero {
    padding: 56px 0;
  }

  .category-page .hero h1 {
    margin: 14px 0 12px;
  }

  .category-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 26px;
  }
}

@media (min-width: 920px) {
  .category-page .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }

  .category-page .hero-montage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .category-page .hero-visual {
    display: block;
  }

  .category-page .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
