/* ==========================================================================
   Almureed Bazaar: shop grid, product page, cart and checkout.
   Loaded on WooCommerce pages only, after components.css (product card, buttons, tokens).
   ========================================================================== */

:root {
  --alm-shop-green: #10551F;
  --alm-shop-green-deep: #0D3E22;
  --alm-shop-lime: #C7DC49;
  --alm-shop-on-lime: #0C2F25;
  --alm-shop-ink: #212621;
  --alm-shop-body: #5E665F;
  --alm-shop-bone: #F6F5EE;
  --alm-shop-line: rgba(16, 85, 31, 0.14);
  --alm-shop-field: rgba(16, 85, 31, 0.22);
  --alm-shop-heading: var(--heading-font-family, "Gallery", serif);
  --alm-shop-sans: var(--body-font-family, "Manrope", sans-serif);
}

/* Category strip: an icon and a name per category, one row. Wide screens share the row; narrow ones swipe. */
.alm-shop-cats { margin: 0 0 22px; }
.alm-shop-cats ul {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(128px, 1fr);
  gap: 10px;
  margin: 0;
  padding: 2px 2px 6px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.alm-shop-cats ul::-webkit-scrollbar { display: none; }
.alm-shop-cats li { display: flex; margin: 0; scroll-snap-align: start; }
.alm-shop-cats a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px 8px 12px;
  border: 1px solid var(--alm-shop-line);
  border-radius: 18px;
  background: #FFFFFF;
  font: 600 13px/1.3 var(--alm-shop-sans);
  color: var(--alm-shop-ink);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.alm-shop-cats__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--alm-shop-bone);
  color: var(--alm-shop-green);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.alm-shop-cats__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.alm-shop-cats__name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; min-height: 2.6em; text-wrap: balance; }
.alm-shop-cats a:hover { border-color: rgba(16, 85, 31, 0.35); color: var(--alm-shop-green); }
.alm-shop-cats a:hover .alm-shop-cats__icon { background: var(--alm-shop-lime); color: var(--alm-shop-on-lime); }
.alm-shop-cats a:focus-visible { outline: 3px solid var(--alm-shop-green); outline-offset: 3px; }
/* Current category: filled green icon and a green outline. */
.alm-shop-cats a[aria-current="page"] { border-color: var(--alm-shop-green); box-shadow: inset 0 0 0 1px var(--alm-shop-green); color: var(--alm-shop-green); }
.alm-shop-cats a[aria-current="page"] .alm-shop-cats__icon { background: var(--alm-shop-green); color: #FFFFFF; }
/* Narrow screens: the row scrolls sideways, so fade its edges as a hint. */
@media (max-width: 1139.98px) {
  .alm-shop-cats ul { mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%); }
}

/* Toolbar: result count and sorting --------------------------------------- */
.tm-wc-archive-before-loop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 32px; padding: 0 0 20px; border-bottom: 1px solid var(--alm-shop-line); }
.tm-wc-archive-before-loop > .clearfix, .tm-wc-archive-before-loop + .clearfix { display: none; }
.tm-wc-archive-before-loop .woocommerce-result-count { float: none; margin: 0; font-size: 15px; color: var(--alm-shop-body); }
.tm-wc-archive-before-loop .woocommerce-ordering { float: none; margin: 0; }
.tm-wc-archive-before-loop .woocommerce-ordering select {
  min-height: 46px;
  min-width: 230px;
  padding: 10px 44px 10px 18px;
  border: 1.5px solid var(--alm-shop-field);
  border-radius: 999px;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2310551F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 16px no-repeat;
  appearance: none;
  font: 600 15px/1.2 var(--alm-shop-sans);
  color: var(--alm-shop-ink);
  cursor: pointer;
}
.tm-wc-archive-before-loop .woocommerce-ordering select:focus-visible { outline: 3px solid var(--alm-shop-green); outline-offset: 2px; }

/* Product grid and card ---------------------------------------------------- */
.alm-c .alm-shop-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 32px 22px; margin: 0; padding: 0; list-style: none; }
.alm-c .alm-shop-grid > li { display: flex; min-width: 0; margin: 0; padding: 0; }
/* Phones: two compact cards per row, as shoppers expect. */
@container almc (max-width: 599.98px) {
  .alm-c .alm-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
}

.alm-scard {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 8px 16px;
  background: #FFFFFF;
  border: 1px solid var(--alm-shop-line);
  border-radius: 22px;
  color: var(--alm-shop-ink);
}

/* Media: a square frame on bone. Books stand in it with a shadow; photos fill it. */
.alm-scard__media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 16px; background: var(--alm-shop-bone); }
.alm-scard__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.alm-scard--book .alm-scard__img {
  inset: 8% 12%;
  width: 76%;
  height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(16, 40, 20, 0.22)) drop-shadow(0 2px 3px rgba(16, 40, 20, 0.18));
}
.alm-scard__img--alt { opacity: 0; }
.alm-scard__badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.alm-scard__badge { padding: 6px 10px; border-radius: 999px; background: var(--alm-shop-lime); font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--alm-shop-on-lime); }
.alm-scard__badge--sale { background: var(--alm-shop-green); color: #FFFFFF; }
.alm-scard__badge--muted { background: #FFFFFF; color: var(--alm-shop-ink); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }

/* Body: category, title, price, then the button pinned to the bottom so rows line up. */
.alm-scard__body { display: flex; flex: 1; flex-direction: column; padding: 16px 8px 0; }
.alm-c .alm-scard__cat { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: var(--alm-shop-green); }
.alm-c .alm-scard__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-family: var(--alm-shop-heading);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0, "swsh" 0;
  color: var(--alm-shop-ink);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-height: 2.5em; /* Two lines kept for every title, so prices line up across a row. */
}
.alm-scard__title a { color: inherit; text-decoration: none; }
.alm-c .alm-scard__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 10px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--alm-shop-ink); }
.alm-scard__from { font-size: 12.5px; font-weight: 600; color: var(--alm-shop-body); }
.alm-scard__free { color: var(--alm-shop-green); }
.alm-scard__price del { font-size: 14px; font-weight: 500; color: var(--alm-shop-body); }
.alm-scard__price ins { text-decoration: none; color: var(--alm-shop-green); }

