/* =========================================================
   ARTSY ENTERPRISE — PRODUCTION GLOBAL STYLES
   Premium / clean / responsive / shared-hosting safe
   ========================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #171717;
  background: #f7f4ef;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 20px 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

.page {
  min-height: calc(100vh - 180px);
  padding: 30px 0 56px;
}

.section {
  padding: 28px 0;
}

.section--muted {
  background: #f8fafc;
}

.site-main {
  min-height: calc(100vh - 160px);
}

.site-main__inner {
  width: 100%;
}

.stack > * + * {
  margin-top: 14px;
}

.muted {
  color: rgba(0, 0, 0, 0.62);
}

.small {
  font-size: 13px;
}

.kicker,
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.52);
  margin-bottom: 10px;
  font-weight: 600;
}

/* ---------- Typography ---------- */
h1,
.h1 {
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.02;
  margin: 0 0 14px;
  letter-spacing: -0.04em;
  font-weight: 700;
}

h2,
.h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  font-weight: 650;
}

h3,
.h3 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

p {
  line-height: 1.72;
  margin: 0 0 12px;
  font-size: 15px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.topbar {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) auto auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  padding: 4px;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.brand-title {
  display: block;
  font-size: clamp(20px, 1.75vw, 30px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111111;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-subtitle {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(17, 17, 17, 0.8);
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.main-nav a:hover {
  color: #111111;
  background: rgba(17, 17, 17, 0.05);
}

.main-nav a.is-active {
  color: #111111;
  background: rgba(17, 17, 17, 0.06);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: #111111;
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.header-email:hover {
  background: #ffffff;
  border-color: rgba(17, 17, 17, 0.2);
  transform: translateY(-1px);
}

.mobile-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111111;
  margin: 0 auto;
}

.mobile-nav {
  display: none;
  padding: 0 0 18px;
}

.mobile-nav__inner {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 500;
}

.mobile-nav a.is-active {
  background: rgba(17, 17, 17, 0.06);
  border-color: rgba(17, 17, 17, 0.14);
}

.mobile-nav.is-hidden {
  display: none;
}

/* ---------- Cards / Surfaces ---------- */
.card,
.surface {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05);
}

.card-inner {
  padding: 24px;
}

/* ---------- Buttons / Inputs ---------- */
.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 18px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover,
button:hover {
  background: #ffffff;
  border-color: rgba(17, 17, 17, 0.2);
  transform: translateY(-1px);
}

.btn-primary {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background: #000000;
  color: #ffffff;
}

.btn-secondary,
.btn-ghost {
  background: transparent;
  border-color: rgba(17, 17, 17, 0.12);
}

.btn-block {
  width: 100%;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #ffffff;
  padding: 12px 14px;
  font-size: 14px;
  color: #111111;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(17, 17, 17, 0.32);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

label {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.66);
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ---------- Alerts ---------- */
.alert {
  border-radius: 16px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
}

.alert-error {
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(220, 38, 38, 0.05);
}

.alert-success {
  border-color: rgba(22, 163, 74, 0.2);
  background: rgba(22, 163, 74, 0.05);
}

/* ---------- Grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* ---------- Hero / Page Hero ---------- */
.hero {
  border-radius: 28px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background:
    radial-gradient(circle at 14% 20%, rgba(0, 0, 0, 0.04), transparent 48%),
    radial-gradient(circle at 86% 40%, rgba(0, 0, 0, 0.035), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.72));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.hero-inner {
  padding: 34px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.page-hero {
  padding: 54px 0 26px;
}

.page-hero--compact {
  padding: 44px 0 18px;
}

.page-hero__content {
  max-width: 820px;
}

.page-hero__content h1 {
  margin-bottom: 14px;
}

.page-hero__content p {
  color: rgba(0, 0, 0, 0.64);
  font-size: 16px;
  max-width: 760px;
}

/* ---------- Common sections ---------- */
.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2 {
  margin: 8px 0 12px;
  color: #111827;
}

.section-heading p {
  margin: 0;
  color: #4b5563;
  line-height: 1.8;
}

.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.cta-panel__content {
  max-width: 760px;
}

.cta-panel__content h2 {
  margin: 8px 0 12px;
  color: #111827;
  font-size: 2rem;
}

.cta-panel__content p {
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.8;
}

.cta-panel__content p:last-child {
  margin-bottom: 0;
}

.cta-panel__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Filter Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.chip:hover {
  background: #ffffff;
  border-color: rgba(17, 17, 17, 0.2);
}

.chip-active {
  border-color: rgba(17, 17, 17, 0.24);
  background: rgba(17, 17, 17, 0.06);
  font-weight: 700;
}

/* ---------- Tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

.table th {
  background: rgba(17, 17, 17, 0.04);
  font-weight: 600;
}

.table tr:last-child td {
  border-bottom: 0;
}

/* ---------- Store ---------- */
.store-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 28px 60px;
}

.product-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 17, 17, 0.22);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.08);
}

.product-card[data-href] {
  cursor: pointer;
}

.product-media {
  position: relative;
  width: 100%;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  height: 280px;
  overflow: hidden;
}

@supports (aspect-ratio: 4 / 3) {
  .product-media {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
}

.product-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0));
  color: #ffffff;
  pointer-events: none;
}

.product-overlay-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
  line-height: 1.14;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.product-overlay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-overlay-price {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.product-overlay-vat {
  font-weight: 500;
  font-size: 12px;
  opacity: 0.9;
}

.product-overlay-actions {
  pointer-events: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.product-overlay-actions form {
  margin: 0;
}

.product-overlay-actions .btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.product-overlay-actions .btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.product-overlay-actions .btn.btn-primary {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.product-overlay-actions .btn.btn-primary:hover {
  background: rgba(255, 255, 255, 0.92);
}

.product-body {
  padding: 18px 18px 10px;
}

.product-title {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(17, 17, 17, 0.04);
  font-weight: 700;
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #ffffff;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.64);
}

.product-desc {
  margin: 0 0 14px;
  color: rgba(0, 0, 0, 0.62);
  min-height: 44px;
}

.product-actions {
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  padding: 14px 18px 18px;
  background: rgba(17, 17, 17, 0.015);
}

.product-actions form {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.qty-input {
  width: 78px;
  min-width: 78px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #ffffff;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 28px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.82));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 28px 0 18px;
}

.footer-grid a {
  color: inherit;
}

.footer-grid .stack a {
  display: inline-block;
  padding: 4px 0;
}

.footer-grid .stack a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 16px;
  }

  .brand-title {
    font-size: 20px;
  }

  .brand-subtitle {
    letter-spacing: 0.16em;
  }

  .header-email {
    display: none;
  }
}

@media (max-width: 980px) {
  .container {
    padding: 0 20px;
  }

  .page {
    padding: 24px 0 48px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 82px;
    padding: 12px 0;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: block;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-title {
    font-size: 18px;
    white-space: normal;
  }

  .brand-subtitle {
    font-size: 10px;
    letter-spacing: 0.14em;
    white-space: normal;
  }

  .hero-inner,
  .grid-2,
  .grid-3,
  .footer-grid,
  .form-row,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container,
  .store-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    backdrop-filter: blur(10px);
  }

  .hero,
  .card,
  .surface,
  .cta-panel {
    border-radius: 18px;
  }

  .hero-inner {
    padding: 24px;
  }

  .page-hero {
    padding: 36px 0 14px;
  }

  .page-hero--compact {
    padding: 30px 0 10px;
  }

  .header-actions .btn:not(.mobile-nav-toggle) {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }
}