/* ============================================================
   Phase 4 — premium shop, category and single-product surfaces
   Builds on store.css tokens (ivory, deep olive, honey-gold) and
   is loaded after v2-layout.css so it wins the cascade.
   ============================================================ */

/* ---------- shop / category hero ---------- */
.shop-hero {
  position: relative;
  margin-block: clamp(1rem, 2.4vw, 2rem) clamp(1.4rem, 3vw, 2.4rem);
  padding: clamp(1.4rem, 3.4vw, 2.6rem) clamp(1.2rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.4rem);
  border-radius: 22px;
  background:
    radial-gradient(120% 120% at 90% 0%, rgba(200, 138, 30, .13), transparent 55%),
    linear-gradient(160deg, #fffdf7 0%, #f8efdf 100%);
  border: 1px solid rgba(18, 59, 37, .09);
  overflow: hidden;
}

.shop-hero::after {
  content: "";
  position: absolute;
  inset-block-start: -70px;
  inset-inline-start: -50px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 138, 30, .16), transparent 68%);
  pointer-events: none;
}

.shop-hero .cooprtim-breadcrumbs { margin-block-end: 1rem; font-size: .82rem; }

.shop-hero__eyebrow {
  margin: 0 0 .2rem;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dp, #98670f);
  font-weight: 700;
}

.shop-hero__title {
  margin: 0 0 .5rem;
  font-family: var(--head, "Noto Kufi Arabic", Tahoma, sans-serif);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.15;
  color: var(--forest-3, #123325);
}

.shop-hero__meta {
  margin: 0 0 .6rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--olive, #4a5a3a);
}

.shop-hero__desc {
  max-width: 68ch;
  font-size: .98rem;
  line-height: 1.85;
  color: var(--muted, #6b5b4a);
}

.shop-hero__desc .term-description > :last-child { margin-block-end: 0; }

/* ---------- category chips ---------- */
.shop-chips { margin-block-start: 1.2rem; }

.shop-chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-chips__list--children { margin-block-start: .6rem; }

.shop-chips__chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .52rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 59, 37, .16);
  background: rgba(255, 255, 255, .78);
  color: var(--forest, #17452f);
  font-size: .86rem;
  font-weight: 600;
  transition: background .25s var(--ease, ease), color .25s, border-color .25s, transform .25s;
}

.shop-chips__chip:hover {
  background: #fff;
  border-color: rgba(200, 138, 30, .6);
  transform: translateY(-1px);
}

.shop-chips__chip.is-active {
  background: var(--forest, #17452f);
  border-color: var(--forest, #17452f);
  color: #f7f0e2;
}

.shop-chips__count {
  font-family: var(--num, inherit);
  font-size: .74rem;
  opacity: .65;
}

/* ---------- toolbar ---------- */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.2rem;
  margin-block: 0 1.4rem;
}

.cooprtim-shop .shop-toolbar .woocommerce-result-count,
.cooprtim-shop .shop-toolbar .woocommerce-ordering {
  margin: 0;
  font-size: .88rem;
  color: var(--muted, #6b5b4a);
}

.cooprtim-shop .shop-toolbar .woocommerce-ordering select {
  min-width: 12rem;
  padding: .6rem 2.2rem .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 59, 37, .18);
  background-color: #fffdf7;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2317452f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left .9rem center;
  background-size: 12px 8px;
  font: inherit;
  color: var(--forest, #17452f);
  cursor: pointer;
}

/* ---------- product cards ---------- */
/*
 * WooCommerce's small-screen layout still sets a percentage width on the list
 * item, which left every card at half of its grid track on phones. The card is
 * always the full width of its column here.
 */
.cooprtim-shop .woocommerce ul.products[class*="columns-"] li.product,
.cooprtim-shop .woocommerce ul.products li.product,
.cooprtim-shop ul.products[class*="columns-"] li.product,
.cooprtim-shop ul.products li.product { width: 100%; float: none; clear: none; }

.woocommerce ul.products li.product.pcard {
  display: flex;
  flex-direction: column;
  padding: .8rem .8rem 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf9 0%, #fdf8ef 100%);
  border: 1px solid rgba(18, 59, 37, .07);
  box-shadow: 0 18px 32px -26px rgba(105, 75, 35, .5), 0 1px 3px rgba(105, 75, 35, .05);
  transition: transform .45s var(--ease, ease), box-shadow .45s, border-color .45s;
}

.woocommerce ul.products li.product.pcard:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 138, 30, .35);
  box-shadow: 0 32px 50px -28px rgba(105, 75, 35, .55);
}

.woocommerce ul.products li.product.pcard > a.woocommerce-LoopProduct-link {
  display: contents;
  color: inherit;
}

@keyframes pcard-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.woocommerce ul.products li.product.pcard {
  animation: pcard-in .55s var(--ease, ease) both;
}

.woocommerce ul.products li.product.pcard:nth-child(2) { animation-delay: .04s; }
.woocommerce ul.products li.product.pcard:nth-child(3) { animation-delay: .08s; }
.woocommerce ul.products li.product.pcard:nth-child(4) { animation-delay: .12s; }
.woocommerce ul.products li.product.pcard:nth-child(5) { animation-delay: .16s; }
.woocommerce ul.products li.product.pcard:nth-child(6) { animation-delay: .2s; }
.woocommerce ul.products li.product.pcard:nth-child(7) { animation-delay: .24s; }
.woocommerce ul.products li.product.pcard:nth-child(8) { animation-delay: .28s; }

.pcard__media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #f7f1e5;
}