.alm-scard__actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 16px; }
.alm-c .alm-scard__actions a.alm-scard__btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border: 1.5px solid var(--alm-shop-green);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  font: 700 14px/1.2 var(--alm-shop-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--alm-shop-green);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.alm-c .alm-scard__actions a.alm-scard__btn:hover { background: var(--alm-shop-green); color: #FFFFFF; }
.alm-c .alm-scard__actions a.alm-scard__btn:focus-visible { outline: 3px solid var(--alm-shop-green); outline-offset: 3px; }
/* Icons: a bag for add to cart, an arrow for products with options. */
.alm-c .alm-scard__actions a.alm-scard__btn::before,
.alm-c .alm-scard__actions a.alm-scard__btn::after { flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--alm-scard-icon) center / contain no-repeat; mask: var(--alm-scard-icon) center / contain no-repeat; }
.alm-c .alm-scard__actions a.add_to_cart_button { --alm-scard-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.2a1 1 0 0 1-1 .8H7.2a1 1 0 0 1-1-.8Z'/%3E%3Cpath d='M9 8V6.5a3 3 0 0 1 6 0V8'/%3E%3C/svg%3E"); }
.alm-c .alm-scard__actions a.add_to_cart_button::before { content: ""; }
.alm-c .alm-scard__actions a.alm-scard__btn:not(.add_to_cart_button) { --alm-scard-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.alm-c .alm-scard__actions a.alm-scard__btn:not(.add_to_cart_button)::after { content: ""; }
.alm-c .alm-scard__actions a.alm-scard__btn.loading { opacity: 0.7; }
.alm-c .alm-scard__actions a.alm-scard__btn.added::after { content: none; }
.alm-c .alm-scard__actions a.added_to_cart { position: relative; z-index: 2; align-self: center; padding: 0; font-size: 13.5px; font-weight: 700; color: var(--alm-shop-green); text-decoration: underline; text-underline-offset: 3px; }

/* The whole card opens the product; hover lifts it and, on books, shows the opening page. */
.alm-scard a.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 22px; }
.alm-scard a.card-link:focus-visible { outline: none; }
.alm-scard:has(a.card-link:focus-visible) { outline: 3px solid var(--alm-shop-green); outline-offset: 4px; }
.alm-scard:has(a.card-link:hover) { border-color: rgba(16, 85, 31, 0.3); box-shadow: 0 20px 40px rgba(16, 85, 31, 0.12); }
.alm-scard:has(a.card-link:hover) .alm-scard__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (hover: hover) {
  .alm-scard--has-alt:has(a.card-link:hover) .alm-scard__img--alt { opacity: 1; }
  .alm-scard--has-alt:has(a.card-link:hover) .alm-scard__img:not(.alm-scard__img--alt) { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .alm-scard { transition: border-color 0.3s ease, box-shadow 0.3s ease, translate 0.3s ease; }
  .alm-scard__img { transition: opacity 0.35s ease, scale 0.5s ease; }
  .alm-scard:has(a.card-link:hover) { translate: 0 -3px; }
  .alm-scard:not(.alm-scard--book):not(.alm-scard--has-alt):has(a.card-link:hover) .alm-scard__img { scale: 1.04; }
}

/* Phones: tighter type and padding inside the two-column grid. */
@container almc (max-width: 599.98px) {
  .alm-scard { padding: 6px 6px 12px; border-radius: 18px; }
  .alm-scard__body { padding: 12px 4px 0; }
  .alm-c .alm-scard__title { font-size: 16.5px; }
  .alm-c .alm-scard__price { font-size: 15px; }
  .alm-c .alm-scard__cat { font-size: 10.5px; }
  .alm-scard__badge { padding: 5px 8px; font-size: 10px; }
  .alm-c .alm-scard__actions a.alm-scard__btn { min-height: 40px; padding: 8px 10px; font-size: 13px; }
}

/* Reassurance -------------------------------------------------------------- */
.alm-assure { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 64px 0 0; padding: 0; list-style: none; }
.alm-assure > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; column-gap: 14px; row-gap: 2px; margin: 0; padding: 20px 22px; border-radius: 20px; background: var(--alm-shop-bone); }
.alm-assure__icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF; color: var(--alm-shop-green); }
.alm-assure__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.alm-assure > li > strong { padding-top: 2px; font-size: 15px; line-height: 1.4; color: var(--alm-shop-ink); }
.alm-assure__text { font-size: 14px; line-height: 1.55; color: var(--alm-shop-body); }
.alm-assure__text a { font-weight: 700; color: var(--alm-shop-green); text-underline-offset: 3px; }
.alm-assure__text a:focus-visible { outline: 3px solid var(--alm-shop-green); outline-offset: 2px; border-radius: 4px; }
.alm-assure--list { grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--alm-shop-line); }
.alm-assure--list > li { grid-template-columns: 38px minmax(0, 1fr); padding: 0; background: none; border-radius: 0; }
.alm-assure--list .alm-assure__icon { width: 38px; height: 38px; background: var(--alm-shop-bone); }
.alm-assure--list .alm-assure__icon svg { width: 18px; height: 18px; }

/* Product page ------------------------------------------------------------- */
.alm-phero.alm-phero--compact { padding-block: clamp(36px, 4vw, 56px); min-height: 0; }
.alm-phero--compact p.alm-phero__h1 { margin: 10px 0 0; font-family: var(--alm-shop-heading); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: #FFFFFF; }

.single-product div.product .product-details { align-items: start; row-gap: 32px; }
.single-product div.product .woocommerce-product-gallery { position: relative; overflow: hidden; border-radius: 28px; background: var(--alm-shop-bone); }
.single-product div.product .woocommerce-product-gallery__image img { display: block; width: 100%; height: auto; }
.single-product div.product .woocommerce-product-gallery__trigger { top: 16px; right: 16px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
.single-product div.product .flex-control-thumbs { display: flex; gap: 10px; margin: 12px 0 0; padding: 0; }
.single-product div.product .flex-control-thumbs li { width: 76px; margin: 0; list-style: none; }
.single-product div.product .flex-control-thumbs img { border-radius: 12px; opacity: 0.6; cursor: pointer; }
.single-product div.product .flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--alm-shop-green); outline-offset: 2px; }

