/* Rainzon — cart drawer, premium pass */

.drawer-scrim {
  z-index: 340 !important;
  background: rgba(7, 25, 18, .58) !important;
  backdrop-filter: blur(5px);
}

.cart-drawer {
  z-index: 350 !important;
  width: 440px;
  max-width: 100vw;
  background: #f7f3e8;
  border-left: 1px solid rgba(255, 255, 255, .5);
  box-shadow: -34px 0 70px -34px rgba(4, 18, 12, .6);
}

.cart-drawer [hidden] { display: none !important; }

.cd-head {
  position: relative;
  align-items: center;
  padding: 20px 20px 17px;
  background:
    radial-gradient(65% 140% at 100% 0%, rgba(217, 242, 122, .24), transparent 65%),
    linear-gradient(135deg, #0e3d2c, #07241a);
  color: #f6f2e6;
}

.cd-head .eyebrow {
  color: #d9f27a;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.cd-head h3 {
  margin: 5px 0 0;
  color: #f6f2e6;
  font-family: 'Bricolage Grotesque', 'Noto Sans', sans-serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
}

.cd-head h3 span {
  color: rgba(246, 242, 230, .5);
  font-family: 'Noto Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.cd-head .icon-btn {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid rgba(246, 242, 230, .18);
  border-radius: 99px;
  background: rgba(246, 242, 230, .08);
  color: #f6f2e6;
  transition: background .16s, border-color .16s;
}

.cd-head .icon-btn:hover {
  background: rgba(246, 242, 230, .16);
  border-color: rgba(246, 242, 230, .32);
}

.cd-ship {
  padding: 12px 20px 14px;
  border-bottom: 1px solid #e9e2d2;
  background: #fbf8ef;
}

.cd-ship p {
  margin: 0;
  color: #7a887b;
  font-size: 8px;
  line-height: 1.5;
}

.cd-ship strong { color: #1e5f43; }

.cd-bar {
  height: 4px;
  margin-top: 8px;
  border-radius: 99px;
  background: #e7e1d2;
  overflow: hidden;
}

.cd-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2d8a61, #7ca951);
  transition: width .4s ease;
}

.cd-items {
  flex: 1;
  overflow: auto;
  padding: 12px 16px;
  background:
    radial-gradient(80% 40% at 100% 0%, rgba(217, 242, 122, .09), transparent 60%),
    #f7f3e8;
}

.cd-item {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  padding: 11px;
  border: 1px solid #e6dfcf;
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 12px 24px -32px rgba(10, 36, 29, .45);
}

.cd-thumb {
  width: 62px;
  height: 76px;
  flex: none;
  overflow: hidden;
  border: 1px solid #eee7d8;
  border-radius: 10px;
  background: #fff;
}

.cd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  padding: 3px;
}

.cd-info { min-width: 0; }

.cd-name {
  display: block;
  padding-right: 17px;
  color: #173c2b;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.cd-name:hover { text-decoration: underline; }

.cd-meta {
  display: block;
  margin-top: 3px;
  color: #899486;
  font-size: 7.5px;
  line-height: 1.35;
}

.cd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.cd-row strong {
  color: #2a4b39;
  font-family: 'Bricolage Grotesque', 'Noto Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.cd-row .qty {
  border-color: #e1dac9;
  background: #fbf8ef;
}

.cd-row .qty button {
  width: 24px;
  height: 24px;
  color: #607366;
}

.cd-row .qty span { min-width: 19px; font-size: 10px; }

.cd-remove {
  top: 10px;
  right: 9px;
  color: #a2ac9f;
  padding: 3px;
}

.cd-remove:hover { color: #b04a36; }

.cd-foot {
  border-top: 1px solid #e6dfcf;
  padding: 14px 20px calc(15px + env(safe-area-inset-bottom));
  background: #fffdf8;
  box-shadow: 0 -18px 30px -28px rgba(10, 36, 29, .45);
}

.cd-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #718072;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cd-total strong {
  color: #0d3b2a;
  font-family: 'Bricolage Grotesque', 'Noto Sans', sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.04em;
  text-transform: none;
}

.cd-note {
  margin: 4px 0 11px;
  color: #a0aa9d;
  font-size: 7.5px;
}

.cd-foot .btn-block {
  height: 44px;
  border-radius: 10px;
  background: #0b3527;
  color: #f6f2e6;
  font-size: 10px;
}

.cd-foot .btn-block:hover { background: #15543b; }

.cd-view {
  margin-top: 9px;
  color: #748475;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cd-view:hover { color: #1e6b4c; }

/* empty state */
.cd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 58vh;
  padding: 34px 22px;
  text-align: center;
  color: #778477;
}

.cd-empty-art {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 14px;
  border: 1px solid #dce8cd;
  border-radius: 24px;
  background:
    radial-gradient(circle at 32% 25%, #fff, transparent 55%),
    #eaf3df;
  color: #3e7454;
  box-shadow: 0 20px 34px -30px rgba(10, 36, 29, .5);
}

.cd-empty-kicker {
  color: #5b8a66;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cd-empty strong {
  margin-top: 6px;
  color: #173c2b;
  font-family: 'Bricolage Grotesque', 'Noto Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.035em;
}

.cd-empty p {
  max-width: 300px;
  margin: 7px 0 14px;
  color: #879486;
  font-size: 9px;
  line-height: 1.6;
}

.cd-empty .btn-ink {
  height: 38px;
  padding: 0 15px;
  border-radius: 9px;
  background: #0b3527;
  color: #f6f2e6;
  font-size: 9px;
}

.cd-empty-link {
  margin-top: 9px;
  color: #748475;
  font-size: 8px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cd-empty-link:hover { color: #1e6b4c; }

@media (max-width: 760px) {
  .cart-drawer {
    width: 100vw;
    border-left: 0;
    box-shadow: none;
  }

  .cd-head { padding: 17px 16px 15px; }
  .cd-head h3 { font-size: 23px; }
  .cd-ship { padding: 11px 16px 13px; }
  .cd-items { padding: 10px 12px; }
  .cd-item { padding: 10px; gap: 9px; }
  .cd-thumb { width: 58px; height: 72px; }
  .cd-name { font-size: 10px; }
  .cd-meta { font-size: 7px; }
  .cd-foot { padding: 13px 16px calc(14px + env(safe-area-inset-bottom)); }
  .cd-foot .btn-block { height: 43px; }
  .cd-empty { min-height: 56vh; padding: 26px 18px; }
  .cd-empty strong { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cd-bar span, .cd-head .icon-btn { transition: none; }
}
