/* Dr Penguin storefront polish — warm brown, cream and taupe identity. */
:root {
  --dp-polish-primary: #4b2516;
  --dp-polish-ink: #30231d;
  --dp-polish-cream: #f4eee8;
  --dp-polish-border: #dfd1c6;
  --dp-polish-taupe: #b28b75;
}

/* Make sale labels feel part of the warm palette while keeping white text clear. */
.dp-editorial-card > div:first-child > span.absolute.top-3.left-3,
.dp-editorial-card > div:first-child > span[class*="absolute"][class*="top-3"][class*="left-3"] {
  background: var(--dp-polish-primary) !important;
  border: 1px solid var(--dp-polish-primary) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(48, 35, 29, .16) !important;
}

/* The product name is already the page heading; remove its repeated subtitle. */
#product-id .dp-product-repeated-subtitle {
  display: none !important;
}

#product-id .product_name {
  margin-bottom: 12px !important;
}

/* Keep the primary purchase action strong and the WhatsApp action secondary. */
#product-id .checkout_btn,
#product-id .form_checkout_btn,
body:has(#checkout-form) #checkout-form .form_checkout_btn {
  box-sizing: border-box !important;
  min-height: 52px !important;
  border: 1px solid var(--dp-polish-primary) !important;
  border-radius: 12px !important;
  background: var(--dp-polish-primary) !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 5px 14px rgba(75, 37, 22, .15) !important;
}

#product-id .checkout_btn:hover,
#product-id .form_checkout_btn:hover,
body:has(#checkout-form) #checkout-form .form_checkout_btn:hover {
  background: #3c1c11 !important;
  border-color: #3c1c11 !important;
}

#product-id .dp-product-contact {
  min-height: 48px !important;
  border: 1px solid #d8c6b8 !important;
  border-radius: 12px !important;
  color: var(--dp-polish-primary) !important;
  font-weight: 800 !important;
}

/* Calm, readable empty-cart state in both the drawer and the full checkout route. */
.dp-empty-cart-state {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: center !important;
  gap: 8px !important;
  padding-inline: 8px !important;
  text-align: center !important;
}

.dp-empty-cart-state h1 {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  color: var(--dp-polish-ink) !important;
  font-size: 26px !important;
  line-height: 1.4 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.dp-empty-cart-state p {
  max-width: 300px !important;
  margin: 0 !important;
  color: #66564d !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  text-align: center !important;
  white-space: normal !important;
}

[role="dialog"] .mt-10.h-96:has(.dp-empty-cart-state) {
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 300px !important;
  gap: 18px !important;
  padding: 24px 8px !important;
}

body:not(:has([role="dialog"])) .mt-20:has(.dp-empty-cart-state) {
  height: auto !important;
  min-height: 320px !important;
  padding: 24px 16px !important;
}

.dp-cart-empty-cta,
.dp-thanks-whatsapp {
  box-sizing: border-box !important;
  display: inline-flex !important;
  min-height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 22px !important;
  border: 1px solid var(--dp-polish-primary) !important;
  border-radius: 12px !important;
  background: var(--dp-polish-primary) !important;
  color: #fff !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 5px 14px rgba(75, 37, 22, .15) !important;
}

.dp-cart-empty-cta:hover,
.dp-thanks-whatsapp:hover {
  background: #3c1c11 !important;
  color: #fff !important;
}

/* The checkout already uses the approved palette; tighten its shared surfaces. */
body:has(#checkout-form) #checkout-order-summary {
  border: 1px solid var(--dp-polish-border) !important;
  border-radius: 18px !important;
  background: #f7f2ed !important;
}

body:has(#checkout-form) #checkout-form {
  border: 1px solid var(--dp-polish-border) !important;
  border-radius: 20px !important;
  background: #fffdfb !important;
  box-shadow: 0 8px 24px rgba(48, 35, 29, .06) !important;
}

/* A compact confirmation card and clear support action on the thank-you page. */
.dp-thankyou-panel {
  box-sizing: border-box !important;
  width: min(calc(100% - 24px), 760px) !important;
  margin: 24px auto !important;
  padding: 28px clamp(18px, 4vw, 42px) !important;
  border: 1px solid var(--dp-polish-border) !important;
  border-radius: 22px !important;
  background: #fffdfb !important;
  color: var(--dp-polish-ink) !important;
  text-align: center !important;
  box-shadow: 0 10px 28px rgba(48, 35, 29, .07) !important;
}

.dp-thankyou-check {
  display: inline-flex !important;
  width: 52px !important;
  height: 52px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 12px !important;
  border: 1px solid #cdb6a6 !important;
  border-radius: 50% !important;
  background: var(--dp-polish-cream) !important;
  color: var(--dp-polish-primary) !important;
  font-size: 25px !important;
  font-weight: 800 !important;
}

.dp-thankyou-panel h1,
.dp-thankyou-panel h2 {
  color: var(--dp-polish-primary) !important;
  line-height: 1.5 !important;
}

.dp-thankyou-panel p,
.dp-thankyou-panel li {
  color: #66564d !important;
  font-size: 15px !important;
  line-height: 1.95 !important;
}

@media (max-width: 767px) {
  .dp-empty-cart-state h1 { font-size: 24px !important; }
  [role="dialog"] .mt-10.h-96:has(.dp-empty-cart-state) { min-height: 280px !important; }
  .dp-cart-empty-cta { width: min(100%, 220px) !important; }
  .dp-thankyou-panel { margin: 16px auto !important; padding: 22px 16px !important; border-radius: 18px !important; }
  .dp-thankyou-panel p,
  .dp-thankyou-panel li { font-size: 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .dp-cart-empty-cta,
  .dp-thanks-whatsapp { transition: none !important; }
}
