:root {
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #181512;
  --muted: #6f6860;
  --line: #e8e1d8;
  --gold: #b08a48;
  --champagne: #eadcc7;
  --soft: #f4efe8;
  --shadow: 0 18px 45px rgba(42, 34, 25, 0.08);
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) minmax(190px, 340px) auto;
  gap: clamp(16px, 2.2vw, 34px);
  align-items: center;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(232, 225, 216, 0.9);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
}

.main-nav,
.header-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.main-nav a,
.nav-dropdown > a {
  color: #342d27;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.main-nav a:hover,
.header-actions a:hover {
  color: var(--gold);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  z-index: 20;
  display: grid;
  min-width: 210px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: var(--radius);
}

.nav-dropdown-menu a:hover {
  background: var(--soft);
}

.search-form input,
label input,
label select,
label textarea,
.admin-search input,
.admin-search select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px 13px;
  color: var(--ink);
  outline-color: var(--gold);
}

.search-form input {
  height: 40px;
}

.icon-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cart-link span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px 11px;
}

.hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  padding: clamp(28px, 4vw, 46px) clamp(18px, 6vw, 84px);
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.88) 38%, rgba(251, 250, 247, 0.2) 68%),
    url("../img/hero-joias.png") center right / cover no-repeat;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-title h1,
.content-page h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(38px, 4.5vw, 58px);
}

.hero p:not(.eyebrow) {
  max-width: 480px;
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 16px;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 10px 18px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 9px 20px rgba(24, 21, 18, 0.14);
}

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

.btn-light:hover {
  border-color: var(--gold);
}

.section,
.catalog-layout,
.product-detail,
.content-page,
.page-title,
.gift-band,
.about-strip,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: 72px 0 0;
}

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

.section-heading h2,
.gift-band h2 {
  font-size: clamp(30px, 4vw, 48px);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  filter: saturate(0.88);
  transform: scale(1.03);
}

.category-card span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(42, 34, 25, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--champagne);
  box-shadow: 0 18px 40px rgba(42, 34, 25, 0.09);
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.12;
  background: var(--soft);
}

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

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.product-info {
  padding: 17px;
}

.product-info span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-info h3 {
  min-height: 52px;
  margin-top: 5px;
  font-size: 20px;
}

.price,
.detail-price {
  color: var(--ink);
  font-weight: 800;
}

.card-actions,
.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.add-cart-form {
  display: grid;
  grid-template-columns: 96px minmax(190px, 240px);
  gap: 12px;
  align-items: end;
  width: 100%;
  max-width: 360px;
}

.add-cart-form .btn {
  min-height: 48px;
  white-space: nowrap;
}

.card-actions .btn {
  flex: 1 1 120px;
  padding-inline: 12px;
  font-size: 12px;
  min-height: 39px;
}

.inline-cart-form {
  display: flex;
  flex: 1 1 120px;
}

.inline-cart-form .btn {
  width: 100%;
}

.site-notice {
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
}

.gift-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  gap: 32px;
  align-items: center;
  margin-top: 78px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--white), var(--soft));
}

.gift-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gift-links a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px;
  font-weight: 700;
}

.about-strip {
  margin-top: 72px;
  margin-bottom: 72px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #332c25;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
}

.page-title {
  padding: 58px 0 34px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 78px;
}

.filters {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 18px;
}

.filters form,
.product-form,
.login-card {
  display: grid;
  gap: 15px;
}

label {
  display: grid;
  gap: 7px;
  color: #473f38;
  font-size: 13px;
  font-weight: 700;
}

.detail-copy label {
  color: #3e362f;
}

.detail-copy input,
.detail-copy select {
  min-height: 48px;
  border-color: var(--line);
  background: var(--white);
}

.check,
.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 6vw, 70px);
  padding: 46px 0 78px;
}

.main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--soft);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumbs img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.detail-copy h1 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.03;
}

.detail-copy p {
  color: var(--muted);
}

.detail-price {
  margin: 14px 0 18px;
  font-size: 26px;
}

.sizes {
  display: grid;
  gap: 12px;
  margin: 22px 0 26px;
}

.sizes > strong,
.alliance-options > strong {
  font-size: 15px;
}

