/* Kitab Ghar — standard light ecommerce
   Palette: white #FFFFFF, paper #F6F6F4, ink #1A1A1A, grey #5E5E5E, red #B32B34 */

:root {
  --white: #FFFFFF;
  --paper: #F6F6F4;
  --paper-deep: #EFEFEC;
  --ink: #1A1A1A;
  --grey: #5E5E5E;
  --grey-light: #8A8A85;
  --line: #E2E2DD;
  --red: #B32B34;
  --red-dark: #8E1F27;
  --green: #2C6E49;

  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1280px;
  --pad: clamp(1rem, 3.5vw, 2.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: .7rem 1.2rem;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Utility bar ---------- */

.utility {
  background: var(--ink);
  color: #E8E8E4;
  font-size: .78rem;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
}

.utility-links {
  display: flex;
  gap: 1.5rem;
}
.utility-links a { text-decoration: none; color: #E8E8E4; }
.utility-links a:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--red);
  flex: none;
}

.brand-text { display: grid; line-height: 1; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.brand-devanagari {
  font-family: "Noto Sans Devanagari", var(--sans);
  font-size: .72rem;
  color: var(--grey);
  margin-top: .28rem;
}

.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 3px;
  overflow: hidden;
  max-width: 40rem;
  width: 100%;
  justify-self: center;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: .72rem .9rem;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
}
.search input::placeholder { color: var(--grey-light); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--red); background: var(--white); }

.search button {
  display: grid;
  place-items: center;
  width: 44px;
  align-self: stretch;
  border: 0;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
}
.search button:hover { background: var(--red-dark); }
.search button svg { width: 18px; height: 18px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  text-decoration: none;
  color: var(--grey);
}
.header-link:hover { color: var(--ink); }
.header-link svg { width: 19px; height: 19px; }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: .45rem .7rem;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cart-btn:hover { background: var(--ink); color: var(--white); }
.cart-btn svg { width: 18px; height: 18px; }