.single-product div.product .summary { padding-left: clamp(0px, 2.5vw, 32px); }
.alm-sp__cat { margin: 4px 0 12px; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; }
.alm-sp__cat a { color: var(--alm-shop-green); text-decoration: none; }
.alm-sp__cat a:hover { text-decoration: underline; text-underline-offset: 3px; }
.single-product div.product .summary .product_title {
  margin: 0 0 16px;
  font-family: var(--alm-shop-heading);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0, "swsh" 0;
  color: var(--alm-shop-ink);
  text-wrap: balance;
}
.single-product div.product .summary p.price { margin: 0 0 22px; font-family: var(--alm-shop-sans); font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--alm-shop-green); }
.single-product div.product .summary p.price del { font-size: 20px; font-weight: 500; color: var(--alm-shop-body); }
.single-product div.product .summary p.price ins { text-decoration: none; }
.single-product div.product .summary .woocommerce-product-details__short-description { margin: 0 0 28px; font-size: 17px; line-height: 1.75; color: var(--alm-shop-body); }
.single-product div.product .summary .woocommerce-product-details__short-description p { margin: 0 0 12px; }
.single-product div.product .summary .stock { margin: -12px 0 20px; font-size: 14px; font-weight: 700; color: var(--alm-shop-green); }
.single-product div.product .summary .stock.out-of-stock { color: #8C1D18; }

.single-product div.product .summary form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 0; }
.single-product div.product .summary form.cart::before, .single-product div.product .summary form.cart::after { content: none; }
.single-product div.product .summary form.cart .quantity { position: relative; display: inline-flex; align-items: center; float: none; height: 56px; margin: 0; padding: 0 4px; border: 1.5px solid var(--alm-shop-field); border-radius: 999px; background: #FFFFFF; }
.single-product div.product .summary form.cart .quantity input.minus,
.single-product div.product .summary form.cart .quantity input.plus { position: static; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; font: 600 20px/1 var(--alm-shop-sans); color: var(--alm-shop-green); cursor: pointer; }
.single-product div.product .summary form.cart .quantity input:is(.minus, .plus):hover { background: var(--alm-shop-bone); }
.single-product div.product .summary form.cart .quantity input.qty { width: 48px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; text-align: center; font: 700 17px/1 var(--alm-shop-sans); color: var(--alm-shop-ink); appearance: textfield; -moz-appearance: textfield; }
.single-product div.product .summary form.cart .quantity input.qty::-webkit-inner-spin-button,
.single-product div.product .summary form.cart .quantity input.qty::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.single-product div.product .summary form.cart .single_add_to_cart_button {
  flex: 1 1 220px;
  min-height: 56px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--alm-shop-lime);
  box-shadow: none;
  font: 700 16px/1.2 var(--alm-shop-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--alm-shop-on-lime);
  cursor: pointer;
}
.single-product div.product .summary form.cart .single_add_to_cart_button:hover { background: #D5E578; color: var(--alm-shop-on-lime); }
.single-product div.product .summary form.cart :is(input, button):focus-visible { outline: 3px solid var(--alm-shop-green); outline-offset: 3px; }

.single-product div.product .woocommerce-tabs { clear: both; margin-top: 72px; }
.single-product div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 6px 32px; margin: 0 0 28px; padding: 0; border: 0; border-bottom: 1px solid var(--alm-shop-line); background: none; list-style: none; }
.single-product div.product .woocommerce-tabs ul.tabs::before, .single-product div.product .woocommerce-tabs ul.tabs::after { content: none; }
.single-product div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.single-product div.product .woocommerce-tabs ul.tabs li::before, .single-product div.product .woocommerce-tabs ul.tabs li::after { content: none; }
.single-product div.product .woocommerce-tabs ul.tabs li a { display: block; margin-bottom: -1px; padding: 0 0 14px; border-bottom: 3px solid transparent; background: none; font: 700 16px/1.3 var(--alm-shop-sans); text-transform: none; color: var(--alm-shop-body); text-decoration: none; }
.single-product div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--alm-shop-ink); }
.single-product div.product .woocommerce-tabs ul.tabs li.active a { border-bottom-color: var(--alm-shop-green); color: var(--alm-shop-ink); }
.single-product div.product .woocommerce-tabs ul.tabs li a:focus-visible { outline: 3px solid var(--alm-shop-green); outline-offset: 4px; border-radius: 4px; }
.single-product div.product .woocommerce-tabs .panel { max-width: 760px; margin: 0; padding: 0; font-size: 17px; line-height: 1.8; color: var(--alm-shop-body); }
.single-product div.product .woocommerce-tabs .panel > h2:first-child { margin: 0 0 14px; font-size: 26px; line-height: 1.2; color: var(--alm-shop-ink); }

.alm-related { clear: both; margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--alm-shop-line); }
.alm-related__title { margin: 0 0 28px; font-family: var(--alm-shop-heading); font-size: clamp(28px, 3vw, 36px); font-weight: 500; line-height: 1.15; color: var(--alm-shop-ink); font-variant-ligatures: none; }

