/* Dr Penguin — editorial product cards and product page, option 2 */

/* Product page: tidy hierarchy, cream gallery and price panel */
#product-id > div:first-child {
  display: block !important;
  padding: 10px 0 0 !important;
}
#product-id > div:first-child > div {
  box-sizing: border-box !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 25px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  direction: rtl !important;
  color: #806e61 !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
}
#product-id > div:first-child a {
  color: #806e61 !important;
  text-decoration: none !important;
}
#product-id > div:first-child a:hover { color: #4b2516 !important; }
#product-id .p_details_container .dp-drawer-home-link,
#product-id .p_details_container .relative.flex.flex-col > a:first-child {
  display: none !important;
}
#product-id .p_details_container { text-align: right !important; }
#product-id .product_name {
  text-align: right !important;
  font-size: 28px !important;
  line-height: 1.4 !important;
  letter-spacing: -.25px !important;
}
#product-id .p_details_container .relative.flex.flex-col > p {
  text-align: right !important;
  color: #76675d !important;
  line-height: 1.9 !important;
}
#product-id .p_details_container .relative.flex.flex-col > div.flex.items-center.gap-7 {
  box-sizing: border-box !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 10px 0 18px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: #f7f2ed !important;
}
#product-id div.sphinx_product_active_img {
  background: #f7f2ed !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}
#product-id div.sphinx_product_images_img {
  border: 1px solid #e3d8cf !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
#product-id .add_to_cart_btn,
#product-id .checkout_btn,
#product-id .dp-product-contact {
  box-sizing: border-box !important;
  min-height: 52px !important;
  border-radius: 11px !important;
  font-weight: 800 !important;
  transition: background-color .18s, border-color .18s, box-shadow .18s, transform .18s !important;
}
#product-id .add_to_cart_btn {
  color: #fff !important;
  background: #4b2516 !important;
  border: 1px solid #4b2516 !important;
  box-shadow: 0 4px 12px #4b25161c !important;
}
#product-id .add_to_cart_btn:hover {
  background: #603622 !important;
  border-color: #603622 !important;
  transform: translateY(-1px);
}
#product-id .checkout_btn {
  color: #4b2516 !important;
  background: #fffdfb !important;
  border: 1.5px solid #b28b75 !important;
  box-shadow: none !important;
}
#product-id .checkout_btn:hover {
  background: #f7f2ed !important;
  border-color: #8e6953 !important;
  transform: translateY(-1px);
}
#product-id .dp-product-contact {
  color: #17683c !important;
  background: #f0f8f2 !important;
  border: 1px solid #b7d9c2 !important;
}
#product-id .dp-product-contact:hover {
  background: #e5f3e9 !important;
  border-color: #79b58e !important;
}

/* Product cards: light border, warm image field and clear English titles */
.dp-editorial-card {
  box-sizing: border-box !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  overflow: visible !important;
  padding-bottom: 10px !important;
  transition: border-color .18s, background-color .18s, box-shadow .18s !important;
}
.dp-editorial-card:hover {
  border-color: #e8ddd4 !important;
  background: #fffdfb !important;
  box-shadow: 0 8px 22px #4b25160d !important;
}
.dp-editorial-card > div:first-child { overflow: visible !important; }
.dp-editorial-card > div:first-child > div:has(> img) {
  box-sizing: border-box !important;
  padding: 10px !important;
  border-radius: 16px !important;
  background: #f6f1eb !important;
  overflow: hidden !important;
}
.dp-editorial-card > div:first-child > div > img {
  object-fit: contain !important;
  object-position: center !important;
}
.dp-editorial-card > div:nth-child(2) {
  box-sizing: border-box !important;
  padding-inline: 5px !important;
  direction: rtl !important;
  text-align: right !important;
  cursor: default !important;
}
.dp-editorial-card > div:nth-child(2) > div:first-child {
  margin-top: 8px !important;
  color: #806e61 !important;
  text-align: right !important;
}
.dp-editorial-card > div:nth-child(2) > h3 {
  box-sizing: border-box !important;
  height: 2.9em !important;
  min-height: 2.9em !important;
  max-height: 2.9em !important;
  margin: 7px 0 0 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-align: right !important;
}
.dp-editorial-card > div:nth-child(2) > div:last-of-type {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  direction: rtl !important;
  gap: 9px !important;
  margin-top: 9px !important;
  font-size: 17px !important;
}
.dp-editorial-card .dp-card-actions {
  top: 8px !important;
  right: 8px !important;
  bottom: auto !important;
  left: auto !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
.dp-editorial-card .dp-card-actions button:not(.dp-card-original-add) {
  box-sizing: border-box !important;
  width: 34px !important;
  height: 34px !important;
  padding: 7px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #e3d8cf !important;
  border-radius: 50% !important;
  background: #fffdfb !important;
  color: #4b2516 !important;
}
.dp-editorial-card .dp-card-original-add { display: none !important; }
.dp-editorial-card-add {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 41px !important;
  margin-top: 11px !important;
  padding: 8px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 1px solid #b28b75 !important;
  border-radius: 10px !important;
  background: #fffdfb !important;
  color: #4b2516 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  cursor: pointer !important;
  transition: background-color .18s, border-color .18s, transform .18s !important;
}
.dp-editorial-card-add:hover {
  background: #f3ebe4 !important;
  border-color: #8e6953 !important;
  transform: translateY(-1px);
}
.dp-editorial-card-add svg { width: 18px !important; height: 18px !important; }
.dp-editorial-card-add:focus-visible { outline: 3px solid #b28b75 !important; outline-offset: 2px !important; }
.dp-contact-tools.dp-overlaps-products { visibility: hidden !important; pointer-events: none !important; }

@media (max-width: 767px) {
  #product-id > div:first-child > div { padding: 0 16px !important; font-size: 11px !important; }
  #product-id > div:first-child a { font-size: 11px !important; }
  #product-id .product_name { font-size: 23px !important; }
  #product-id .p_details_container .relative.flex.flex-col > div.flex.items-center.gap-7 {
    width: 100% !important; justify-content: space-between !important; padding: 9px 12px !important;
  }
  #product-id div.sphinx_product_active_img,
  #product-id img.sphinx_product_active_img { height: 370px !important; max-height: 370px !important; }
  #product-id .add_to_cart_btn, #product-id .checkout_btn, #product-id .dp-product-contact {
    min-height: 48px !important; font-size: 14px !important;
  }
  #product-id .p_details_container .relative.flex.flex-col > p { font-size: 13px !important; line-height: 1.8 !important; }
  .dp-editorial-card { padding-bottom: 8px !important; }
  .dp-editorial-card > div:first-child > div:has(> img) { padding: 8px !important; border-radius: 14px !important; }
  .dp-editorial-card > div:nth-child(2) { padding-inline: 4px !important; }
  .dp-editorial-card > div:nth-child(2) > h3 { font-size: 12px !important; height: 2.9em !important; min-height: 2.9em !important; max-height: 2.9em !important; }
  .dp-editorial-card > div:nth-child(2) > div:last-of-type { gap: 6px !important; margin-top: 7px !important; font-size: 14px !important; }
  .dp-editorial-card-add { min-height: 37px !important; margin-top: 8px !important; padding: 7px 5px !important; font-size: 11px !important; }
  .dp-editorial-card-add svg { width: 16px !important; height: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  #product-id .add_to_cart_btn, #product-id .checkout_btn, #product-id .dp-product-contact,
  .dp-editorial-card, .dp-editorial-card-add { transition: none !important; }
}
</style>