.woocommerce ul.products li.product.pcard .pcard__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  background: #f7f1e5;
  transition: transform .7s var(--ease, ease);
}

.woocommerce ul.products li.product.pcard:hover .pcard__media img { transform: scale(1.05); }

.pcard__save,
.pcard__oos {
  position: absolute;
  inset-block-start: .6rem;
  inset-inline-start: .6rem;
  padding: .34rem .6rem;
  border-radius: 999px;
  font-family: var(--num, inherit);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--orange, #c9481e);
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5);
}

.pcard__oos { background: rgba(36, 28, 18, .78); }

.pcard__body {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  padding-block: .8rem .55rem;
}

.pcard__cat {
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--gold-dp, #98670f);
  font-weight: 600;
}

.woocommerce ul.products li.product.pcard .woocommerce-loop-product__title {
  font-family: var(--ui, inherit);
  font-size: .97rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--forest-3, #123325);
  margin: 0;
  padding: 0;
}

.woocommerce ul.products li.product.pcard .woocommerce-loop-product__title a { color: inherit; }

.pcard__from {
  font-size: .72rem;
  color: var(--muted, #6b5b4a);
}

.woocommerce ul.products li.product.pcard .price {
  margin: .15rem 0 0;
  font-family: var(--num, inherit);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-dp, #98670f);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .45rem;
}

.woocommerce ul.products li.product.pcard .price del {
  order: 2;
  opacity: .45;
  font-size: .82em;
  font-weight: 500;
  color: var(--muted, #6b5b4a);
}

.woocommerce ul.products li.product.pcard .price ins { text-decoration: none; }

.pcard__foot { margin-block-start: auto; }

/*
 * WooCommerce gives the loop button horizontal margins; with width:100% that
 * pushed it past the card edge (it showed outside the card and got clipped).
 * The card owns the button box instead.
 */
.woocommerce ul.products li.product.pcard .pcard__foot .button,
.woocommerce ul.products li.product.pcard .pcard__foot .added_to_cart {
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.woocommerce ul.products li.product.pcard .button,
.woocommerce ul.products li.product.pcard .added_to_cart {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .72rem 1rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(18, 59, 37, .28);
  color: var(--forest, #17452f);
  font-weight: 700;
  font-size: .86rem;
  line-height: 1;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease, ease);
}

.woocommerce ul.products li.product.pcard .button:hover,
.woocommerce ul.products li.product.pcard:hover .button,
.woocommerce ul.products li.product.pcard .added_to_cart:hover {
  background: var(--forest, #17452f);
  border-color: var(--forest, #17452f);
  color: #f7f0e2;
  transform: none;
}

.woocommerce ul.products li.product.pcard .button.loading { opacity: .7; }

/* WooCommerce's own sale flash is hidden: the card prints its own badge. */
.woocommerce ul.products li.product.pcard .onsale { display: none; }

/* ---------- pagination ---------- */
.cooprtim-shop .woocommerce-pagination { margin-block-start: clamp(1.6rem, 3vw, 2.6rem); }

.cooprtim-shop .woocommerce-pagination ul.page-numbers,
.cooprtim-shop .woocommerce-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  border: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cooprtim-shop .woocommerce-pagination .page-numbers li { border: 0; }

.cooprtim-shop .woocommerce-pagination a.page-numbers,
.cooprtim-shop .woocommerce-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 .85rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 59, 37, .16);
  background: #fffdf7;
  color: var(--forest, #17452f);
  font-weight: 600;
  font-size: .9rem;
  transition: background .25s, color .25s, border-color .25s;
}

.cooprtim-shop .woocommerce-pagination a.page-numbers:hover {
  border-color: var(--forest, #17452f);
  background: var(--forest, #17452f);
  color: #f7f0e2;
}

.cooprtim-shop .woocommerce-pagination span.page-numbers.current {
  background: var(--forest, #17452f);
  border-color: var(--forest, #17452f);
  color: #f7f0e2;
}

/* ---------- single product ---------- */
.cooprtim-shop--single .cooprtim-breadcrumbs { margin-block: .5rem 1.4rem; font-size: .82rem; }

/* The old two-column grid moved to .ps__grid; release the product wrapper. */
.cooprtim-shop--single div.product.ps {
  display: block;
  gap: 0;
  margin: 0;
}

.ps__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.4rem, 4vw, 3.4rem);
  align-items: start;
}

.cooprtim-shop--single div.product div.images,
.cooprtim-shop--single div.product div.summary {
  width: auto;
  float: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
}

.cooprtim-shop--single div.product div.images { position: relative; }

div.product div.images .woocommerce-product-gallery__wrapper { margin: 0; }

div.product div.images img {
  border-radius: 20px;
  background: #f7f1e5;
  width: 100%;
}

div.product div.images .flex-viewport { border-radius: 20px; overflow: hidden; }

div.product div.images .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
  margin: .7rem 0 0;
  padding: 0;
}

div.product div.images .flex-control-thumbs li { width: auto; }

div.product div.images .flex-control-thumbs img {
  border-radius: 12px;
  border: 2px solid transparent;
  opacity: .72;
  transition: opacity .25s, border-color .25s;
}

div.product div.images .flex-control-thumbs img:hover,
div.product div.images .flex-control-thumbs img.flex-active {
  opacity: 1;
  border-color: rgba(200, 138, 30, .75);
}

.ps__discount {
  position: absolute;
  inset-block-start: .9rem;
  inset-inline-start: .9rem;
  z-index: 3;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: var(--orange, #c9481e);
  color: #fff;
  font-family: var(--num, inherit);
  font-size: .76rem;
  font-weight: 700;
}

/* summary column */
.ps__summary {
  position: sticky;
  inset-block-start: 1.4rem;
  padding: clamp(1rem, 2.4vw, 1.6rem) clamp(1rem, 2.4vw, 1.8rem) clamp(1.2rem, 2.6vw, 1.8rem);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf8 0%, #fbf4e8 100%);
  border: 1px solid rgba(18, 59, 37, .08);
  box-shadow: 0 30px 50px -44px rgba(60, 43, 20, .55);
}

.ps__eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-block-end: .5rem;
  font-size: .75rem;
  font-weight: 700;
}

.ps__eyebrow-cat {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dp, #98670f);
}

.ps__stock {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: rgba(74, 90, 58, .1);
  color: var(--olive, #4a5a3a);
  font-weight: 600;
}

.ps__stock.is-in::before,
.ps__stock.is-out::before {
  content: "";
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: currentColor;
}

.ps__stock.is-out { background: rgba(171, 43, 31, .1); color: var(--danger, #ab2b1f); }

div.product .product_title {
  font-family: var(--head, "Noto Kufi Arabic", Tahoma, sans-serif);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  color: var(--forest-3, #123325);
  margin: 0 0 .6rem;
}

.ps__rating {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-block-end: .6rem;
  font-size: .82rem;
  color: var(--muted, #6b5b4a);
}

div.product p.price,
div.product span.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem;
  margin-block: .2rem .9rem;
  font-family: var(--num, inherit);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--gold-dp, #98670f);
}

div.product p.price del,
div.product span.price del {
  order: 2;
  opacity: .45;
  font-size: .68em;
  font-weight: 500;
  color: var(--muted, #6b5b4a);
}

div.product p.price ins { text-decoration: none; }

.woocommerce-product-details__short-description {
  font-size: .95rem;
  line-height: 1.9;
  color: var(--muted, #6b5b4a);
  margin-block-end: .4rem;
}

/* variation form */
div.product form.cart {
  margin-block: 1rem;
  gap: .7rem;
}

div.product .variations { margin-block-end: .6rem; }

div.product .variations th,
div.product .variations td { display: block; padding: 0; text-align: start; }

div.product .variations th { margin-block-end: .45rem; }

div.product .variations th label,
div.product .variations th .label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--forest-3, #123325);
  margin: 0;
}

.ps__variants {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-block-end: .9rem;
}

.ps__variant {
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 59, 37, .2);
  background: #fff;
  color: var(--forest, #17452f);
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}

.ps__variant:hover { border-color: var(--gold, #c88a1e); transform: translateY(-1px); }

.ps__variant[aria-pressed="true"] {
  background: var(--forest, #17452f);
  border-color: var(--forest, #17452f);
  color: #f7f0e2;
}

.ps__variant[disabled] { opacity: .4; cursor: not-allowed; }

/* The native select stays in the DOM for WooCommerce's variation script. */
select.ps__variant-native {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.woocommerce-variation-price { margin-block: .2rem .8rem; }

.woocommerce-variation-price .price {
  font-family: var(--num, inherit);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-dp, #98670f);
}

.woocommerce-variation-availability p.stock {
  display: inline-flex;
  margin: 0 0 .6rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(74, 90, 58, .1);
  color: var(--olive, #4a5a3a);
  font-size: .8rem;
}

.woocommerce-variation-availability p.stock.out-of-stock {
  background: rgba(171, 43, 31, .1);
  color: var(--danger, #ab2b1f);
}

/* quantity + button */
div.product form.cart .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(18, 59, 37, .2);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

div.product form.cart .quantity .ps-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.9rem;
  border: 0;
  background: transparent;
  color: var(--forest, #17452f);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}

div.product form.cart .quantity .ps-qty-btn:hover { background: rgba(200, 138, 30, .16); }

div.product form.cart .quantity input.qty {
  width: 3.4rem;
  height: 2.9rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: var(--forest-3, #123325);
  -moz-appearance: textfield;
}

div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
div.product form.cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

div.product form.cart button.button,
div.product form.cart .single_add_to_cart_button {
  flex: 1 1 auto;
  min-height: 2.9rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  background: var(--gold, #c88a1e);
  color: #1f1608;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 0;
  transition: background .3s, transform .3s var(--ease, ease), box-shadow .3s;
  box-shadow: 0 16px 26px -18px rgba(200, 138, 30, .9);
}

div.product form.cart button.button:hover,
div.product form.cart .single_add_to_cart_button:hover {
  background: var(--gold-dp, #98670f);
  color: #fffdf6;
  transform: translateY(-1px);
}

div.product form.cart .single_add_to_cart_button.disabled,
div.product form.cart .single_add_to_cart_button:disabled { opacity: .55; transform: none; }

/* assurances */
.ps__assure {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin: 1.1rem 0 .4rem;
  padding: 0;
  list-style: none;
}

.ps__assure-item {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  padding: .7rem .75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(18, 59, 37, .08);
}

.ps__assure-icon {
  flex: 0 0 auto;
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(200, 138, 30, .14);
  color: var(--gold-dp, #98670f);
}

.ps__assure-icon svg { width: 1.15rem; height: 1.15rem; }

.ps__assure-copy { display: flex; flex-direction: column; gap: .1rem; font-size: .76rem; line-height: 1.55; }
.ps__assure-copy strong { font-size: .82rem; color: var(--forest-3, #123325); }
.ps__assure-copy span { color: var(--muted, #6b5b4a); }

/* product meta */
div.product .product_meta {
  margin-block-start: .9rem;
  padding-block-start: .8rem;
  border-block-start: 1px solid rgba(18, 59, 37, .1);
  font-size: .78rem;
  color: var(--muted, #6b5b4a);
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.2rem;
}

div.product .product_meta a { color: var(--forest, #17452f); font-weight: 600; }

/* ---------- tabs ---------- */
/* These selectors include div.product on purpose: the older theme sheet ships
   higher-specificity tab rules and this file must win without !important. */
.cooprtim-shop--single div.product .woocommerce-tabs {
  margin-block-start: clamp(2rem, 5vw, 3.4rem);
  padding: clamp(1.1rem, 3vw, 2rem);
  border-radius: 22px;
  background: #fffdf8;
  border: 1px solid rgba(18, 59, 37, .08);
}

.cooprtim-shop--single div.product .woocommerce-tabs .panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.cooprtim-shop--single div.product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.4rem;
  padding: 0 0 .9rem;
  list-style: none;
  border-block-end: 1px solid rgba(18, 59, 37, .1);
}

.cooprtim-shop--single div.product .woocommerce-tabs ul.tabs::before,
.cooprtim-shop--single div.product .woocommerce-tabs ul.tabs::after { display: none; }

.cooprtim-shop--single div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
}

.cooprtim-shop--single div.product .woocommerce-tabs ul.tabs li::before,
.cooprtim-shop--single div.product .woocommerce-tabs ul.tabs li::after { display: none; }

.cooprtim-shop--single div.product .woocommerce-tabs ul.tabs li a {
  display: inline-flex;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: rgba(18, 59, 37, .06);
  color: var(--forest, #17452f);
  font-weight: 700;
  font-size: .86rem;
  transition: background .25s, color .25s;
}

.cooprtim-shop--single div.product .woocommerce-tabs ul.tabs li.active a {
  background: var(--forest, #17452f);
  color: #f7f0e2;
}

.cooprtim-shop--single div.product .woocommerce-tabs .panel {
  margin: 0;
  font-size: .95rem;
  line-height: 1.9;
  color: var(--muted, #6b5b4a);
}

.cooprtim-shop--single div.product .woocommerce-tabs .panel h2:first-child { display: none; }

.cooprtim-shop--single table.shop_attributes th { width: 34%; font-weight: 700; }
.cooprtim-shop--single table.shop_attributes td,
.cooprtim-shop--single table.shop_attributes th { border-color: rgba(18, 59, 37, .1); padding: .55rem .7rem; }

/* Review form: keep it usable without restyling WooCommerce's controls. */
.cooprtim-shop--single .comment-form input[type="text"],
.cooprtim-shop--single .comment-form input[type="email"],
.cooprtim-shop--single .comment-form input[type="url"],
.cooprtim-shop--single .comment-form textarea {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid rgba(18, 59, 37, .18);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: .9rem;
  color: var(--forest-3, #123325);
}

.cooprtim-shop--single .comment-form textarea { min-height: 7rem; resize: vertical; }

.cooprtim-shop--single .comment-form .form-submit input {
  padding: .7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--forest, #17452f);
  color: #f7f0e2;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- related / upsells ---------- */
.cooprtim-shop--single .related.products,
.cooprtim-shop--single .upsells.products { margin-block-start: clamp(2rem, 4vw, 3rem); }

.related.products > h2,
.upsells.products > h2 {
  font-family: var(--head, "Noto Kufi Arabic", Tahoma, sans-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  margin-block: 0 1.1rem;
  color: var(--forest-3, #123325);
}

/* ---------- mobile sticky purchase bar ---------- */
.ps-sticky {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .7rem clamp(1rem, 4vw, 1.6rem) calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 253, 247, .97);
  backdrop-filter: blur(14px) saturate(150%);
  border-block-start: 1px solid rgba(18, 59, 37, .12);
  box-shadow: 0 -18px 34px -26px rgba(60, 43, 20, .55);
  transform: translateY(110%);
  transition: transform .35s var(--ease, ease);
}

.ps-sticky[hidden] { display: none; }

.ps-sticky.is-visible { transform: none; }

.ps-sticky__info { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }

.ps-sticky__name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--forest-3, #123325);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 52vw;
}

.ps-sticky__price {
  font-family: var(--num, inherit);
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold-dp, #98670f);
}

.ps-sticky__button {
  flex: 0 0 auto;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  border: 0;
  background: var(--gold, #c88a1e);
  color: #1f1608;
  font: inherit;
  font-weight: 800;
  font-size: .88rem;
  cursor: pointer;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ps__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; }
  .ps__summary { position: static; }
}

@media (max-width: 900px) {
  .ps__grid { grid-template-columns: minmax(0, 1fr); }
  .ps-sticky { display: flex; }
  .ps__assure { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .shop-hero { border-radius: 18px; padding: 1.1rem 1rem 1rem; }
  .shop-chips__list { gap: .4rem; }
  .shop-chips__chip { padding: .45rem .8rem; font-size: .8rem; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .cooprtim-shop .shop-toolbar .woocommerce-ordering select { width: 100%; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .woocommerce ul.products li.product.pcard { padding: .55rem .55rem .75rem; border-radius: 16px; }
  .woocommerce ul.products li.product.pcard .woocommerce-loop-product__title {
    font-size: .84rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .woocommerce ul.products li.product.pcard .button {
    font-size: .76rem;
    line-height: 1.2;
    padding: .6rem .35rem;
    white-space: normal;
    text-align: center;
  }
  .woocommerce ul.products li.product.pcard .price {
    font-size: .9rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    line-height: 1.3;
  }
  .pcard__body { padding-block: .6rem .45rem; gap: .2rem; }
  div.product form.cart { flex-wrap: wrap; }
  div.product form.cart .quantity { flex: 0 0 auto; margin-inline: auto; justify-content: center; }
  div.product form.cart button.button { flex: 1 1 100%; }
  .cooprtim-shop--single .woocommerce-tabs { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .woocommerce ul.products li.product.pcard { animation: none; }
  .woocommerce ul.products li.product.pcard,
  .pcard__media img,
  .ps-sticky { transition: none !important; }
  .woocommerce ul.products li.product.pcard:hover { transform: none; }
  .woocommerce ul.products li.product.pcard:hover .pcard__media img { transform: none; }
}

/* ---------- short archive introduction + editorial below the grid ---------- */
.shop-hero__lede {
  max-width: 64ch;
  margin: .35rem 0 .2rem;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted, #6b5b4a);
}

.shop-editorial {
  max-width: 78ch;
  margin-block: clamp(2rem, 4vw, 3rem) 0;
  padding-block-start: clamp(1.2rem, 3vw, 2rem);
  border-block-start: 1px solid rgba(18, 59, 37, .1);
}

.shop-editorial__title {
  margin: 0 0 .7rem;
  font-family: var(--head, "Noto Kufi Arabic", Tahoma, sans-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--forest-3, #123325);
}

.shop-editorial .term-description {
  font-size: .95rem;
  line-height: 1.9;
  color: var(--muted, #6b5b4a);
}

.shop-editorial .term-description > :first-child { margin-block-start: 0; }
.shop-editorial .term-description a { color: var(--forest, #17452f); text-decoration: underline; }

/* ---------- PACK contents: one clean line per item, no bullets ---------- */
.pack-contents {
  display: flex;
  flex-direction: column;
  gap: .32rem;
  margin-block: .2rem .7rem;
}

.pack-contents__line {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--forest-3, #123325);
}
