.adtt-compact-shop {
  --shop-red: #b81025;
  --shop-ink: #18181d;
  --shop-muted: #5e6069;
  --shop-line: #e2dfe2;
  background: #fbfaf9;
  color: var(--shop-ink);
}
.adtt-compact-shop .marquee { display: none; }
.adtt-compact-shop > .site-header, .adtt-supplies > header { border-bottom: 3px solid var(--shop-red); }
.adtt-compact-shop > .site-header .brand-mark { width: 54px; height: 54px; object-fit: contain; }
.adtt-compact-shop .resource-store-section { padding: 28px 0 45px; background: transparent; }
.resource-store-section > .wrap, .shop-supplies-main { width: min(100% - 28px, 930px); max-width: none; padding: 0; margin-inline: auto; }
.shop-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.shop-heading > div { min-width: 0; }
.shop-heading h1 { font: 800 clamp(27px, 5vw, 43px)/1.12 Inter, Arial, sans-serif; margin: 0 0 5px; color: var(--shop-ink); letter-spacing: -.035em; }
.shop-heading p { font: 400 15px/1.4 Inter, Arial, sans-serif; color: var(--shop-muted); margin: 0; }
.shop-basket-button, .shop-choice { color: var(--shop-ink); background: white; border: 1px solid var(--shop-line); border-radius: 10px; font: 700 13px/1.25 Inter, Arial, sans-serif; text-decoration: none; cursor: pointer; }
.shop-basket-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; min-height: 44px; flex: none; }
.shop-count { display: grid; place-items: center; min-width: 20px; min-height: 20px; padding: 1px 4px; border-radius: 50%; background: #ffe9ed; color: var(--shop-red); }
.shop-icon { width: 23px; height: 23px; flex: none; color: inherit; }
.shop-art { display: block; width: 100%; max-height: 116px; }
.shop-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shop-tile { display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-width: 0; padding: 9px 9px 12px; color: var(--shop-ink); background: #fff; border: 1px solid var(--shop-line); border-radius: 13px; text-decoration: none; text-align: center; box-shadow: 0 2px 7px #2f182805; }
.shop-tile:hover, .shop-band:hover, .shop-paths a:hover { border-color: #d98390; color: var(--shop-red); }
.shop-tile strong { font: 750 15px/1.25 Inter, Arial, sans-serif; }
.shop-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-block: 12px; }
.shop-paths a { padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; min-height: 44px; color: var(--shop-red); background: #fff; border: 1px solid var(--shop-line); border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 700; }
.shop-band { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-top: 12px; background: white; color: var(--shop-ink); border: 1px solid var(--shop-line); border-radius: 13px; text-decoration: none; }
.shop-band strong,.shop-band small { display: block; }
.shop-band strong { font: 800 17px/1.2 Inter, Arial, sans-serif; margin-bottom: 3px; }
.shop-band small { font-size: 13px; color: var(--shop-muted); line-height: 1.25; }
.shop-band .shop-icon { width: 36px; height: 36px; }
.shop-academy { background: #fce7eb; color: var(--shop-red); }
.shop-academy > span:last-child { margin-left: auto; }
.shop-school-band .shop-art { width: 86px; height: 69px; flex: none; }
.shop-cta { display: inline-block; background: var(--shop-red); color: white; padding: 7px 11px; margin-top: 7px; border-radius: 7px; font-size: 12px; font-weight: 750; }
.shop-all, .shop-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--shop-red); font-weight: 700; text-decoration: none; }
.shop-back { min-height: 34px; margin-bottom: 6px; font-size: 14px; }
#resource-store[data-shop-view="home"] [data-shop-catalogue],
#resource-store[data-shop-view]:not([data-shop-view="home"]) [data-shop-home] { display: none; }
#resource-store:not([data-shop-view]) .shop-home { display: none; }
.shop-catalogue h3 { font: 800 17px/1.2 Inter, Arial, sans-serif; margin: 0 0 7px; }
#shop-grades { max-width: 620px; }
#shop-grades section + section { margin-top: 11px; }
.shop-grade-grid, .shop-subject-grid { display: grid; gap: 7px; }
.shop-grade-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.shop-subject-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.shop-choice { padding: 8px 6px; min-height: 43px; overflow-wrap: anywhere; }
.shop-choice[aria-pressed="true"] { color: white; background: var(--shop-red); border-color: var(--shop-red); }
#shop-subjects { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--shop-line); }
#shop-curricula:not([hidden]) { display: grid; gap: 8px; max-width: 520px; }
#shop-curricula .shop-choice { text-align: left; padding-inline: 14px; }
.shop-extra-filters { margin-top: 15px; }
.shop-extra-filters summary { color: var(--shop-red); padding-block: 7px; font-weight: 700; cursor: pointer; }
.shop-extra-filters .store-filter-card { margin: 8px 0; padding: 12px; }
.shop-extra-filters .store-filter-grid { gap: 8px; }
#resource-store[data-shop-view]:not([data-shop-view="all"]) #store-featured-wrap { display: none !important; }
.adtt-compact-shop .store-grid { gap: 12px; }
.adtt-compact-shop .store-product-body { padding: 13px; }
.adtt-compact-shop .store-product-footer { gap: 8px; flex-wrap: wrap; }
.adtt-compact-shop .store-product-body h3 { font-size: 16px; }
.adtt-compact-shop .store-product-card, .adtt-supplies .card { border-radius: 13px; }
.shop-bottom { display: none; }
.adtt-supplies .shop-supplies-main { margin: 20px auto 48px; }
.adtt-supplies .products { margin-top: 14px; }
.adtt-supplies .products .product { padding: 14px; }
.adtt-supplies .products .product h2 { min-height: 0; font: 750 17px/1.25 Inter, Arial, sans-serif; }
.adtt-supplies .products .product p { min-height: 0; }
.shop-supply-categories { max-width: 340px; margin-top: 12px; }
.shop-supply-categories select { min-height: 44px; height: auto; }
#school-pack-filters { padding-top: 6px; }
#supply-basket { scroll-margin-top: 16px; }
@media (max-width: 760px) {
  .adtt-compact-shop { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .adtt-compact-shop > .site-header > .wrap { padding-inline: 14px; min-height: 68px; }
  .adtt-compact-shop .brand-name { font-size: 15px; }
  .adtt-compact-shop .brand-tag { font-size: 10px; }
  .adtt-compact-shop .resource-store-section { padding-top: 15px; }
  .shop-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .shop-art { max-height: 89px; }
  .shop-tile { padding: 6px 7px 9px; }
  .shop-tile strong { font-size: 13px; }
  .shop-heading { margin-bottom: 12px; }
  .shop-bottom { position: fixed; inset: auto 0 0; z-index: 80; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: white; border-top: 1px solid var(--shop-line); padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); }
  .shop-bottom a, .shop-bottom button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; min-height: 47px; padding: 3px; border: 0; border-radius: 8px; background: #fff; color: var(--shop-ink); font: 700 11px/1.25 Inter, Arial, sans-serif; text-decoration: none; cursor: pointer; }
  .shop-bottom [aria-current="page"] { background: #fce7eb; color: var(--shop-red); }
  .adtt-compact-shop .whatsapp-float { bottom: 75px; }
  .adtt-supplies > header .nav { padding: 10px 14px; flex-direction: row; align-items: center; }
  .adtt-supplies > header .nav nav { display: none; }
  .adtt-supplies .brand img { width: 46px; height: 46px; flex-basis: 46px; }
}

.adtt-compact-shop::after { opacity: 0; }
.adtt-compact-shop .brand-tag { display: block !important; font-family: Inter, Arial, sans-serif; letter-spacing: 0; text-transform: none; }
.adtt-compact-shop .brand-name { font-family: Inter, Arial, sans-serif; }
.supply-quantity { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.supply-quantity button { min-height: 36px; min-width: 36px; }
@media (max-width: 760px) {
  .adtt-compact-shop .whatsapp-float { display: none; }
}

/* The shop navigation is available before catalogue items are added. */
.shop-category-grid:not([hidden]), .shop-area-list:not([hidden]) {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  max-width: 620px;
}
.shop-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-shop-view="study"] .shop-category-grid { grid-template-columns: 1fr; }
.shop-category, .shop-area-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 51px;
  padding: 10px 12px;
  text-align: left;
}
.shop-category::before, .shop-area-list a::before, .adtt-supplies .shop-empty-card::before {
  content: '';
  width: 24px;
  height: 24px;
  flex: none;
  background: var(--shop-red);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M5 3h10l4 4v14H5zM15 3v5h4M8 12h8m-8 4h8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.shop-category[aria-pressed="true"]::before { background: #fff; }
.shop-area-list a {
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  background: #fff;
  color: var(--shop-ink);
  font: 700 14px/1.3 Inter, Arial, sans-serif;
  text-decoration: none;
}
.shop-area-list a::after { content: '→'; color: var(--shop-red); margin-left: auto; }
.shop-area-list a[aria-current="page"] { background: #fce7eb; border-color: #df9aa5; }
.shop-empty-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--shop-line);
  border-radius: 13px;
  background: #fff;
  color: var(--shop-ink);
}
.shop-empty-card .shop-art { width: 65px; flex: none; }
.shop-empty-card h3 { font: 750 16px/1.25 Inter, Arial, sans-serif; margin: 0 0 4px; }
.shop-empty-card p { font: 400 14px/1.45 Inter, Arial, sans-serif; margin: 0; color: var(--shop-muted); }
.shop-empty-card a { display: inline-block; margin-top: 5px; font-size: 14px; font-weight: 700; }
@media (max-width: 365px) {
  .shop-category { gap: 6px; padding-inline: 7px; }
  .shop-category::before { width: 19px; height: 19px; }
}