.cart-count {
  display: grid;
  place-items: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding-inline: .25rem;
  background: var(--red);
  color: var(--white);
  border-radius: 2px;
  font-size: .72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Category nav ---------- */

.cat-nav {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: 46px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-nav a {
  font-size: .86rem;
  text-decoration: none;
  color: var(--grey);
  white-space: nowrap;
  padding-block: .3rem;
  border-bottom: 2px solid transparent;
}
.cat-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.cat-nav .nav-offer { margin-left: auto; color: var(--red); font-weight: 600; }
.cat-nav .nav-offer:hover { color: var(--red-dark); border-bottom-color: var(--red); }

/* ---------- Hero ---------- */

.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-copy { max-width: 34rem; }

.hero-badge {
  display: inline-block;
  background: #F7E4E4;
  color: var(--red-dark);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .6rem;
  border-radius: 2px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.6vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-top: 1.1rem;
  max-width: 17ch;
}

.hero-lede {
  margin-top: 1.15rem;
  color: var(--grey);
  font-size: 1.02rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }

.btn-ghost {
  background: transparent;
  border-color: #C9C9C3;
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-block { width: 100%; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 0;
  font-size: .82rem;
  color: var(--grey);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.hero-points li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}

.hero-visual {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 34rem;
  justify-self: center;
}

.hero-covers {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(.5rem, 1.4vw, .9rem);
}

.hero-cover {
  background: var(--white);
  border: 1px solid var(--line);
  padding: .5rem;
  box-shadow: 0 20px 32px -24px rgba(0, 0, 0, .5);
}

.hero-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-cover-back {
  width: 31%;
  rotate: -2.5deg;
  z-index: 1;
}

.hero-cover-left {
  width: 31%;
  rotate: 1.5deg;
  z-index: 2;
}

.hero-cover-right {
  width: 33%;
  rotate: 2.5deg;
  z-index: 3;
}

.hero-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .2rem .9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  padding: .55rem .8rem;
  font-size: .78rem;
  color: var(--grey);
}
.hero-tag span:last-child { color: var(--ink); font-weight: 600; }
.hero-tag s { color: var(--grey-light); font-weight: 400; margin-right: .3rem; }

/* ---------- Trust ---------- */

.trust {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-block: 1.1rem;
}

.trust p {
  font-size: .82rem;
  color: var(--grey);
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}
.trust p:first-child { border-left: 0; padding-left: 0; }
.trust strong { color: var(--ink); font-weight: 600; }

/* ---------- Section heads ---------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -.01em;
}

.section-head p {
  color: var(--grey);
  font-size: .88rem;
  max-width: 26rem;
}

.text-link {
  font-size: .86rem;
  font-weight: 500;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.text-link:hover { border-bottom-color: var(--red); }

/* ---------- Categories ---------- */

.categories {
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}

.cat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .75rem;
}

.cat-grid a {
  display: grid;
  gap: .15rem;
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  text-decoration: none;
  height: 100%;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.cat-grid a:hover { border-color: var(--red); background: #FDF7F7; }

.cat-grid svg {
  width: 24px;
  height: 24px;
  color: var(--red);
  margin-bottom: .55rem;
}
.cat-grid span { font-size: .92rem; font-weight: 600; }
.cat-grid small { font-size: .76rem; color: var(--grey); }

/* ---------- Bestsellers ---------- */

.bestsellers {
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.best-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.25rem;
}

.best-row {
  display: grid;
  grid-template-columns: 2rem 3.4rem minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: .15rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .9rem 1rem;
}

.rank {
  grid-row: 1 / 3;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #C6C6BF;
  font-variant-numeric: tabular-nums;
}

.best-cover {
  grid-row: 1 / 3;
  position: relative;
  width: 3.4rem;
  height: 4.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.best-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .22rem;
}

.best-info { grid-column: 3; grid-row: 1; align-self: end; }
.best-info h3 {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
}
.best-info p { font-size: .78rem; color: var(--grey); margin-top: .1rem; }

.best-price {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  font-size: .88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.best-price s { color: var(--grey-light); font-weight: 400; margin-right: .35rem; font-size: .8rem; }

.add-btn {
  grid-column: 4;
  grid-row: 1 / 3;
  background: var(--white);
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 3px;
  padding: .45rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.add-btn:hover { background: var(--red); color: var(--white); }

/* ---------- Catalogue ---------- */

.catalogue {
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
}

.catalogue-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.catalogue-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.result-count {
  margin-top: .3rem;
  font-size: .84rem;
  color: var(--grey);
}

.catalogue-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
}

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .38rem .85rem;
  font-size: .82rem;
  color: var(--grey);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.sort {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: var(--grey);
}
.sort select {
  font: inherit;
  font-size: .82rem;
  padding: .38rem 1.8rem .38rem .55rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235E5E5E' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right .6rem center;
  appearance: none;
  color: var(--ink);
  cursor: pointer;
}

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.product {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.product:hover {
  border-color: #C9C9C3;
  box-shadow: 0 12px 24px -18px rgba(0, 0, 0, .35);
}

.product-cover {
  position: relative;
  background: var(--paper);
  aspect-ratio: 1 / 1.1;
  border-bottom: 1px solid var(--line);
}
.product-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.1rem;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .18));
}

.flag {
  position: absolute;
  top: .6rem;
  left: .6rem;
  background: var(--ink);
  color: var(--white);
  font-size: .68rem;
  font-weight: 600;
  padding: .18rem .45rem;
  border-radius: 2px;
}
.flag-sale { background: var(--red); }

.product-body {
  padding: .9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: .72rem;
  color: var(--grey-light);
  margin-bottom: .2rem;
}

.product h3 {
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.35;
}

.product-author {
  font-size: .8rem;
  color: var(--grey);
  margin-top: .15rem;
}

.product-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
  padding-top: .9rem;
}

.product-price {
  font-size: .9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.product-price s {
  display: block;
  font-size: .74rem;
  color: var(--grey-light);
  font-weight: 400;
}

.product .add-btn {
  padding: .4rem .65rem;
  font-size: .76rem;
}

.stock {
  margin-top: .6rem;
  font-size: .72rem;
  color: var(--green);
}
.stock::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-right: .35rem;
  vertical-align: 1px;
}
.stock-low { color: #9A5B00; }

.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 3px;
}
.empty-state h3 { font-size: 1.1rem; }
.empty-state p {
  margin: .5rem auto 1.25rem;
  max-width: 28rem;
  color: var(--grey);
  font-size: .9rem;
}

/* ---------- Services ---------- */

.services {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}

.services h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 1.5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.25rem;
}
.service h3 { font-size: .95rem; }
.service p { margin-top: .45rem; font-size: .86rem; color: var(--grey); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #D9D9D4;
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr .8fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}
.footer-devanagari {
  font-family: "Noto Sans Devanagari", var(--sans);
  font-size: .8rem;
  color: #9C9C96;
  margin-top: .2rem;
}
.footer-text {
  margin-top: .9rem;
  max-width: 22rem;
  font-size: .85rem;
  color: #A8A8A2;
}

