:root {
  color-scheme: dark;
}

@font-face {
  font-family: "PlfSans";
  src: url("../vitrinpremium/fonts/manrope-latin-ext-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "PlfSans";
  src: url("../vitrinpremium/fonts/manrope-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PlfSans";
  src: url("../vitrinpremium/fonts/manrope-latin-ext-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "PlfSans";
  src: url("../vitrinpremium/fonts/manrope-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
}

body.customer-cart-page {
  --plf-commerce-cart-panel-surface: #111316;
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--plf-commerce-ink);
  background: var(--plf-commerce-bg);
  font-family: "PlfSans", Inter, Arial, sans-serif;
}

html[data-pl-theme="light"] body.customer-cart-page {
  --plf-commerce-cart-panel-surface: var(--plf-commerce-surface);
}

.customer-cart-header {
  width: min(1540px, calc(100% - 48px));
  min-width: 0;
  min-height: 82px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 24px;
  margin: 18px auto 0;
  padding: 12px 18px;
  border: 1px solid var(--plf-commerce-border);
  border-radius: 4px;
  background: var(--plf-commerce-surface);
  box-shadow: none;
}

.customer-cart-brand {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  color: var(--plf-commerce-ink);
  text-decoration: none;
}

.customer-cart-brand img {
  width: 48px;
  height: 48px;
  border-radius: 3px;
}

.customer-cart-brand span {
  display: grid;
  gap: 2px;
}

.customer-cart-brand strong {
  font-size: 15px;
  letter-spacing: .04em;
}

.customer-cart-brand small,
.customer-cart-heading span {
  color: var(--plf-commerce-muted);
}

.customer-cart-navigation {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.customer-cart-navigation a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--plf-commerce-muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.customer-cart-navigation a:hover,
.customer-cart-navigation a:focus-visible {
  color: var(--plf-commerce-ink);
  outline: 2px solid rgba(244, 244, 245, .55);
  outline-offset: 3px;
}

.customer-cart-content {
  width: min(1280px, calc(100% - 48px));
  min-width: 0;
  margin: clamp(30px, 4vw, 54px) auto 72px;
}

.customer-cart-continue {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--plf-commerce-muted);
  font-size: .84rem;
  font-weight: 850;
  text-decoration: none;
}

.customer-cart-continue:hover,
.customer-cart-continue:focus-visible {
  color: var(--plf-commerce-ink);
  outline: 2px solid rgba(244, 244, 245, .55);
  outline-offset: 3px;
}

.customer-cart-heading {
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--plf-commerce-border);
}

.customer-cart-heading p {
  margin: 0 0 7px;
  color: var(--plf-commerce-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.customer-cart-heading h1 {
  margin: 0 0 8px;
  font-family: "PlfSans", Inter, Arial, sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}

.customer-cart-panel {
  min-height: 480px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.customer-cart-panel[aria-busy="true"] { display: block; }

.customer-cart-layout,
.customer-cart-panel .customer-cart-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 368px);
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
}

.customer-cart-items { min-width: 0; }

.customer-cart-items-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.customer-cart-items-header h2,
.customer-cart-summary h2 {
  margin: 0;
  color: var(--plf-commerce-ink);
  font-family: "PlfSans", Inter, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.customer-cart-items-header > span {
  flex: 0 0 auto;
  border: 1px solid var(--plf-commerce-border-strong);
  border-radius: 3px;
  padding: 6px 10px;
  color: var(--plf-commerce-muted);
  background: transparent;
  font-size: .76rem;
  font-weight: 900;
}

.customer-cart-panel .customer-commerce-cart-list { gap: 16px; }

.customer-cart-panel .customer-cart-line {
  grid-template-columns: 132px minmax(0, 1fr) minmax(150px, auto);
  gap: 18px;
  align-items: start;
  border-color: var(--plf-commerce-border);
  border-radius: 4px;
  padding: 18px;
  background: var(--plf-commerce-cart-panel-surface);
  box-shadow: none;
}

.customer-cart-panel .customer-cart-line > :last-child { grid-column: auto; }
.customer-cart-line-media { min-width: 0; }

.customer-cart-panel .customer-cart-line-media img {
  width: 132px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--plf-commerce-border);
  border-radius: 3px;
  object-fit: cover;
}

.customer-cart-line-body { min-width: 0; }
.customer-cart-line-top { gap: 10px; }
.customer-cart-line-top h3 { font-size: 1.08rem; line-height: 1.35; }

.customer-cart-line-description {
  margin-top: 5px !important;
  color: var(--plf-commerce-muted) !important;
  font-size: .8rem !important;
}

.customer-cart-panel .customer-cart-line-config {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.customer-cart-panel .customer-cart-line-config li {
  max-width: 100%;
  border: 1px solid var(--plf-commerce-border);
  border-radius: 3px;
  padding: 5px 8px;
  background: transparent;
  font-size: .73rem;
  line-height: 1.3;
}

.customer-cart-line-note { margin-top: 10px !important; }

.customer-cart-line-quantity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.customer-cart-line-quantity > span {
  color: var(--plf-commerce-muted);
  font-size: .78rem;
  font-weight: 850;
}

.customer-cart-line-side {
  min-width: 0;
  min-height: 100%;
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 18px;
}

.customer-cart-line-price {
  color: var(--plf-commerce-ink);
  font-size: .96rem;
  line-height: 1.35;
  text-align: right;
}

.customer-cart-line-side .customer-commerce-actions { justify-content: flex-end; }
.customer-cart-line-side .customer-commerce-secondary,
.customer-cart-line-side .customer-commerce-danger { min-height: 44px; padding-inline: 11px; font-size: .78rem; }

.customer-cart-add-more {
  width: fit-content;
  margin-top: 16px;
}

.customer-cart-panel .customer-cart-summary {
  top: 18px;
  gap: 10px;
  border-radius: 4px;
  padding: 24px;
  background: var(--plf-commerce-cart-panel-surface);
  box-shadow: none;
}

.customer-cart-panel .customer-cart-summary h2 { margin-bottom: 8px; }
.customer-cart-panel .customer-cart-summary > .customer-commerce-button,
.customer-cart-panel .customer-cart-summary > .customer-cart-clear { width: 100%; }

.customer-cart-grand-total {
  margin: 12px 0 4px;
  padding-top: 16px;
  border-top: 1px solid var(--plf-commerce-border);
  border-bottom: 0;
}

.customer-cart-summary-note { margin: 0 0 7px !important; font-size: .8rem; }
.customer-cart-clear { border-color: transparent; background: transparent; }

.customer-cart-page .customer-commerce-status {
  border-color: var(--plf-commerce-border-strong);
  border-radius: 3px;
  color: var(--plf-commerce-muted);
  background: transparent;
}
.customer-cart-page .customer-commerce-status.is-error {
  border-color: rgba(240, 123, 123, .55);
  color: #ffc2c2;
  background: rgba(240, 123, 123, .08);
}
.customer-cart-page .customer-commerce-cart-summary-row,
.customer-cart-page .customer-commerce-total { border-color: var(--plf-commerce-border); }
.customer-cart-page .customer-commerce-total strong { color: var(--plf-commerce-ink); }
.customer-cart-page .customer-commerce-cart-quantity {
  border-color: var(--plf-commerce-border-strong);
  border-radius: 4px;
  background: transparent;
}
.customer-cart-page .customer-commerce-cart-quantity input { border-color: var(--plf-commerce-border); }
.customer-cart-page .customer-commerce-button,
.customer-cart-page .customer-commerce-secondary,
.customer-cart-page .customer-commerce-danger {
  border-width: 1px;
  border-radius: 4px;
  box-shadow: none;
}
.customer-cart-page .customer-commerce-button {
  border-color: var(--plf-commerce-contrast);
  color: var(--plf-commerce-bg);
  background: var(--plf-commerce-contrast);
}
.customer-cart-page .customer-commerce-secondary {
  border-color: var(--plf-commerce-border-strong);
  color: var(--plf-commerce-ink);
  background: transparent;
}
.customer-cart-page .customer-commerce-button:hover,
.customer-cart-page .customer-commerce-button:focus-visible,
.customer-cart-page .customer-commerce-secondary:hover,
.customer-cart-page .customer-commerce-secondary:focus-visible {
  border-color: var(--plf-commerce-contrast);
  color: var(--plf-commerce-contrast);
  background: var(--plf-commerce-surface-strong);
  outline: 2px solid var(--plf-commerce-header-focus);
  outline-offset: 3px;
}

.customer-cart-empty-state,
.customer-cart-error {
  min-height: 480px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 1px solid var(--plf-commerce-border);
  border-radius: 4px;
  padding: clamp(28px, 6vw, 62px);
  text-align: center;
  background: var(--plf-commerce-surface);
  box-shadow: none;
}

.customer-cart-empty-icon,
.customer-cart-error-icon {
  width: 70px;
  height: 70px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--plf-commerce-border-strong);
  border-radius: 4px;
  color: var(--plf-commerce-ink);
  background: transparent;
  font-size: 1.8rem;
  font-weight: 900;
}

.customer-cart-empty-state h2,
.customer-cart-error h2 { margin: 0; color: var(--plf-commerce-ink); font-family: "PlfSans", Inter, Arial, sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
.customer-cart-empty-state > p,
.customer-cart-error > p { max-width: 620px; margin: 0; color: var(--plf-commerce-muted); line-height: 1.6; }
.customer-cart-empty-state > .customer-commerce-actions,
.customer-cart-error > .customer-commerce-actions { justify-content: center; }

.customer-cart-trust-list {
  width: min(100%, 820px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.customer-cart-trust-list li {
  min-width: 0;
  display: grid;
  gap: 7px;
  border: 1px solid var(--plf-commerce-border);
  border-radius: 4px;
  padding: 16px;
  background: rgba(255, 255, 255, .025);
}

.customer-cart-trust-list strong { color: var(--plf-commerce-ink); font-size: .88rem; }
.customer-cart-trust-list span { color: var(--plf-commerce-muted); font-size: .76rem; line-height: 1.5; }

.customer-cart-error { border-color: rgba(240, 123, 123, .38); background: var(--plf-commerce-cart-panel-surface); }
.customer-cart-error-icon { border-color: rgba(240, 123, 123, .55); color: #ffc2c2; background: rgba(240, 123, 123, .08); }

.customer-cart-skeleton { min-height: 480px; }
.customer-cart-skeleton-items { min-width: 0; display: grid; gap: 16px; }
.customer-cart-skeleton-heading,
.customer-cart-skeleton-title span,
.customer-cart-skeleton-config span,
.customer-cart-skeleton-controls span,
.customer-cart-skeleton-summary span,
.customer-cart-skeleton-media {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  background-size: 220% 100%;
  animation: customer-commerce-shimmer 1.25s infinite linear;
}

.customer-cart-skeleton-heading { width: 190px; height: 28px; }
.customer-cart-skeleton .customer-commerce-loading-card { height: auto; animation: none; }
.customer-cart-skeleton-card {
  min-height: 178px;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--plf-commerce-border);
  border-radius: 4px;
  padding: 18px;
  background: rgba(255, 255, 255, .025);
}

.customer-cart-skeleton-media { width: 118px; height: 142px; border-radius: 3px; }
.customer-cart-skeleton-body { min-width: 0; display: grid; align-content: space-between; gap: 15px; }
.customer-cart-skeleton-title { min-width: 0; display: grid; gap: 10px; }
.customer-cart-skeleton-title span { width: min(62%, 280px); height: 17px; }
.customer-cart-skeleton-title span:last-child { width: min(42%, 180px); height: 12px; }
.customer-cart-skeleton-config { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.customer-cart-skeleton-config > div { min-width: 0; display: grid; gap: 8px; border: 1px solid var(--plf-commerce-border); border-radius: 3px; padding: 10px; }
.customer-cart-skeleton-config span { width: 82%; height: 10px; }
.customer-cart-skeleton-config span:last-child { width: 58%; height: 12px; }
.customer-cart-skeleton-controls { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--plf-commerce-border); }
.customer-cart-skeleton-controls span { width: 118px; height: 38px; border-radius: 3px; }
.customer-cart-skeleton-controls span:last-child { width: 150px; height: 13px; }
.customer-cart-skeleton-summary { min-height: 330px; display: grid; align-content: start; gap: 22px; border: 1px solid var(--plf-commerce-border); border-radius: 4px; padding: 24px; background: var(--plf-commerce-cart-panel-surface); }
.customer-cart-skeleton-summary span { width: 100%; height: 18px; }
.customer-cart-skeleton-summary span:first-child { width: 58%; height: 26px; }
.customer-cart-skeleton-summary span:last-child { height: 48px; border-radius: 3px; margin-top: 18px; }
}

@media (max-width: 1100px) {
  .customer-cart-header {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .customer-cart-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .customer-cart-layout,
  .customer-cart-panel .customer-cart-layout { grid-template-columns: minmax(0, 1fr) minmax(290px, 320px); gap: 22px; }
  .customer-cart-panel .customer-cart-line { grid-template-columns: 104px minmax(0, 1fr); }
  .customer-cart-panel .customer-cart-line-media img { width: 104px; }
  .customer-cart-panel .customer-cart-line > .customer-cart-line-side { grid-column: 2; min-height: 0; justify-items: start; }
  .customer-cart-line-side .customer-commerce-actions { justify-content: flex-start; }
  .customer-cart-line-price { text-align: left; }
}

@media (max-width: 900px) {
  .customer-cart-layout,
  .customer-cart-panel .customer-cart-layout { grid-template-columns: minmax(0, 1fr); }
  .customer-cart-panel .customer-cart-summary { position: static; }
  .customer-cart-skeleton-summary { min-height: 280px; }
}

@media (max-width: 760px) {
  .customer-cart-header,
  .customer-cart-content {
    width: min(100% - 24px, 1440px);
  }

  .customer-cart-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .customer-cart-header .customer-commerce-header {
    justify-content: flex-start;
  }

  .customer-cart-navigation {
    grid-column: auto;
    grid-row: auto;
    gap: 16px;
  }

  .customer-cart-content {
    margin-top: 28px;
    margin-bottom: max(46px, env(safe-area-inset-bottom));
  }

  .customer-cart-panel {
    min-height: 420px;
  }

  .customer-cart-heading { margin-bottom: 22px; padding-bottom: 20px; }
  .customer-cart-panel .customer-cart-line { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 4px; }
  .customer-cart-panel .customer-cart-line-media img { width: 92px; border-radius: 3px; }
  .customer-cart-panel .customer-cart-line > .customer-cart-line-side { grid-column: 1 / -1; width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .customer-cart-line-side .customer-commerce-actions { justify-content: flex-end; }
  .customer-cart-line-price { max-width: 48%; }
  .customer-cart-panel .customer-cart-summary { padding: 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .customer-cart-empty-state,
  .customer-cart-error { min-height: 420px; border-radius: 4px; padding: 30px 18px; }
  .customer-cart-skeleton { min-height: 420px; }
  .customer-cart-skeleton-card { min-height: 150px; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .customer-cart-skeleton-media { width: 92px; height: 116px; }
  .customer-cart-skeleton-config { grid-template-columns: minmax(0, 1fr); }
  .customer-cart-skeleton-config > div:nth-child(n+2) { display: none; }
  .customer-cart-skeleton-controls span:last-child { width: 100px; }
}

@media (max-width: 600px) {
  .customer-cart-trust-list { grid-template-columns: minmax(0, 1fr); }
  .customer-cart-empty-state > .customer-commerce-actions,
  .customer-cart-error > .customer-commerce-actions { width: 100%; }
  .customer-cart-empty-state > .customer-commerce-actions > *,
  .customer-cart-error > .customer-commerce-actions > * { width: 100%; }
}

@media (max-width: 390px) {
  .customer-cart-header,
  .customer-cart-content {
    width: calc(100% - 16px);
  }

  .customer-cart-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .customer-cart-navigation a {
    justify-content: center;
    text-align: center;
  }

  .customer-cart-header .customer-commerce-header { width: 100%; justify-content: space-between; gap: 4px; }
  .customer-cart-header .customer-commerce-header-link,
  .customer-cart-header .customer-commerce-mini > button { padding-inline: 7px; font-size: .76rem; }
  .customer-cart-header .customer-commerce-mini .customer-commerce-header-badge { right: 0; }

  .customer-cart-panel .customer-cart-line { grid-template-columns: 74px minmax(0, 1fr); gap: 11px; padding: 12px; }
  .customer-cart-panel .customer-cart-line-media img { width: 74px; }
  .customer-cart-line-top { display: grid; grid-template-columns: minmax(0, 1fr); }
  .customer-cart-panel .customer-cart-line > .customer-cart-line-side { display: grid; justify-items: stretch; }
  .customer-cart-line-price { max-width: none; text-align: left; }
  .customer-cart-line-side .customer-commerce-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-cart-skeleton-card { grid-template-columns: 74px minmax(0, 1fr); gap: 11px; padding: 12px; }
  .customer-cart-skeleton-media { width: 74px; height: 98px; }
}

@media (prefers-reduced-motion: reduce) {
  .customer-cart-skeleton-heading,
  .customer-cart-skeleton-title span,
  .customer-cart-skeleton-config span,
  .customer-cart-skeleton-controls span,
  .customer-cart-skeleton-summary span,
  .customer-cart-skeleton-media { animation: none; }
}