/* Cart and checkout (WooCommerce blocks) ----------------------------------- */
:is(.wc-block-cart, .wc-block-checkout) { font-family: var(--alm-shop-sans); color: var(--alm-shop-ink); }
:is(.wc-block-cart, .wc-block-checkout, .wc-block-mini-cart__drawer) :is(.wc-block-components-product-name, .wc-block-components-product-metadata, .wc-block-components-product-metadata__description, .wc-block-components-product-details, .wc-block-cart-items__header, .wc-block-components-title) { text-transform: none; }
:is(.wc-block-cart, .wc-block-checkout) :is(h1, h2, h3, .wc-block-components-title, .wc-block-cart-items__header, .wc-block-components-checkout-step__title, .wc-block-cart__totals-title) {
  letter-spacing: 0;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0, "swsh" 0;
}
.wc-block-cart .wc-block-cart-items__header,
.wc-block-cart .wc-block-cart-items__header :is(th, span),
.wc-block-cart .wc-block-cart__totals-title { font-family: var(--alm-shop-sans); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--alm-shop-body); }
:is(.wc-block-cart, .wc-block-checkout) .wc-block-components-product-name { font-family: var(--alm-shop-heading); font-size: 19px; font-weight: 500; line-height: 1.3; color: var(--alm-shop-ink); text-decoration: none; }
:is(.wc-block-cart, .wc-block-checkout) a.wc-block-components-product-name:hover { color: var(--alm-shop-green); }
:is(.wc-block-cart, .wc-block-checkout) .wc-block-components-product-metadata { font-size: 14px; line-height: 1.55; color: var(--alm-shop-body); }
.wc-block-cart .wc-block-cart-item__image img { border-radius: 14px; }
:is(.wc-block-cart, .wc-block-checkout) .wc-block-components-product-price, :is(.wc-block-cart, .wc-block-checkout) .wc-block-formatted-money-amount { font-weight: 700; }
.wc-block-cart .wc-block-components-quantity-selector { border-radius: 999px; overflow: hidden; }
.wc-block-cart .wc-block-components-quantity-selector::after { border-color: var(--alm-shop-field); border-radius: 999px; }
:is(.wc-block-cart, .wc-block-checkout) .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 22px; color: var(--alm-shop-green); }
:is(.wc-block-cart, .wc-block-checkout) .wc-block-components-button:not(.is-link) {
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--alm-shop-lime);
  box-shadow: none;
  font: 700 16px/1.2 var(--alm-shop-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--alm-shop-on-lime);
}
:is(.wc-block-cart, .wc-block-checkout) .wc-block-components-button:not(.is-link):hover { background: #D5E578; color: var(--alm-shop-on-lime); }
:is(.wc-block-cart, .wc-block-checkout) .wc-block-components-button:not(.is-link):focus-visible { outline: 3px solid var(--alm-shop-green); outline-offset: 3px; box-shadow: none; }
:is(.wc-block-cart, .wc-block-checkout) :is(.wc-block-components-text-input input, .wc-block-components-select select, .wc-blocks-components-select__select, .wc-block-components-textarea, .wc-block-components-combobox .components-combobox-control__input) {
  border: 1.5px solid var(--alm-shop-field);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: none;
  font-family: var(--alm-shop-sans);
  color: var(--alm-shop-ink);
}
:is(.wc-block-cart, .wc-block-checkout) .wc-blocks-components-select__container { border-radius: 14px; }
:is(.wc-block-cart, .wc-block-checkout) :is(.wc-block-components-text-input input, .wc-blocks-components-select__select, .wc-block-components-textarea):focus { border-color: var(--alm-shop-green); outline: 3px solid rgba(16, 85, 31, 0.18); outline-offset: 0; box-shadow: none; }
.wc-block-checkout .wc-block-components-checkout-step__title { font-family: var(--alm-shop-heading); font-size: 24px; font-weight: 500; color: var(--alm-shop-ink); }
.wc-block-checkout .wc-block-components-checkout-step__description { color: var(--alm-shop-body); }
.wc-block-checkout .wc-block-components-notice-banner { border-radius: 14px; }
:is(.wc-block-cart, .wc-block-checkout) .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { border-radius: 6px; }
:is(.wc-block-cart, .wc-block-checkout) .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--alm-shop-green); border-color: var(--alm-shop-green); }
:is(.wc-block-cart, .wc-block-checkout) .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #FFFFFF; }

/* Text fields: the theme fills them beige without a border while selects get one; give every field the same white, outlined look.
   The doubled block class outranks the theme's input rules. */
:is(.wc-block-cart.wc-block-cart, .wc-block-checkout.wc-block-checkout) .wc-block-components-text-input :is(input, textarea),
:is(.wc-block-cart.wc-block-cart, .wc-block-checkout.wc-block-checkout) .wc-block-components-textarea {
  border: 1.5px solid var(--alm-shop-field);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: none;
}
:is(.wc-block-cart.wc-block-cart, .wc-block-checkout.wc-block-checkout) .wc-block-components-text-input :is(input, textarea):focus,
:is(.wc-block-cart.wc-block-cart, .wc-block-checkout.wc-block-checkout) .wc-block-components-textarea:focus { border-color: var(--alm-shop-green); outline: 3px solid rgba(16, 85, 31, 0.18); outline-offset: 0; }
:is(.wc-block-cart.wc-block-cart, .wc-block-checkout.wc-block-checkout) .wc-blocks-components-select .wc-blocks-components-select__container { border-radius: 14px; background: #FFFFFF; }
:is(.wc-block-cart.wc-block-cart, .wc-block-checkout.wc-block-checkout) .wc-blocks-components-select .wc-blocks-components-select__select { border: 1.5px solid var(--alm-shop-field); border-radius: 14px; background: transparent; }
/* The theme sets checkout field colours with !important (woo-shop.css), so the override has to match it, at a higher specificity. */
body :is(.wc-block-cart.wc-block-cart, .wc-block-checkout.wc-block-checkout) :is(form, div) .wc-block-components-text-input :is(input, textarea) {
  border: 1.5px solid var(--alm-shop-field) !important;
  background-color: #FFFFFF !important;
}
body :is(.wc-block-cart.wc-block-cart, .wc-block-checkout.wc-block-checkout) :is(form, div) .wc-block-components-text-input :is(input, textarea):focus { border-color: var(--alm-shop-green) !important; }
body :is(.wc-block-cart.wc-block-cart, .wc-block-checkout.wc-block-checkout) :is(form, div) .wc-blocks-components-select :is(.wc-blocks-components-select__container, .wc-blocks-components-select__select) { background-color: #FFFFFF !important; }

/* Storefront header (shop, categories, product search) ------------------------------------------- */
.alm-phero.alm-shero {
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: clamp(36px, 5cqi, 64px) clamp(24px, 5cqi, 72px);
  overflow: hidden;
}
@container almhero (min-width: 900px) {
  .alm-phero.alm-shero { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5cqi, 72px); }
}
.alm-shero__text { min-width: 0; }
/* The theme leaves 120px above shop listings; products should follow the header closely. */
body.woocommerce:is(.archive, .search) .main-content-area { padding-top: clamp(40px, 4vw, 56px); }
.alm-shero .alm-phero__label { margin-top: 20px; }
.alm-phero h1.alm-shero__title { margin: 12px 0; font-size: clamp(38px, 6cqi, 64px); }
.alm-shero__deck { margin: 0; max-width: 48ch; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.84); text-wrap: pretty; }

