:root {
  --gold: #a6852f;
  --gold-dark: #83671f;
  --band: #c8ab62;
  --ink: #1c1710;
  --text: #2f2818;
  --muted: #7d7156;
  --cream: #f7f2e0;
  --card: #fffdf6;
  --line: #e3d9bd;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--cream);
}

a {
  color: var(--gold-dark);
}

.text-danger {
  color: #a33;
}

/* Header and logo */
.site-header {
  background: var(--card);
  text-align: center;
  padding: 1.75rem 1rem 1rem;
  border-bottom: 1px solid var(--band);
}

.logo {
  display: inline-block;
  text-decoration: none;
  line-height: 1.1;
}

.logo-main,
.footer-logo {
  font-family: "Century Gothic", Futura, "Segoe UI", Arial, sans-serif;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.logo-main {
  display: block;
  font-size: 2.6rem;
}

.logo-db {
  color: var(--gold);
  font-weight: 700;
}

.logo-galore {
  color: var(--ink);
  font-weight: 400;
}

.logo-sub {
  display: block;
  margin-top: 0.2rem;
  font-family: "Century Gothic", Futura, "Segoe UI", Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.site-nav {
  margin-top: 1rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  margin: 0 0.85rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--gold);
}

.site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.site-main > p {
  font-size: 1.05rem;
}

h2 {
  color: var(--ink);
  letter-spacing: 0.5px;
}

.accent {
  color: var(--gold-dark);
  font-style: italic;
}

/* Category band (as on the print flyers) */
.category-band {
  background: var(--band);
  color: var(--ink);
  text-align: center;
  font-family: "Century Gothic", Futura, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.12em;
  padding: 0.5rem 1rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.75rem 1rem 1.5rem;
  background: var(--card);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0.3rem 0;
}

.footer-logo {
  font-size: 1.4rem;
}

.footer-logo-sub {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.footer-contact {
  font-size: 1.05rem;
}

.footer-contact a {
  color: var(--gold-dark);
  text-decoration: none;
}

.footer-hours,
.footer-call {
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-slogan {
  margin-top: 0.75rem;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
}

.footer-credit {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-credit a,
.footer-legal a {
  color: var(--muted);
}

/* Home page sections */
.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-title {
  font-size: 2rem;
  margin: 0 0 1rem;
  color: var(--ink);
}

.hero-title .and {
  color: var(--gold-dark);
  font-style: italic;
}

.hero p {
  max-width: 620px;
  margin: 0 auto 1.25rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem 1rem;
}

.pillar h3 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold-dark);
  font-weight: normal;
}

.pillar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.flyers {
  margin-bottom: 2.5rem;
}

.flyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.flyer-grid a {
  display: block;
  line-height: 0;
}

.flyer-grid img {
  width: 100%;
  height: auto;
  border: 1px solid var(--band);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(60, 45, 10, 0.12);
}

.blinds-panel {
  background: var(--card);
  border: 1px solid var(--band);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.blinds-panel h3 {
  margin: 0;
  font-size: 2.4rem;
  font-style: italic;
  font-weight: normal;
  color: var(--gold-dark);
}

.blinds-tagline {
  margin: 0.25rem 0 1.25rem;
  font-family: "Century Gothic", Futura, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.blinds-styles {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.25rem;
  max-width: 420px;
}

.blinds-styles li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  font-family: "Century Gothic", Futura, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.blinds-styles li:last-child {
  border-bottom: none;
}

.choose-line {
  color: var(--gold-dark);
  font-style: italic;
  margin: 0 0 1rem;
}

.visit {
  text-align: center;
}

.call-box {
  display: inline-block;
  background: #131313;
  color: #f5efe6;
  border-radius: 8px;
  padding: 0.9rem 1.5rem;
  margin-top: 0.75rem;
}

.call-box strong {
  display: block;
  color: var(--band);
  letter-spacing: 0.1em;
  font-family: "Century Gothic", Futura, "Segoe UI", Arial, sans-serif;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  padding: 0;
  list-style: none;
}

.shop-category {
  margin: 1.75rem 0 0.75rem;
  color: var(--gold-dark);
  font-style: italic;
  font-weight: normal;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--band);
  padding-bottom: 0.25rem;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-size: 1.15rem;
}

.product-card .category {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-style: italic;
  margin: 0 0 0.5rem;
}

.product-card .description {
  font-size: 0.95rem;
  flex: 1;
}

.product-card .price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold-dark);
  margin: 0.5rem 0;
}

.stock-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.out-of-stock {
  color: #a33;
  font-weight: bold;
}

/* Buttons and forms */
.btn {
  display: inline-block;
  background: var(--gold-dark);
  color: #fffdf6;
  border: none;
  padding: 0.5rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: #6d5518;
}

.btn:disabled {
  background: #b8ada0;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--gold-dark);
  border: 1px solid var(--gold-dark);
}

.btn-secondary:hover {
  background: var(--cream);
  color: var(--ink);
}

.btn-link {
  background: none;
  border: none;
  color: #a33;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #cfc4a5;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  box-sizing: border-box;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  max-width: 420px;
}

.form-narrow {
  max-width: 420px;
  margin: 0 auto;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
}

.table th,
.table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.table th {
  background: #efe7cd;
  color: var(--ink);
}

.table .num {
  text-align: right;
}

.table-wrap {
  overflow-x: auto;
}

.qty-input {
  width: 4.5rem;
}

/* Messages */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.alert-success {
  background: #eaefdc;
  border: 1px solid #b8c690;
  color: #3c4f1e;
}

.alert-error {
  background: #f6e4e2;
  border: 1px solid #d9a8a2;
  color: #7a2e26;
}

.validation-error {
  color: #a33;
  font-size: 0.9rem;
}

.inline-form {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Room showcase — the print banner rebuilt for the web */
.showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.sc-panel {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1 / 2;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.sc-panel + .sc-panel {
  border-left: 1px solid #d5c295;
}

.sc-panel:hover .sc-art,
.sc-panel:focus-visible .sc-art {
  transform: scale(1.03);
}

.sc-panel:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: -2px;
}

/* Oversized category word, set in three lines like the flyer */
.sc-word {
  position: absolute;
  color: #d1bc8b;
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-weight: 200;
  line-height: 0.762;
  letter-spacing: -0.005em;
  white-space: nowrap;
  font-size: 95px; /* fallback if @container units are unsupported */
  font-size: 41.7cqw;
}

/* Product cut-outs, placed exactly where the flyer has them */
.sc-art {
  position: absolute;
  height: auto;
  transition: transform 0.4s ease;
}

/* Hebrew dedication line under each product */
.sc-honor {
  position: absolute;
  color: var(--muted);
  font-family: "Segoe UI", "David", "Times New Roman", serif;
  font-style: italic;
  white-space: nowrap;
  font-size: 10px; /* fallback if @container units are unsupported */
  font-size: 4.4cqw;
  opacity: 0.85;
}

.sc-living .sc-word   { left: 0;    top: 39.3%; }
.sc-living .sc-art    { left: 7.1%;  bottom: 1.2%; width: 93.1%; }
.sc-living .sc-honor  { left: 6.4%; top: 88.5%; }

.sc-study .sc-word    { left: 0;    top: 1.8%; }
.sc-study .sc-shelf   { left: 42.2%; top: 0;     width: 58.5%; }
.sc-study .sc-chair   { left: 27.8%; top: 37.1%; width: 39.6%; }
.sc-study .sc-honor   { left: 8.5%; top: 51.5%; }

.sc-dinette .sc-word  { left: 0;    top: 39.3%; }
.sc-dinette .sc-art   { left: 25.6%; bottom: 2%; width: 66.2%; }
.sc-dinette .sc-honor { left: 12.8%; top: 88.5%; }

.sc-shades .sc-word   { left: 0;    top: 1.8%; }
.sc-shades .sc-art    { left: 36.8%; top: 0;     width: 63.9%; }
.sc-shades .sc-honor  { left: 12.6%; top: 50.6%; }

/* "Ordered. Delivered. Assembled." roundel */
.sc-badge {
  position: absolute;
  left: 51.5%;
  top: 84.9%;
  width: 87px; /* fallback if @container units are unsupported */
  width: 38cqw;
  height: auto;
  transform: translate(-50%, -50%);
}

.sc-badge-ring {
  fill: #1b1b1b;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15.5px;
  letter-spacing: 3.4px;
}

.sc-badge-db {
  fill: #cfbd97;
  font-family: "Century Gothic", Futura, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 94px;
}

@media (max-width: 760px) {
  .showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .sc-panel:nth-child(3) {
    border-left: none;
  }

  .sc-panel:nth-child(n + 3) {
    border-top: 1px solid #d5c295;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-art {
    transition: none;
  }
}
