/* CART DRAWER */
.cdd {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(390px, 100vw);
  background: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 28px rgba(26, 17, 8, 0.1);
}
.cdd.on {
  transform: translateX(0);
}
.cddh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}
.cddh h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 500;
}
.cddb {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--mid);
  font-size: 14px;
  line-height: 1.7;
}
.empty-ico {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.35;
}
.citem {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.cit-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8f5ed, #d4eddc);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.cit-info {
  flex: 1;
  min-width: 0;
}
.cit-nm {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cit-dt {
  font-size: 11px;
  color: var(--mid);
  margin-bottom: 6px;
}
.cit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cit-rm {
  color: var(--mid);
  font-size: 18px;
  line-height: 1;
  transition: color 0.15s;
  padding: 2px;
}
.cit-rm:hover {
  color: #c0392b;
}
.cit-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.cit-qty button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.15s;
}
.cit-qty button:hover {
  background: var(--blush);
}
.cit-qty span {
  font-size: 13px;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}
.cddf {
  padding: 16px;
  border-top: 1px solid var(--line);
}
.cdtot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cdtot-lbl {
  font-size: 14px;
  color: var(--mid);
}
.cdtot-val {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--g);
}
.wppbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: #25d366;
  color: #fff;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition:
    background 0.2s,
    transform 0.15s;
  border: none;
  cursor: pointer;
}
.wppbtn:hover {
  background: #1dbf59;
  transform: translateY(-1px);
}
.wpp-note {
  text-align: center;
  font-size: 11px;
  color: var(--mid);
  margin-top: 10px;
  line-height: 1.5;
}

/* PRODUCT GRID */
.pgrid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .pgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .pgrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* PRODUCT CARD */
.pcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.22s,
    box-shadow 0.22s;
}
.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(26, 17, 8, 0.09);
}
.pcard-img {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-size: 64px;
}
.pcard-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--g);
  color: #fff;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
}
.pcard-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pcard-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.pcard-sub {
  font-size: 12px;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.5;
}
.pcard-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pcard-price strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--g);
}
.pcard-price span {
  font-size: 11px;
  color: var(--mid);
}

/* ── PRICE DE/POR ─────────────────────────────────────────── */
.pcard-price-de {
  font-size: 12px;
  color: var(--mid);
  text-decoration: line-through;
  line-height: 1.4;
}
.pcard-price-por {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1.2;
}
.pcard-price-por strong {
  font-size: 22px;
  color: var(--g);
  font-weight: 700;
}
.pcard-price-por span {
  font-size: 12px;
  color: var(--mid);
}
.pcard-price-dxp {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── CART ITEM PRICES ─────────────────────────────────────── */
.cit-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 3px;
}
.cit-original {
  font-size: 11px;
  color: #bbb;
  text-decoration: line-through;
}
.cit-atual {
  font-size: 14px;
  font-weight: 700;
  color: var(--g);
}

/* ── CART TOTALS BLOCK ────────────────────────────────────── */
.cart-totals-block {
  border: 1px dashed #e0e0e0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--white);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 4px;
}
.cart-total-row--original {
  color: #aaa;
}
.cart-total-row--original .val {
  text-decoration: line-through;
}
.cart-total-row--savings {
  color: #ef4444;
  font-size: 12px;
  margin-bottom: 8px;
}
.cart-total-row--savings .val {
  font-weight: 600;
}
.cart-totals-divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 8px 0;
}
.cart-total-row--final {
  font-weight: 700;
  font-size: 15px;
  color: #111;
  margin-bottom: 0;
}
.cart-total-row--final .val {
  color: var(--g);
  font-size: 18px;
}

/* SIZE SELECTOR */
.var-lbl {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 600;
  margin-bottom: 6px;
}
.var-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.var-opt {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid var(--line);
  color: var(--mid);
  background: var(--cream);
  transition: all 0.18s;
  cursor: pointer;
}
.var-opt:hover {
  border-color: var(--g);
  color: var(--g);
}
.var-opt.sel {
  border-color: var(--g);
  background: var(--g);
  color: #fff;
}
.var-opt.oos {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ADD TO CART BTN */
.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition:
    background 0.2s,
    transform 0.15s;
  border: none;
  cursor: pointer;
  margin-top: auto;
}
.add-btn:hover {
  background: var(--g);
  transform: translateY(-1px);
}
.add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* COLOR SELECTOR */
.color-opts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.color-opt {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  position: relative;
  border: 2px solid transparent;
}
.color-opt.sel {
  transform: scale(1.15);
  box-shadow:
    0 0 0 2px var(--white),
    0 0 0 4px var(--g);
}
.color-opt:not(.sel):hover {
  transform: scale(1.1);
}

/* ACCESSORIES GRID */
.agrid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) {
  .agrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .agrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ACCESSORY CARD */
.acard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.22s,
    box-shadow 0.22s;
}
.acard:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(26, 17, 8, 0.09);
}
.acard-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}
.acard-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition:
    opacity 0.3s,
    transform 0.3s;
  z-index: 300;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
