/* Puro Conforto — Cart drawer + checkout styles */

/* Cart icon badge — pequeno, redondinho, no canto sup. direito do ícone */
.header__icon,
.header__icon--cart,
a[href*="cart"],
a[aria-label*="arrinho"] {
  position: relative;
  display: inline-block;
}
.pc-cart-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 24px !important;
  max-height: 16px !important;
  padding: 0 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: #e63946 !important;
  border-radius: 50% !important;
  position: absolute !important;
  top: 4px !important;
  right: 0 !important;
  line-height: 16px !important;
  letter-spacing: 0 !important;
  box-shadow: 0 0 0 2px #fffaf0 !important;
  pointer-events: none !important;
  font-family: 'Outfit', -apple-system, sans-serif !important;
  text-align: center !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  z-index: 5;
}
.pc-cart-count:empty,
.pc-cart-count[data-empty="1"] { display: none !important; }
/* 2-digit (10+) — slightly wider */
.pc-cart-count.is-wide {
  width: auto !important;
  min-width: 18px !important;
  max-width: 30px !important;
  padding: 0 4px !important;
  border-radius: 8px !important;
}

/* Drawer */
#pc-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}
#pc-cart-drawer.is-open { pointer-events: auto; }
.pc-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .25s ease;
}
#pc-cart-drawer.is-open .pc-drawer-overlay { opacity: 1; }
.pc-drawer {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  font-family: inherit;
}
#pc-cart-drawer.is-open .pc-drawer { transform: translateX(0); }

