/* Cookbook Shelf product page — compact commerce layout adapted from Padel Pro. */
html body.cooking[data-page="product"], html body.esoterica[data-page="product"]{
  --pp-ink: #281b12;
  --pp-copy: #665b52;
  --pp-muted: #8b8178;
  --pp-line: #e2d5c8;
  --pp-soft: #f7f3ed;
  --pp-orange: #c86422;
  --pp-orange-dark: #a84b17;
  --pp-green: #356452;
  background: #fff;
}

html body.cooking[data-page="product"] .pd-breadcrumbs, html body.esoterica[data-page="product"] .pd-breadcrumbs{
  background: #f7f7f7;
  border-block: 1px solid #e7e5e4;
}

html body.cooking[data-page="product"] .pd-section, html body.esoterica[data-page="product"] .pd-section{
  padding: 38px 0 54px !important;
  background: #fff !important;
  background-image: none !important;
}

html body.cooking[data-page="product"] .pd-section > .container, html body.esoterica[data-page="product"] .pd-section > .container{
  width: min(100% - 48px, 1690px);
  max-width: 1690px;
  margin-inline: auto;
}

html body.cooking[data-page="product"] .pd-grid, html body.esoterica[data-page="product"] .pd-grid{
  display: grid !important;
  grid-template-columns: minmax(350px, 520px) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: clamp(42px, 4.5vw, 76px) !important;
}

