@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
  --paper: #f7f3ec;
  --surface: #fffdf8;
  --ink: #241813;
  --muted: #706158;
  --line: #dfd4c7;
  --forest: #4a2a18;
  --teal: #6f3b1f;
  --copper: #7a3e1d;
  --danger: #b93737;
  --success: #287447;
  --warning: #a66a05;
  --shadow: 0 18px 45px rgba(24, 33, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 4vw;
  background: rgba(247, 243, 236, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.88rem;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.nav-menu a {
  min-height: 38px;
  padding: 8px 9px;
  border-radius: 8px;
  text-decoration: none;
  color: #4a382c;
  font-weight: 650;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav-action {
  border: 1px solid var(--line);
  background: var(--surface);
}

.nav-cart {
  margin-left: 10px;
}

.cart-icon {
  margin-left: 4px;
  vertical-align: -2px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--copper);
  background: rgba(122, 62, 29, 0.1);
}

.nav-cta {
  padding: 9px 13px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff !important;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--copper);
  font-size: 0.78rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.flash {
  width: min(1120px, 90vw);
  margin: 18px auto 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.flash-success {
  color: #16432a;
  background: #dcefe4;
}

.flash-error,
.form-error {
  color: #6e1f1f;
  background: #f5dfdc;
}

.form-error {
  padding: 11px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}

main {
  min-height: 68vh;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 56px;
  align-items: center;
  width: min(1180px, 90vw);
  min-height: min(720px, calc(100svh - 66px));
  margin: 0 auto;
  padding: clamp(24px, 4vh, 38px) 0 clamp(30px, 5vh, 48px);
}

.hero-copy h1,
.page-heading h1,
.content-split h2,
.store-strip h2,
.section-heading h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.05;
  margin: 0;
}

.hero-copy h1 {
  max-width: 650px;
  font-size: clamp(2.45rem, 5.2vw, 4.9rem);
}

.hero-copy p,
.page-heading p,
.content-split p,
.store-strip p {
  color: var(--muted);
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: clamp(340px, 58vh, 560px);
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn:not(:disabled):hover {
  box-shadow: 0 10px 18px rgba(24, 33, 27, 0.1);
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--forest);
}

.btn-primary:hover {
  background: var(--ink);
}

.btn-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.btn-secondary:hover,
.btn-light:hover {
  border-color: rgba(122, 62, 29, 0.34);
  background: #f8f1ea;
}

.btn-light {
  color: var(--ink);
  border-color: var(--line);
  background: #f2eee6;
}

.btn-danger {
  color: #fff;
  background: var(--danger);
}

.btn-card,
.btn-small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.btn-card {
  width: 100%;
  color: #fff;
  background: var(--ink);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.full-width {
  width: 100%;
}

.section-band,
.value-grid,
.store-strip,
.page-heading,
.catalog-layout,
.product-detail,
.checkout-layout,
.cart-layout,
.account-layout,
.orders-list,
.contact-layout,
.map-section,
.content-split {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 58px 0;
}

.section-heading,
.results-bar,
.admin-heading,
.order-card-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.results-bar {
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(24, 33, 27, 0.05);
}

.results-bar h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.text-link {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  border-color: rgba(122, 62, 29, 0.42);
  box-shadow: 0 20px 38px rgba(24, 33, 27, 0.12);
  transform: translateY(-5px);
}

.product-card > a {
  display: block;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  background: #ebe5da;
  transition: transform 0.25s ease;
}

.product-card:hover img {
  transform: scale(1.035);
}

.product-card-body {
  padding: 14px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-card h3 {
  min-height: 48px;
  margin: 8px 0;
  font-size: 1.02rem;
  line-height: 1.35;
}

.product-card h3 a {
  text-decoration: none;
}

.price,
.detail-price {
  margin: 0;
  color: var(--copper);
  font-size: 1.12rem;
  font-weight: 900;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-grid article,
.summary-card,
.form-panel,
.auth-card,
.contact-card,
.order-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.value-grid article {
  padding: 22px;
}

.value-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.store-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.site-footer {
  margin-top: 60px;
  padding: 46px 5vw 22px;
  color: #eadfd4;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 34px;
  width: min(1180px, 100%);
  margin: 0 auto 32px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: #cabbae;
  text-decoration: none;
  line-height: 1.7;
}

.footer-grid h4 {
  color: #fff;
  margin: 0 0 10px;
}

.footer-bottom {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid #48362b;
  color: #b4a295;
  font-size: 0.85rem;
}

.page-heading {
  padding-bottom: 24px;
}

.page-heading h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.page-heading.with-image {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 34px;
  align-items: center;
}

.page-heading.with-image img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding-top: 28px;
}

.catalog-search-section {
  width: min(900px, 90vw);
  margin: 0 auto;
  padding: 10px 0 22px;
  text-align: center;
}

.catalog-search-section .eyebrow {
  margin-bottom: 8px;
}

.catalog-search-form {
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.catalog-search-form input {
  min-height: 50px;
  border: 0;
  background: #f8f5ee;
  font-size: 1rem;
}

.catalog-search-form .btn {
  min-width: 126px;
}

.catalog-results {
  min-width: 0;
}

.filter-panel {
  position: sticky;
  top: 82px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.filter-panel h2 {
  margin: 0 0 6px;
  font-size: 1.18rem;
}

.filter-note,
.active-search {
  color: var(--muted);
  font-size: 0.9rem;
}

.active-search {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #e3d2c1;
  border-radius: 999px;
  background: #f7eee5;
  font-weight: 800;
}

.filter-note {
  margin: 0 0 16px;
  line-height: 1.55;
}

.filter-panel form {
  display: grid;
  gap: 16px;
}

.filter-panel label {
  margin-bottom: 0;
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #4a382c;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cfc8ba;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(122, 62, 29, 0.15);
}

textarea {
  resize: vertical;
}

.two-fields,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.empty-state {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.product-detail-media img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  border-radius: 8px;
}

.product-detail-info h1 {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 22px;
}

.detail-meta span,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  background: #eee5dc;
}

.add-cart-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cart-layout,
.checkout-layout,
.account-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.cart-panel,
.summary-card,
.form-panel,
.contact-card {
  padding: 22px;
}

.cart-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 120px 96px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row img {
  width: 92px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-row h3 {
  margin: 0 0 4px;
}

.cart-row p {
  margin: 0;
}

.icon-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.cart-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.cart-summary-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.summary-card h2,
.form-panel h2,
.auth-card h2,
.contact-card h2,
.admin-card h3 {
  margin: 0 0 16px;
}

.summary-line,
.mini-order-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line.total {
  border-bottom: 0;
  font-size: 1.08rem;
}

.payment-box {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  margin: 10px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f1ea;
}

.payment-box img {
  width: 150px;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-line input {
  width: auto;
  min-height: auto;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 38px;
  align-items: center;
  width: min(1050px, 90vw);
  min-height: 72vh;
  margin: 0 auto;
  padding: 60px 0;
}

.auth-copy h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 1.08;
}

.auth-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.auth-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}

.google-auth-btn {
  gap: 10px;
}

.google-auth-btn img {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}

.auth-card label {
  margin-bottom: 0;
}

.auth-card .btn {
  min-height: 48px;
}

.auth-card .btn-light {
  color: var(--ink);
  border-color: #dbcabd;
  background: #fbf7f2;
}

.auth-card .btn-light:hover {
  border-color: rgba(122, 62, 29, 0.38);
  background: #f4eadf;
}

.auth-card .google-auth-btn {
  color: #3c4043;
  border-color: #dadce0;
  background: #fff;
}

.auth-card .google-auth-btn:hover {
  color: #202124;
  border-color: #c6cacf;
  background: #f8fafd;
}

.auth-switch {
  margin: 2px 0 0;
  color: var(--muted);
  text-align: center;
}

.notice-text {
  margin: -4px 0 16px;
  padding: 12px 14px;
  border: 1px solid #e3d2c1;
  border-radius: 8px;
  color: #5a3824;
  background: #f7eee5;
  line-height: 1.55;
}

.quick-link-stack {
  display: grid;
  gap: 12px;
}

.quick-links-panel {
  display: grid !important;
  gap: 12px;
}

.quick-links-panel h2 {
  margin: 0 0 4px;
}

.quick-link-card {
  display: grid !important;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfaf6;
  text-decoration: none !important;
  width: 100%;
}

.quick-link-card strong,
.quick-link-card span {
  display: block !important;
}

.quick-link-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.quick-link-card:hover {
  border-color: var(--forest);
  background: #fbf1e8;
}

.account-logout-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-inquiry-panel {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-inquiry-panel h2 {
  margin: 0 0 8px;
}

.inquiry-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 28px 0 70px;
}

.inquiry-list,
.inquiry-thread {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.inquiry-list {
  display: grid;
  align-content: start;
  overflow: hidden;
}

.inquiry-list-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.inquiry-list-item.active,
.inquiry-list-item:hover {
  background: #fbf1e8;
}

.inquiry-list-item img {
  width: 54px !important;
  height: 46px !important;
  max-width: 54px;
  min-width: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.inquiry-list-item strong,
.inquiry-list-item small {
  display: block;
}

.inquiry-list-item small {
  margin-top: 4px;
  color: var(--muted);
}

.inquiry-thread {
  padding: 20px;
}

.thread-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.thread-head h2,
.thread-head h3 {
  margin: 0;
}

.message-list {
  display: grid;
  gap: 12px;
  max-height: 430px;
  overflow-y: auto;
  padding: 6px 6px 18px;
}

.message-bubble {
  width: min(82%, 620px);
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.55;
}

.message-bubble.mine {
  justify-self: end;
  color: #fff;
  background: var(--forest);
}

.message-bubble.staff {
  justify-self: start;
  background: #f8f1ea;
}

.message-bubble small {
  display: block;
  margin-top: 8px;
  opacity: 0.78;
}

.thread-reply {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.gallery-grid,
.collage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 22px 0 70px;
}

.collage-grid {
  grid-auto-flow: dense;
  grid-auto-rows: 150px;
}

.gallery-item,
.collage-item {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  border-radius: 8px;
  color: #fff;
  background: #241a14;
  text-decoration: none;
}

.collage-item {
  min-height: 0;
}

.collage-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.collage-wide {
  grid-column: span 2;
}

.collage-tall {
  grid-row: span 2;
}

.gallery-item img,
.collage-item img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.collage-item img {
  min-height: 0;
}

.gallery-item:hover img,
.collage-item:hover img {
  transform: scale(1.04);
}

.gallery-item span,
.collage-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0));
}

.gallery-item strong,
.gallery-item small,
.collage-item strong,
.collage-item small {
  display: block;
}

.gallery-item small,
.collage-item small {
  margin-top: 4px;
  color: #f3e8dd;
}

.products-gallery-preview {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 12px 0 74px;
  border-top: 1px solid var(--line);
}

.mini-collage-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 145px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mini-collage-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
}

.mini-collage-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.mini-collage-wide {
  grid-column: span 2;
}

.mini-collage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.mini-collage-card:hover img {
  transform: scale(1.04);
}

.mini-collage-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0));
}