/* Search */
.alm-phero.alm-shero .alm-shero__search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  margin: 26px 0 0;
  padding: 6px 6px 6px 18px;
  background: #FFFFFF;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(4, 25, 12, 0.28);
}
.alm-shero__search:focus-within { outline: 3px solid var(--alm-lime); outline-offset: 3px; }
.alm-shero__search > svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--alm-green); stroke-width: 2; stroke-linecap: round; }
.alm-phero.alm-shero .alm-shero__search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 46px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: 500 16px/1.2 var(--body-font-family, "Manrope", sans-serif);
  color: var(--alm-ink);
  outline: none; /* The whole field shows the focus ring (:focus-within above). */
  -webkit-appearance: none;
  appearance: none;
}
.alm-phero.alm-shero .alm-shero__search input[type="search"]::placeholder { color: #6B736A; opacity: 1; }
.alm-phero.alm-shero .alm-shero__search button {
  flex: none;
  min-height: 46px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--alm-lime);
  font: 700 15px/1 var(--body-font-family, "Manrope", sans-serif);
  letter-spacing: 0;
  text-transform: none;
  color: var(--alm-on-lime);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.alm-phero.alm-shero .alm-shero__search button:hover { background: #D5E578; }
.alm-phero.alm-shero .alm-shero__search button:focus-visible { outline: 3px solid var(--alm-green); outline-offset: 2px; }

/* Perks */
.alm-phero .alm-shero__perks { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 26px 0 0; padding: 0; list-style: none; }
.alm-shero__perks li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13.5px; line-height: 1.35; color: rgba(255, 255, 255, 0.74); }
.alm-shero__perks svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: rgba(199, 220, 73, 0.14); fill: none; stroke: var(--alm-lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.alm-shero__perks strong { display: block; font-size: 14.5px; font-weight: 700; color: #FFFFFF; }

/* Covers and the featured collection */
.alm-shero__media { position: relative; display: grid; justify-items: center; min-width: 0; }
.alm-shero__covers { position: relative; width: min(100%, 440px); aspect-ratio: 11 / 8; }
.alm-shero__covers img {
  position: absolute;
  bottom: 0;
  width: 42%;
  height: auto;
  aspect-ratio: 875 / 1241;
  object-fit: cover;
  border-radius: 3px 10px 10px 3px;
  box-shadow: 0 26px 50px rgba(4, 25, 12, 0.5);
}
.alm-shero__covers img:nth-child(1) { left: 3%; bottom: 3%; rotate: -9deg; }
.alm-shero__covers img:nth-child(2) { left: 50%; z-index: 2; width: 46%; translate: -50% 0; }
.alm-shero__covers img:nth-child(3) { right: 3%; bottom: 3%; rotate: 9deg; }
.alm-shero__covers--1 img:nth-child(1) { left: 50%; bottom: 0; width: 50%; rotate: none; translate: -50% 0; }
.alm-shero__covers--2 img:nth-child(1) { left: 14%; }
.alm-shero__covers--2 img:nth-child(2) { left: auto; right: 12%; translate: none; rotate: 6deg; }

.alm-shero__feature {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "tag title go" "tag meta go";
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
  width: min(100%, 400px);
  margin-top: -40px;
  padding: 14px 14px 14px 18px;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(4, 25, 12, 0.35);
  color: var(--alm-ink);
  text-decoration: none;
  transition: translate 0.25s ease, box-shadow 0.25s ease;
}
.alm-shero__feature:hover { color: var(--alm-ink); text-decoration: none; translate: 0 -2px; box-shadow: 0 22px 46px rgba(4, 25, 12, 0.42); }
.alm-shero__feature:focus-visible { outline: 3px solid var(--alm-lime); outline-offset: 3px; }
.alm-shero__tag { grid-area: tag; padding: 5px 10px; border-radius: 999px; background: var(--alm-lime); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--alm-on-lime); }
.alm-shero__feature strong { grid-area: title; font-family: var(--heading-font-family, "Gallery", serif); font-size: 19px; font-weight: 500; font-variant-ligatures: none; line-height: 1.2; }
.alm-shero__meta { grid-area: meta; font-size: 13px; color: var(--alm-body); }
.alm-shero__go { grid-area: go; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--alm-green); }
.alm-shero__go svg { width: 18px; height: 18px; fill: none; stroke: #FFFFFF; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
  .alm-shero__feature, .alm-shero__feature:hover { transition: none; translate: none; }
}

/* Narrow: covers shrink; on phones they give way to the products. */
@container almhero (max-width: 899.98px) {
  .alm-shero__covers { width: min(100%, 360px); }
}
@container almhero (max-width: 559.98px) {
  .alm-shero__covers { display: none; }
  .alm-shero__feature { width: 100%; margin-top: 0; }
  .alm-shero__perk-note { display: none; }
  .alm-phero .alm-shero__perks { gap: 10px 18px; }
  .alm-shero__search > svg { display: none; }
  .alm-phero.alm-shero .alm-shero__search { padding-left: 14px; }
}

/* ==========================================================================
   Almureed Publications: format cards, free eBook download, book details
   ========================================================================== */

/* Price: "Free eBook · Hard copy ₵55.00" */
.alm-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; }
.alm-price__sep { color: var(--alm-shop-green); opacity: 0.45; }
.alm-price__free { color: var(--alm-shop-green); }
.alm-c .alm-prod--shop .alm-prod__price .alm-price { font-size: 16px; }
.alm-c .alm-prod--shop .alm-prod__price .alm-price__print { color: var(--alm-shop-ink); }

/* The variations form stacks; only the add-to-cart row is a flex row. */
.single-product div.product .summary form.cart.variations_form { display: block; }
.single-product div.product .summary form.variations_form .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.single-product div.product .summary form.variations_form .single_variation_wrap { margin-top: 0; }

