:root {
  --ink: #2a211d;
  --espresso: #3b2619;
  --espresso-dark: #21150f;
  --coffee: #6d4a35;
  --bronze: #9d6f50;
  --sand: #ded3c6;
  --ivory: #fbf7ef;
  --paper: #fffdf8;
  --soft: #f1ebe3;
  --line: #e4d8cb;
  --muted: #756860;
  --danger: #a94735;
  --ok: #486747;
  --shadow: 0 22px 70px rgba(59, 38, 25, 0.16);
  --font-menu: "Montserrat", "Poppins", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "Open Sans", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--font-body); font-weight: 400; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }

.wordmark { display: grid; width: max-content; color: var(--espresso); font-family: Georgia, "Times New Roman", serif; font-size: 44px; line-height: .78; font-weight: 400; letter-spacing: 0; }
.wordmark small { justify-self: center; margin-top: 11px; color: var(--bronze); font-family: var(--font-menu); font-size: 8px; font-weight: 600; letter-spacing: 4px; text-transform: lowercase; }
.wordmark.light { color: #fffaf5; }
.wordmark.light small { color: #c8ab91; }
.logo-crop { width: 154px; height: 62px; overflow: hidden; border-radius: 6px; background: var(--ivory); }
.logo-crop img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.btn, .btn-soft, .btn-dark, .btn-danger, .icon-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px;
  border-radius: 6px; border: 1px solid transparent; padding: 0 15px; font-family: var(--font-menu); font-weight: 600; font-size: 13px; white-space: nowrap;
}
.btn { background: var(--bronze); color: #fff; }
.btn-dark { background: var(--espresso); color: #fff; }
.btn-soft { border-color: var(--line); background: #fffaf4; color: var(--espresso); }
.btn-danger { background: var(--danger); color: #fff; }
.icon-link { width: 44px; padding: 0; border-color: var(--line); background: #fffaf5; color: var(--espresso); }
.icon-link svg, .side-action svg { width: 20px; height: 20px; }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status.live, .status.published, .status.read { background: #e8efe2; color: var(--ok); }
.status.draft, .status.new { background: #f4e4d2; color: #865431; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 36px; padding: 0 48px; background: var(--espresso); color: #f8eee5; font-size: 12px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; }
.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; min-height: 82px; padding: 0 48px; border-bottom: 1px solid rgba(228,216,203,.86); background: rgba(255,253,248,.94); backdrop-filter: blur(14px); }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.nav-link, .nav-menu-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 13px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-family: var(--font-menu); font-weight: 600; font-size: 13px; text-transform: uppercase; }
.nav-link:hover, .nav-menu:hover .nav-menu-button { color: var(--bronze); background: #f4ede5; }
.nav-menu { position: relative; }
.mega-menu { position: absolute; top: 50px; left: 50%; display: none; grid-template-columns: repeat(5, minmax(120px, 1fr)); width: min(760px, calc(100vw - 80px)); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; box-shadow: var(--shadow); transform: translateX(-50%); }
.nav-menu:hover .mega-menu { display: grid; }
.mega-item { display: grid; gap: 10px; min-height: 104px; padding: 18px 14px; border-right: 1px solid var(--line); text-align: center; align-content: center; }
.mega-item:last-child { border-right: 0; }
.mega-icon { font-size: 25px; line-height: 1; }
.site-actions { display: flex; align-items: center; gap: 9px; }

.hero { display: grid; grid-template-columns: minmax(320px,.82fr) 1.18fr; min-height: 520px; background: var(--espresso-dark); color: #fffaf5; }
.hero-copy { display: grid; align-content: center; gap: 24px; padding: 72px 48px; background: linear-gradient(90deg, rgba(50,32,22,.96), rgba(50,32,22,.76)); }
.hero-copy h1 { margin: 0; max-width: 560px; font-family: var(--font-heading); font-size: clamp(42px, 6vw, 76px); line-height: .96; font-weight: 200; letter-spacing: 0; }
.hero-copy p { margin: 0; max-width: 520px; color: #e8dacf; font-size: 17px; line-height: 1.65; }
.hero-media img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }

.feature-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); width: min(1180px, calc(100% - 64px)); margin: -34px auto 0; position: relative; z-index: 5; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; box-shadow: 0 14px 40px rgba(59,38,25,.12); }
.feature { display: grid; grid-template-columns: 42px 1fr; gap: 13px; min-height: 88px; padding: 20px; border-right: 1px solid var(--line); align-items: center; }
.feature:last-child { border-right: 0; }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: var(--soft); color: var(--coffee); font-size: 21px; }
.feature b { display: block; margin-bottom: 4px; font-size: 13px; text-transform: uppercase; }
.feature span span { color: var(--muted); font-size: 12px; }

.section { width: min(1220px, calc(100% - 64px)); margin: 0 auto; padding: 68px 0 0; }
.section:last-child { padding-bottom: 68px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head.center { justify-content: center; text-align: center; }
.section-title { margin: 0 0 8px; font-family: var(--font-heading); font-size: 34px; font-weight: 300; letter-spacing: 0; text-transform: uppercase; }
.section-copy { margin: 0; max-width: 640px; color: var(--muted); line-height: 1.58; }
.grid { display: grid; gap: 16px; }
.category-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.media-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.blog-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.video-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; }
.category-card, .product-card, .media-card, .blog-card { transition: transform .18s ease, box-shadow .18s ease; }
.category-card:hover, .product-card:hover, .media-card:hover, .blog-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(59,38,25,.13); }
.thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.thumb.square { aspect-ratio: 1 / 1; }
.thumb.wide { aspect-ratio: 16 / 9; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.category-card footer { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; min-height: 58px; padding: 0 14px; }
.category-card strong, .product-card h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0; }
.product-body, .blog-body { display: grid; gap: 12px; padding: 17px; }
.product-body h3, .blog-body h3 { margin: 0; font-size: 17px; }
.product-body p, .blog-body p { margin: 0; min-height: 44px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.category-filter { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.product-detail { display: grid; grid-template-columns: minmax(280px,.9fr) minmax(340px,1.1fr); gap: 26px; align-items: start; }
.detail-gallery { display: grid; gap: 10px; }
.main-media { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.main-media img, .main-media video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-strip { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.gallery-button { padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.gallery-button img, .gallery-button video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.detail-info { display: grid; gap: 18px; }
.detail-info h1 { margin: 0; font-family: var(--font-heading); font-size: clamp(36px,5vw,58px); font-weight: 300; line-height: 1; }
.detail-info p { color: var(--muted); line-height: 1.7; }
.side-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.side-action { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 6px; font-family: var(--font-menu); font-weight: 600; }
.side-action.whatsapp { background: #f4eadf; border: 1px solid #d8c5b2; color: var(--espresso); }
.side-action.mail { background: var(--espresso); color: #fff; }
.detail-tabs { border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; overflow: hidden; }
.tab-head { display: flex; border-bottom: 1px solid var(--line); }
.tab-head button { flex: 1; min-height: 46px; border: 0; background: #fffaf4; font-family: var(--font-menu); font-weight: 600; color: var(--espresso); }
.tab-head button.active { background: var(--espresso); color: #fff; }
.tab-body { padding: 18px; line-height: 1.65; color: var(--muted); }
.tab-body ul { margin: 0; padding-left: 18px; }
.back-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }

.quote-band { display: grid; grid-template-columns: .94fr 1.06fr; gap: 34px; align-items: center; width: min(1220px, calc(100% - 64px)); margin: 72px auto; padding: 34px; border-radius: 8px; background: var(--espresso); color: #fffaf5; }
.quote-band h2 { margin: 0 0 12px; font-family: var(--font-heading); font-size: 36px; font-weight: 300; line-height: 1.12; }
.quote-band p { margin: 0; color: #e8dacf; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 18px; border-radius: 8px; background: #fffdf8; }
.form-grid label { display: grid; gap: 7px; color: var(--ink); font-family: var(--font-menu); font-size: 12px; font-weight: 600; }
.form-grid label.full { grid-column: 1 / -1; }
.input, .form-grid input, .form-grid textarea, .form-grid select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); outline: none; padding: 0 11px; }
.form-grid textarea { min-height: 96px; padding-top: 11px; resize: vertical; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }

.site-footer { background: var(--espresso-dark); color: #fffaf5; margin-top: 68px; }
.footer-inner { width: min(1220px, calc(100% - 64px)); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr .9fr .9fr; gap: 28px; padding: 44px 0; }
.footer-inner h3 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; color: #dfcdbd; }
.footer-inner p, .footer-inner a { color: #d9c9bc; line-height: 1.65; font-size: 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; color: #c8ab91; font-size: 13px; }
.footer-bottom-inner { width: min(1220px, calc(100% - 64px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; }

.admin-shell { display: grid; grid-template-columns: 250px minmax(0,1fr); min-height: 100vh; background: #f2ece5; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: grid; grid-template-rows: auto 1fr auto; gap: 20px; padding: 22px 16px; background: linear-gradient(180deg,#543520,var(--espresso-dark)); color: #fffaf5; }
.admin-nav { display: grid; gap: 6px; align-content: start; }
.admin-nav a { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 9px; min-height: 42px; border-radius: 6px; padding: 0 10px; color: rgba(255,250,245,.78); font-family: var(--font-menu); font-weight: 600; }
.admin-nav a.active, .admin-nav a:hover { background: rgba(255,250,245,.14); color: #fff; }
.admin-note { padding: 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.08); color: rgba(255,250,245,.72); font-size: 12px; line-height: 1.5; }
.admin-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; padding: 0 26px; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.94); backdrop-filter: blur(14px); }
.admin-top h1 { margin: 0 0 3px; font-family: var(--font-heading); font-size: 25px; font-weight: 300; }
.admin-top p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-content { padding: 24px 26px 36px; display: grid; gap: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.admin-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; box-shadow: 0 10px 24px rgba(59,38,25,.05); }
.admin-card.pad { padding: 18px; }
.stat-card { display: grid; gap: 8px; min-height: 116px; padding: 16px; }
.stat-card span { color: var(--muted); font-family: var(--font-menu); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.stat-card strong { font-size: 34px; line-height: 1; }
.panel-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: 18px; align-items: start; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.admin-card-head h2 { margin: 0; font-size: 17px; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; padding: 18px; }
.admin-form label { display: grid; gap: 7px; color: var(--ink); font-family: var(--font-menu); font-size: 12px; font-weight: 600; }
.admin-form label.full { grid-column: 1 / -1; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); outline: none; padding: 0 11px; }
.admin-form textarea { min-height: 110px; padding-top: 11px; resize: vertical; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 13px; }
.data-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.data-table td:last-child, .data-table th:last-child { text-align: right; }
.row-actions { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.mini-thumb { width: 64px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--soft); }
.mini-thumb img, .mini-thumb video { width: 100%; height: 100%; object-fit: cover; }
.flash { padding: 12px 14px; border: 1px solid #d7c5b3; background: #fff8ef; border-radius: 8px; color: var(--espresso); }
.bar { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--bronze); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--ivory); }
.login-card { width: min(420px, 100%); border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; box-shadow: var(--shadow); padding: 24px; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: auto auto; }
  .site-nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 12px; }
  .hero, .quote-band, .product-detail, .panel-grid { grid-template-columns: 1fr; }
  .category-grid, .media-grid, .stat-grid, .feature-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-grid, .video-grid, .blog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .topbar, .site-header { padding-left: 18px; padding-right: 18px; }
  .topbar, .section-head, .admin-top, .footer-bottom-inner { flex-direction: column; align-items: stretch; }
  .site-header { grid-template-columns: 1fr; padding-top: 14px; padding-bottom: 14px; }
  .site-actions { flex-wrap: wrap; }
  .hero { display: flex; flex-direction: column; min-height: 0; overflow: visible; background: var(--espresso-dark); }
  .hero-media { order: 1; position: relative; z-index: 1; height: clamp(260px, 64vw, 390px); border-bottom: 1px solid rgba(255,255,255,.08); background: #e5d9cc; }
  .hero-media img { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; }
  .hero-copy { order: 2; position: relative; z-index: 2; min-height: 0; align-content: start; gap: 16px; padding: 28px 20px 32px; background: var(--espresso-dark); }
  .hero-copy .wordmark { display: none; }
  .hero-copy h1 { max-width: 100%; font-size: clamp(31px, 9vw, 44px); line-height: 1.06; }
  .hero-copy p { max-width: 100%; font-size: 15px; line-height: 1.55; }
  .hero-copy > p:last-child { margin-top: 2px; }
  .hero-copy .btn { width: 100%; max-width: 260px; min-height: 48px; }
  .section, .quote-band, .feature-row, .footer-inner, .footer-bottom-inner { width: calc(100% - 28px); }
  .category-grid, .product-grid, .media-grid, .video-grid, .blog-grid, .feature-row, .stat-grid, .admin-form, .form-grid, .footer-inner, .gallery-strip { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .admin-nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-top { position: relative; padding: 18px; }
  .admin-content { padding: 18px; }
}

@media (max-width: 520px) {
  .wordmark { font-size: 36px; }
  .nav-link, .nav-menu-button { padding-left: 9px; padding-right: 9px; font-size: 12px; }
  .hero-media { height: clamp(230px, 70vw, 320px); }
  .hero-copy { padding: 24px 18px 28px; }
  .hero-copy h1 { font-size: clamp(30px, 10vw, 39px); }
  .hero-copy .btn { max-width: none; }
  .feature-row { margin-top: 0; border-radius: 0; }
  .feature { grid-template-columns: 1fr; }
  .admin-nav { grid-template-columns: 1fr; }
}
