:root {
  --bg: #f5f2ec;
  --surface: #ffffff;
  --surface-soft: #faf7f2;
  --text: #211f1b;
  --muted: #6d6257;
  --line: #e8e0d3;
  --primary: #7c5635;
  --primary-strong: #694629;
  --danger: #a83126;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-md: 0 16px 35px rgba(40, 28, 15, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, #f0e4d2 0%, transparent 35%),
    radial-gradient(circle at 95% 10%, #efe2d0 0%, transparent 28%),
    var(--bg);
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
  padding: 26px 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: flex-end;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary-strong);
  white-space: nowrap;
  font-size: 14px;
  text-decoration: none;
}

.header-phone-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.header-phone:hover {
  text-decoration: underline;
}


.brand {
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 2.4vw, 30px);
  color: #2d2115;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  font-weight: 600;
  color: #4b4034;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(130deg, #f8efe3, #f8f4ee 58%, #fff);
  border: 1px solid #ecdcc4;
  border-radius: 22px;
  padding: 38px;
  box-shadow: var(--shadow-md);
}

.hero.hero-no-visual {
  grid-template-columns: 1fr;
}

.hero h1 {
  margin: 10px 0 12px;
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.14;
  color: #2a1d11;
}

.hero p {
  margin: 0;
  max-width: 700px;
  color: #584d41;
  font-size: 16px;
}

.eyebrow {
  margin: 0;
  color: #906844;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-visual img {
  width: 100%;
  height: 336px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #ebdcc9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.section-head {
  margin: 38px 0 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 30px;
  font-family: "Playfair Display", serif;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.card,
.detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(44, 33, 22, 0.08);
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(43, 31, 17, 0.14);
}

.product-card .thumb-wrap {
  display: block;
  position: relative;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  min-height: calc(1.25em * 2);
}

.product-body p {
  margin: 10px 0 12px;
  color: #675b4e;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.55em * 3);
}

.product-meta {
  border-top: 1px dashed #eadfce;
  padding-top: 10px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.price-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.price-old {
  color: #887a6c;
  font-size: 13px;
  text-decoration: line-through;
}

.btn-link {
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 22px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 1fr);
  overflow: hidden;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  background: #f6f1ea;
}

.product-slider {
  position: relative;
}

.product-main-image {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.image-watermark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(1.5px);
  color: rgba(44, 28, 13, 0.62);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.image-watermark strong {
  font-size: 12px;
  line-height: 1.1;
}

.image-watermark small {
  font-size: 11px;
  line-height: 1.1;
}

.image-watermark-lg {
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
}

.image-watermark-lg strong {
  font-size: 14px;
}

.image-watermark-lg small {
  font-size: 12px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(33, 24, 17, 0.62);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.product-thumbs {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px;
}

.thumb-btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.thumb-btn img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5d8c9;
}

.thumb-btn.is-active {
  border-color: var(--primary);
}

.detail-body {
  padding: 28px;
}

.detail-body h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 44px);
  font-family: "Playfair Display", serif;
}

.price {
  display: inline-block;
  margin-top: 4px;
  color: var(--primary);
  font-size: 34px;
}

.price-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-old-detail {
  color: #7b6e61;
  font-size: 14px;
  text-decoration: line-through;
}

.muted {
  color: var(--muted);
}

.back-link {
  margin: 8px 0 14px;
}

.site-footer {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  color: #615548;
}

