:root {
  --header-bg-rgb: 28 28 28;
  --header-bg: rgb(var(--header-bg-rgb) / 95%);
  --bg: #f7f6f2;
  --bg-soft: #efede7;
  --surface: #ffffff;
  --text: rgb(var(--header-bg-rgb));
  --text-muted: #666157;
  --border: #ded8cc;
  --accent: #b7935f;
  --accent-dark: #85683f;
  --danger: #a55f5f;
  --success: #2f7a4d;
  --shadow-sm: 0 6px 20px rgb(var(--header-bg-rgb) / 0.08);
  --shadow-md: 0 16px 40px rgb(var(--header-bg-rgb) / 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.is-app-loading {
  cursor: progress;
}

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

[hidden] {
  display: none !important;
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

input,
select,
textarea {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.48rem 0.65rem;
  width: 100%;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: auto;
  padding: 0;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(183, 147, 95, 0.35);
  outline-offset: 0;
}

label {
  font-size: 0.84rem;
  color: var(--text-muted);
}

code {
  border-radius: 6px;
  background: #f3eee6;
  padding: 0.05rem 0.35rem;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.topbar {
  border-bottom: 1px solid var(--border);
  background: #faf9f6;
}

.topbar-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.73rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(223, 206, 179, 0.34);
  background: var(--header-bg);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
  max-width: min(44vw, 230px);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(232, 216, 193, 0.24);
  padding: 0.25rem 0.7rem;
  color: rgba(244, 235, 222, 0.86);
  font-size: 0.84rem;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: rgba(255, 236, 207, 0.62);
  background: rgba(255, 255, 255, 0.08);
  color: #fff8ea;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  text-decoration: none;
  color: rgba(244, 235, 222, 0.88);
  font-size: 0.88rem;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.18rem 0.62rem;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.link-btn:hover,
.link-btn:focus-visible {
  border-color: rgba(255, 236, 207, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #fff8ea;
}

.account-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 236, 207, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(232, 216, 193, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8ea;
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.cart-btn:hover,
.cart-btn:focus-visible {
  border-color: rgba(255, 236, 207, 0.72);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.cart-count {
  min-width: 24px;
  min-height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 236, 207, 0.88);
  color: rgb(var(--header-bg-rgb));
  font-size: 0.75rem;
}

.hero {
  padding: 1.45rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-copy {
  padding: clamp(1.4rem, 3vw, 2.6rem);
}

.eyebrow {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
}

.hero-copy h1 {
  margin: 0.6rem 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.07;
}

.hero-copy p {
  margin: 0 0 1.2rem;
  max-width: 42ch;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-media {
  min-height: 360px;
}

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

.btn {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 10px 24px rgb(var(--header-bg-rgb) / 0.22);
}

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

.full {
  width: 100%;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-head p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

.catalog {
  padding: 0 0 2.4rem;
}

.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  background: var(--surface);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.chip.is-active {
  border-color: var(--accent);
  background: #f7f1e8;
}

.tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tools input {
  min-width: 220px;
}

.results-line {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.product-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 0 rgb(var(--header-bg-rgb) / 0.02);
  display: flex;
  flex-direction: column;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.03);
}

.badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  border-radius: 999px;
  border: 1px solid #d6c7b1;
  background: #fff;
  color: #7a6441;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.16rem 0.45rem;
}

.favorite {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
}

.favorite.is-on {
  color: #b07e3a;
  border-color: #d3bd96;
}

.product-body {
  padding: 0.8rem;
  display: grid;
  gap: 0.4rem;
}

.product-category {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.product-title {
  margin: 0;
  font-size: 1.02rem;
}

.product-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.old-price {
  color: #9e988d;
  text-decoration: line-through;
  font-size: 0.8rem;
}

.current-price {
  font-weight: 700;
}

.actions {
  margin-top: 0.2rem;
  display: flex;
  gap: 0.45rem;
}

.actions .btn {
  min-height: 36px;
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
}

.offers {
  padding-bottom: 2.2rem;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.offer-card {
  position: relative;
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
}

.offer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(var(--header-bg-rgb) / 0.12) 0%, rgb(var(--header-bg-rgb) / 0.7) 100%);
}

.offer-body {
  position: relative;
  z-index: 1;
  padding: 1rem;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
}

.offer-body h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
}

.offer-body p {
  margin: 0;
  font-size: 0.9rem;
}

.offer-body .btn {
  align-self: flex-start;
  min-height: 34px;
  font-size: 0.78rem;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.editorial {
  padding-bottom: 2.6rem;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.editorial-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
}

.editorial-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
}

.editorial-card p {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
}

.footer {
  border-top: 1px solid var(--border);
  background: #faf9f6;
  padding: 1.5rem 0;
}

.footer-inner {
  display: grid;
  gap: 0.35rem;
}

.footer-inner strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
}

.footer-inner p {
  margin: 0;
  color: var(--text-muted);
}

.footer-inner small {
  color: #8f8779;
}

.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  width: min(430px, 100vw);
  height: 100vh;
  z-index: 60;
  background: #fff;
  border-left: 1px solid var(--border);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(101%);
  transition: transform 0.26s ease;
}

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

.cart-header,
.cart-footer {
  padding: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.cart-body {
  overflow-y: auto;
  padding: 0.9rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  margin-bottom: 0.65rem;
}

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

.cart-item h4 {
  margin: 0;
  font-size: 0.93rem;
}

.cart-item p {
  margin: 0.2rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.qty button:not(.remove-item) {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.remove-item {
  margin-left: auto;
  min-height: 26px;
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(165, 95, 95, 0.42);
  background: rgba(165, 95, 95, 0.08);
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--danger);
  flex-shrink: 0;
}

.remove-item:hover,
.remove-item:focus-visible {
  border-color: rgba(165, 95, 95, 0.62);
  background: rgba(165, 95, 95, 0.14);
}

.shipping-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.4rem;
}

.shipping-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.shipping-row .btn {
  min-height: 40px;
}

.shipping-options {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.shipping-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
}

.shipping-option input {
  margin-inline-end: 0.2rem;
}

.shipping-option small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.total-row {
  margin-top: 0.3rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 1.02rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  width: min(860px, 100%);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1rem;
  position: relative;
  box-shadow: var(--shadow-md);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-small {
  width: min(460px, 100%);
}

.modal-large {
  width: min(980px, 100%);
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quick-grid img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.quick-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.quick-grid h3 {
  margin: 0.35rem 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
}

.quick-grid p {
  margin: 0 0 0.8rem;
  color: var(--text-muted);
}

.quick-price {
  margin-bottom: 0.9rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.stack-form {
  display: grid;
  gap: 0.45rem;
}

.login-google-stack {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.75rem;
}

.google-signin-mount {
  min-height: 44px;
  display: flex;
  justify-content: center;
}

.google-signin-mount > div {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-runtime-note {
  margin: 0;
  font-size: 0.82rem;
  text-align: center;
}

.checkout-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.checkout-summary {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  min-height: 200px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.checkout-total {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
}

.feedback-success,
.feedback-error {
  margin-top: 0.8rem;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.feedback-success {
  background: rgba(47, 122, 77, 0.12);
  color: var(--success);
  border: 1px solid rgba(47, 122, 77, 0.3);
}

.feedback-error {
  background: rgba(165, 95, 95, 0.12);
  color: var(--danger);
  border: 1px solid rgba(165, 95, 95, 0.3);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgb(var(--header-bg-rgb) / 0.32);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 20px);
  opacity: 0;
  z-index: 100;
  pointer-events: none;
  border-radius: 999px;
  border: 1px solid #d7ccbb;
  background: #fff;
  padding: 0.55rem 0.9rem;
  font-size: 0.86rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgb(var(--header-bg-rgb) / 0.3), rgb(var(--header-bg-rgb) / 0.42));
  backdrop-filter: blur(4px);
}

.app-loading-overlay.is-visible {
  display: grid;
}

.app-loading-card {
  min-width: min(320px, 92vw);
  border-radius: 18px;
  border: 1px solid rgba(255, 236, 207, 0.4);
  background: rgba(28, 28, 28, 0.92);
  color: #fff7ea;
  box-shadow: 0 24px 60px rgb(var(--header-bg-rgb) / 0.35);
  padding: 1rem 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.app-loading-card strong {
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.app-loading-spinner {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(255, 247, 234, 0.24);
  border-top-color: #f7d7a8;
  animation: app-loading-spin 0.85s linear infinite;
  flex-shrink: 0;
}

@keyframes app-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.account-page-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% -20%, rgba(183, 147, 95, 0.2) 0%, rgba(183, 147, 95, 0) 42%),
    linear-gradient(180deg, #f6f2eb 0%, #f8f7f4 100%);
}

.account-top-header {
  border-bottom: 1px solid rgba(223, 206, 179, 0.32);
  background: var(--header-bg);
  backdrop-filter: blur(8px);
}

.account-top-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.account-top-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.account-shell {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 290px 1fr;
}

.account-nav-sidebar {
  border-right: 1px solid rgba(223, 211, 195, 0.24);
  background:
    linear-gradient(160deg, rgba(28, 28, 28, 0.98), rgba(37, 35, 32, 0.98)),
    var(--text);
  color: #f5ede1;
  padding: 0.95rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
}

.account-sidebar-brand img {
  width: 210px;
}

.account-sidebar-brand small {
  color: rgba(245, 237, 225, 0.72);
  display: inline-block;
  margin-top: 0.45rem;
  letter-spacing: 0.04em;
}

.account-profile-card {
  border: 1px solid rgba(255, 236, 207, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.8rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.38rem;
}

.account-profile-card h1 {
  margin: 0;
  color: #fff1da;
  font-size: 1.1rem;
}

.account-profile-card p,
.account-profile-card small {
  margin: 0;
  color: rgba(245, 237, 225, 0.8);
}

.account-side-menu {
  display: grid;
  align-content: start;
  gap: 0.42rem;
}

.account-menu-btn {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(245, 237, 225, 0.22);
  color: rgba(245, 237, 225, 0.92);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-weight: 500;
  text-align: left;
  padding: 0.5rem 0.62rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.account-menu-btn:hover,
.account-menu-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 237, 225, 0.4);
}

.account-menu-btn.is-active {
  border-color: rgba(197, 156, 90, 0.82);
  background: linear-gradient(135deg, rgba(197, 156, 90, 0.32), rgba(146, 111, 58, 0.32));
}

.account-workspace {
  display: block;
}

.account-workspace-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  padding: 0.86rem 1.15rem;
}

.account-workspace-header h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.account-workspace-header p {
  margin: 0.24rem 0 0;
  color: var(--text-muted);
}

.account-workspace-main {
  padding: 1rem 1.15rem 1.2rem;
  display: grid;
  gap: 0.85rem;
}

.account-screen {
  display: none;
}

.account-screen.is-active {
  display: block;
}

.account-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

.profile-avatar-wrap {
  position: relative;
  width: 76px;
  height: 76px;
}

.profile-avatar,
.profile-initials {
  width: 76px;
  height: 76px;
  border-radius: 999px;
}

.profile-avatar[hidden],
.profile-initials[hidden] {
  display: none !important;
}

.profile-avatar {
  object-fit: cover;
  border: 2px solid rgba(183, 147, 95, 0.45);
}

.profile-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #d9c4a0, #b7935f);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.account-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.account-panel-head h2,
.account-panel-head h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
}

.account-panel-head p {
  margin: 0.2rem 0 0;
}

.account-feedback {
  margin: 0.75rem 0 0.55rem;
  font-size: 0.84rem;
}

.orders-layout {
  display: block;
}

.orders-list-view,
.orders-details-view {
  width: 100%;
}

.orders-list {
  display: grid;
  gap: 0.55rem;
}

.order-list-item {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  padding: 0.62rem 0.7rem;
  display: grid;
  gap: 0.18rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.order-list-item:hover,
.order-list-item:focus-visible {
  border-color: #cdb286;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgb(var(--header-bg-rgb) / 0.07);
}

.order-list-item.is-active {
  border-color: #bb9a6a;
  background: #fbf7f0;
}

.order-list-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.order-list-line {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-chip {
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-chip.is-processing {
  color: #8a6b38;
  background: rgba(183, 147, 95, 0.16);
  border-color: rgba(183, 147, 95, 0.35);
}

.status-chip.is-in-transit {
  color: #2f6592;
  background: rgba(72, 133, 183, 0.15);
  border-color: rgba(72, 133, 183, 0.35);
}

.status-chip.is-delivered {
  color: #2f7a4d;
  background: rgba(47, 122, 77, 0.13);
  border-color: rgba(47, 122, 77, 0.35);
}

.status-chip.is-canceled {
  color: #a55f5f;
  background: rgba(165, 95, 95, 0.12);
  border-color: rgba(165, 95, 95, 0.35);
}

.order-details {
  display: grid;
  gap: 0.65rem;
}

.orders-details-actions {
  margin-bottom: 0.65rem;
}

.order-details.is-empty {
  align-content: center;
}

.order-details-placeholder {
  border: 1px dashed #d6ccb9;
  border-radius: 12px;
  padding: 1rem;
  background: #fffdf8;
}

.order-details-placeholder h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.order-details-placeholder p {
  margin: 0;
}

.order-details-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.order-details-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.order-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.order-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem;
  background: #fff;
}

.order-box h4 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.order-box p {
  margin: 0.18rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.order-items {
  display: grid;
  gap: 0.5rem;
}

.order-item-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.order-item-row img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.order-item-row strong {
  font-size: 0.84rem;
}

.order-item-row small {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.saved-list {
  display: grid;
  gap: 0.65rem;
}

.saved-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0.78rem;
}

.saved-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.48rem;
}

.saved-card-head h4 {
  margin: 0;
  font-size: 1rem;
}

.payment-brand-block {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.payment-brand-copy {
  min-width: 0;
}

.payment-brand-issuer {
  display: block;
  margin-top: 0.16rem;
  color: #847b6d;
  font-size: 0.76rem;
}

.payment-brand-icon {
  width: 44px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(183, 147, 95, 0.22);
  background: #fffaf2;
  padding: 0.2rem 0.3rem;
  flex-shrink: 0;
}

.saved-card p {
  margin: 0.22rem 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.saved-card p strong {
  color: var(--text);
}

.saved-card small {
  display: block;
  margin-top: 0.42rem;
  color: #847b6d;
  font-size: 0.78rem;
}

.saved-chip {
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(183, 147, 95, 0.4);
  color: #7c613a;
  background: rgba(183, 147, 95, 0.14);
  white-space: nowrap;
}

.saved-chip.is-default {
  border-color: rgba(47, 122, 77, 0.35);
  color: #2f7a4d;
  background: rgba(47, 122, 77, 0.13);
}

.order-timeline {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.order-timeline li strong,
.order-timeline li small {
  display: block;
}

.order-timeline li small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.help-grid {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.help-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem;
  background: #fff;
}

.help-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.93rem;
}

.help-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.help-card small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #847b6d;
}

.account-help-form {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.account-help-form textarea {
  min-height: 108px;
  resize: vertical;
}

.editor-form-card {
  margin-block: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fcfbf8;
  padding: 0.9rem;
}

.editor-form-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.editor-form-head h4 {
  margin: 0;
  font-size: 1.05rem;
}

.editor-form-head p {
  margin: 0.2rem 0 0;
}

.form-grid {
  display: grid;
  gap: 0.7rem;
}

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

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

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field-span-2 {
  grid-column: span 2;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  font-size: 0.88rem;
  color: var(--text);
}

.checkbox-row span {
  color: var(--text);
}

.checkbox-row-align-end {
  align-self: end;
  min-height: 40px;
}

.mp-field {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.12rem 0.65rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.mp-field iframe {
  width: 100%;
  min-height: 38px;
}

.saved-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.saved-card-actions .btn {
  min-height: 34px;
  padding-inline: 0.85rem;
  font-size: 0.82rem;
}

.btn-danger-soft {
  border-color: rgba(165, 95, 95, 0.4);
  background: rgba(165, 95, 95, 0.08);
  color: var(--danger);
}

.btn-danger-soft:hover,
.btn-danger-soft:focus-visible {
  border-color: rgba(165, 95, 95, 0.6);
  background: rgba(165, 95, 95, 0.12);
}

.saved-card-grid {
  display: grid;
  gap: 0.2rem;
}

.account-subsection {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.account-subsection-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.account-subsection-head h4 {
  margin: 0;
  font-size: 1rem;
}

.account-subsection-head p {
  margin: 0;
}

.ticket-card {
  border-left: 4px solid #d8c4a1;
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding-block: 0.5rem;
  }

  .hero-grid,
  .quick-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 260px;
  }

  .products-grid,
  .editorial-grid,
  .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-shell {
    grid-template-columns: 1fr;
  }

  .account-nav-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(223, 211, 195, 0.35);
    grid-template-rows: auto auto;
  }

  .account-side-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-workspace-main {
    padding: 0.82rem;
  }

  .order-details-grid,
  .help-grid,
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  .form-field-span-2 {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .brand-logo {
    height: 44px;
    max-width: 72vw;
  }

  .topbar-inner {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-inline: 0.4rem;
  }

  .header-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .account-top-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding-block: 0.5rem;
  }

  .account-top-actions {
    width: 100%;
    justify-content: center;
  }

  .account-side-menu {
    grid-template-columns: 1fr;
  }

  .filters {
    align-items: flex-start;
  }

  .tools {
    width: 100%;
    flex-direction: column;
  }

  .tools input {
    width: 100%;
    min-width: 0;
  }

  .products-grid,
  .editorial-grid,
  .offers-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .shipping-row {
    grid-template-columns: 1fr;
  }
}
