/*
Theme Name: Kash! POS Catalogue
Description: Editable 2027 product catalogue for Kash Universe Technology.
Version: 1.9.6
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: kash-pos
*/
:root {
  --ink: #222026;
  --muted: #5e565f;
  --pink: #c70751;
  --paper: #fbf8f5;
  --line: #e8ddd9;
}
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 system-ui, sans-serif; }
html { scroll-behavior: smooth; }
.catalogue-site { margin: 0; }
.container { width: min(calc(100% - 64px), 1200px); margin-inline: auto; }
.catalogue-site :is(h1,h2,h3,p,figure) { margin: 0; }
.catalogue-site a { color: inherit; }
.catalogue-site a:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
.catalogue-site :is(h1,h2) { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.045em; line-height: 1.05; }
.catalogue-site h1 { font-size: clamp(40px,5vw,72px); max-width: 15ch; }
.catalogue-site h2 { font-size: clamp(39px,5vw,64px); }
.catalogue-site h3 { line-height: 1.26; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 22px; }
.brand img { display: block; width: 108px; height: auto; }
.catalogue-nav { display: flex; justify-content: center; gap: clamp(16px,4vw,48px); }
.catalogue-nav a { text-decoration: none; font-weight: 650; }
.catalogue-nav a:hover, .footer-links a:hover { color: var(--pink); }
.catalogue-site .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.catalogue-site .wp-block-button__link { display: inline-block; background: var(--pink); color: white; border: 1px solid var(--pink); text-decoration: none; padding: 11px 19px; border-radius: 100px; font-size: 14px; line-height: 1.4; font-weight: 750; }
.catalogue-site .wp-block-button__link:hover { background: #a60043; border-color: #a60043; color: white; }
.catalogue-site .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border-color: currentColor; }
.catalogue-site .is-style-outline .wp-block-button__link:hover { color: var(--pink); }
.hero { display: grid; grid-template-columns: 1fr 1.08fr; border-radius: 28px; overflow: hidden; background: #f0e5da; }
.hero-copy { padding: clamp(27px,5.4vw,78px); display: grid; gap: 19px; justify-items: start; align-content: center; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-description, .section-intro { color: var(--muted); max-width: 48ch; }
.catalogue-site .eyebrow { font-size: 12px; letter-spacing: .16em; font-weight: 800; color: var(--pink); }
.catalogue-site .edition { color: var(--muted); font-size: 13px; }
.catalogue-section { padding-top: clamp(54px,8vw,104px); scroll-margin-top: 20px; }
.catalogue-section > h2 { margin-top: 8px; }
.catalogue-section > .section-intro { margin-top: 12px; }
.catalogue-category { margin-top: 34px; }
.catalogue-category > h3 { font-size: 22px; margin-bottom: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 14px; }
/* The grid gap controls spacing between cards, including the first card. */
.catalogue-site .product-grid > .catalogue-card,
.catalogue-site .support-grid > .support-item { margin-block: 0; }
.catalogue-card { box-sizing: border-box; min-block-size: 370px; display: flex; flex-direction: column; align-items: start; gap: 9px; background: white; border: 1px solid var(--line); padding: 19px; border-radius: 16px; }
.catalogue-card .product-photo { width: 100%; }
.product-photo img { width: 100%; height: 150px; display: block; object-fit: contain; }
.catalogue-card h3 { font-size: 18px; }
.catalogue-card .price { font-weight: 800; color: var(--pink); }
.catalogue-card .platform { font-size: 11px; font-weight: 800; color: var(--muted); }
.catalogue-card .description, .support-item p { font-size: 14px; color: var(--muted); }
.catalogue-card .product-link { margin-top: auto; padding-top: 9px; font-size: 13px; font-weight: 750; color: var(--pink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.support-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 14px; margin-top: 20px; }
.support-item, .about-box { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.support-item h3 { margin-bottom: 5px; }
.contact-panel { display: grid; gap: 14px; border-radius: 22px; background: #f3e2e8; padding: clamp(24px,5vw,56px); }
.site-footer { padding-block: 35px; font-size: 14px; color: var(--muted); }
.footer-brand, .footer-links { display: grid; align-content: start; gap: 6px; }
.footer-brand .brand { margin-bottom: 5px; }
@media (max-width: 950px) { .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .hero { grid-template-columns: 1fr; }
  .hero-photo img { height: auto; max-height: 480px; }
}
@media (max-width: 480px) {
  .site-header { flex-wrap: wrap; }
  .catalogue-nav { order: 3; width: 100%; justify-content: flex-start; }
  .product-grid, .support-grid { grid-template-columns: 1fr; }
  .about-details { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.catalogue-card .software-logo { align-self: center; width: 84px; height: 72px; margin-bottom: 3px; }
.software-logo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hardware-media { display: grid; grid-template-columns: minmax(0, 1fr) clamp(54px, 18%, 84px); gap: 8px; width: 100%; }
.hardware-logos { display: grid; gap: 7px; align-content: start; padding-top: 9px; }
.hardware-logo img { display: block; width: 100%; height: 24px; object-fit: contain; }
.software-badges { display: flex; align-items: center; gap: 6px; }
.software-badges img { display: block; width: 24px; height: 24px; object-fit: contain; }
.catalogue-card .product-link { display: inline-flex; align-items: center; gap: 6px; }
.product-link img { flex: 0 0 16px; width: 16px; height: 16px; }
.warranty-heading { display: flex; align-items: center; gap: 10px; }
.support > .warranty-heading { margin-top: 8px; }
.warranty-heading h3 { margin: 0; }
.support-item .warranty-heading { margin-bottom: 5px; }
.warranty-heading .warranty-icon { flex: 0 0 24px; }
.support > .warranty-heading .warranty-icon { flex-basis: 36px; }
.warranty-icon img { display: block; width: 100%; height: auto; }

.platform-availability { margin-top: auto; display: grid; gap: 3px; }
.platform-availability + .product-link { margin-top: 0; }
.catalogue-card .availability-label { font-size: 13px; font-weight: 700; }
.about-box h2 { font-size: 35px; margin-bottom: 14px; }
.about-details { display: flex; justify-content: space-between; gap: 16px; }
.footer-links a { overflow-wrap: anywhere; }
.catalogue-site .back-to-top { position: fixed; z-index: 10; right: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pink); color: white; font-size: 23px; text-decoration: none; box-shadow: 0 2px 10px #22202630; }

.catalogue-site .catalogue-nav { flex-wrap: wrap; row-gap: 6px; }
.promo-panel { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: center; gap: clamp(18px, 4vw, 48px); margin-top: 16px; padding: clamp(16px, 4vw, 38px); border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.promo-panel p { margin: 10px 0; }
.promo-poster { display: block; height: auto; width: 100%; border-radius: 10px; }
.promo-price { color: var(--pink); font-size: 2rem; font-weight: 800; }
.promo-section .promo-whatsapp, .promo-popup .promo-whatsapp { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; margin-top: 12px; border-radius: 999px; background: #eaf7ef; color: #14532d; font-weight: 700; text-decoration: none; }
.promo-popup { box-sizing: border-box; width: min(94vw, 480px); padding: 16px; max-height: 94vh; max-height: 94dvh; overflow: auto; border: 0; border-radius: 16px; text-align: center; color: #222026; background: white; }
.promo-popup::backdrop { background: rgb(0 0 0 / 66%); }
.promo-popup h2 { margin: 2px 42px 10px 0; font: 750 1.15rem/1.2 system-ui, sans-serif; }
.promo-popup .promo-poster { width: auto; max-width: 100%; max-height: 70vh; max-height: 70dvh; margin: 0 auto; object-fit: contain; }
.promo-close { position: absolute; right: 8px; top: 7px; cursor: pointer; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3edf0; color: #222026; font-size: 24px; line-height: 1; }
@media (max-width: 660px) { .promo-panel { grid-template-columns: minmax(0, 1fr); } }

.kash-whatsapp-mascot {
  position: fixed;
  z-index: 20;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  text-decoration: none;
}
.kash-whatsapp-mascot:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
  border-radius: 12px;
}
.kash-whatsapp-bubble {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  box-sizing: border-box;
  max-width: 150px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #222026;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  box-shadow: 0 2px 10px #22202626;
}
.kash-whatsapp-bubble::after {
  position: absolute;
  top: 100%;
  left: 24px;
  border: 6px solid transparent;
  border-top-color: #fff;
  content: "";
}
.kash-whatsapp-bubble img { flex: 0 0 16px; }
.kash-whatsapp-character {
  display: block;
  width: clamp(42px, 5.5vw, 78px);
  height: auto;
  filter: drop-shadow(0 2px 5px #22202635);
}

.catalogue-card { position: relative; }
.catalogue-card .e-invoice-badge {
  position: absolute;
  inset-block-start: 9px;
  inset-inline-end: 9px;
  width: clamp(42px, 5vw, 62px);
}
.e-invoice-badge img { display: block; width: 100%; height: auto; }

.promo-zoom-link { display: block; width: fit-content; max-width: 100%; cursor: zoom-in; }
.promo-popup .promo-zoom-link { margin-inline: auto; }
.promo-zoom-link:focus-visible, .promo-enlarged button:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.promo-enlarged {
  width: min(92vw, 800px);
  max-height: 93vh;
  max-height: 93dvh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: auto;
  background: white;
}
.promo-enlarged::backdrop { background: rgb(0 0 0 / 78%); }
.promo-enlarged-toolbar { position: sticky; top: 0; margin: 0; padding: 9px 12px; text-align: right; background: white; }
.promo-enlarged-toolbar button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; color: #222026; cursor: pointer; }
.promo-enlarged > img { display: block; width: 100%; height: auto; }