.footer-rich .footer-inner {
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(220px, 1fr) minmax(180px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.footer-title {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: #2d2115;
  margin-bottom: 8px;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer-contact-col {
  padding-left: 8px;
  border-left: 3px solid #e5d9c9;
}

.footer-heading {
  margin: 0 0 12px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 14px;
}

.footer-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #8a7a6a;
  margin-bottom: 2px;
}

.footer-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
  line-height: 1.5;
}

.footer-cta-col .footer-btn + .footer-btn {
  margin-top: 10px;
}

.footer-btn {
  width: 100%;
}

.footer-bottom {
  margin-top: 22px;
  padding: 14px 0 10px;
  border-top: 1px solid #efe7dc;
  background: #faf7f2;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #7e7266;
}

.contact-hero {
  padding: 36px 0 8px;
  background: linear-gradient(180deg, #fbf6ef 0%, transparent 85%);
}

.contact-hero-phone .contact-phone-banner {
  margin-top: 28px;
  max-width: 520px;
  padding: 26px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.contact-phone-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.contact-phone-number {
  display: block;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--primary-strong);
  margin-bottom: 16px;
}

.contact-call-btn {
  width: 100%;
  max-width: 280px;
}

.contact-grid-phone {
  grid-template-columns: minmax(260px, 480px);
}

.contact-inline-phone {
  margin-top: 16px;
}

.btn-sm-inline {
  display: inline-flex;
  padding: 10px 16px;
  font-size: 14px;
}

.contact-intro {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.contact-hero h1 {
  margin: 10px 0 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 44px);
}

.contact-body {
  padding-bottom: 36px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.contact-feature {
  padding: 22px;
  text-align: left;
}

.contact-feature h2 {
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-size: 21px;
}

.contact-feature > p:first-of-type {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 14px;
}

.contact-icon {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.88;
}

.contact-big-link {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-strong);
}

.contact-hours-text {
  font-weight: 600;
  margin: 0;
  font-size: 16px;
  color: #4b3f34;
}

.contact-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.contact-address-block {
  padding: 24px;
}

.contact-address-block h2 {
  margin-top: 0;
  font-family: "Playfair Display", serif;
}

.address-lines {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 16px;
  font-size: 16px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-map-visual {
  padding: 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #efe6db, #f9f7f4);
}

.contact-map-frame {
  position: relative;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(45, 33, 21, 0.08);
  background: linear-gradient(180deg, #e5ddd4, #d8cfc3);
}

.contact-map-frame iframe {
  display: block;
  width: 100%;
  min-height: clamp(220px, 42vw, 320px);
  border: 0;
  vertical-align: bottom;
}

.map-caption {
  margin: 0;
  font-size: 13px;
  color: #7a6d61;
  line-height: 1.55;
}

.map-caption a {
  font-weight: 600;
  color: var(--primary-strong);
  text-underline-offset: 2px;
}

.map-caption a:hover {
  text-decoration: underline;
}

.page-not-found {
  padding: 48px 0 60px;
  min-height: 40vh;
}

.page-not-found h1 {
  font-family: "Playfair Display", serif;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, var(--primary), #624325);
}

.btn-primary:hover {
  text-decoration: none;
  background: linear-gradient(140deg, var(--primary-strong), #523821);
}

.btn-ghost {
  border: 1px solid #d5c4ad;
  background: #fff;
  color: #5b3f27;
}

.btn-ghost:hover {
  text-decoration: none;
  background: #f7f0e6;
}

.btn-danger {
  border: 1px solid #efc3bb;
  background: #fff3f1;
  color: var(--danger);
}

.btn-danger:hover {
  text-decoration: none;
  background: #ffe8e4;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.admin-bg {
  background:
    radial-gradient(circle at 2% 2%, #ece1d0 0%, transparent 33%),
    radial-gradient(circle at 100% 0%, #efe7d8 0%, transparent 28%),
    #f6f2eb;
}

.admin-wrap {
  padding-top: 30px;
  padding-bottom: 34px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.admin-topbar h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 40px);
  font-family: "Playfair Display", serif;
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.admin-card {
  padding: 20px;
}

.admin-card h2 {
  margin-top: 0;
  font-size: 28px;
  font-family: "Playfair Display", serif;
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #efe7dc;
}

.admin-list li:first-child {
  border-top: none;
}

.admin-list strong {
  display: block;
  font-size: 15px;
}

.admin-list p {
  margin: 4px 0 0;
  max-width: 420px;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2e8db;
  color: #6b4a2d;
  text-transform: capitalize;
  font-size: 12px;
  font-weight: 700;
}

.admin-login-wrap {
  min-height: 88vh;
  display: grid;
  place-items: center;
}

.admin-login-card {
  width: min(540px, 96%);
  background: #fff;
  border: 1px solid #eadfce;
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.admin-login-card h1 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
}

.alert-error {
  margin-top: 12px;
  background: #ffeceb;
  color: #b42318;
  border: 1px solid #f5c2bf;
  border-radius: 10px;
  padding: 10px 12px;
}

.form {
  display: grid;
  gap: 12px;
}

.image-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.image-slot {
  padding: 12px;
  border: 1px solid #e4d5c2;
  border-radius: 12px;
  background: #fffaf4;
}

.image-slot-title {
  margin: 0 0 8px;
  color: #4b433b;
  font-weight: 700;
}

.status-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3e6d5;
  color: #725438;
  font-size: 12px;
  font-weight: 700;
}

.image-remove {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #6b5b49;
}

.image-remove input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0;
}

label {
  display: grid;
  gap: 6px;
  color: #4b433b;
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #ddcfbc;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 0;
  border-color: #bc9468;
  box-shadow: 0 0 0 3px rgba(188, 148, 104, 0.18);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .hero-visual img {
    height: 250px;
  }

  .contact-two-col {
    grid-template-columns: 1fr;
  }

  .footer-rich .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-contact-col {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #efe7dc;
    padding-top: 14px;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .image-slots-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    flex-direction: column;
  }

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

@media (max-width: 640px) {
  .nav-right {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header-phone {
    order: -1;
  }

  .main-nav {
    gap: 12px;
    font-size: 14px;
  }

  .section-head h2,
  .admin-card h2 {
    font-size: 25px;
  }

  .row-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