.mini-collage-card strong,
.mini-collage-card small {
  display: block;
}

.mini-collage-card small {
  margin-top: 4px;
  color: #f3e8dd;
}

.contact-layout-simple {
  grid-template-columns: 1fr 1fr;
}

.facebook-btn {
  margin-top: 16px;
  color: #fff;
  background: #1877f2;
}

.facebook-btn:hover {
  background: #166fe5;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.chart-card canvas {
  width: 100%;
  height: 190px;
}

.conversation-admin-list {
  display: grid;
  gap: 16px;
}

.inquiry-admin-card {
  display: grid;
  gap: 12px;
}

.admin-message-list {
  max-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.compact-check {
  margin: 0;
  white-space: nowrap;
}

.orders-list {
  display: grid;
  gap: 18px;
}

.order-card {
  padding: 22px;
}

.order-card h2 {
  margin: 0 0 4px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-success {
  color: #0c4b29;
  background: #d9efe3;
}

.badge-warning {
  color: #704a00;
  background: #fff0c7;
}

.badge-danger {
  color: #7a1f1f;
  background: #f3d4d4;
}

.badge-info {
  color: #144b57;
  background: #d8eef1;
}

.badge-muted {
  color: #5b4a3f;
  background: #e8e6df;
}

.order-items {
  margin-top: 12px;
}

.order-items div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.admin-message {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #f8f1ea;
  color: #4b2f1f;
}

.content-split {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 34px;
}

.info-stack {
  display: grid;
  gap: 12px;
}

.info-stack div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.info-stack strong,
.info-stack span {
  display: block;
}

.info-stack span {
  margin-top: 6px;
  color: var(--muted);
}

.contact-line {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-line span {
  color: var(--muted);
}

#store-map {
  width: 100%;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.map-pin {
  width: 34px;
  height: 34px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--copper);
  box-shadow: 0 8px 18px rgba(24, 33, 27, 0.3);
  transform: rotate(-45deg);
}

.admin-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  width: min(1320px, 94vw);
  margin: 26px auto 80px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: #f6efe7;
  border-right: 1px solid var(--line);
}

.admin-sidebar h1 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.admin-sidebar a {
  padding: 11px 12px;
  border-radius: 8px;
  color: #4a3428;
  text-decoration: none;
  font-weight: 800;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  color: #fff;
  background: var(--forest);
}

.admin-content {
  min-width: 0;
  padding: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.admin-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.admin-card {
  margin-bottom: 18px;
  padding: 18px;
}

.admin-card summary {
  font-weight: 900;
  cursor: pointer;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.admin-form {
  margin-top: 16px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.table-product {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-product img {
  width: 62px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.payment-actions {
  display: grid;
  gap: 8px;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hidden-form {
  display: none;
}

@media (max-width: 1040px) {
  .product-grid,
  .compact-grid,
  .gallery-grid,
  .mini-collage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-section,
  .catalog-layout,
  .product-detail,
  .checkout-layout,
  .cart-layout,
  .account-layout,
  .contact-layout,
  .auth-layout,
  .content-split,
  .inquiry-layout,
  .contact-layout-simple {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .page-heading.with-image {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .site-nav {
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 5vw;
    right: 5vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .nav-menu.open {
    display: flex;
  }

  .hero-section {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-media img {
    height: 360px;
  }

  .product-grid,
  .value-grid,
  .footer-grid,
  .stats-grid,
  .admin-grid-two,
  .chart-grid,
  .gallery-grid,
  .two-fields,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .catalog-search-form {
    display: grid;
  }

  .mini-collage-grid {
    grid-auto-rows: 190px;
    grid-template-columns: 1fr;
  }

  .mini-collage-feature,
  .mini-collage-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .cart-row {
    grid-template-columns: 80px 1fr;
  }

  .cart-row strong,
  .cart-row button {
    grid-column: 2;
  }

  .store-strip,
  .section-heading,
  .results-bar,
  .order-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-box {
    grid-template-columns: 1fr;
  }

  .payment-box img {
    width: 180px;
  }
}

@media (max-width: 430px) {
  .section-band,
  .value-grid,
  .store-strip,
  .page-heading,
  .catalog-layout,
  .catalog-search-section,
  .product-detail,
  .checkout-layout,
  .cart-layout,
  .account-layout,
  .orders-list,
  .contact-layout,
  .map-section,
  .content-split {
    width: 92vw;
    padding: 38px 0;
  }

  .inquiry-layout,
  .gallery-grid,
  .products-gallery-preview {
    width: 92vw;
  }

  .hero-section {
    width: 92vw;
  }

  .admin-content {
    padding: 16px;
  }
}
