/* Aeris side cart (Pinplace drawer pattern, Aeris colors) */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1900;
  pointer-events: none;
  visibility: hidden;
}

.drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 37, 69, 0.42);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.drawer.is-open::before {
  opacity: 1;
}

.drawer--right .drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 420px);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.25, 0, 0.1, 1);
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__panel--cart {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #0b2545;
  padding: 0;
  box-shadow: -10px 0 40px rgba(11, 37, 69, 0.16);
  font-family: Roboto, system-ui, sans-serif;
}

body.aeris-cart-open {
  overflow: hidden;
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid #eef2f7;
  flex-shrink: 0;
}

.cart-drawer__title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer__title {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.cart-drawer__count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--cta, #ff7a1a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.cart-drawer__count[hidden] {
  display: none;
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  border: 0;
  padding: 0;
  border-radius: 10px;
  background: #f3f6fb;
  color: #0b2545;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cart-drawer__close svg {
  width: 18px;
  height: 18px;
}

.cart-drawer__perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 12px 10px 14px;
  border-bottom: 1px solid #eef2f7;
  flex-shrink: 0;
}

.cart-drawer__perk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  border-right: 1px solid #eef2f7;
  text-align: center;
}

.cart-drawer__perk:last-child {
  border-right: 0;
}

.cart-drawer__perk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
}

.cart-drawer__perk-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.cart-drawer__perk-label {
  font-size: 10px;
  line-height: 1.25;
  font-weight: 600;
  color: #243447;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  -webkit-overflow-scrolling: touch;
}

.cart-drawer__items {
  display: grid;
  gap: 12px;
}

.cart-drawer__empty {
  padding: 40px 12px;
  text-align: center;
  color: #6b7c93;
  font-size: 14px;
}

.cart-drawer__shop-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0b2545;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-item {
  border-radius: 14px;
  border: 1px solid #eef2f7;
  background: #f8fafc;
}

.cart-item__inner {
  display: flex;
  gap: 12px;
  padding: 12px;
}

.cart-item__thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eef2f7;
}

.cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item__content {
  min-width: 0;
  flex: 1;
}

.cart-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cart-item__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #0b2545;
}

.cart-item__options {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #6b7c93;
}

.cart-item__qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cart-item__qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #0b2545;
}

.cart-item__qty-val {
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.cart-item__prices {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cart-item__price-old {
  font-size: 11px;
  color: #9aa8b8;
  text-decoration: line-through;
}

.cart-item__price {
  font-size: 14px;
  font-weight: 700;
  color: #0b2545;
}

.cart-item__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.cart-item__edit,
.cart-item__remove {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: #0b2545;
}

.cart-item__remove {
  color: #b42318;
}

.cart-drawer__footer {
  flex-shrink: 0;
  border-top: 1px solid #eef2f7;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #fff;
}

.cart-summary {
  display: grid;
  gap: 10px;
}

.cart-summary__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.cart-summary__values {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cart-summary__old {
  font-size: 13px;
  color: #9aa8b8;
  text-decoration: line-through;
}

.cart-summary__subtotal {
  font-weight: 700;
}

.cart-summary__shipping {
  font-weight: 600;
  color: #0b2545;
}

.cart-summary__row--total {
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}

.cart-summary__total-label {
  font-size: 16px;
  font-weight: 700;
}

.cart-summary__total-value {
  font-size: 18px;
  font-weight: 700;
  color: #0b2545;
}

.cart-drawer__checkout {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
  background: var(--cta, #ff7a1a);
  color: #fff !important;
  min-height: 48px;
  padding: 12px 18px;
  font-family: Poppins, Roboto, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(255, 122, 26, 0.32);
  transition: background 0.15s ease;
}

.cart-drawer__checkout:hover:not(:disabled) {
  background: var(--cta-hover, #e86a0f);
}

.cart-drawer__checkout:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.cart-drawer__pay-logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 12px;
  padding: 0 2px;
}

.cart-drawer__pay-logo {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.cart-drawer__pay-logo img {
  display: block;
  max-width: 100%;
  max-height: 22px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.cart-drawer__pay-logo--card img {
  max-height: 20px;
}

.cart-drawer__delivery {
  margin: 10px 0 0;
  font-size: 12px;
  text-align: center;
  color: #6b7c93;
}
