/* Product page: mini cart drawer, toast, fly animation (scoped pd-) */

.pd-nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  min-width: 44px;
}
.pd-nav-cart svg {
  display: block;
  width: 24px;
  height: 24px;
}
.pd-nav-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 100px;
  background: #c45a1f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface, #fff);
  line-height: 1;
}
.pd-nav-cart-badge.pd-bump {
  animation: pdBadgeBump 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes pdBadgeBump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

.pd-fly-item {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 32px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: none;
}
.pd-fly-item.pd-flying {
  transition: left 0.65s cubic-bezier(0.45, 0, 0.55, 1), top 0.65s cubic-bezier(0.45, 0, 0.55, 1), transform 0.65s ease,
    opacity 0.25s ease 0.35s;
}

.pd-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 28, 0);
  z-index: 300;
  pointer-events: none;
  transition: background 0.28s;
}
.pd-drawer-overlay.pd-open {
  background: rgba(15, 26, 28, 0.45);
  pointer-events: auto;
  backdrop-filter: blur(2px);
}
.pd-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--surface, #fff);
  z-index: 301;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 28px rgba(15, 26, 28, 0.12);
}
.pd-drawer.pd-open {
  transform: translateX(0);
}

.pd-dh {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line, #e4e2db);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.pd-dh-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pd-dh-title {
  font-family: Fraunces, Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink, #0f1a1c);
}
.pd-dh-count {
  padding: 2px 8px;
  background: rgba(11, 110, 110, 0.1);
  color: var(--brand-ink, #064b4b);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 600;
}
.pd-dh-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink3, #6b7678);
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
}
.pd-dh-close:hover {
  background: var(--bg, #fafaf7);
  color: var(--ink, #0f1a1c);
}

.pd-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}
.pd-drawer-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line, #e4e2db);
}
.pd-di-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  border: 1px solid var(--line, #e4e2db);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pd-di-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pd-di-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #0f1a1c);
  line-height: 1.25;
}
a.pd-di-name-link {
  color: inherit;
  text-decoration: none;
}
a.pd-di-name-link:hover {
  color: var(--brand-ink, #064b4b);
  text-decoration: underline;
}
.pd-di-sku {
  font-size: 10px;
  color: var(--ink3, #6b7678);
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.pd-di-qtyrow {
  display: flex;
  align-items: center;
  margin-top: 6px;
}
.pd-di-qtyrow button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line, #e4e2db);
  border-radius: 3px;
  background: var(--bg, #fafaf7);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--ink2, #3a4749);
}
.pd-di-qtyrow button:hover:not(:disabled) {
  border-color: var(--brand, #0b6e6e);
  color: var(--brand, #0b6e6e);
}
.pd-di-qtyrow button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pd-line-qty-inp {
  width: 64px;
  height: 24px;
  border: 1px solid var(--line, #e4e2db);
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  outline: none;
}
.pd-di-price {
  font-family: Fraunces, Georgia, serif;
  font-size: 15px;
  font-weight: 500;
}
.pd-di-remove {
  font-size: 11px;
  color: var(--ink3, #6b7678);
  cursor: pointer;
  margin-top: 8px;
  text-align: right;
}
.pd-di-remove:hover {
  color: #b45309;
}

.pd-drawer-empty {
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
}
.pd-drawer-empty.pd-show {
  display: flex;
}
.pd-de-icon {
  font-size: 36px;
  opacity: 0.3;
}
.pd-de-head {
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  color: var(--ink2, #3a4749);
}
.pd-de-body {
  font-size: 13px;
  color: var(--ink3, #6b7678);
  line-height: 1.55;
  max-width: 260px;
}

.pd-drawer-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--line, #e4e2db);
  background: var(--bg, #fafaf7);
  flex-shrink: 0;
}
.pd-dpt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.pd-dpt-opt {
  padding: 8px 8px;
  border: 1.5px solid var(--line, #e4e2db);
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
.pd-dpt-opt.pd-active {
  border-color: var(--brand, #0b6e6e);
  background: rgba(11, 110, 110, 0.06);
}
.pd-dpt-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 6px;
  border-radius: 100px;
  font-size: 8px;
  font-weight: 700;
  background: rgba(10, 122, 62, 0.12);
  color: var(--green, #0a7a3e);
}
.pd-dft-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line, #e4e2db);
}
.pd-dft-row:last-child {
  border-bottom: none;
}
.pd-dft-row.pd-total {
  border-top: 1px solid var(--line2, #d4d1c8);
  margin-top: 6px;
  padding-top: 10px;
}
.pd-dft-k {
  color: var(--ink3, #6b7678);
}
.pd-dft-v {
  font-weight: 600;
}
.pd-dft-v.pd-teal {
  color: var(--brand, #0b6e6e);
}
.pd-dft-v.pd-green {
  color: var(--green, #0a7a3e);
}
.pd-dft-v.pd-big {
  font-family: Fraunces, Georgia, serif;
  font-size: 19px;
}

.pd-checkout-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 4px;
  background: var(--ink, #0f1a1c);
  color: #f5f3ec;
  font-family: Fraunces, Georgia, serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.pd-checkout-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand, #0b6e6e);
  transform: translateX(-101%);
  transition: transform 0.28s ease;
}
.pd-checkout-btn:hover::before {
  transform: translateX(0);
}
.pd-checkout-btn span {
  position: relative;
  z-index: 1;
}

.pd-continue-btn {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--line, #e4e2db);
  border-radius: 4px;
  background: transparent;
  font-size: 13px;
  color: var(--ink3, #6b7678);
  cursor: pointer;
}
.pd-continue-btn:hover {
  background: #fff;
  color: var(--ink, #0f1a1c);
}

.pd-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink, #0f1a1c);
  color: #f5f3ec;
  padding: 11px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(15, 26, 28, 0.2);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 400;
  max-width: calc(100vw - 32px);
}
.pd-toast.pd-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pd-toast-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green, #0a7a3e);
  display: grid;
  place-items: center;
  font-size: 9px;
  flex-shrink: 0;
}
.pd-toast-action {
  margin-left: 6px;
  color: #7dd3c0;
  cursor: pointer;
  font-weight: 600;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
}
.pd-toast-action:hover {
  opacity: 0.85;
}

button.add {
  font: inherit;
  cursor: pointer;
  border: none;
}