.alliance-options {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
}

.purchase-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.purchase-toggle label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  min-height: 38px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #3e362f;
}

.purchase-toggle input {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
}

.alliance-size-group {
  display: grid;
  gap: 14px;
}

.alliance-size-group .sizes,
.single-alliance-size {
  margin: 0;
}

.sizes div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sizes span {
  min-width: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 9px 12px;
  text-align: center;
  font-weight: 700;
}

.selectable-sizes button {
  min-width: 40px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 6px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.selectable-sizes button:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.selectable-sizes button.is-selected {
  border-color: var(--gold);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 7px 16px rgba(24, 21, 18, 0.12);
}

.care-box {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.care-box h2 {
  font-size: 24px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(24, 21, 18, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 31;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(410px, 100%);
  height: 100vh;
  background: var(--paper);
  box-shadow: -20px 0 50px rgba(24, 21, 18, 0.16);
  transform: translateX(100%);
  transition: transform 0.24s ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.cart-drawer-head h2 {
  font-size: 30px;
}

.drawer-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.drawer-empty {
  padding: 24px;
}

.drawer-empty h3 {
  margin: 0;
  font-size: 24px;
}

.drawer-empty p {
  color: var(--muted);
}

.drawer-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 16px;
}

.drawer-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
}

.drawer-item img {
  width: 76px;
  height: 76px;
  border-radius: var(--radius);
  object-fit: cover;
}

.drawer-item h3 {
  margin: 0;
  font-size: 18px;
}

.drawer-item p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.drawer-item-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.drawer-qty {
  display: flex;
  gap: 7px;
  align-items: center;
}

.drawer-qty input {
  width: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px;
}

.drawer-qty button,
.remove-link {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.remove-link {
  color: #9a2d22;
}

.drawer-summary {
  display: grid;
  gap: 14px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

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

.summary-row.total {
  border-bottom: 0;
  font-size: 20px;
}

.content-page {
  min-height: 56vh;
  padding: 74px 0;
}

.content-page p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.store-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.store-info-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(42, 34, 25, 0.05);
}

.store-info-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-info-card strong {
  color: var(--ink);
  font-size: 18px;
}

.store-info-card p {
  margin: 0;
  font-size: 15px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  max-width: 620px;
}

.footer-brand p {
  margin: 7px 0;
}

.footer-brand a {
  color: var(--ink);
  font-weight: 700;
}

.admin-body {
  min-height: 100vh;
  background: #f7f3ed;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 30px;
}

.admin-sidebar nav a {
  border-radius: var(--radius);
  padding: 11px 12px;
  font-weight: 700;
}

.admin-sidebar nav a:hover {
  background: var(--soft);
}

.admin-main {
  margin-left: 245px;
  padding: 34px;
}

.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-heading h1 {
  font-size: 42px;
}

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

.metric-grid div {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
}

.metric-grid strong {
  font-size: 42px;
  font-family: "Playfair Display", Georgia, serif;
}

.admin-search {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

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

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

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

.thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  object-fit: cover;
}

.product-form {
  max-width: 1040px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.checks,
.sizes-admin {
  display: flex;
  gap: 12px 18px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.sizes-admin {
  display: grid;
  gap: 18px;
}

.sizes-admin legend {
  padding: 0 8px;
  font-weight: 800;
}

.sizes-admin label {
  display: flex;
  min-width: 72px;
  flex-direction: row;
  align-items: center;
}

.sizes-admin .select-all-sizes {
  max-width: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 9px 12px;
}

.size-group {
  display: grid;
  gap: 10px;
}

.size-group > strong {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.size-options {
  display: flex;
  gap: 12px 18px;
  flex-wrap: wrap;
}

.notice,
.alert {
  margin-bottom: 18px;
  border-radius: var(--radius);
  padding: 13px 15px;
  font-weight: 700;
}

.notice {
  background: #edf7ef;
  color: #236334;
}

.alert {
  background: #fff1ee;
  color: #9a2d22;
}

.empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

@media (max-width: 1320px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 16px;
    box-shadow: var(--shadow);
  }

  .nav-dropdown {
    display: grid;
    gap: 8px;
  }

  .nav-dropdown > a::after {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    display: grid;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--line);
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: var(--soft);
  }

  .main-nav.is-open {
    display: flex;
  }

  .header-actions {
    justify-self: end;
  }

  .search-form {
    grid-column: 1 / -1;
  }

  .product-grid,
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    justify-self: end;
    min-width: 44px;
    min-height: 44px;
  }

  .header-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-self: stretch;
    overflow: visible;
  }

  .header-actions .icon-link {
    width: 100%;
    min-height: 46px;
  }

  .search-form input {
    height: 46px;
    font-size: 16px;
  }

  .main-nav {
    left: 16px;
    right: 16px;
    top: 68px;
    max-height: calc(100vh - 92px);
    overflow: auto;
  }

  .main-nav a,
  .nav-dropdown > a {
    padding: 12px 10px;
    font-size: 14px;
  }

  .nav-dropdown-menu a {
    padding: 11px 12px;
  }

  .hero {
    min-height: 360px;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(251, 250, 247, 0.45), rgba(251, 250, 247, 0.96) 58%),
      url("../img/hero-joias.png") center top / cover no-repeat;
  }

  .hero-copy {
    max-width: 100%;
  }

  .category-grid,
  .product-grid,
  .gift-links,
  .store-info-grid,
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-layout,
  .product-detail,
  .gift-band {
    grid-template-columns: 1fr;
  }

  .product-detail {
    gap: 24px;
    padding-top: 24px;
  }

  .main-image {
    max-height: 520px;
  }

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

  .add-cart-form {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .add-cart-form .btn,
  .detail-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .filters {
    position: static;
    padding: 16px;
  }

  .site-footer,
  .admin-heading,
  .admin-search {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-main {
    margin-left: 0;
    padding: 20px;
  }

  .cart-drawer {
    width: min(420px, 94vw);
  }
}

@media (max-width: 560px) {
  body {
    overflow-x: hidden;
  }

  .section,
  .catalog-layout,
  .product-detail,
  .content-page,
  .page-title,
  .gift-band,
  .about-strip,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .hero h1,
  .page-title h1,
  .content-page h1 {
    font-size: 36px;
  }

  .hero {
    min-height: 320px;
    padding: 30px 18px;
  }

  .hero p:not(.eyebrow) {
    font-size: 15px;
  }

  .section {
    padding-top: 44px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .section-heading h2,
  .gift-band h2 {
    font-size: 30px;
  }

  .category-grid,
  .product-grid,
  .gift-links,
  .store-info-grid,
  .metric-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 16px;
  }

  .product-info h3 {
    min-height: 0;
  }

  .card-actions {
    grid-template-columns: 1fr 1fr;
  }

  .card-actions .btn {
    min-height: 44px;
  }

  .gift-band {
    padding: 24px;
    margin-top: 48px;
  }

  .detail-actions {
    display: grid;
  }

  .detail-copy h1 {
    font-size: 32px;
  }

  .detail-price {
    font-size: 23px;
  }

  .sizes div {
    gap: 8px;
  }

  .selectable-sizes button {
    min-width: 42px;
    min-height: 40px;
    font-size: 14px;
  }

  .purchase-toggle {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cart-drawer {
    width: 100vw;
  }

  .drawer-item {
    grid-template-columns: 68px 1fr;
  }

  .drawer-item img {
    width: 68px;
    height: 68px;
  }

  .drawer-item-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .drawer-summary .btn {
    width: 100%;
  }

  .store-info-card {
    padding: 16px;
  }

  .site-footer {
    gap: 18px;
    padding: 28px 0;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .site-footer nav a {
    padding: 10px 0;
  }
}



 
:root {
      --paper: #f8f5ef;
        --white: #fff;
          --ink: #17130f;
            --muted: #746b61;
              --line: rgba(30,24,18,.12);
                --gold: #a77b2f;
                  --champagne: #e7d2aa;
                    --soft: #eee7dc;
                      --shadow: 0 24px 70px rgba(39,29,18,.12);
                        --radius: 18px;
}

html { scroll-behavior: smooth; }
body {
      background: radial-gradient(circle at 85% 5%, #fff 0, var(--paper) 34%, #f4efe7 100%);
        letter-spacing: -.01em;
}
body::before {
      content: "ENVIO SEGURO • ATENDIMENTO PERSONALIZADO • JOIAS PARA MOMENTOS ETERNOS";
        display: block;
          padding: 9px 20px;
            background: #17130f;
              color: #f3e6ca;
                font-size: 10px;
                  font-weight: 700;
                    letter-spacing: .18em;
                      text-align: center;
}

.site-header {
      position: sticky;
        top: 0;
          z-index: 50;
            min-height: 86px;
              padding: 14px clamp(22px,5vw,72px);
                border-bottom: 1px solid rgba(167,123,47,.2);
                  background: rgba(255,255,255,.9);
                    backdrop-filter: blur(18px);
                      box-shadow: 0 10px 35px rgba(30,20,10,.05);
}
.brand { font-family: "Playfair Display",Georgia,serif; font-size: 18px; letter-spacing: .02em; }
.brand-mark {
      width: 46px; height: 46px; flex: 0 0 46px;
        border: 1px solid var(--gold);
          color: var(--gold);
            background: linear-gradient(145deg,#fff,#f1e5cf);
              box-shadow: inset 0 0 0 4px #fff, 0 8px 20px rgba(167,123,47,.14);
}
.main-nav { gap: clamp(16px,2vw,30px); }
.main-nav > a, .nav-dropdown > a {
      position: relative;
        padding: 12px 0;
          font-size: 12px;
            font-weight: 700;
              letter-spacing: .06em;
                text-transform: uppercase;
}
.main-nav > a::after, .nav-dropdown > a::after {
      content: ""; position: absolute; left: 0; right: 100%; bottom: 5px;
        height: 1px; background: var(--gold); transition: right .25s ease;
}
.main-nav > a:hover::after, .nav-dropdown > a:hover::after { right: 0; }
.search-form input {
      height: 46px; border-radius: 999px; border-color: rgba(167,123,47,.22);
        background: #fff; padding: 0 20px; transition: .25s ease;
}
.search-form input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(167,123,47,.1); }
.icon-link { border-radius: 999px; min-height: 44px; padding: 0 17px; }
.header-actions .icon-link:last-child { background: var(--ink); color: #fff; border-color: var(--ink); }

.hero {
      position: relative;
        min-height: min(710px,78vh);
          display: flex;
            align-items: center;
              overflow: hidden;
                padding: clamp(70px,10vw,140px) clamp(28px,8vw,120px);
                  background:
                      linear-gradient(90deg,rgba(17,13,9,.92) 0%,rgba(17,13,9,.74) 42%,rgba(17,13,9,.12) 75%),
                          url("/uploads/produtos/produto_6a1398e75d1313.70888940.png") center 46%/cover no-repeat;
}
.hero::after {
      content: ""; position: absolute; inset: 18px;
        border: 1px solid rgba(231,210,170,.42); pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 680px; color: #fff; }
.hero .eyebrow { color: #e7d2aa; }
.hero h1 {
      max-width: 720px;
        margin: 14px 0 20px;
          font-size: clamp(54px,7vw,100px);
            line-height: .95;
              letter-spacing: -.045em;
}
.hero p:not(.eyebrow) { max-width: 570px; color: rgba(255,255,255,.82); font-size: clamp(17px,1.5vw,21px); }
.hero .btn { margin-top: 26px; background: #fff; color: var(--ink); border-color: #fff; }

.eyebrow { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.section { padding-top: clamp(80px,9vw,130px); padding-bottom: clamp(80px,9vw,130px); }
.section-heading { margin-bottom: 46px; }
.section-heading h2, .gift-band h2 { font-size: clamp(42px,5vw,72px); line-height: 1.03; letter-spacing: -.035em; }

.product-grid { gap: clamp(20px,2.5vw,36px); }
.product-card {
      overflow: hidden; border: 1px solid rgba(167,123,47,.16); border-radius: var(--radius);
        background: rgba(255,255,255,.9); box-shadow: 0 16px 48px rgba(32,24,16,.07);
          transition: transform .35s ease, box-shadow .35s ease;
}
.product-card:hover { transform: translateY(-9px); box-shadow: 0 28px 70px rgba(32,24,16,.15); }
.product-media { aspect-ratio: 4/5; overflow: hidden; background: linear-gradient(145deg,#efe9de,#fff); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-media img { transform: scale(1.055); }
.product-info { padding: 25px; }
.product-info > span { color: var(--gold); font-weight: 800; letter-spacing: .12em; }
.product-info h3 { margin-top: 9px; min-height: 2.5em; font-size: clamp(22px,2vw,30px); line-height: 1.18; }
.price { font-size: 18px; font-weight: 800; }
.btn {
      min-height: 48px; border-radius: 999px; font-size: 12px; font-weight: 800;
        letter-spacing: .06em; text-transform: uppercase; transition: .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); box-shadow: 0 10px 24px rgba(23,19,15,.16); }

.gift-band {
      position: relative; overflow: hidden; border-radius: 28px;
        padding: clamp(45px,7vw,90px); background: #18130f; color: #fff;
          box-shadow: var(--shadow);
}
.gift-band::before {
      content: ""; position: absolute; width: 420px; height: 420px; right: -170px; top: -240px;
        border: 1px solid rgba(231,210,170,.35); border-radius: 50%;
}
.gift-band .eyebrow { color: var(--champagne); }
.gift-links a { border-color: rgba(231,210,170,.28); background: rgba(255,255,255,.06); border-radius: 999px; }
.gift-links a:hover { background: #fff; color: var(--ink); }

.about-strip {
      margin-top: clamp(60px,8vw,110px); margin-bottom: clamp(60px,8vw,110px);
        padding: 70px clamp(25px,8vw,110px); border: 0; text-align: center; background: transparent;
}
.about-strip p { max-width: 900px; margin: auto; font-family: "Playfair Display",Georgia,serif; font-size: clamp(30px,4vw,56px); line-height: 1.18; }

.site-footer {
      width: 100%; max-width: none; margin: 0;
        padding: 70px clamp(28px,8vw,120px); background: #110e0b; color: rgba(255,255,255,.78);
          border-top: 3px solid var(--gold);
}
.site-footer strong { color: #fff; font-family: "Playfair Display",Georgia,serif; font-size: 28px; }
.site-footer nav a { color: rgba(255,255,255,.76); }
.site-footer nav a:hover { color: var(--champagne); }
.site-footer nav a[href="/admin/index.php"] { display: none; }

@media (max-width: 900px) {
      body::before { font-size: 8px; letter-spacing: .11em; }
        .site-header { min-height: 72px; padding: 11px 18px; }
          .hero { min-height: 650px; background-position: 58% center; padding: 90px 28px; }
            .hero h1 { font-size: clamp(48px,15vw,74px); }
              .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
      .hero { min-height: 600px; background-position: 62% center; }
        .hero::after { inset: 10px; }
          .product-grid { grid-template-columns: 1fr; }
            .product-info h3 { min-height: auto; }
              .gift-band { border-radius: 18px; }
}

}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}

/* Header spacing fix */
.site-header {
      grid-template-columns: max-content max-content minmax(240px, 1fr) max-content;
        column-gap: clamp(12px, 1.1vw, 20px);
}
.main-nav {
      min-width: 0;
        gap: clamp(11px, .9vw, 17px);
}
.main-nav > a,
.nav-dropdown > a {
      font-size: 11px;
        letter-spacing: .045em;
}
.search-form {
      width: 100%;
        min-width: 0;
}
.header-actions {
      gap: 10px;
        white-space: nowrap;
}

@media (max-width: 1280px) and (min-width: 901px) {
      .site-header {
              grid-template-columns: max-content minmax(220px, 1fr) max-content;
                  row-gap: 10px;
      }
        .brand {
                grid-column: 1;
                    grid-row: 1;
        }
          .search-form {
                  grid-column: 2;
                      grid-row: 1;
          }
            .header-actions {
                    grid-column: 3;
                        grid-row: 1;
            }
              .main-nav {
                      grid-column: 1 / -1;
                          grid-row: 2;
                              justify-content: center;
              }
}

              }
            }
          }
        }
      }
}
}
}
}
}
}
/* Final search clearance */
@media (min-width: 1281px) {
      .search-form { padding-left: 34px; }
}

}