/* With the format cards running, the select, its reset link and the repeated price go. */
.single-product div.product .summary form.variations_form.alm-format-on table.variations,
.single-product div.product .summary form.variations_form.alm-format-on .reset_variations,
.single-product div.product .summary form.variations_form.alm-format-on .woocommerce-variation-price { display: none !important; }
/* eBook chosen: the download replaces quantity and add to cart. */
.single-product div.product .summary form.variations_form[data-alm-format="ebook"] .single_variation_wrap { display: none !important; }

/* Format cards */
.alm-format { min-inline-size: 0; margin: 0 0 20px; padding: 0; border: 0; }
.alm-format[hidden] { display: none; }
.alm-format__legend { float: none; width: auto; margin: 0 0 10px; padding: 0; font: 700 13px/1.4 var(--alm-shop-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--alm-shop-ink); }
.alm-format__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.alm-format__opt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  margin: 0;
  padding: 14px 18px;
  border: 1.5px solid var(--alm-shop-field);
  border-radius: 16px;
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.alm-format__opt:hover { border-color: rgba(16, 85, 31, 0.5); }
.alm-format__opt:has(input:checked) { border-color: var(--alm-shop-green); background: var(--alm-shop-bone); box-shadow: inset 0 0 0 1px var(--alm-shop-green); }
.alm-format__opt:has(input:focus-visible) { outline: 3px solid var(--alm-shop-green); outline-offset: 3px; }
.alm-format__opt:has(input:disabled) { border-style: dashed; background: transparent; cursor: not-allowed; }
.alm-format__opt:has(input:disabled) :is(.alm-format__name, .alm-format__meta) { color: var(--alm-shop-body); }
.alm-format__opt input[type="radio"] { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--alm-shop-green); cursor: inherit; }
@supports selector(:has(*)) {
  .alm-format__opt input[type="radio"]:focus-visible { outline: none; }
}
.alm-format__body { display: grid; gap: 2px; min-width: 0; }
.alm-format__name { font: 700 16px/1.3 var(--alm-shop-sans); color: var(--alm-shop-ink); }
.alm-format__meta { font-size: 13px; line-height: 1.4; color: var(--alm-shop-body); }
.alm-format__price { font: 700 16px/1.2 var(--alm-shop-sans); white-space: nowrap; color: var(--alm-shop-green); }

/* Browsers without accent-color: draw the radio, keep the native control. */
@supports not (accent-color: red) {
  .alm-format__opt input[type="radio"] { display: grid; place-content: center; appearance: none; -webkit-appearance: none; border: 2px solid var(--alm-shop-body); border-radius: 50%; background: #FFFFFF; }
  .alm-format__opt input[type="radio"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--alm-shop-green); transform: scale(0); transition: transform 0.15s ease; }
  .alm-format__opt input[type="radio"]:checked { border-color: var(--alm-shop-green); }
  .alm-format__opt input[type="radio"]:checked::before { transform: scale(1); }
}

/* Free download */
.alm-ebook { display: grid; gap: 10px; margin: 0 0 8px; }
.alm-ebook[hidden] { display: none; }
.alm-ebook__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--alm-shop-lime);
  font: 700 16px/1.2 var(--alm-shop-sans);
  color: var(--alm-shop-on-lime);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.alm-ebook__btn:hover,
.alm-ebook__btn:focus-visible { background: #D5E578; color: var(--alm-shop-on-lime); text-decoration: none; }
.alm-ebook__btn:focus-visible { outline: 3px solid var(--alm-shop-green); outline-offset: 3px; }
.alm-ebook__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.alm-ebook__meta { margin: 0; font-size: 14px; line-height: 1.5; color: var(--alm-shop-body); }
@media (max-width: 600px) {
  .alm-ebook__btn { justify-self: stretch; }
}

/* Patron card under the free download */
.alm-ebook__thanks { margin: 0; font-size: 14px; font-weight: 700; color: var(--alm-shop-green); }
.alm-ebook__thanks:empty { display: none; }
.single-product div.product .summary .alm-patron {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  margin: 8px 0 0;
  padding: 18px 20px 16px;
  background: var(--alm-shop-bone);
  border: 1px solid var(--alm-shop-line);
  border-radius: 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
/* After a download starts, the card draws the eye once: a lime outline. */
.single-product div.product .summary .alm-ebook.is-downloaded .alm-patron { border-color: var(--alm-shop-lime); box-shadow: 0 0 0 3px rgba(199, 220, 73, 0.4); }
.alm-patron__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF; }
.alm-patron__icon svg { width: 21px; height: 21px; fill: rgba(199, 220, 73, 0.55); stroke: var(--alm-shop-green); stroke-width: 1.8; stroke-linejoin: round; }
.single-product div.product .summary h2.alm-patron__title {
  margin: 2px 0 4px;
  font-family: var(--alm-shop-heading);
  font-size: 20px;
  font-weight: 500;
  font-variant-ligatures: none;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: var(--alm-shop-ink);
}
.single-product div.product .summary .alm-patron__text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--alm-shop-body); }
.alm-patron__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; }
.single-product div.product .summary a.alm-patron__give {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--alm-shop-green);
  font: 700 14.5px/1.2 var(--alm-shop-sans);
  color: #FFFFFF;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.single-product div.product .summary a.alm-patron__give:hover { background: var(--alm-shop-green-deep); color: #FFFFFF; }
.single-product div.product .summary a.alm-patron__give:focus-visible { outline: 3px solid var(--alm-shop-green); outline-offset: 3px; }
.alm-patron__share-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.single-product div.product .summary button.alm-patron__share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font: 700 14.5px/1.2 var(--alm-shop-sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--alm-shop-green);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.single-product div.product .summary button.alm-patron__share[hidden] { display: none; }
.single-product div.product .summary button.alm-patron__share:hover { color: var(--alm-shop-green-deep); }
.single-product div.product .summary button.alm-patron__share:focus-visible { outline: 3px solid var(--alm-shop-green); outline-offset: 3px; border-radius: 6px; }
.alm-patron__share svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.alm-patron__share-status { font-size: 13px; font-weight: 600; color: var(--alm-shop-body); }
@media (prefers-reduced-motion: reduce) {
  .single-product div.product .summary .alm-patron { transition: none; }
}

