:root {
  --ink: #102e2e;
  --ink-soft: #284342;
  --cream: #fffaf2;
  --paper: #ffffff;
  --line: #e5ded1;
  --gold: #e9b44c;
  --coral: #c95f4c;
  --sage: #718f82;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 242, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 156px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.94rem;
}

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

.icon-btn,
.cart-toggle {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

.cart-toggle {
  padding: 0 14px;
}

.btn,
.btn-secondary,
.btn-ghost,
.btn-danger {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

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

.btn-secondary {
  background: var(--gold);
  color: #251b09;
}

.btn-ghost {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.btn-danger {
  background: #f8e5df;
  color: #7f2419;
  border-color: #f1c6bc;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(16, 46, 46, 0.88), rgba(16, 46, 46, 0.58) 48%, rgba(16, 46, 46, 0.08)),
    url("https://images.unsplash.com/photo-1556905055-8f358a7a47b2?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 54px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: #f4d489;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

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

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 56px;
  max-width: 820px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-strip span {
  padding: 18px;
  color: #fff;
  background: rgba(16, 46, 46, 0.48);
  font-weight: 800;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: #eef3ef;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 15px;
  background: var(--paper);
  color: var(--ink-soft);
  font-weight: 800;
}

.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

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

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
}

.product-media {
  position: relative;
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: #d7ded9;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 46, 46, 0.86);
  font-size: 0.8rem;
  font-weight: 900;
}

.product-body {
  padding: 18px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--sage);
  font-size: 0.83rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-body h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.product-body p {
  min-height: 52px;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 1rem;
  display: block;
  overflow: visible;
}

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

.price {
  font-size: 1.25rem;
  font-weight: 950;
}

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

.service {
  padding: 22px;
  min-height: 186px;
  border-left: 4px solid var(--gold);
  background: var(--paper);
}

.service:nth-child(2) {
  border-color: var(--coral);
}

.service:nth-child(3) {
  border-color: var(--sage);
}

.service h3 {
  font-size: 1.05rem;
}

.service p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.about-band {
  display: grid;
  grid-template-columns: 1.05fr 0.8fr;
  gap: 34px;
  align-items: start;
}

.about-band h2 {
  max-width: 720px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.about-band p {
  color: var(--ink-soft);
  line-height: 1.75;
}

.about-founder {
  margin-top: 22px;
  padding: 18px;
  border-left: 4px solid var(--gold);
  background: var(--paper);
}

.about-founder strong,
.about-founder span {
  display: block;
}

.about-founder span {
  margin-top: 6px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.about-points {
  display: grid;
  gap: 12px;
}

.about-points div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.about-points strong,
.about-points span {
  display: block;
}

.about-points strong {
  margin-bottom: 8px;
}

.about-points span {
  color: var(--ink-soft);
  line-height: 1.55;
}

.contact-band {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 26px;
  align-items: center;
}

.contact-photo {
  min-height: 360px;
  background: url("https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=1000&q=80") center / cover;
  border-radius: 8px;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.detail {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.share-panel {
  margin: 0 0 20px;
}

.share-panel strong {
  display: block;
  margin-bottom: 10px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.88rem;
}

.share-btn.compact {
  min-height: 30px;
  padding: 0 8px;
  font-size: 0.72rem;
}

.share-btn.native-share {
  background: var(--ink);
}

.share-btn.whatsapp {
  background: #1f8f55;
}

.share-btn.facebook {
  background: #2558a8;
}

.share-btn.x {
  background: #171717;
}

.share-btn.linkedin {
  background: #1469a9;
}

.share-btn.email {
  background: var(--coral);
}

.product-share {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.product-share strong {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
}

.product-share div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.whatsapp-chat-fixed {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #1f8f55;
  box-shadow: none;
  font-weight: 950;
}

.footer {
  padding: 34px 0;
  color: #dbe8e2;
  background: var(--ink);
}

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

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.drawer.open {
  display: block;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.gallery-modal.open {
  display: block;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.gallery-panel {
  position: absolute;
  inset: 12px;
  width: min(1120px, calc(100vw - 24px));
  height: calc(100vh - 24px);
  max-height: calc(100vh - 24px);
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

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

.gallery-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.gallery-main {
  --zoom-x: 50%;
  --zoom-y: 50%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #efe8dd;
  border-radius: 8px;
  cursor: zoom-in;
}

.gallery-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: stretch;
}

.gallery-arrow {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-size: 2.4rem;
  font-weight: 900;
}

.gallery-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
  transform-origin: var(--zoom-x) var(--zoom-y);
}

.gallery-main:hover img {
  transform: scale(2.35);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.gallery-thumbs button {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.gallery-thumbs button.active {
  border-color: var(--gold);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100%;
  padding: 20px;
  background: var(--cream);
  box-shadow: var(--shadow);
  overflow: auto;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.qty button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 1.3rem;
  font-weight: 950;
}

.checkout-form {
  display: grid;
  gap: 10px;
}

.checkout-form input,
.checkout-form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 13px;
}

.checkout-form textarea,
.admin-form textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-shell {
  min-height: 100vh;
  background: #f4f0e7;
}

.signin-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(16, 46, 46, 0.88), rgba(16, 46, 46, 0.5)),
    url("https://images.unsplash.com/photo-1556905055-8f358a7a47b2?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.signin-shell {
  min-height: 100vh;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 38px 0;
}

.signin-card {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.signin-logo img {
  width: 174px;
  margin-bottom: 24px;
}

.signin-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: var(--ink);
}

.signin-copy,
.signin-help {
  color: var(--ink-soft);
  line-height: 1.6;
}

.signin-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.signin-form input {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 13px;
}

.signin-message {
  min-height: 22px;
  margin: 0;
  color: #9d2f21;
  font-weight: 800;
}

.signin-help {
  margin: 18px 0 0;
  font-size: 0.9rem;
}

.admin-header {
  background: var(--ink);
  color: #fff;
}

.admin-header .nav {
  min-height: 72px;
}

.admin-header img {
  width: 142px;
  background: var(--cream);
  border-radius: 4px;
}

.admin-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 22px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.panel-head,
.panel-body {
  padding: 20px;
}

.panel-head {
  border-bottom: 1px solid var(--line);
}

.panel-head h1,
.panel-head h2 {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.panel-head p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.admin-form {
  display: grid;
  gap: 13px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.admin-row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.admin-row img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 6px;
}

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

.empty {
  padding: 18px;
  color: var(--ink-soft);
  background: #fffdf8;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-strip,
  .services,
  .about-band,
  .contact-band,
  .admin-layout {
    grid-template-columns: 1fr;
  }

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

  .section-heading,
  .footer .wrap {
    display: block;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 132px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 86px;
  }

  .hero-strip {
    margin-top: 34px;
  }

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

  .gallery-panel {
    inset: 8px;
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
    padding: 10px;
  }

  .gallery-stage {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 6px;
  }

  .gallery-arrow {
    font-size: 2rem;
  }

  .row-actions {
    width: 100%;
  }

  .row-actions button {
    flex: 1;
  }
}

@media (max-width: 460px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    aspect-ratio: 4 / 3;
  }

  .share-btn.compact {
    flex: 1 1 calc(50% - 8px);
  }
}
