:root {
  --primary: #000000;
  --on-primary: #ffffff;

  --primary-variant: #818189;

  --color-dark: #101828;
  --color-success: #108981;
  --color-warning: #f8bf24;

  --surface: #f9fafb;
  --surface-container: #ffffff;
  --on-surface-container: #101828;

  --surface-container-high: #ffffff;
  --on-surface-container-high: #101828;

  --outline: #dddddd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--surface);
  color: var(--color-dark);
  min-height: 100vh;
  display: grid;
  grid-template:
    "header header header header"
    "status status status status" min-content
    ".      main   cart   ."
    ".      main   .      ."      1fr
    / 1fr minmax(400px, 600px) minmax(250px, 450px) 1fr;
}

@media only screen and (max-width: 650px) {
  body {
    grid-template:
      "header"
      "main"
      "cart"
      / 1fr
  }
}

body > header {
  background-color: var(--surface-container);
  color: var(--on-surface-container);
  padding: 1.5rem 5rem;
  box-shadow: 0px 2px 6px #cccccc;
  grid-area: header;
}

button {
  appearance: none;
  background-color: var(--primary);
  border-radius: 8px;
  border: none;
  color: var(--on-primary);
  cursor: pointer;
  font-size: 1.3rem;
  font: inherit;
  padding: 0.5rem;
  width: 100%;
}

.button-secondary {
  background-color: var(--surface);
  color: var(--on-surface);
  border: 1px solid var(--outline);
}

button:disabled {
  background-color: var(--primary-variant);
  cursor: default;
}

#status {
  padding: 5rem;
  grid-area: status;
}

.page-title {
  font-weight: 600;
  padding-bottom: 0.5rem;
}

.page-sub-title {
  padding-bottom: 2rem;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

main {
  padding: 2rem;
  max-width: 600px;
  grid-area: main;
}

.card {
  background-color: var(--surface-container-high);
  color: var(--on-surface-container-high);
  border: 1px solid var(--outline);
  border-radius: 0.625rem;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.photo-title {
  font-size: 1.2rem;
  font-weight: normal;
  padding-bottom: 1.5rem;
}

.photo img {
  width: 100%;
}

.photo-frame {
  position: relative;
  aspect-ratio: 6 / 8;
}

.photo-frame img {
  position: absolute;
  top: 8%;
  left: 0;
  width: 75%;
  height: 75%;
  object-fit: scale-down;
}

.photo-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('templates/WGI Guard 6x8.png');
  background-size: contain;
  pointer-events: none;
}

.photo-caption {
  font-size: 0.95rem;
  font-weight: 300;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.photo-price {
  font-size: 1.7rem;
  font-family: sans-serif;
  font-weight: bold;
  padding-bottom: 1rem;
}

.portrait img {
  width: 100%;
  display: block;
}

.cart {
  margin: 2rem;
  grid-area: cart;
}

.cart-title {
  font-weight: 500;
  font-size: 1.1rem;
  padding-bottom: 2rem;
}

#cart-empty {
  font-weight: 200;
  text-align: center;
  padding: 2rem;
}

.cart-items {
  width: 100%;
}

.cart-item,
.cart-summary {
  display: flex;
  flex-direction: row;
  padding: 0.5rem 0;
}

.cart-item > *,
.cart-summary > * {
  flex: 1;
}

.cart-item-description {
  font-weight: 200;
}

.cart-item-price {
  text-align: right;
  font-weight: 600;
}

.cart-summary {
  border-top: 1px solid var(--outline);
  padding: 2rem 0;
}

.cart-summary .cart-item-description {
  font-size: 1.1rem;
  font-weight: 600;
}

.cart-summary .cart-item-price {
  font-size: 1.2rem;
  font-weight: 600;
}

.thank-you-message {
  font-size: 1.25rem;
  color: #64748b;
  text-align: center;
  max-width: 500px;
}
