*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#app {
  height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: #fff;
  overflow-x: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

:root {
  --container-max: 1920px;
  --header-h: 72px;
  --footer-h: 0px;
  --color-dark: #10151f;
  --color-grey: #3e424a;
  --color-brand: #ff4000;
  --color-panel: #f8f6f7;
  --color-white: #ffffff;
  --color-black: #000000;
  --bg: var(--color-white);
  --panel: var(--color-panel);
  --text: var(--color-dark);
  --muted: var(--color-grey);
  --line: var(--color-panel);
  --brand: var(--color-brand);
  --brand-hover: var(--color-brand);
  --font-sans: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Arial, "Noto Sans";
  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-md: var(--shadow);
}

#app {
  min-height: 1080px;
}

.view-root {
  padding: 100px;
  min-height: calc(1080px - var(--header-h) - var(--footer-h));
}

[hidden] {
  display: none !important;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 50;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 100%;
  background-color: var(--color-white);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  padding: 16px;
  z-index: 60;
}

.cart-sidebar[aria-hidden="false"],
.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header,
.cart-footer,
.cart-summary {
  padding: 16px 20px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.cart-title {
  font-size: 18px;
  margin: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--color-white);
  cursor: pointer;
}

.cart-content {
  padding: 16px 20px;
  overflow: auto;
  flex: 1 1 auto;
}

.cart-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  padding: 12px 0;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.summary-list {
  margin: 0;
}

.summary-list .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px dashed var(--border);
}

.summary-list .row:first-child {
  border-top: 0;
}

.summary-list .row.total dt,
.summary-list .row.total dd {
  font-weight: 700;
}

.summary-list dt,
.summary-list dd {
  margin: 0;
}

.go-checkout {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: #111827;
  color: var(--color-white);
  font-weight: 600;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.bg-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-contain {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
