dialog {
  border: 1px solid #e7eddf;
  background: #fcfdf9;
  color: var(--ink);
  padding: 0;
  border-radius: 26px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px);
  box-shadow: 0 22px 90px #17382133;
}
dialog::backdrop {
  background: #18322465;
  backdrop-filter: blur(7px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-close,
.drawer-head > button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf2e6;
  color: #48623b;
  flex-shrink: 0;
  transition:
    background 0.2s,
    transform 0.2s;
}
.dialog-close:hover,
.drawer-head > button:hover {
  background: #dfe9d4;
  transform: rotate(90deg);
}
.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}
.dialog-close svg,
.drawer-head > button svg {
  width: 17px;
  height: 17px;
}
#product-dialog {
  width: 830px;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.detail-art {
  background: #eeede8;
  display: flex;
  align-items: center;
  min-height: 520px;
  overflow: hidden;
}
.detail-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-copy {
  padding: 45px 31px 29px;
}
.kicker.grey {
  color: #92a17f;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.detail-copy h2 {
  font-size: 31px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 13px 0 12px;
}
.detail-color {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #6c7b5d;
  margin-bottom: 20px;
}
.detail-color i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #d9e1d1;
}
.detail-copy .price {
  font-size: 25px;
  font-weight: 500;
}
.detail-copy > p {
  font-size: 12px;
  line-height: 1.85;
  color: #6c7b5d;
  margin: 20px 0 24px;
}
.detail-label {
  font-size: 12px;
  font-weight: 500;
  color: #4f643e;
}
.card-sizes {
  display: flex;
  gap: 7px;
  margin: 12px 0 16px;
}
.card-sizes button {
  width: 42px;
  height: 39px;
  border: 1px solid #dfe7d5;
  border-radius: 12px;
  font-size: 12px;
  background: #f1f5e9;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.card-sizes button.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.card-sizes button:hover {
  border-color: #96ad7d;
}
.stock-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #81976c;
  font-size: 10px;
  margin: 0 0 22px;
}
.stock-info i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #829e66;
}
.detail-copy .product-cta {
  width: 100%;
  font-size: 12px;
  margin-top: 5px;
}
.demo-note {
  font-size: 9px;
  line-height: 1.65;
  color: #6c7b5d;
  margin-top: 17px;
}
.wait-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wait-form > label {
  font-size: 11px;
  color: #657c52;
}
.wait-form input {
  width: 100%;
  border: 1px solid #dce6d1;
  border-radius: 12px;
  background: #f2f6eb;
  padding: 13px;
  font-size: 12px;
  margin-top: 7px;
}
.wait-form .product-cta {
  padding: 14px 19px;
  justify-content: center;
}
.wait-form svg {
  width: 17px;
  height: 17px;
}
.wait-form .demo-note {
  margin-top: 0;
}
.drawer {
  margin: 18px 18px 18px auto;
  width: 420px;
  height: calc(100dvh - 36px);
  max-height: calc(100dvh - 36px);
  padding: 26px;
  display: none;
  border-radius: 24px;
}
.drawer[open] {
  display: flex;
  flex-direction: column;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 23px;
  border-bottom: 1px solid #e9eedf;
  gap: 15px;
}
.drawer-eyebrow {
  display: block;
  font-size: 11px;
  color: #6c7b5d;
  margin-bottom: 5px;
}
.drawer-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.9px;
}
.drawer-head h2 > span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f0dc;
  color: #789059;
  font-size: 11px;
  width: 25px;
  height: 25px;
  letter-spacing: 0;
}
#cart-items {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  min-height: 0;
}
.cart-empty {
  text-align: center;
  padding: 27px 0 24px;
}
.empty-collage {
  position: relative;
  height: 135px;
  width: 195px;
  margin: 0 auto 24px;
}
.empty-collage > img {
  width: 91px;
  height: 114px;
  object-fit: cover;
  border-radius: 15px;
  position: absolute;
  top: 4px;
  border: 4px solid white;
  box-shadow: 0 9px 19px #31412c1a;
}
.empty-collage > img:first-child {
  left: 15px;
  transform: rotate(-13deg);
}
.empty-collage > img:nth-child(2) {
  right: 15px;
  transform: rotate(12deg);
  top: 12px;
}
.empty-collage > span {
  position: absolute;
  bottom: 0;
  left: 76px;
  width: 40px;
  height: 40px;
  border: 4px solid #fcfdf9;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dcebc5;
  color: #4e6d35;
}
.empty-collage svg {
  width: 17px;
  height: 17px;
}
.empty-kicker {
  font-size: 10px;
  color: #6c7b5d;
}
.cart-empty h3 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -1.1px;
  line-height: 1.16;
  margin: 12px 0;
}
.cart-empty p {
  font-size: 12px;
  line-height: 1.65;
  color: #6c7b5d;
  margin-bottom: 23px;
}
.cart-empty .btn {
  font-size: 12px;
  min-width: 235px;
}
.cart-discover {
  border-top: 1px solid #e7eddd;
  padding-top: 20px;
  margin-top: 8px;
}
.cart-discover > span {
  display: block;
  font-size: 11px;
  color: #6c7b5d;
  margin-bottom: 14px;
}
.cart-suggestion {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #f0f5e8;
  border-radius: 14px;
  margin-bottom: 9px;
  padding: 8px;
  transition: background 0.2s;
}
.cart-suggestion:hover {
  background: #e6efda;
}
.cart-suggestion > img {
  width: 47px;
  height: 56px;
  object-fit: cover;
  border-radius: 9px;
}
.cart-suggestion > span {
  flex: 1;
}
.cart-suggestion b {
  font-size: 12px;
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
}
.cart-suggestion small {
  font-size: 9px;
  color: #6c7b5d;
}
.cart-suggestion > svg {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  color: #728d54;
}
.cart-line {
  display: grid;
  grid-template-columns: 78px 1fr 23px;
  gap: 14px;
  padding: 23px 0;
  border-bottom: 1px solid #e7eedb;
}
.cart-art {
  border-radius: 13px;
  overflow: hidden;
  background: #eeede8;
  align-self: start;
}
.cart-art img {
  width: 100%;
  height: 98px;
  object-fit: cover;
}
.cart-line h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 3px 0 7px;
  letter-spacing: -0.2px;
}
.cart-line p {
  font-size: 9px;
  color: #6c7b5d;
  line-height: 1.6;
  margin-bottom: 10px;
}
.cart-line b {
  font-size: 13px;
  font-weight: 500;
}
.quantity {
  border: 1px solid #e0e9d4;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  margin-top: 13px;
  background: #f1f6e9;
  padding: 3px;
}
.quantity button {
  height: 23px;
  width: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}