html body.cooking[data-page="product"] .pd-gallery-wrap, html body.esoterica[data-page="product"] .pd-gallery-wrap{
  position: sticky;
  top: 18px;
  min-width: 0;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body.cooking[data-page="product"] .pd-main-wrap, html body.esoterica[data-page="product"] .pd-main-wrap{
  display: flex;
  justify-content: center;
  padding: 0 !important;
  background: #f6f2ec;
  border: 1px solid var(--pp-line);
  border-radius: 14px;
  overflow: hidden;
}

html body.cooking[data-page="product"] .pd-cover-box, html body.esoterica[data-page="product"] .pd-cover-box{
  width: 100%;
  max-width: 520px;
  min-height: 620px;
  padding: 22px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fbfaf8 0%, #eee5d9 100%) !important;
}

html body.cooking[data-page="product"] .pd-main-img, html body.esoterica[data-page="product"] .pd-main-img{
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: min(68vh, 720px) !important;
  max-height: 720px !important;
  object-fit: contain !important;
  border: 1px solid rgba(75, 54, 39, .22);
  border-radius: 10px !important;
  box-shadow: 0 16px 34px rgba(61, 39, 23, .18) !important;
}

html body.cooking[data-page="product"] .pd-review-under-cover, html body.esoterica[data-page="product"] .pd-review-under-cover{
  margin-top: 12px !important;
  padding: 13px 15px !important;
  text-align: left !important;
  border: 1px solid var(--pp-line) !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

html body.cooking[data-page="product"] .pd-review-under-cover button, html body.esoterica[data-page="product"] .pd-review-under-cover button{
  color: var(--pp-orange-dark) !important;
  border-color: #dcc7b3 !important;
  border-radius: 9px !important;
}

html body.cooking[data-page="product"] .pd-info, html body.esoterica[data-page="product"] .pd-info{
  position: relative;
  min-width: 0;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body.cooking[data-page="product"] .pd-top-badges, html body.esoterica[data-page="product"] .pd-top-badges{
  max-width: calc(100% - 180px);
  margin: 0 0 13px !important;
}

html body.cooking[data-page="product"] .pd-genre-badge, html body.esoterica[data-page="product"] .pd-genre-badge{
  color: var(--pp-orange-dark) !important;
  background: #fff5ec !important;
  border: 1px solid #edcaaa;
  border-radius: 999px !important;
  padding: 6px 12px !important;
}

html body.cooking[data-page="product"] .pd-title, html body.esoterica[data-page="product"] .pd-title{
  max-width: calc(100% - 180px);
  margin: 0 0 8px !important;
  color: var(--pp-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(31px, 2.45vw, 43px) !important;
  font-weight: 700 !important;
  line-height: 1.04 !important;
  letter-spacing: -.035em !important;
  text-wrap: balance;
}

/* theme-cooking carries a later, high-specificity display-title rule. Product pages
   intentionally opt out: commerce needs the compact hierarchy used by Padel Pro. */
html body.cooking[data-page="product"] .pd-section .pd-grid .pd-info h1.pd-title, html body.esoterica[data-page="product"] .pd-section .pd-grid .pd-info h1.pd-title{
  max-width: calc(100% - 166px) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(28px, 2vw, 34px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.025em !important;
}

html body.cooking[data-page="product"] .pd-author-hero, html body.esoterica[data-page="product"] .pd-author-hero{
  margin: 2px 0 3px !important;
  color: var(--pp-orange-dark) !important;
  font-size: 15px !important;
}

html body.cooking[data-page="product"] .pd-escore, html body.esoterica[data-page="product"] .pd-escore{
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 158px;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  text-decoration: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.cooking[data-page="product"] .pd-escore-row, html body.esoterica[data-page="product"] .pd-escore-row{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
}

html body.cooking[data-page="product"] .pd-escore-row img, html body.esoterica[data-page="product"] .pd-escore-row img{
  width: 25px !important;
  height: 48px !important;
  object-fit: contain;
}

html body.cooking[data-page="product"] .pd-escore-num, html body.esoterica[data-page="product"] .pd-escore-num{
  color: var(--pp-orange) !important;
  font-family: Georgia, serif !important;
  font-size: 47px !important;
  line-height: 1 !important;
}

html body.cooking[data-page="product"] .pd-escore-label, html body.esoterica[data-page="product"] .pd-escore-label,
html body.cooking[data-page="product"] .pd-escore-band, html body.esoterica[data-page="product"] .pd-escore-band{
  display: block;
  color: var(--pp-orange-dark) !important;
  font-size: 10px !important;
  line-height: 1.35;
  letter-spacing: .1em;
  text-transform: uppercase;
}

html body.cooking[data-page="product"] .pd-escore-band, html body.esoterica[data-page="product"] .pd-escore-band{
  color: var(--pp-muted) !important;
  letter-spacing: 0;
  text-transform: none;
}

html body.cooking[data-page="product"] .pd-rating-row, html body.esoterica[data-page="product"] .pd-rating-row{
  max-width: calc(100% - 180px);
  margin: 10px 0 0 !important;
  min-height: 21px;
}

html body.cooking[data-page="product"] .pd-price-block, html body.esoterica[data-page="product"] .pd-price-block{
  margin: 20px 0 16px !important;
  padding-top: 17px;
  border-top: 1px solid var(--pp-line);
}

html body.cooking[data-page="product"] .pd-price, html body.esoterica[data-page="product"] .pd-price{
  color: var(--pp-orange) !important;
  font-size: clamp(36px, 3.1vw, 48px) !important;
  line-height: 1 !important;
}

html body.cooking[data-page="product"] .pd-fulfilment, html body.esoterica[data-page="product"] .pd-fulfilment{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 15px;
}

html body.cooking[data-page="product"] .pd-fulfilment-row, html body.esoterica[data-page="product"] .pd-fulfilment-row{
  min-height: 78px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 15px;
  background: #f3f7f3;
  border: 1px solid #d5dfd7;
  border-radius: 10px;
  color: var(--pp-green);
}

html body.cooking[data-page="product"] .pd-fulfilment-dot, html body.esoterica[data-page="product"] .pd-fulfilment-dot{
  width: 11px;
  height: 11px;
  margin-top: 4px;
  flex: none;
  border: 3px solid #cfe5d8;
  border-radius: 50%;
  background: #2fa26f;
  box-sizing: content-box;
}
/* Availability as one line beside the price, not a card. Measured on the flagship
   (mirava.com.ua/book/vivat-pokyn-iakshcho-kokhayesh): a 999px pill, #F0FDF4 on a
   #86EFAC hairline, 13px/700 in #166534, 6px/11px of padding, an 8px #22C55E dot.
   Here it was a 78px-tall two-column card grid, which is why one shelf notice took
   as much of the buy area as the price and the cart button together. */
html body.esoterica[data-page="product"] .pd-fulfilment{
  display: flex !important;
  grid-template-columns: none !important;
  gap: 7px !important;
  margin: -4px 0 10px !important;
}
html body.esoterica[data-page="product"] .pd-fulfilment-row{
  min-height: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 6px 11px !important;
  background: #F0FDF4 !important;
  border: 1px solid #86EFAC !important;
  border-radius: 999px !important;
  color: #166534 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
html body.esoterica[data-page="product"] .pd-fulfilment-dot{
  width: 8px !important;
  height: 8px !important;
  margin: 0 !important;
  border: 0 !important;
  background: #22C55E !important;
}
/* The two lines the card had room for read as one sentence inside a pill. */
html body.esoterica[data-page="product"] .pd-fulfilment-row strong,
html body.esoterica[data-page="product"] .pd-fulfilment-row small{
  display: inline !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #166534 !important;
}
html body.esoterica[data-page="product"] .pd-fulfilment-row strong + small::before{
  content: " — ";
}

/* .pd-fulfilment is a flex row of pills; the qualifier is a full-width line beneath them. */
html body.esoterica[data-page="product"] .pd-fulfilment{
  flex-wrap: wrap !important;
}
html body.esoterica[data-page="product"] .pd-fulfilment-note{
  flex-basis: 100% !important;
  margin: 0 !important;
  padding: 0 2px !important;
  color: var(--pp-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}
/* An out-of-stock book states a different fact, so it must not borrow the in-stock green. */
html body.esoterica[data-page="product"] .pd-fulfilment.is-orderable .pd-fulfilment-row{
  background: #FFFBEB !important;
  border-color: #FCD34D !important;
  color: #92400E !important;
}
html body.esoterica[data-page="product"] .pd-fulfilment.is-orderable .pd-fulfilment-row strong,
html body.esoterica[data-page="product"] .pd-fulfilment.is-orderable .pd-fulfilment-row small{
  color: #92400E !important;
}
html body.esoterica[data-page="product"] .pd-fulfilment.is-orderable .pd-fulfilment-dot{
  background: #F59E0B !important;
}


html body.cooking[data-page="product"] .pd-fulfilment.is-orderable .pd-fulfilment-dot, html body.esoterica[data-page="product"] .pd-fulfilment.is-orderable .pd-fulfilment-dot{
  border-color: #f3d8b8;
  background: var(--pp-orange);
}

html body.cooking[data-page="product"] .pd-fulfilment-row > span:last-child, html body.esoterica[data-page="product"] .pd-fulfilment-row > span:last-child{
  display: grid;
  gap: 3px;
}

html body.cooking[data-page="product"] .pd-fulfilment-row strong, html body.esoterica[data-page="product"] .pd-fulfilment-row strong{
  color: #243a30;
  font-size: 14px;
  line-height: 1.25;
}

html body.cooking[data-page="product"] .pd-fulfilment-row small, html body.esoterica[data-page="product"] .pd-fulfilment-row small{
  color: #728078;
  font-size: 12px;
  line-height: 1.35;
}

html body.cooking[data-page="product"] .pd-actions, html body.esoterica[data-page="product"] .pd-actions{
  display: grid !important;
  grid-template-columns: 166px minmax(220px, 1fr) 58px !important;
  gap: 10px !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.cooking[data-page="product"] .pd-qty-wrap, html body.esoterica[data-page="product"] .pd-qty-wrap,
html body.cooking[data-page="product"] .pd-add-cart, html body.esoterica[data-page="product"] .pd-add-cart,
html body.cooking[data-page="product"] .pd-wishlist-btn, html body.esoterica[data-page="product"] .pd-wishlist-btn{
  min-height: 58px !important;
  border-radius: 10px !important;
}

html body.cooking[data-page="product"] .pd-add-cart, html body.esoterica[data-page="product"] .pd-add-cart{
  background: var(--pp-orange) !important;
  border-color: var(--pp-orange) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Fill the action column: fixed-width children left an empty fourth section.
   Keep one geometry at every breakpoint, overriding the older mobile widths. */
html body.cooking[data-page="product"] .pd-actions .pd-qty-wrap, html body.esoterica[data-page="product"] .pd-actions .pd-qty-wrap{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
  width: 100% !important;
  min-width: 0 !important;
  height: 58px !important;
  box-sizing: border-box;
  padding: 0;
  gap: 0;
}

html body.cooking[data-page="product"] .pd-actions .pd-qty-wrap > :is(.pd-qty-btn, .pd-qty-input), html body.esoterica[data-page="product"] .pd-actions .pd-qty-wrap > :is(.pd-qty-btn, .pd-qty-input){
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  text-align: center;
  font-size: 16px !important;
  line-height: normal;
}

html body.cooking[data-page="product"] .pd-actions .pd-qty-btn, html body.esoterica[data-page="product"] .pd-actions .pd-qty-btn{
  display: grid;
  place-items: center;
}

html body.cooking[data-page="product"] .pd-add-cart:hover, html body.esoterica[data-page="product"] .pd-add-cart:hover{
  background: var(--pp-orange-dark) !important;
}

html body.cooking[data-page="product"] .pd-buy-one-click, html body.esoterica[data-page="product"] .pd-buy-one-click{
  min-height: 50px;
  margin-top: 10px !important;
  color: var(--pp-orange-dark) !important;
  border-color: #d89a70 !important;
  border-radius: 10px !important;
}

html body.cooking[data-page="product"] .pd-catrow.pd-category-card, html body.esoterica[data-page="product"] .pd-catrow.pd-category-card{
  min-height: 132px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 210px;
  margin: 17px 0 12px !important;
  overflow: hidden;
  background: #fbf6ef !important;
  border: 1px solid var(--pp-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

html body.cooking[data-page="product"] .pd-category-card__copy, html body.esoterica[data-page="product"] .pd-category-card__copy{
  padding: 21px 25px !important;
  align-self: center;
}

html body.cooking[data-page="product"] .pd-category-card__eyebrow, html body.esoterica[data-page="product"] .pd-category-card__eyebrow{
  color: var(--pp-orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

html body.cooking[data-page="product"] .pd-category-card__title, html body.esoterica[data-page="product"] .pd-category-card__title{
  display: block;
  margin: 4px 0 5px;
  color: var(--pp-orange-dark);
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
}

html body.cooking[data-page="product"] .pd-category-card__text, html body.esoterica[data-page="product"] .pd-category-card__text{
  max-width: 650px;
  color: var(--pp-copy);
  font-size: 13px;
  line-height: 1.45;
}

html body.cooking[data-page="product"] .pd-category-card__link, html body.esoterica[data-page="product"] .pd-category-card__link{
  display: inline-block;
  margin-top: 8px;
  color: var(--pp-orange-dark);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

html body.cooking[data-page="product"] .pd-category-visual--standalone, html body.esoterica[data-page="product"] .pd-category-visual--standalone{
  position: relative;
  min-height: 132px;
  overflow: hidden;
}

html body.cooking[data-page="product"] .pd-category-visual--standalone > img, html body.esoterica[data-page="product"] .pd-category-visual--standalone > img{
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

html body.cooking[data-page="product"] .pd-category-visual--standalone .pd-category-visual__copy, html body.esoterica[data-page="product"] .pd-category-visual--standalone .pd-category-visual__copy{
  display: none !important;
}

html body.cooking[data-page="product"] .pd-category-visual--standalone .pd-category-visual__shade, html body.esoterica[data-page="product"] .pd-category-visual--standalone .pd-category-visual__shade{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(40, 27, 18, .08), rgba(40, 27, 18, .32));
}

@media (max-width: 980px) {
html body.cooking[data-page="product"] .pd-section > .container, html body.esoterica[data-page="product"] .pd-section > .container{ width: min(100% - 30px, 900px); }
html body.cooking[data-page="product"] .pd-grid, html body.esoterica[data-page="product"] .pd-grid{ grid-template-columns: minmax(280px, 40%) minmax(0, 1fr) !important; gap: 28px !important; }
html body.cooking[data-page="product"] .pd-cover-box, html body.esoterica[data-page="product"] .pd-cover-box{ min-height: 500px; padding: 16px !important; }
html body.cooking[data-page="product"] .pd-title, html body.esoterica[data-page="product"] .pd-title{ font-size: clamp(27px, 3.7vw, 36px) !important; }
html body.cooking[data-page="product"] .pd-section .pd-grid .pd-info h1.pd-title, html body.esoterica[data-page="product"] .pd-section .pd-grid .pd-info h1.pd-title{ font-size: clamp(27px, 3.1vw, 33px) !important; }
html body.cooking[data-page="product"] .pd-actions, html body.esoterica[data-page="product"] .pd-actions{ grid-template-columns: 132px minmax(170px, 1fr) 54px !important; }
html body.cooking[data-page="product"] .pd-fulfilment, html body.esoterica[data-page="product"] .pd-fulfilment{ grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
html body.cooking[data-page="product"] .pd-section, html body.esoterica[data-page="product"] .pd-section{ padding: 18px 0 34px !important; }
html body.cooking[data-page="product"] .pd-section > .container, html body.esoterica[data-page="product"] .pd-section > .container{ width: min(100% - 24px, 620px); }
html body.cooking[data-page="product"] .pd-grid, html body.esoterica[data-page="product"] .pd-grid{ grid-template-columns: 1fr !important; gap: 20px !important; }
html body.cooking[data-page="product"] .pd-gallery-wrap, html body.esoterica[data-page="product"] .pd-gallery-wrap{ position: static; }
html body.cooking[data-page="product"] .pd-main-wrap, html body.esoterica[data-page="product"] .pd-main-wrap{ border-radius: 14px; }
html body.cooking[data-page="product"] .pd-cover-box, html body.esoterica[data-page="product"] .pd-cover-box{ min-height: 0; padding: 16px !important; }
html body.cooking[data-page="product"] .pd-main-img, html body.esoterica[data-page="product"] .pd-main-img{ height: min(58vh, 520px) !important; }
html body.cooking[data-page="product"] .pd-review-under-cover, html body.esoterica[data-page="product"] .pd-review-under-cover{ display: none; }
html body.cooking[data-page="product"] .pd-info, html body.esoterica[data-page="product"] .pd-info{ padding: 18px !important; background: #fff !important; border: 1px solid var(--pp-line) !important; border-radius: 14px !important; }
html body.cooking[data-page="product"] .pd-top-badges, html body.esoterica[data-page="product"] .pd-top-badges,
html body.cooking[data-page="product"] .pd-title, html body.esoterica[data-page="product"] .pd-title,
html body.cooking[data-page="product"] .pd-rating-row, html body.esoterica[data-page="product"] .pd-rating-row{ max-width: none; }
html body.cooking[data-page="product"] .pd-title, html body.esoterica[data-page="product"] .pd-title{ font-size: clamp(28px, 9vw, 36px) !important; }
html body.cooking[data-page="product"] .pd-section .pd-grid .pd-info h1.pd-title, html body.esoterica[data-page="product"] .pd-section .pd-grid .pd-info h1.pd-title{ max-width: none !important; font-size: clamp(28px, 8vw, 35px) !important; }
html body.cooking[data-page="product"] .pd-escore, html body.esoterica[data-page="product"] .pd-escore{ position: static !important; width: auto; display: inline-grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; margin: 13px 0 0 !important; padding: 7px 11px !important; background: #fff8f2 !important; border: 1px solid #edcaaa !important; border-radius: 10px !important; text-align: left; }
html body.cooking[data-page="product"] .pd-escore-row, html body.esoterica[data-page="product"] .pd-escore-row{ grid-row: 1 / 3; height: 38px; }
html body.cooking[data-page="product"] .pd-escore-row img, html body.esoterica[data-page="product"] .pd-escore-row img{ width: 18px !important; height: 35px !important; }
html body.cooking[data-page="product"] .pd-escore-num, html body.esoterica[data-page="product"] .pd-escore-num{ font-size: 34px !important; }
html body.cooking[data-page="product"] .pd-actions, html body.esoterica[data-page="product"] .pd-actions{ grid-template-columns: 118px minmax(0, 1fr) !important; }
html body.cooking[data-page="product"] .pd-wishlist-btn, html body.esoterica[data-page="product"] .pd-wishlist-btn{ position: absolute; top: 14px; right: 14px; width: 46px !important; min-height: 46px !important; }
html body.cooking[data-page="product"] .pd-catrow.pd-category-card, html body.esoterica[data-page="product"] .pd-catrow.pd-category-card{ grid-template-columns: minmax(0, 1fr) 128px; min-height: 118px; }
html body.cooking[data-page="product"] .pd-category-card__copy, html body.esoterica[data-page="product"] .pd-category-card__copy{ padding: 17px !important; }
html body.cooking[data-page="product"] .pd-category-card__title, html body.esoterica[data-page="product"] .pd-category-card__title{ font-size: 22px; }
html body.cooking[data-page="product"] .pd-category-card__text, html body.esoterica[data-page="product"] .pd-category-card__text{ display: none; }
html body.cooking[data-page="product"] .pd-category-visual--standalone, html body.esoterica[data-page="product"] .pd-category-visual--standalone,
html body.cooking[data-page="product"] .pd-category-visual--standalone > img, html body.esoterica[data-page="product"] .pd-category-visual--standalone > img{ min-height: 118px; }
}

@media (max-width: 430px) {
html body.cooking[data-page="product"] .pd-section > .container, html body.esoterica[data-page="product"] .pd-section > .container{ width: min(100% - 16px, 414px); }
html body.cooking[data-page="product"] .pd-info, html body.esoterica[data-page="product"] .pd-info{ padding: 15px !important; }
html body.cooking[data-page="product"] .pd-title, html body.esoterica[data-page="product"] .pd-title{ font-size: 24px !important; }
html body.cooking[data-page="product"] .pd-section .pd-grid .pd-info h1.pd-title, html body.esoterica[data-page="product"] .pd-section .pd-grid .pd-info h1.pd-title{ font-size: 24px !important; line-height: 1.08 !important; }
html body.cooking[data-page="product"] .pd-actions, html body.esoterica[data-page="product"] .pd-actions{ grid-template-columns: 106px minmax(0, 1fr) !important; gap: 8px !important; }
html body.cooking[data-page="product"] .pd-catrow.pd-category-card, html body.esoterica[data-page="product"] .pd-catrow.pd-category-card{ grid-template-columns: 1fr; }
html body.cooking[data-page="product"] .pd-category-visual--standalone, html body.esoterica[data-page="product"] .pd-category-visual--standalone{ display: none; }
}

/* Esoterica follows the flagship's book-page proportions, not the 1690px canvas.
   Measured side by side on 2026-09-01: mirava renders .pd-grid at 380px/920px inside
   a 1380px container with a 32px gap and a 26px H1; this shop was rendering
   520px/1003px inside 1523px with a 34px H1 — the same markup stretched ~150px wider,
   which is what "everything fell apart" looks like. Every other page in this shop is
   already 1380px (see the author/publisher/compare containers), so the book page was
   also the one page wider than its own neighbours. */
html body.esoterica[data-page="product"] .pd-section > .container{
  width: min(100% - 48px, 1380px);
  max-width: 1380px;
}
html body.esoterica[data-page="product"] .pd-grid{
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr) !important;
  gap: 32px !important;
}
html body.esoterica[data-page="product"] .pd-title,
html body.esoterica[data-page="product"] h1{ font-size: 26px !important; }

/* Esoterica book-page typography = the flagship's, measured on
   mirava.com.ua/book/tantsi-z-kistkamy at 1695px on 2026-09-01:
     h1     26px / 700   (this shop rendered 33.9px / 850)
     price  32px / 800   (this shop rendered 48px / 850)
   The oversized pair is the sibling shop's display typography, which the base
   render brought along: `font-size: clamp(28px, 2vw, 34px) !important` on a
   selector as specific as any class-only override, so a class-level rule ties
   and loses on source order. These use element+class selectors to win the tie
   outright — verified in the browser, not assumed from the cascade. */
html body.esoterica[data-page="product"] section.pd-section div.container div.pd-grid div.pd-info h1.pd-title,
html body.esoterica[data-page="product"] section.pd-section div.container div.pd-grid div.pd-info .pd-title{
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
html body.esoterica[data-page="product"] section.pd-section div.container div.pd-grid div.pd-info .pd-price{
  font-size: 32px !important;
  font-weight: 800 !important;
}
@media (max-width: 768px){
  html body.esoterica[data-page="product"] section.pd-section div.container div.pd-grid div.pd-info h1.pd-title,
  html body.esoterica[data-page="product"] section.pd-section div.container div.pd-grid div.pd-info .pd-title{
    font-size: 20px !important;
  }
  html body.esoterica[data-page="product"] section.pd-section div.container div.pd-grid div.pd-info .pd-price{
    font-size: 26px !important;
  }
}

/* .pd-reading-details is a THIRD child of .pd-grid here; the flagship's grid has
   exactly two (gallery + info), because there the same block lives inside .pd-info.
   Measured on mirava.com.ua/book/pidlitky-tytany-reiven: one row, tracks 380px 920px,
   the description in the 920px column beside a sticky cover. Auto-placement instead
   dropped it into row 2 / column 1 — the cover column — so it rendered as a narrow
   ribbon with its inner cards overlapping, and once it spanned both tracks the sticky
   cover slid down over it (Chromium clamps a sticky grid item to the whole grid, not
   its own row). Pinning the cover across both rows reproduces the flagship: the
   description follows the buy buttons with no gap, thumbnails sit under the cover. */
html body.esoterica[data-page="product"] .pd-grid > .pd-gallery-wrap{
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
}
html body.esoterica[data-page="product"] .pd-grid > .pd-info{
  grid-column: 2 !important;
  grid-row: 1 !important;
}
html body.esoterica[data-page="product"] .pd-grid > .pd-reading-details{
  grid-column: 2 !important;
  grid-row: 2 !important;
  width: 100% !important;
}

@media (max-width: 720px) {
  html body.esoterica[data-page="product"] .pd-grid > .pd-gallery-wrap,
  html body.esoterica[data-page="product"] .pd-grid > .pd-info,
  html body.esoterica[data-page="product"] .pd-grid > .pd-reading-details{
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}

/* The cover is one image, not a framed exhibit. Measured on the flagship
   (mirava.com.ua/book/kazka-bahach-nenazhera): .pd-cover-box carries no padding,
   border, min-height or shadow, and .pd-main-img fills the full 380px column with a
   4px radius and a hairline. This shop had 22px of padding, a 1px frame, a 620px
   min-height and a hard 13px/16px offset shadow around a separately shadowed and
   rounded image — four stacked edges where the flagship draws one. */
html body.esoterica[data-page="product"] .pd-cover-box{
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
html body.esoterica[data-page="product"] .pd-main-img{
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  border: 1px solid #eee !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  /* The flagship's lift is a filter, not a box-shadow: drop-shadow follows the cover's own
     silhouette, so a book photographed on transparency does not get a rectangle behind it. */
  filter: drop-shadow(0 14px 32px rgba(28, 25, 23, .22))
          drop-shadow(0 4px 8px rgba(28, 25, 23, .12)) !important;
}

/* The heart carries an inline display:none and was revealed only under 768px, on the
   reasoning that the desktop heart beside "Add to cart" is enough. The flagship shows both:
   measured on mirava.com.ua/book/kazka-dyvna-sopilka, 40px at 12px from the cover's corner. */
html body.esoterica[data-page="product"] .pd-cover-wish{
  display: flex !important;
  top: 12px !important;
  right: 12px !important;
  width: 40px !important;
  height: 40px !important;
}
html body.esoterica[data-page="product"] .pd-main-wrap{
  border-radius: 12px !important;
}
