/* Global cart drawer. Loaded after WooCommerce and all theme styles. */
.pd-cart-panel.pd-cart-panel {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(460px, 100vw);
  height: 100%;
  max-width: 100%;
  background: #fff;
  box-shadow: -24px 0 70px rgba(37, 24, 29, .14);
  transform: translateX(102%);
  transition: transform .32s ease;
}

.pd-drawer.is-open .pd-cart-panel.pd-cart-panel { transform: translateX(0); }

.pd-cart-panel.pd-cart-panel .pd-cart-panel__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px 24px;
  border-bottom: 1px solid #eee9eb;
}

.pd-cart-panel.pd-cart-panel .pd-cart-panel__header h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.pd-cart-panel.pd-cart-panel .pd-cart-panel__body,
.pd-cart-panel.pd-cart-panel .widget_shopping_cart_content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.pd-cart-panel.pd-cart-panel ul.woocommerce-mini-cart.cart_list.product_list_widget {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 10px 24px 0;
  overflow-x: hidden;
  overflow-y: auto;
  list-style: none;
}

.pd-cart-panel.pd-cart-panel ul.woocommerce-mini-cart li.pd-mini-cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 112px;
  margin: 0;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid #eee9eb;
  background: transparent;
}

.pd-cart-panel.pd-cart-panel .pd-mini-cart-item__media {
  grid-column: 1;
  width: 76px;
  height: 82px;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #fff7fa;
}

.pd-cart-panel.pd-cart-panel .pd-mini-cart-item__media a {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.pd-cart-panel.pd-cart-panel .pd-mini-cart-item__media img,
.woocommerce .pd-cart-panel.pd-cart-panel .pd-mini-cart-item__media img,
.woocommerce-page .pd-cart-panel.pd-cart-panel .pd-mini-cart-item__media img {
  position: static;
  display: block;
  float: none;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
}

.pd-cart-panel.pd-cart-panel .pd-mini-cart-item__content {
  grid-column: 2;
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.pd-cart-panel.pd-cart-panel .pd-mini-cart-item__name {
  position: static;
  display: -webkit-box;
  width: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #171416;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pd-cart-panel.pd-cart-panel .pd-mini-cart-item__name:hover { color: #d94f82; }

.pd-cart-panel.pd-cart-panel .variation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 6px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #81777a;
  font-size: 11px;
  line-height: 1.35;
}

.pd-cart-panel.pd-cart-panel .variation dt,
.pd-cart-panel.pd-cart-panel .variation dd,
.pd-cart-panel.pd-cart-panel .variation p { margin: 0; padding: 0; }

.pd-cart-panel.pd-cart-panel .pd-mini-cart-item__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin: 0;
  color: #81777a;
  font-size: 12px;
  line-height: 1.4;
}

.pd-cart-panel.pd-cart-panel .pd-mini-cart-item__price {
  color: #4d4548;
  font-weight: 600;
}

.pd-cart-panel.pd-cart-panel a.remove.pd-mini-cart-item__remove,
.woocommerce .pd-cart-panel.pd-cart-panel a.remove.pd-mini-cart-item__remove {
  position: static;
  grid-column: 3;
  display: grid;
  align-self: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff2f6;
  color: #d94f82;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.pd-cart-panel.pd-cart-panel a.remove.pd-mini-cart-item__remove:hover,
.woocommerce .pd-cart-panel.pd-cart-panel a.remove.pd-mini-cart-item__remove:hover {
  background: #fbe3ec;
  color: #b83262;
  transform: rotate(6deg);
}

.pd-cart-panel.pd-cart-panel .pd-mini-cart-summary {
  flex: 0 0 auto;
  margin: 0;
  padding: 18px 24px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid #eee9eb;
  background: #fff;
  box-shadow: 0 -12px 30px rgba(55, 35, 43, .05);
}

.pd-cart-panel.pd-cart-panel .woocommerce-mini-cart__total.total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #171416;
  font-size: 15px;
}

.pd-cart-panel.pd-cart-panel .woocommerce-mini-cart__total strong { font-size: 14px; }
.pd-cart-panel.pd-cart-panel .woocommerce-mini-cart__total .amount { font-size: 17px; font-weight: 750; }

.pd-cart-panel.pd-cart-panel .woocommerce-mini-cart__buttons.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
}