.pc-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}
.pc-drawer__head h2 {
  font-size: 18px; font-weight: 700; margin: 0; color: #1e1e1e;
}
.pc-drawer__close {
  background: none; border: 0; font-size: 22px; cursor: pointer; color: #666;
  padding: 4px 8px; line-height: 1;
}
.pc-drawer__close:hover { color: #000; }

.pc-drawer__body {
  flex: 1; overflow-y: auto; padding: 12px 16px;
}
.pc-drawer__foot {
  padding: 16px 20px;
  border-top: 1px solid #eee;
  background: #fafafa;
  display: flex; flex-direction: column; gap: 10px;
}

.pc-drawer__empty {
  text-align: center; padding: 40px 20px; color: #777;
}
.pc-drawer__empty p { margin: 0 0 16px; }

.pc-cart-list { list-style: none; padding: 0; margin: 0; }
.pc-cart-item {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.pc-cart-item__img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 8px; background: #f5f5f5;
}
.pc-cart-item__info { flex: 1; min-width: 0; }
.pc-cart-item__title {
  display: block;
  font-size: 14px; font-weight: 600;
  color: #1e1e1e;
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: 4px;
}
.pc-cart-item__title:hover { color: #5dabfd; }
.pc-cart-item__size {
  display: block; font-size: 12px; color: #777; margin-bottom: 4px;
}
.pc-cart-item__price {
  font-size: 14px; font-weight: 700; color: #1e1e1e; margin-bottom: 8px;
}

.pc-qty {
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.pc-qty__btn {
  width: 26px; height: 26px;
  border: 1px solid #d6d6d6; background: #fff;
  border-radius: 50%;
  font-size: 16px; font-weight: 600;
  cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.pc-qty__btn:hover { background: #1e1e1e; color: #fff; border-color: #1e1e1e; }
.pc-qty__val {
  font-size: 14px; font-weight: 600; min-width: 20px; text-align: center;
}
.pc-cart-item__remove {
  background: none; border: 0; color: #c0392b;
  font-size: 12px; cursor: pointer; padding: 4px 0;
  text-decoration: underline; margin-left: 8px;
}

.pc-free-progress {
  font-size: 13px; color: #555;
  background: #fff3e0;
  padding: 10px 12px; border-radius: 8px;
  text-align: center;
}
.pc-free-progress--won {
  background: #e7f7ee; color: #1b8b4b; font-weight: 600;
}

.pc-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 15px;
}
.pc-total strong { font-size: 20px; color: #1e1e1e; }

.pc-btn {
  display: block; text-align: center;
  padding: 14px 20px;
  border-radius: 30px;
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  border: 0; cursor: pointer;
  transition: all .15s;
  letter-spacing: .3px;
}
.pc-btn--primary {
  background: #5dabfd; color: #fff;
}
.pc-btn--primary:hover { background: #3a8dde; }
.pc-btn--ghost {
  background: transparent; color: #555;
  border: 1.5px solid #d6d6d6;
}
.pc-btn--ghost:hover { background: #f5f5f5; }

/* Flash "adicionado" */
.pc-flash {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1b8b4b;
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  opacity: 0;
  z-index: 10000;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.pc-flash.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Checkout page */
.pc-checkout {
  max-width: 1000px; margin: 0 auto;
  padding: 20px 16px 60px;
  font-family: inherit;
}
.pc-checkout h1 {
  font-size: 24px; font-weight: 700; margin: 0 0 24px;
}
.pc-checkout__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .pc-checkout__grid { grid-template-columns: 1.4fr 1fr; }
}

.pc-section {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.pc-section h2 {
  font-size: 16px; font-weight: 700;
  margin: 0 0 16px; color: #1e1e1e;
}

.pc-field {
  display: block; margin-bottom: 14px;
}
.pc-field label {
  display: block; font-size: 13px; font-weight: 600;
  color: #555; margin-bottom: 6px;
}
.pc-field input,
.pc-field select,
.pc-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d6d6d6;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s;
  box-sizing: border-box;
}
.pc-field input:focus,
.pc-field select:focus,
.pc-field textarea:focus {
  outline: none; border-color: #5dabfd;
  box-shadow: 0 0 0 3px rgba(93,171,253,.15);
}
.pc-field-row {
  display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.pc-field-row--3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 480px) {
  .pc-field-row, .pc-field-row--3 { grid-template-columns: 1fr; }
}

.pc-pay-options {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.pc-pay-option {
  flex: 1; min-width: 140px;
  border: 2px solid #d6d6d6;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer; text-align: center;
  font-size: 14px; font-weight: 600;
  transition: all .15s;
  background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.pc-pay-option:hover { border-color: #1e1e1e; }
.pc-pay-option.is-active {
  border-color: #5dabfd;
  background: #f0f8ff;
}
.pc-pay-option__icon { font-size: 24px; }

.pc-summary {
  position: sticky; top: 20px;
}
.pc-summary__list {
  list-style: none; padding: 0; margin: 0 0 16px;
}
.pc-summary__item {
  display: flex; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
}
.pc-summary__item img {
  width: 50px; height: 50px; object-fit: cover; border-radius: 6px;
}
.pc-summary__line {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.pc-summary__line--total {
  font-size: 16px; font-weight: 700;
  border-top: 2px solid #eee; padding-top: 12px;
  margin-top: 8px;
}

.pc-checkout__pay-btn {
  width: 100%; padding: 16px;
  background: #1b8b4b; color: #fff;
  border: 0; border-radius: 30px;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  transition: background .15s;
  letter-spacing: .5px;
}
.pc-checkout__pay-btn:hover { background: #156a3a; }
.pc-checkout__pay-btn:disabled { background: #999; cursor: not-allowed; }

.pc-error {
  background: #ffe7e7; color: #c0392b;
  padding: 10px 14px; border-radius: 8px;
  font-size: 13px; margin-bottom: 12px;
}
.pc-success {
  background: #e7f7ee; color: #1b8b4b;
  padding: 10px 14px; border-radius: 8px;
  font-size: 13px; margin-bottom: 12px;
}

/* Confirmation page */
.pc-confirmation {
  max-width: 600px; margin: 40px auto;
  padding: 30px 20px;
  text-align: center;
}
.pc-confirmation__icon {
  font-size: 56px;
  color: #1b8b4b;
  margin-bottom: 12px;
}
.pc-confirmation h1 {
  font-size: 24px; margin-bottom: 8px;
}
.pc-confirmation__order-id {
  font-size: 14px; color: #777; margin-bottom: 20px;
}

/* Admin */
.pc-admin {
  max-width: 1200px; margin: 0 auto;
  padding: 20px;
  font-family: inherit;
}
.pc-admin__login {
  max-width: 360px; margin: 80px auto;
  background: #fff; padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.pc-orders-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.pc-orders-table th,
.pc-orders-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}
.pc-orders-table th {
  background: #f9f9f9; font-weight: 700;
}
.pc-orders-table tr:hover { background: #fafafa; }
.pc-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
}
.pc-status--pending { background: #fff3e0; color: #e67e22; }
.pc-status--paid { background: #e7f7ee; color: #1b8b4b; }
.pc-status--shipped { background: #e3f2fd; color: #2980b9; }
.pc-status--canceled { background: #ffe7e7; color: #c0392b; }