/* Gallery thumbnails: the theme pins them in a rail outside the panel, where they are clipped. Put them under the image. */
.single-product div.product .single-image-wrapper .woocommerce-product-gallery ol.flex-control-thumbs { position: static !important; top: auto !important; left: auto !important; display: flex; flex-wrap: wrap; gap: 10px; width: auto !important; margin: 0 !important; padding: 4px 20px 20px !important; transform: none !important; }
.single-product div.product .single-image-wrapper .woocommerce-product-gallery ol.flex-control-thumbs li { float: none !important; width: 72px !important; margin: 0 !important; padding: 0 !important; }
.single-product div.product .single-image-wrapper .woocommerce-product-gallery ol.flex-control-thumbs img { display: block; width: 72px; height: 72px; object-fit: cover; background: #FFFFFF; }
.single-product div.product .single-image-wrapper .woocommerce-product-gallery ol.flex-control-thumbs img:hover { opacity: 1; }

/* Book description */
.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel p.alm-book__ar { margin: 0 0 16px; font-size: 24px; line-height: 1.8; color: var(--alm-shop-ink); }
.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel--description h3 { margin: 32px 0 12px; font: 400 26px/1.25 var(--alm-shop-heading); color: var(--alm-shop-ink); }
.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel ul.alm-book__contents { margin: 0; padding-inline-start: 1.25em; font-size: 19px; line-height: 2; color: var(--alm-shop-ink); }
.woocommerce-Tabs-panel .alm-book__facts { max-width: 680px; margin: 0; border-top: 1px solid var(--alm-shop-line); }
.woocommerce-Tabs-panel .alm-book__facts > div { display: grid; grid-template-columns: minmax(110px, 28%) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--alm-shop-line); }
.woocommerce-Tabs-panel .alm-book__facts dt { margin: 0; font-weight: 700; color: var(--alm-shop-ink); }
.woocommerce-Tabs-panel .alm-book__facts dd { margin: 0; color: var(--alm-shop-body); }
.woocommerce-Tabs-panel .alm-book__facts [lang="ar"] { display: inline-block; margin-inline-start: 6px; font-size: 1.1em; }

/* ==========================================================================
   Product options: colour and size swatches (variations.php, variations.js)
   ========================================================================== */
.alm-swatches { min-inline-size: 0; margin: 0 0 18px; padding: 0; border: 0; }
.alm-swatches[hidden] { display: none; }
.alm-swatches__legend {
  float: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  width: auto;
  margin: 0 0 10px;
  padding: 0;
  font: 700 13px/1.4 var(--alm-shop-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--alm-shop-ink);
}
.alm-swatches__chosen { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--alm-shop-body); }
.alm-swatches__list { display: flex; flex-wrap: wrap; gap: 10px; }
.alm-swatch { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
/* The radio covers its swatch: invisible, but clickable and focusable. */
.alm-swatch input[type="radio"] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }

/* Colour: a dot. The chosen one gets a ring. */
.alm-swatch__dot {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--alm-sw, var(--alm-shop-bone));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.15s ease;
}
.alm-swatch:hover .alm-swatch__dot { outline-color: rgba(16, 85, 31, 0.35); }
.alm-swatch input:checked + .alm-swatch__dot { outline-color: var(--alm-shop-green); }
.alm-swatch input:focus-visible + .alm-swatch__dot { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16), 0 0 0 9px rgba(199, 220, 73, 0.75); }

/* Size and other text options: a button. The chosen one fills. */
.alm-swatch__text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--alm-shop-field);
  border-radius: 12px;
  background: #FFFFFF;
  font: 700 15px/1 var(--alm-shop-sans);
  color: var(--alm-shop-ink);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.alm-swatch:hover .alm-swatch__text { border-color: rgba(16, 85, 31, 0.5); }
