@import url("/assets/form-depth.css");

button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
input,
select,
textarea {
  min-height: 44px;
  background: #252826;
  color: var(--bone);
  border: 1px solid #596052;
  padding: 9px 11px;
  border-radius: 0;
  max-width: 100%;
}
input[type="checkbox"],
input[type="radio"] {
  min-height: 20px;
  width: 20px;
  accent-color: var(--signal);
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #ced1c8;
}
textarea {
  min-height: 130px;
  resize: vertical;
}
fieldset {
  border: 1px solid var(--line);
  padding: 18px;
  margin: 18px 0;
}
legend {
  padding: 0 8px;
  color: var(--signal);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 1px solid var(--storefront-focus, #b4b6af);
  outline-offset: 3px;
}
/* Some touch browsers defer :active while deciding whether a gesture scrolls.
   Keep their native, temporary tap feedback quiet without adding input events. */
:is(a, button, input, select, textarea, label, summary, [role="button"], [tabindex], .file-picker) {
  -webkit-tap-highlight-color: rgba(128, 128, 128, 0.18);
}
:is(a, button, summary, [tabindex]):focus:not(:focus-visible) {
  outline: none;
}
/* Fallback for non-text controls; text entry receives its shared depth paint.
   There is no focus transfer or size change. */
:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"], [type="button"], [type="submit"], [type="reset"]), select, textarea):focus {
  border-color: var(--storefront-focus, #b4b6af);
  outline: 1px solid var(--storefront-focus, #b4b6af);
  outline-offset: -1px;
  box-shadow: none;
}
/* The skip destination remains focusable without drawing a page-sized frame. */
main#main[tabindex="-1"]:focus {
  outline: none;
}
/* A temporary press, not a persistent focus glow. Design keeps its own press. */
body:not(.studio-page) :is(button, .button, summary, .header-icon):active:not(:disabled) {
  transform: translateY(1px);
}
@media (prefers-reduced-motion: reduce) {
  body:not(.studio-page) :is(button, .button, summary, .header-icon):active:not(:disabled) {
    transform: none;
  }
}
[hidden] {
  display: none !important;
}
.app-main {
  min-height: 65vh;
  padding-block: 40px 70px;
}
.app-main h1 {
  font-size: clamp(36px, 6vw, 72px);
  margin-bottom: 20px;
}
.app-main h2 {
  font-size: clamp(25px, 3vw, 42px);
  margin: 24px 0 16px;
}
.app-main h3 {
  margin: 0 0 10px;
  font-size: 20px;
}
.app-main p {
  margin: 10px 0;
}
#catalog-grid .style-card {
  background: var(--bone);
  color: var(--ink);
}
#catalog-grid .tag {
  color: #36451b;
  background: #dbfa54;
}
.muted,
.help {
  color: var(--muted);
  font-size: 14px;
}
.notice {
  padding: 14px 18px;
  background: #dbfa5411;
  border: 1px solid #6f813c;
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0;
}
.error {
  color: #ffc2ac;
}
.success {
  color: var(--signal);
}
.toolbar,
.actions,
.inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.toolbar {
  margin-block: 20px;
}
.toolbar label {
  flex: 1;
  min-width: 130px;
}
.toolbar label:first-child {
  flex: 2;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.panel {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  margin: 18px 0;
}
.panel .panel {
  padding: 15px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.wide {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check input {
  flex-shrink: 0;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header-tools a {
  font-size: 13px;
  text-decoration: none;
}
.menu-button {
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--line);
  font-size: 20px;
  width: 42px;
  height: 42px;
  display: none;
}
.site-nav {
  gap: 20px;
}
dialog {
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--line);
  padding: 25px;
  max-width: min(94vw, 660px);
}
dialog::backdrop {
  background: #000b;
}
.drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: none;
  width: min(88vw, 370px);
  position: fixed;
}
.drawer nav {
  display: grid;
  gap: 22px;
  margin-top: 25px;
}
.drawer .close {
  float: right;
}
.close {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--line);
  padding: 9px 14px;
}
.price {
  font: 800 25px var(--mono);
  color: var(--signal);
}
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
}
.gallery {
  border: 1px solid var(--line);
  background: radial-gradient(ellipse, #3b4439, #1c211f);
  position: relative;
  overflow: hidden;
}
.gallery-visual {
  height: 440px;
  display: grid;
  place-items: center;
  position: relative;
}
.gallery img {
  max-height: 370px;
  width: 78%;
  object-fit: contain;
  filter: drop-shadow(0 20px 20px #0006);
}
.gallery .placeholder {
  padding: 35px;
  max-width: 40ch;
  color: #d5d8cb;
  text-align: center;
}
.gallery-controls {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  background: #151b16;
}
.gallery-controls button {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--line);
  padding: 8px 14px;
}
.gallery-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.gallery-dots button {
  padding: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.gallery-dots button[aria-current="true"] {
  background: var(--signal);
}
.turning img {
  animation: turn 3s ease-in-out infinite alternate;
}
.gallery figcaption {
  padding: 10px 16px;
  font: 11px var(--mono);
  color: var(--muted);
}
@keyframes turn {
  from {
    transform: perspective(700px) rotateY(-22deg);
  }
  to {
    transform: perspective(700px) rotateY(22deg);
  }
}
.sticky-buy {
  position: fixed;
  z-index: 6;
  inset: auto 0 0;
  background: #1b201cf5;
  border-top: 1px solid #66734b;
  backdrop-filter: blur(10px);
}
.sticky-buy > div {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.sticky-buy small {
  display: block;
  color: var(--muted);
}
body:has(.sticky-buy) {
  padding-bottom: 95px;
}
.summary {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  display: grid;
  gap: 9px;
}
.summary > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.summary .total {
  font-size: 22px;
  color: var(--signal);
  font-weight: 800;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.cart-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 20px;
}
.cart-item > img {
  width: 90px;
  height: 110px;
  object-fit: contain;
  background: #343a31;
}
.cart-item .actions {
  margin-top: 15px;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 15px 0;
}
.preview-grid figure {
  min-width: 0;
}
.preview-grid canvas,
.preview-grid img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: #31362f;
}
.preview-grid figcaption {
  font: 10px var(--mono);
  margin-top: 6px;
}
.tag {
  display: inline-block;
  background: #dbfa541c;
  border: 1px solid #647038;
  color: var(--signal);
  padding: 4px 8px;
  font: 11px var(--mono);
}
.empty {
  text-align: center;
  padding: 45px 20px;
  border: 1px dashed var(--line);
}
.studio-shell {
  width: 100%;
  height: 900px;
  border: 1px solid var(--line);
  background: white;
}
.studio-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--ink);
  padding: 12px 0;
}
.studio-toolbar select {
  min-height: 40px;
}
.validation {
  max-height: 220px;
  overflow: auto;
}
.account-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  margin: 20px 0;
  padding-bottom: 15px;
}
.account-tabs a {
  padding: 8px 15px;
  border: 1px solid var(--line);
  text-decoration: none;
}
.account-tabs a.active {
  background: var(--signal);
  color: var(--ink);
}
.review-card {
  padding: 18px;
  border: 1px solid var(--line);
  margin: 15px 0;
}
.review-card img {
  max-width: 200px;
  max-height: 170px;
  object-fit: cover;
}
.review-carousel {
  display: flex;
  overflow-x: auto;
  gap: 18px;
  scroll-snap-type: x mandatory;
}
.review-carousel .review-card {
  flex: 0 0 min(85%, 340px);
  scroll-snap-align: start;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
summary {
  font-weight: 700;
  cursor: pointer;
}
details p {
  color: var(--muted);
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 18px 0;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.table-wrap {
  overflow: auto;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-extra {
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-extra form {
  max-width: 500px;
}
.footer-extra input[type="email"] {
  width: 230px;
}
.footer-extra label {
  margin-bottom: 8px;
}
#toast {
  position: fixed;
  right: 20px;
  bottom: 110px;
  max-width: min(400px, 90vw);
  background: var(--bone);
  color: var(--ink);
  padding: 0;
  z-index: 15;
  box-shadow: 0 5px 30px #0006;
}
#toast:not(:empty) {
  padding: 15px 20px;
}
.load-error {
  padding: 25px;
  border: 1px solid #aa5745;
}
.address-card {
  padding: 15px;
  border: 1px solid var(--line);
  margin: 10px 0;
}
.contact-hp {
  position: absolute;
  left: -10000px;
}
.admin-order summary {
  overflow-wrap: anywhere;
}
.code {
  font: 12px var(--mono);
  overflow-wrap: anywhere;
}
.content-space {
  padding-bottom: 35px;
}
.policy-copy {
  max-width: 75ch;
  line-height: 1.8;
}
.media-fallback {
  color: var(--muted);
  padding: 20px;
  border: 1px dashed var(--line);
}
@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
  .menu-button {
    display: block;
  }
  .product-layout {
    grid-template-columns: 1fr;
  }
  .gallery-visual {
    height: 360px;
  }
  .gallery img {
    max-height: 300px;
  }
  .studio-shell {
    height: 1150px;
  }
  .header-tools {
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .app-main {
    padding-top: 28px;
  }
  .header-inner {
    gap: 10px;
  }
  .header-tools > a {
    font-size: 12px;
  }
  .header-tools > a.account-link {
    display: none;
  }
  .panel {
    padding: 16px;
  }
  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .preview-grid canvas,
  .preview-grid img {
    height: 140px;
  }
  .gallery-visual {
    height: 300px;
  }
  .gallery img {
    max-height: 250px;
  }
  .sticky-buy > div {
    gap: 10px;
    flex-wrap: wrap;
  }
  .sticky-buy .button {
    font-size: 13px;
  }
  body:has(.sticky-buy) {
    padding-bottom: 170px;
  }
  .studio-shell {
    height: 1500px;
  }
  .cart-item {
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 12px;
  }
  .cart-item > img {
    width: 65px;
    height: 90px;
  }
  .footer-extra input[type="email"] {
    width: 100%;
  }
  .app-main h1 {
    font-size: 40px;
  }
  .offer-region {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .turning img {
    animation: none;
  }
}
/* Keep the browser's localized file-input chrome out of the storefront. */
.file-picker {
  position: relative;
}
.file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.file-picker:has(input[type="file"]:focus-visible) .button {
  outline: 1px solid var(--storefront-focus, #b4b6af);
  outline-offset: 3px;
}
.file-picker [data-file-name] {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.footer-payment {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.payment-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.pay-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  min-width: 60px;
  background: #fff;
  color: #16285d;
  border-radius: 4px;
  font-weight: 800;
}
.pay-mark svg {
  width: 36px;
  height: 22px;
}
.whatsapp-link {
  min-height: 44px;
  max-width: 100%;
}
.order-fulfillment {
  overflow-wrap: anywhere;
  border-block: 1px solid var(--line);
  padding: 12px 0;
}
#admin-users,
#catalog-pricing {
  margin-block: 24px;
}
#catalog-pricing form {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.studio-page .footer-payment {
  display: none;
}
