/* ============================================================
   All Categories page (/shop/categories, all_categories.blade.php), 2026-10-16.

   Hero (title, the /shop feature points, an icon illustration and a
   hand-written line); a "Shop by Category" sidebar with search; Popular
   Categories (photo cards); every category in a sortable grid; the Admin's
   trust items in a dark band. Same look as the All Collections page
   (shop-collections.css). Everything sits under .acat-page.
   ============================================================ */

.acat-page {
  --acat-ink: #0f1a3d;
  --acat-text: #475569;
  --acat-muted: #6b7a90;
  --acat-blue: #2563eb;
  --acat-line: #e3e9f6;
  --acat-shadow: 0 1px 2px rgba(15, 26, 61, .04), 0 8px 22px rgba(15, 26, 61, .06);
  padding: 22px 0 56px;
  background: #f6f8fd;
  color: var(--acat-text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.acat-page *, .acat-page *::before, .acat-page *::after { box-sizing: border-box; }
.acat-page h1, .acat-page h2, .acat-page h3, .acat-page p { margin: 0; }
.acat-page a { text-decoration: none; }
.acat-page [hidden] { display: none !important; }

/* Colour per category, by position (blue, pink, orange, green, purple, teal, red, amber). */
.acat-tone-0 { --fg: #2563eb; --bg: #e8efff; }
.acat-tone-1 { --fg: #db2777; --bg: #fde8f2; }
.acat-tone-2 { --fg: #ea580c; --bg: #ffeedd; }
.acat-tone-3 { --fg: #16a34a; --bg: #e3f7ea; }
.acat-tone-4 { --fg: #7c3aed; --bg: #f0e9ff; }
.acat-tone-5 { --fg: #0d9488; --bg: #def7f3; }
.acat-tone-6 { --fg: #dc2626; --bg: #fde7e7; }
.acat-tone-7 { --fg: #ca8a04; --bg: #fdf3d6; }

/* ---- hero ---- */
.acat-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  min-height: 200px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #e0e6fb;
  border-radius: 20px;
  background: linear-gradient(110deg, #eef3ff 0%, #f2f0ff 55%, #e8ebff 100%);
}
.acat-hero-copy { position: relative; z-index: 2; padding: 26px 32px; }
.acat-kicker {
  color: var(--acat-blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.acat-hero h1 {
  margin: 8px 0 6px;
  color: var(--acat-ink);
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.acat-hero-copy > p { max-width: 560px; color: var(--acat-text); font-size: 15.5px; line-height: 1.55; }

.acat-points {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.acat-point {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 18px 2px 0;
  margin-right: 18px;
  border-right: 1px solid #d5ddf3;
}
.acat-point:last-child { border-right: 0; margin-right: 0; }
.acat-point-ic {
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--acat-blue);
  font-size: 15px;
  box-shadow: 0 4px 10px -4px rgba(37, 56, 140, .25);
}
/* text only: the icon's own span keeps its flex centring */
.acat-point > div > strong { display: block; color: var(--acat-ink); font-size: 13px; font-weight: 700; }
.acat-point > div > span { display: block; color: var(--acat-muted); font-size: 12px; }

/* the illustration: icon tiles, sparkles and a hand-written line */
.acat-hero-art { position: relative; align-self: stretch; min-height: 200px; }
.acat-art-tile {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 30px -12px rgba(37, 56, 140, .35);
}
.acat-art-tile.is-cart {
  left: 30%;
  top: 50%;
  width: 116px;
  height: 116px;
  border-radius: 30px;
  background: linear-gradient(145deg, #6b95ff 0%, #3b5bdb 100%);
  color: #fff;
  font-size: 50px;
  transform: translate(-50%, -50%) rotate(-6deg);
  box-shadow: 0 26px 40px -14px rgba(59, 91, 219, .6);
}
.acat-art-tile.is-bag { left: 2%; top: 14%; width: 58px; height: 58px; color: #ec4899; font-size: 24px; transform: rotate(8deg); }
.acat-art-tile.is-grid { left: 44%; bottom: 9%; width: 54px; height: 54px; background: #e3e9ff; color: #5b7cfa; font-size: 22px; transform: rotate(-5deg); }
.acat-art-tile.is-heart { left: 8%; bottom: 12%; width: 42px; height: 42px; border-radius: 14px; color: #f43f5e; font-size: 16px; transform: rotate(-10deg); }
.acat-art-spark { position: absolute; color: #8b9cff; line-height: 1; }
.acat-art-spark.is-1 { left: 47%; top: 12%; font-size: 16px; }
.acat-art-spark.is-2 { left: 20%; top: 8%; font-size: 9px; color: #b9c3ff; }
.acat-art-script {
  position: absolute;
  right: 6%;
  top: 50%;
  max-width: 200px;
  color: #3743c7;
  font-family: 'Caveat', cursive;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform: translateY(-50%) rotate(-8deg);
}
.acat-art-script svg { display: block; width: 86%; height: 16px; margin: 4px 0 0 auto; color: #3743c7; }

/* ---- body: sidebar + main ---- */
.acat-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.acat-panel {
  border: 1px solid var(--acat-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--acat-shadow);
}

/* sidebar: the /shop "Shop by Category" card (dekoshopping-redesign.css) */
.acat-side-col { position: sticky; top: 16px; }
.acat-side-col .deko-sidebar-card { margin-bottom: 0; }

.acat-count {
  flex: 0 0 auto;
  min-width: 26px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f4f9;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}
.acat-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #ef4444;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.acat-pill.is-new { background: #2563eb; }

/* main column */
.acat-main { padding: 18px 18px 22px; }
.acat-section + .acat-section { margin-top: 26px; }
.acat-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.acat-section-title { display: flex; align-items: center; gap: 12px; }
.acat-section-ic {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eaf0ff;
  color: var(--acat-blue);
  font-size: 15px;
}
.acat-section-title h2 { color: var(--acat-ink); font-family: 'Outfit', 'Inter', sans-serif; font-size: 19px; font-weight: 700; }
.acat-section-title p { margin-top: 1px; color: var(--acat-muted); font-size: 12.5px; }
.acat-link { color: var(--acat-blue) !important; font-size: 13px; font-weight: 600; white-space: nowrap; }
.acat-link i { margin-left: 4px; font-size: 11px; }

/* Popular: photo cards */
.acat-pop-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.acat-pop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--acat-line);
  border-radius: 14px;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.acat-pop-card:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(15, 26, 61, .28); }
.acat-pop-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  background: var(--bg);
}
.acat-pop-media img { width: 100%; height: 100%; object-fit: cover; }
.acat-pop-media .acat-pop-bigic { color: var(--fg); font-size: 40px; opacity: .85; }
.acat-pop-body { position: relative; padding: 24px 12px 12px; }
.acat-pop-ic {
  position: absolute;
  left: 12px;
  top: -18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
}
.acat-pop-name { display: block; color: var(--acat-ink); font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.acat-pop-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.acat-pop-foot span { color: var(--acat-muted); font-size: 12px; }
.acat-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f4fb;
  color: var(--acat-ink);
  font-size: 11px;
  transition: background .15s ease, color .15s ease;
}
.acat-pop-card:hover .acat-arrow { background: var(--fg); color: #fff; }

/* All Categories grid */
.acat-sort { display: flex; align-items: center; gap: 8px; color: var(--acat-muted); font-size: 12.5px; white-space: nowrap; }
.acat-sort select {
  height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid #dbe3f2;
  border-radius: 9px;
  background: #fff;
  color: var(--acat-ink);
  font-size: 13px;
}
.acat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 12px; }
.acat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 78px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--acat-line);
  border-radius: 14px;
  background: linear-gradient(100deg, #fff 55%, var(--bg) 160%);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.acat-card:hover { border-color: color-mix(in srgb, var(--fg) 35%, #fff); transform: translateY(-2px); box-shadow: 0 12px 22px -14px rgba(15, 26, 61, .3); }
.acat-card-ic {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  font-size: 18px;
}
.acat-card-text { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.acat-card-name { display: block; color: var(--acat-ink); font-size: 13px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.acat-card-count { display: block; margin-top: 2px; color: var(--acat-muted); font-size: 11.5px; white-space: nowrap; }
.acat-card-img {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}
.acat-none { padding: 26px 0 8px; color: var(--acat-muted); font-size: 14px; text-align: center; }

/* ---- trust band ---- */
.acat-trust {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  padding: 18px 10px;
  border-radius: 16px;
  background: radial-gradient(120% 160% at 0% 0%, #1e3a8a 0%, #0b1d4a 55%, #081537 100%);
  color: #cbd5f5;
}
.acat-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 16px;
  border-right: 1px solid rgba(203, 213, 245, .18);
}
.acat-trust-item:last-child { border-right: 0; }
.acat-trust-ic {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  color: #1e3a8a;
  font-size: 16px;
}
.acat-trust-item > div > strong { display: block; color: #fff; font-size: 14px; font-weight: 700; }
.acat-trust-item > div > span { display: block; font-size: 12px; }
.acat-trust-item > div > a { color: #93c5fd !important; font-size: 12px; font-weight: 600; }

/* ---- responsive ---- */
@media (max-width: 1399.98px) {
  .acat-pop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .acat-hero { grid-template-columns: 1fr; }
  .acat-hero-art { display: none; }
  .acat-body { grid-template-columns: 1fr; }
  .acat-side-col { display: none; }   /* as on /shop: no sidebar on tablets and phones */
  .acat-trust { grid-template-columns: 1fr; gap: 12px; }
  .acat-trust-item { justify-content: flex-start; border-right: 0; }
}
@media (max-width: 767.98px) {
  .acat-hero-copy { padding: 22px 20px; }
  .acat-hero h1 { font-size: 32px; }
  .acat-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .acat-point { padding: 0; margin: 0; border-right: 0; }
  .acat-main { padding: 14px; }
  .acat-pop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acat-section-head { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .acat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   One category's list (/shop/categories/{slug}, category_children.blade.php):
   breadcrumb, hero button, department / sub category chips, the category
   cards with their sub categories, and the product grid.
   ============================================================ */
.acat-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--acat-muted);
  font-size: 12.5px;
}
.acat-crumbs a { color: var(--acat-muted) !important; }
.acat-crumbs a:hover { color: var(--acat-blue) !important; }
.acat-crumbs i { font-size: 9px; opacity: .6; }
.acat-crumbs [aria-current] { color: var(--acat-ink); font-weight: 600; }

.acat-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.acat-hero-count { display: inline-flex; align-items: center; gap: 8px; color: var(--acat-ink); font-size: 13.5px; font-weight: 600; }
.acat-hero-count i { color: var(--acat-blue); }
.acat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--acat-blue);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 16px -8px var(--acat-blue);
  transition: transform .15s ease, filter .15s ease;
}
.acat-btn i { font-size: 12px; transition: transform .15s ease; }
.acat-btn:hover { filter: brightness(.94); transform: translateY(-1px); }
.acat-btn:hover i { transform: translateX(3px); }
/* the hero's big tile takes the category's own colour */
.acat-hero .acat-art-tile.is-cart.is-tone { background: linear-gradient(145deg, var(--bg) -40%, var(--fg) 100%); }

/* chips: departments, a category's sub categories */
.acat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.acat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #dbe3f2;
  border-radius: 999px;
  background: #fff;
  color: #334155 !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}
.acat-chip em { color: var(--acat-muted); font-size: 11.5px; font-style: normal; }
.acat-chip:hover { border-color: #9db5f7; }
.acat-chip.is-active { border-color: var(--acat-blue); background: var(--acat-blue); color: #fff !important; }
.acat-chip.is-active em { color: rgba(255, 255, 255, .8); }

/* the categories under this one */
.acat-sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.acat-sub-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--acat-line);
  border-radius: 14px;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.acat-sub-card:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(15, 26, 61, .28); }
.acat-sub-card.is-active { border-color: var(--fg); box-shadow: 0 0 0 2px var(--bg); }
.acat-sub-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 118px;
  background: var(--bg);
}
.acat-sub-media img { width: 100%; height: 100%; object-fit: cover; }
.acat-sub-body { display: flex; flex-direction: column; gap: 2px; padding: 12px; }
.acat-sub-count { color: var(--acat-muted); font-size: 12px; }
.acat-sub-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.acat-sub-chip {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg) !important;
  font-size: 11.5px;
  font-weight: 600;
}
.acat-sub-chip:hover { filter: brightness(.95); }
.acat-sub-chip.is-more { background: #f1f4f9; color: #475569 !important; }

/* product grid: the Shop's own product card */
.acat-page .acat-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.acat-page .acat-products .product-item-wrapper { min-width: 0; }

@media (max-width: 767.98px) {
  .acat-sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acat-sub-media { height: 96px; }
  .acat-page .acat-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.acat-sub-media .acat-pop-bigic { color: var(--fg); font-size: 40px; opacity: .85; }
/* The picked category's sub categories: tiles like the category tiles. */
.acat-subs-grid .acat-card { min-height: 64px; }
.acat-subs-grid .acat-card.is-active { border-color: var(--acat-blue); box-shadow: 0 0 0 2px #dbe6ff; }
.acat-subs-grid .acat-card.is-active .acat-card-name { color: var(--acat-blue); }
.acat-subs-none { margin: 0; color: var(--acat-muted); font-size: 13px; }

.acat-sub-rest { margin-top: 12px; }
.acat-sub-rest .acat-card.is-active { border-color: var(--fg); }
#acatProducts + .acat-section { margin-top: 30px; }
@media (max-width: 767.98px) {
  /* empty categories and sub categories: two compact tiles across on phones */
  .acat-sub-rest, .acat-subs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .acat-sub-rest .acat-card, .acat-subs-grid .acat-card { gap: 8px; min-height: 60px; padding: 9px; }
  .acat-sub-rest .acat-card-ic, .acat-subs-grid .acat-card-ic { flex-basis: 32px; width: 32px; height: 32px; font-size: 13px; }
  .acat-sub-rest .acat-card-name, .acat-subs-grid .acat-card-name { font-size: 12px; }
}

/* /shop/categories/{slug}: page links under the product grid */
.acat-pages { display: flex; justify-content: center; margin-top: 18px; }
.acat-pages .pagination { margin: 0; flex-wrap: wrap; gap: 4px; }
.acat-pages .page-link { border-radius: 8px; }