.alm-swatch input:checked + .alm-swatch__text { border-color: var(--alm-shop-green); background: var(--alm-shop-green); color: #FFFFFF; }
.alm-swatch input:focus-visible + .alm-swatch__text { outline: 3px solid var(--alm-shop-green); outline-offset: 3px; }

/* Combinations that are not available. */
.alm-swatch.is-off { cursor: not-allowed; }
.alm-swatch.is-off :is(.alm-swatch__dot, .alm-swatch__text) { opacity: 0.35; }
.alm-swatch.is-off .alm-swatch__text { text-decoration: line-through; }

/* With swatches running, the drop-downs, their labels and the repeated price go. */
.single-product div.product .summary form.variations_form.alm-swatches-on table.variations,
.single-product div.product .summary form.variations_form.alm-swatches-on table.variations :is(tbody, tr, td) { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; }
.single-product div.product .summary form.variations_form.alm-swatches-on table.variations :is(th.label, select) { display: none !important; }
.single-product div.product .summary form.variations_form.alm-swatches-on .woocommerce-variation-price { display: none; }
.single-product div.product .summary form.variations_form.alm-swatches-on .reset_variations { display: inline-block; margin: -6px 0 16px; font-size: 14px; font-weight: 600; color: var(--alm-shop-green); }

/* ==========================================================================
   Store landing page: departments
   ========================================================================== */
.alm-c ul.alm-depts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
/* Each item is the size container, so a tile can adapt to its own width. */
.alm-c ul.alm-depts > li { container-type: inline-size; display: flex; min-width: 0; margin: 0; padding: 0; }
.alm-c ul.alm-depts > .alm-dept--feature { grid-column: 1 / -1; }
/* The publications tile spans the row; the other departments sit beneath it: two, then three, then all in one row (up to six). */
@container almc (min-width: 600px) {
  .alm-c ul.alm-depts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@container almc (min-width: 1000px) {
  .alm-c ul.alm-depts { grid-template-columns: repeat(var(--alm-dept-cols, 6), minmax(0, 1fr)); gap: 18px; }
}

/* A tile. The heading link covers the whole tile. */
.alm-dept__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 8px 18px;
  background: #FFFFFF;
  border: 1px solid var(--alm-shop-line);
  border-radius: 22px;
  color: var(--alm-shop-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.alm-c .alm-dept__name {
  margin: 14px 52px 0 10px;
  font-family: var(--alm-shop-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0, "swsh" 0;
  color: inherit;
}
.alm-dept__name a.card-link { color: inherit; text-decoration: none; }
.alm-dept__name a.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.alm-dept__name a.card-link:focus-visible { outline: none; }
.alm-c .alm-dept__meta { margin: 4px 52px 0 10px; font-size: 14px; line-height: 1.4; color: var(--alm-shop-body); }
.alm-dept__go {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--alm-shop-line);
  border-radius: 50%;
  color: var(--alm-shop-green);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.alm-dept__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.alm-dept__card:has(a.card-link:hover) { border-color: rgba(16, 85, 31, 0.32); box-shadow: 0 22px 44px -30px rgba(13, 62, 34, 0.45); }
.alm-dept__card:has(a.card-link:hover) .alm-dept__go { background: var(--alm-shop-lime); border-color: var(--alm-shop-lime); color: var(--alm-shop-on-lime); }
.alm-dept__card:has(a.card-link:focus-visible) { outline: 3px solid var(--alm-shop-green); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .alm-dept__card:has(a.card-link:hover) .alm-dept__go { transform: translateX(3px); }
}

/* Narrow tiles (two per row on phones): smaller name, no arrow. */
@container (max-width: 239.98px) {
  .alm-c .alm-dept__name { margin: 12px 6px 0; font-size: 17px; }
  .alm-c .alm-dept__meta { margin: 4px 6px 0; font-size: 13px; }
  .alm-dept__card:not(.alm-dept__card--feature) .alm-dept__go { display: none; }
}

/* Department tiles with an icon: icon in a bone circle, name, count, centred. */
.alm-dept__card--icon { align-items: center; padding: 26px 14px 22px; text-align: center; }
.alm-dept__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--alm-shop-bone);
  color: var(--alm-shop-green);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.alm-dept__icon svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.alm-c .alm-dept__card--icon .alm-dept__name { margin: 0; font-size: 18px; line-height: 1.25; text-wrap: balance; }
.alm-c .alm-dept__card--icon .alm-dept__meta { margin: 6px 0 0; font-size: 13px; }
.alm-dept__card--icon:has(a.card-link:hover) .alm-dept__icon { background: var(--alm-shop-lime); color: var(--alm-shop-on-lime); }
@media (prefers-reduced-motion: no-preference) {
  .alm-dept__card--icon:has(a.card-link:hover) .alm-dept__icon { transform: translateY(-3px); }
}
@container (max-width: 179.98px) {
  .alm-dept__card--icon { padding: 20px 10px 18px; }
  .alm-dept__icon { width: 64px; height: 64px; margin-bottom: 12px; }
  .alm-dept__icon svg { width: 38px; height: 38px; }
  .alm-c .alm-dept__card--icon .alm-dept__name { font-size: 16px; }
}

/* The publications tile: deep green, three covers, then the text. */
.alm-dept__card--feature {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 0;
  padding: clamp(22px, 7cqi, 40px);
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 22%, rgba(199, 220, 73, 0.16) 0%, rgba(199, 220, 73, 0) 70%),
    linear-gradient(165deg, var(--alm-shop-green) 0%, var(--alm-shop-green-deep) 70%);
  border-color: var(--alm-shop-green-deep);
  color: #FFFFFF;
}
.alm-dept__covers { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 16px 0 36px; }
.alm-dept__covers img {
  display: block;
  width: 33%;
  max-width: 190px;
  height: auto;
  border-radius: 3px 6px 6px 3px;
  box-shadow: 0 22px 32px -14px rgba(0, 0, 0, 0.55), 0 2px 4px rgba(0, 0, 0, 0.25);
}
.alm-dept__covers img:nth-child(1) { transform: translate(18%, 6%) rotate(-8deg); }
.alm-dept__covers img:nth-child(2) { position: relative; z-index: 1; width: 38%; max-width: 215px; }
.alm-dept__covers img:nth-child(3) { transform: translate(-18%, 6%) rotate(8deg); }
.alm-dept__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.alm-c .alm-dept__tag {
  margin: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--alm-shop-lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--alm-shop-on-lime);
}
.alm-c .alm-dept__card--feature .alm-dept__name { margin: 0 56px 0 0; font-size: clamp(26px, 8cqi, 38px); color: #FFFFFF; }
.alm-c .alm-dept__card--feature .alm-dept__meta { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--alm-shop-lime); }
.alm-c .alm-dept__desc { max-width: 40ch; margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.8); }
.alm-dept__card--feature .alm-dept__go { right: clamp(22px, 7cqi, 40px); bottom: clamp(22px, 7cqi, 40px); border-color: rgba(255, 255, 255, 0.35); color: #FFFFFF; }
.alm-dept__card--feature:has(a.card-link:hover) { border-color: var(--alm-shop-green-deep); }
.alm-dept__card--feature:has(a.card-link:focus-visible) { outline-color: var(--alm-shop-lime); }

/* A wide publications tile (tablets): covers beside the text. */
@container (min-width: 560px) {
  .alm-dept__card--feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto 1fr; column-gap: clamp(24px, 6cqi, 48px); }
  .alm-dept__covers { grid-column: 1; grid-row: 1 / -1; align-items: center; padding: 8px 0 16px; }
  .alm-dept__head { grid-column: 2; grid-row: 1; align-self: end; }
  .alm-dept__content { grid-column: 2; grid-row: 2 / -1; padding-right: 56px; }
}

/* Store landing page: product rows, without the repeated category label. */
.alm-c .alm-shop-grid--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container almc (max-width: 859.98px) { .alm-c .alm-shop-grid--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Three per row on wide screens, with a slightly shorter frame so the larger cards stay compact. */
@container almc (min-width: 860px) {
  .alm-c .alm-shop-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 26px; }
  .alm-c .alm-shop-grid--cols-3 .alm-scard__media { aspect-ratio: 4 / 3; }
}