.footer-col h2 {
  font-size: .82rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .75rem;
}
.footer-col p {
  font-size: .85rem;
  color: #A8A8A2;
  margin-bottom: .4rem;
}
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }

.pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
  font-size: .85rem;
  color: #A8A8A2;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  border-top: 1px solid #33332F;
  padding-block: 1.1rem;
  font-size: .76rem;
  color: #8C8C86;
}

/* ---------- Cart ---------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 60;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.overlay.is-visible { opacity: 1; }

.cart {
  position: fixed;
  top: 0; right: 0;
  z-index: 70;
  width: min(24rem, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-left: 1px solid var(--line);
  transform: translateX(101%);
  transition: transform .3s var(--ease);
  visibility: hidden;
}
.cart.is-open { transform: none; visibility: visible; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.cart-close {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}
.cart-close:hover { background: var(--paper); }
.cart-close svg { width: 15px; height: 15px; }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.cart-empty { font-size: .88rem; color: var(--grey); max-width: 17rem; }

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 48px;
  height: 64px;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: .15rem;
}
.cart-item-title { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.cart-item-author { font-size: .76rem; color: var(--grey); margin-top: .1rem; }
.cart-item-price { font-size: .8rem; margin-top: .25rem; }

.cart-remove {
  background: none;
  border: 0;
  padding: 0;
  font-size: .74rem;
  color: var(--grey);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.cart-remove:hover { color: var(--red); }

.cart-foot {
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cart-ship { margin-top: .3rem; font-size: .78rem; color: var(--grey); }
.cart-foot .btn { margin-top: .9rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--red); }
.cart-demo {
  margin-top: .6rem;
  text-align: center;
  font-size: .72rem;
  color: var(--grey-light);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 80;
  translate: -50% 0;
  background: var(--ink);
  color: var(--white);
  padding: .65rem 1.1rem;
  border-radius: 3px;
  font-size: .84rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), translate .25s var(--ease);
}
.toast.is-visible { opacity: 1; translate: -50% -5px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-main {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: .75rem 1rem;
    padding-block: .8rem;
    min-height: 0;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .search {
    grid-column: 1 / 3;
    grid-row: 2;
    max-width: none;
    justify-self: stretch;
  }
  .header-link { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 30rem; width: 100%; justify-self: start; }
  .best-list { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
  .trust p:nth-child(3) { border-left: 0; padding-left: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .utility-inner { justify-content: center; }
  .utility-links { display: none; }
  .cat-nav-inner { gap: 1.25rem; }
  .cat-nav .nav-offer { margin-left: 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .product-cover { aspect-ratio: 1 / 1.15; }
  .product-cover img { padding: .75rem; }
  .product-body { padding: .75rem; }
  .product-buy { flex-direction: column; align-items: stretch; gap: .5rem; }
  .product .add-btn { width: 100%; padding: .45rem .5rem; }
  .catalogue-tools { width: 100%; flex-direction: column; align-items: flex-start; }
  .chips { width: 100%; }
}

@media (max-width: 560px) {
  .hero-cover-back { width: 31%; }
  .hero-cover-left { width: 31%; }
  .hero-cover-right { width: 33%; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-inner { grid-template-columns: 1fr; }
  .trust p { border-left: 0; padding-left: 0; }
  .best-row { grid-template-columns: 1.5rem 3rem minmax(0, 1fr) auto; padding: .75rem; gap: .1rem .75rem; }
  .best-cover { width: 3rem; height: 4rem; }
  .best-info h3 { font-size: .88rem; }
  .best-row .add-btn { padding: .4rem .55rem; font-size: .74rem; }
  .footer-main { grid-template-columns: 1fr; }
  .cart { width: 100%; }
}

@media (max-width: 400px) {
  .product h3 { font-size: .88rem; }
  .product-price { font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