.pd-cart-panel.pd-cart-panel .woocommerce-mini-cart__buttons.buttons a.button,
.woocommerce .pd-cart-panel.pd-cart-panel .woocommerce-mini-cart__buttons.buttons a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #171416;
  border-radius: 999px;
  background: #fff;
  color: #171416;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.pd-cart-panel.pd-cart-panel .woocommerce-mini-cart__buttons.buttons a.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(37, 24, 29, .09);
}

.pd-cart-panel.pd-cart-panel .woocommerce-mini-cart__buttons.buttons a.checkout {
  border-color: transparent;
  background: linear-gradient(135deg, #ef6799, #ef477f);
  color: #fff;
}

.pd-cart-panel.pd-cart-panel .pd-mini-cart-empty {
  display: grid;
  height: 100%;
  padding: 32px;
  place-items: center;
  align-content: center;
  gap: 13px;
  text-align: center;
}

@media (max-width: 767px) {
  .pd-cart-panel.pd-cart-panel { width: 100vw; }
  .pd-cart-panel.pd-cart-panel .pd-cart-panel__header { min-height: 68px; padding: 12px 16px; }
  .pd-cart-panel.pd-cart-panel .pd-cart-panel__header h2 { font-size: 21px; }
  .pd-cart-panel.pd-cart-panel ul.woocommerce-mini-cart.cart_list.product_list_widget { padding: 8px 16px 0; }
  .pd-cart-panel.pd-cart-panel ul.woocommerce-mini-cart li.pd-mini-cart-item {
    grid-template-columns: 66px minmax(0, 1fr) 32px;
    gap: 11px;
    min-height: 100px;
    padding: 14px 0;
  }
  .pd-cart-panel.pd-cart-panel .pd-mini-cart-item__media { width: 66px; height: 72px; border-radius: 12px; }
  .pd-cart-panel.pd-cart-panel .pd-mini-cart-item__name { font-size: 13px; }
  .pd-cart-panel.pd-cart-panel .pd-mini-cart-summary { padding: 16px 16px max(18px, env(safe-area-inset-bottom)); }
  .pd-cart-panel.pd-cart-panel .woocommerce-mini-cart__buttons.buttons { grid-template-columns: 1fr; gap: 8px; }
}

/* Final component skin: loaded after WooCommerce on every view. */
body .pd-cart-panel .woocommerce-mini-cart__buttons.buttons a.checkout,
body.woocommerce .pd-cart-panel .woocommerce-mini-cart__buttons.buttons a.checkout,
body.woocommerce-page .pd-cart-panel .woocommerce-mini-cart__buttons.buttons a.checkout {
  border-color: transparent;
  background: linear-gradient(135deg, #f7a8c3 0%, #ef6799 48%, #e8447d 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(232,68,125,.2);
}
body .pd-cart-panel .woocommerce-mini-cart__buttons.buttons a.checkout:hover,
body.woocommerce .pd-cart-panel .woocommerce-mini-cart__buttons.buttons a.checkout:hover,
body.woocommerce-page .pd-cart-panel .woocommerce-mini-cart__buttons.buttons a.checkout:hover {
  background: linear-gradient(135deg, #f49bbd 0%, #ed5c91 48%, #df3872 100%);
  color: #fff;
}


/* Theme-owned mini-cart actions */
.pd-cart-panel.pd-cart-panel .pd-mini-cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
}

.pd-cart-panel.pd-cart-panel .pd-mini-cart-button {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #171416;
  border-radius: 999px;
  background: #fff;
  color: #171416;
  box-shadow: none;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.pd-cart-panel.pd-cart-panel .pd-mini-cart-button:hover {
  color: #171416;
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(37, 24, 29, .09);
}

.pd-cart-panel.pd-cart-panel .pd-mini-cart-button--checkout {
  border-color: transparent;
  background: linear-gradient(135deg, #f7a8c3 0%, #ef6799 48%, #e8447d 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(232, 68, 125, .2);
}

.pd-cart-panel.pd-cart-panel .pd-mini-cart-button--checkout:hover {
  background: linear-gradient(135deg, #f49bbd 0%, #ed5c91 48%, #df3872 100%);
  color: #fff;
  filter: saturate(1.04);
}

@media (max-width: 479px) {
  .pd-cart-panel.pd-cart-panel .pd-mini-cart-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