.quantity svg {
  width: 12px;
  height: 12px;
}
.quantity > span {
  font-size: 11px;
}
.remove {
  padding: 0;
  height: 23px;
  color: #6c7b5d;
}
.remove svg {
  width: 15px;
  height: 15px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 0 19px;
  font-size: 12px;
  color: #6c7b5d;
}
.cart-total b {
  font-size: 25px;
  letter-spacing: -0.6px;
  color: #344d26;
  font-weight: 500;
}
#cart-bottom > .btn {
  width: 100%;
}
#cart-bottom > .demo-note {
  font-size: 9px;
  text-align: center;
  line-height: 1.6;
  margin: 13px 6px 0;
}
.info-dialog {
  width: 440px;
  padding: 42px 31px 30px;
}
.info-dialog h2 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.9px;
  margin: 17px 0;
}
.info-dialog p {
  font-size: 13px;
  line-height: 1.85;
  color: #7d9067;
}
.info-dialog .btn {
  margin-top: 25px;
  min-width: 115px;
  justify-content: center;
  padding: 13px 24px;
}
.admin-dialog {
  width: 850px;
  padding: 36px;
}
.admin-dialog > .eyebrow {
  font-size: 9px;
  color: #6c7b5d;
}
.admin-dialog > h2 {
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 13px 0 26px;
}
.admin-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 24px;
}
.admin-tabs button {
  border-radius: 100px;
  padding: 11px 19px;
  font-size: 12px;
  background: #edf3e4;
  color: #6c7b5d;
}
.admin-tabs button.active {
  background: var(--green);
  color: #fff;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.admin-stats > div {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px;
  background: #edf3e4;
  border-radius: 18px;
}
.admin-stats span {
  font-size: 11px;
  color: #6c7b5d;
}
.admin-stats b {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -1px;
}
.admin-stats small {
  font-size: 9px;
  color: #6c7b5d;
}
.admin-tip {
  padding: 22px;
  border: 1px solid #e1ebd4;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: #6c7b5d;
  margin-top: 22px;
}
.admin-table-wrap {
  overflow: auto;
}
.admin-table {
  width: 100%;
  min-width: 530px;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th {
  font-size: 9px;
  font-weight: 500;
  color: #6c7b5d;
  padding: 13px;
  background: #f0f6e7;
}
.admin-table td {
  padding: 16px 13px;
  font-size: 11px;
  border-bottom: 1px solid #e4edd8;
}
.admin-table button {
  font-size: 11px;
  color: var(--green);
}
.pill {
  font-size: 9px;
  background: #edf5e2;
  padding: 6px 8px;
  border-radius: 100px;
  color: #6c7b5d;
}
.admin-empty {
  padding: 40px 25px;
  background: #eff6e5;
  border-radius: 18px;
  text-align: center;
}
.admin-empty h3 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin-bottom: 15px;
}
.admin-empty p {
  font-size: 12px;
  color: #6c7b5d;
  line-height: 1.8;
}
#toast {
  position: fixed;
  z-index: 50;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 23px;
  max-width: 90vw;
  background: var(--green);
  color: white;
  border-radius: 100px;
  font-size: 12px;
  box-shadow: 0 8px 25px #1c3d2a20;
  text-align: center;
}
@media (max-width: 760px) {
  dialog {
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 22px;
  }
  .drawer {
    width: calc(100% - 20px);
    margin: 10px;
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 23px;
    border-radius: 23px;
  }
  .drawer-head {
    padding-bottom: 20px;
  }
  .drawer-head h2 {
    font-size: 24px;
  }
  .cart-empty {
    padding-top: 27px;
  }
  .empty-collage {
    height: 130px;
    margin-bottom: 21px;
  }
  .cart-empty h3 {
    font-size: 28px;
  }
  .cart-empty p {
    font-size: 12px;
    margin-bottom: 21px;
  }
  .cart-discover {
    margin-top: 4px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-art {
    min-height: 0;
    height: 280px;
  }
  .detail-art img {
    object-fit: contain;
  }
  .detail-copy {
    padding: 27px 24px;
  }
  .detail-copy h2 {
    font-size: 28px;
  }
  .detail-copy > p {
    font-size: 12px;
  }
  .detail-copy .price {
    font-size: 24px;
  }
  .detail-copy .product-cta {
    font-size: 12px;
  }
  .info-dialog {
    padding: 40px 26px 29px;
  }
  .info-dialog h2 {
    font-size: 26px;
  }
  .info-dialog p {
    font-size: 12px;
  }
  .admin-dialog {
    padding: 36px 23px 25px;
  }
  .admin-dialog > h2 {
    font-size: 28px;
  }
  .admin-dialog > .eyebrow {
    font-size: 7px;
  }
  .admin-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .admin-stats > div {
    padding: 20px;
  }
  .admin-tip {
    font-size: 11px;
  }
  .admin-tabs {
    gap: 6px;
  }
  .admin-tabs button {
    padding: 10px 14px;
    font-size: 11px;
  }
  #toast {
    font-size: 11px;
    bottom: 16px;
    min-width: 260px;
  }
}
