@import url("https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&family=IM+Fell+English:ital@0;1&display=swap");

* {
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition-duration: 0.2s;
    font-family: "IM Fell English", serif;
}

*:not(nav) {
    color: var(--text-color);
}

:root {
    --primary-color: #0f766e;
    --secondary-color: #14b8a6;
    --background-color: #1f2937;
    --text-color: #ffffff;
    --main-bg: rgb(199, 194, 184);
    --input-bg:rgba(255, 255, 255, 0.5);
    --text-color: #3e2723;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #0f766e;
        --secondary-color: #14b8a6;
        --background-color: #1f2937;
        --text-color: #ffffff;
        --main-bg: rgb(31, 41, 55);
        --input-bg:rgba(255, 255, 255, 0.1);
        --text-color: #ffffff;
    }
}

body {
  margin: 0;
  font-family: "IM Fell English", serif;
  line-height: 1.5;
  background-color: var(--main-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

input {
    background-color: var(--input-bg);
}

.nav-frame {
  width: 100%;
  height: 62px;
  border: 0;
  display: block;
  overflow: hidden;
  flex: 0 0 62px;
}

.page-frame {
  width: 100%;
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  border: 0;
  display: block;
}

main {
  padding: 1.25rem;
  padding-left: 4rem;
  padding-right: 4rem;
  flex: 1 0 auto;
  width: 100%;
}

button {
    background-color:#3e2723;
    color: #c1bcb2;
    border: 1px solid #3e2723;
    border-radius: 5px;
    padding: 10px 14px;
    font-family: "IM Fell English SC", serif;
}

button:hover {
    cursor: pointer;
    transform: translateY(-2px);
    background-color: #5c3c36;
    border-color: #5c3c36;
    color: #e8e2d6;
}

button.account-wrap:hover {
    background-color: transparent;
    border-color: transparent;
    color: inherit;
}

button:not(nav button):hover{
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

[title="globalnav"] {
    position: relative;
    height: 100%;
    width: 100%;
    z-index: 1000;
}


.form-feedback {
  margin: 0.75rem 0;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.form-feedback.error {
  background: rgba(196, 30, 58, 0.12);
  border-color: #c41e3a;
  color: #c41e3a;
}

.form-feedback.success {
  background: rgba(15, 118, 110, 0.14);
  border-color: #0f766e;
  color: #0f766e;
}

.status-banner {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
}

.status-banner.error {
  background: rgba(196, 30, 58, 0.12);
  border: 1px solid #c41e3a;
}

.status-banner.success {
  background: rgba(15, 118, 110, 0.14);
  border: 1px solid #0f766e;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.catalog-tile {
  display: grid;
  gap: 0.4rem;
}

.catalog-card {
  background: var(--input-bg);
  border: 4px solid #3e2723;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  border-color: #6a4b44;
}

.owned-catalog-card {
  transform: scale(0.9996);
}

.catalog-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: rgba(0, 0, 0, 0.08);
}

.catalog-card-placeholder {
  display: grid;
  place-items: center;
}

.catalog-card-body {
  padding: 0.8rem;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0.2rem;
}

.snippet-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
}

.catalog-price {
  margin: 0;
  font-weight: 700;
  text-align: center;
}

.catalog-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.editor-rows {
  display: grid;
  gap: 0.35rem;
}

.editor-rows-list {
  grid-template-columns: 1fr;
}

.editor-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.item-detail-card {
  background: var(--input-bg);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 0.65rem;
  margin-bottom: 0;
  min-height: 0;
  overflow: auto;
}

.item-detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0.65rem;
  align-items: start;
  min-height: min(82vh, 700px);
}

.item-left-pane {
  position: static;
  aspect-ratio: auto;
  max-height: none;
  height: fit-content;
  overflow: hidden;
}

.item-left-pane:hover {
  transform: none;
  box-shadow: none;
  border-color: #3e2723;
}

.item-left-pane .catalog-card-body {
  overflow: visible;
}

.item-right-pane {
  display: grid;
  gap: 0.6rem;
  grid-template-rows: auto 1fr;
  min-height: 0;
  overflow: visible;
}

.item-hero-image {
  width: 100%;
  height: clamp(150px, 24vh, 210px);
  object-fit: cover;
  background: rgba(0, 0, 0, 0.08);
}

.item-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.45rem;
}

.item-detail-image {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}

.reviews-list {
  display: grid;
  gap: 0.5rem;
  max-height: 150px;
  overflow: auto;
}

.review-card {
  background: var(--input-bg);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.55rem;
}

textarea {
  background-color: var(--input-bg);
}

.item-modal-content h2,
.item-modal-content h3,
.item-modal-content h4,
.item-modal-content p {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.item-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.item-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.item-modal-content {
  position: absolute;
  inset: 3.5vh 2.5vw;
  background: var(--main-bg);
  border: 2px solid #3e2723;
  border-radius: 10px;
  padding: 0.65rem;
  overflow: hidden;
  max-height: 92vh;
}

#item-modal-close-btn {
  position: fixed;
  top: 4.2vh;
  left: 3.2vw;
  z-index: 1301;
  min-width: 36px;
  padding: 6px 12px;
}

#item-review-text {
  min-height: 96px;
  resize: vertical;
  border: 1px solid #3e2723;
  border-radius: 5px;
  padding: 8px;
}


.orders-list,
.webhook-events {
  display: grid;
  gap: 0.8rem;
}

.order-card,
.webhook-event-card {
  background: var(--input-bg);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.9rem;
}

.order-items {
  margin-top: 0.5rem;
}

pre {
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.6rem;
  border-radius: 6px;
}

.site-footer {
  margin-top: auto;
  padding: 1rem 4rem;
  border-top: 2px solid #3e2723;
  background: rgba(62, 39, 35, 0.07);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.footer-top p {
  margin: 0.2rem 0;
}

.footer-bottom {
  margin-top: 0.8rem;
  display: flex;
  justify-content: flex-start;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.contact-modal-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, 92vw);
  background: var(--main-bg);
  border: 2px solid #3e2723;
  border-radius: 10px;
  padding: 1rem;
}

.contact-modal-content form {
  display: grid;
  gap: 0.6rem;
}

.contact-modal-content label {
  display: grid;
  gap: 0.25rem;
}

.projects-layout {
  display: grid;
  grid-template-columns: 280px 1fr 360px;
  gap: 1rem;
}

.projects-panel {
  background: var(--input-bg);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 0.8rem;
  align-self: start;
}

.project-rows {
  display: grid;
  gap: 0.35rem;
}

.project-row-item {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  background: rgba(255, 255, 255, 0.3);
}

.docs-layout {
  grid-template-columns: 300px 1fr 320px;
}

.docs-gallery {
  display: grid;
  gap: 0.55rem;
}

.docs-card {
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
  padding: 0.55rem;
}

.docs-card h3 {
  margin: 0 0 0.35rem;
}

.docs-card p {
  margin: 0.15rem 0;
}
