@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --font-sans: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --bg: #f3f1ed;
  --bg-alt: #ece8e1;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-muted: #f7f5f1;
  --text: #111111;
  --text-muted: #5d5d5d;
  --line: rgba(17, 17, 17, 0.1);
  --line-strong: rgba(17, 17, 17, 0.16);
  --shadow-sm: 0 12px 32px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 22px 54px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 34px 80px rgba(17, 17, 17, 0.12);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-pill: 999px;
  --page-width: 1380px;
  --success: #236b27;
  --success-bg: #e7f5e8;
  --warning: #8a5a00;
  --warning-bg: #fff4db;
  --danger: #9e1e28;
  --danger-bg: #ffecee;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

input[readonly] {
  background: rgba(17, 17, 17, 0.05);
  color: #555555;
  cursor: not-allowed;
}

button {
  border: 0;
  background: none;
}

button,
a,
input,
select,
textarea {
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.14);
  outline-offset: 3px;
}

::selection {
  background: #111111;
  color: #ffffff;
}

main,
.products,
.cart-page,
.checkout-page,
.account-page,
.admin-page,
.legal-page {
  width: min(calc(100% - 36px), var(--page-width));
  margin: 0 auto;
}

h1,
h2,
h3 {
  letter-spacing: -0.05em;
  line-height: 0.98;
}

p {
  line-height: 1.65;
}

.eyebrow,
.hero-kicker,
.admin-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #707070;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.button,
.secondary-button,
.secondary-admin-button,
.admin-filter-button,
.admin-button,
.checkout-button,
.checkout-submit,
.buy-button,
.auth-forms button,
.checkout-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button,
.secondary-button,
.secondary-admin-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.button:hover,
.secondary-button:hover,
.secondary-admin-button:hover {
  background: #111111;
  color: #ffffff;
  transform: translateY(-1px);
}

.button.primary,
.admin-filter-button,
.admin-button,
.checkout-button,
.checkout-submit,
.buy-button,
.auth-forms button,
.checkout-form button {
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.14);
}

.button.primary:hover,
.admin-filter-button:hover,
.admin-button:hover,
.checkout-button:hover,
.checkout-submit:hover,
.buy-button:hover,
.auth-forms button:hover,
.checkout-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.18);
}

.google-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.google-login-button:hover {
  border-color: #111111;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
}

button:disabled,
.secondary-admin-button:disabled,
.admin-filter-button:disabled,
.checkout-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.error-message {
  color: var(--danger);
}

.success-message {
  color: var(--success);
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(calc(100% - 24px), calc(var(--page-width) + 24px));
  min-height: 86px;
  margin: 12px auto 0;
  padding: 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(17, 17, 17, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo.brand {
  margin-right: clamp(6px, 2vw, 20px);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  background: #f1f1f1;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.header nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header nav a:hover {
  color: var(--text);
}

.header-center {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.header > .cart,
.header > .header-actions {
  margin-left: auto;
}

.header-actions .user,
.header-actions .cart,
.header-actions #logoutLink,
.header > .cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  white-space: nowrap;
}

.header-actions .user.user-logged {
  background: #111111;
  color: #ffffff;
}

.header-actions #logoutLink {
  display: none;
  color: var(--text-muted);
}

.cart::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: #1c9c3d;
}

.menu-toggle {
  display: none;
  margin-left: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 20px;
  cursor: pointer;
}

.search-form {
  position: relative;
  width: min(380px, 100%);
}

.search-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.96);
}

.header-search-figure {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  overflow: hidden;
  background: #f2f2f2;
  box-shadow: var(--shadow-sm);
}

.hero-aside-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.search-results:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-results a,
.search-results div {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.search-results a:last-child {
  border-bottom: 0;
}

.search-results small {
  display: block;
  margin-top: 4px;
  color: #777777;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 1500;
}

.mobile-drawer.open {
  display: block;
  opacity: 1;
}

.drawer-panel {
  width: min(320px, calc(100vw - 28px));
  height: 100%;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 0 40px rgba(17, 17, 17, 0.18);
  transform: translateX(-18px);
  transition: transform 0.24s ease;
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}

.mobile-drawer nav {
  display: grid;
  gap: 6px;
}

.mobile-drawer a,
.mobile-drawer button {
  padding: 12px 0;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: min(80vh, 760px);
  margin-top: 16px;
  border-radius: 40px;
  overflow: hidden;
  background: #111111;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 30px;
  min-height: inherit;
  padding: 28px 28px 28px 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.22)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.42));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  padding: clamp(88px, 12vw, 148px) 0 clamp(70px, 10vw, 110px) clamp(24px, 6vw, 72px);
  color: #ffffff;
}

.hero-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 7vw, 68px);
  color: #ffffff;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero p {
  max-width: 500px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #111111;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.hero-button:hover {
  transform: translateY(-2px);
}

.hero-carousel {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 20px 0 20px 12px;
}

.hero-carousel-head {
  display: grid;
  gap: 6px;
  padding: 0 10px;
}

.hero-carousel-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-carousel-head p {
  max-width: 320px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.hero-carousel-viewport {
  overflow: hidden;
  padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.hero-carousel-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: hero-carousel-scroll var(--carousel-duration, 22s) linear infinite;
}

.hero-carousel-track-secondary {
  animation-direction: reverse;
}

.hero-carousel-group {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

.hero-carousel-card {
  width: 212px;
  min-width: 212px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
  color: #111111;
}

.hero-carousel-card-media {
  overflow: hidden;
  border-radius: 18px;
  background: #f2f2f2;
}

.hero-carousel-card-media img {
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
}

.hero-carousel-card-body {
  display: grid;
  gap: 8px;
}

.hero-carousel-card-category {
  color: #666666;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-carousel-card strong {
  font-size: 16px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-carousel-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.hero-carousel-card-price small {
  color: #7c7c7c;
  font-size: 12px;
  text-decoration: line-through;
}

.hero-carousel:hover .hero-carousel-track {
  animation-play-state: paused;
}

@keyframes hero-carousel-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.store-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(calc(100% - 36px), var(--page-width));
  margin: 18px auto 0;
}

.highlight-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.highlight-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

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

.products {
  padding: 58px 0 84px;
}

.section-title h2 {
  margin-bottom: 34px;
  font-size: clamp(28px, 4vw, 40px);
  text-wrap: balance;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.catalog-filters,
.summary-card,
.profile-card,
.orders-panel,
.cart-summary,
.checkout-card,
.checkout-summary-card,
.payment-card,
.login-card,
.auth-page .panel,
.product-info,
.detail-card,
.admin-card,
.image-card,
.cart-empty,
.quantity-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.catalog-filters {
  position: sticky;
  top: 116px;
  padding: 22px;
}

.filters-header h4 {
  margin-bottom: 18px;
  font-size: 18px;
}

.filter-group {
  margin-bottom: 18px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group label,
.catalog-actions label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filter-group input,
.filter-group select,
.catalog-actions select,
.profile-form input,
.checkout-grid input,
.checkout-form input,
.checkout-form textarea,
.store-settings-form input,
.store-settings-form textarea,
.detail-card input,
.detail-card textarea,
.detail-card select,
.admin-page > input,
.admin-page > select,
.admin-page > textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
}

.catalog-breadcrumbs {
  color: #777777;
  font-size: 13px;
}

#filterSizes {
  display: grid;
  gap: 10px;
}

#filterSizes label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

#filterSizes input {
  width: 16px;
  min-height: 16px;
  padding: 0;
}

.catalog-main {
  min-width: 0;
}

.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.catalog-actions {
  min-width: 180px;
}

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

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-media {
  position: relative;
}

.card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.wish-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.08);
  cursor: pointer;
}

.card-overlay {
  position: absolute;
  inset: auto 0 0;
  min-height: 96px;
  padding: 20px 18px;
  display: flex;
  align-items: end;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 0.85) 100%);
  color: #ffffff;
}

.overlay-title {
  font-size: 16px;
  font-weight: 700;
}

.card-content {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.card-meta {
  color: #808080;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card h3 {
  font-size: 18px;
}

.card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.price-normal,
.price-promotional {
  font-size: 18px;
  font-weight: 700;
}

.price-original {
  color: #979797;
  font-size: 13px;
  text-decoration: line-through;
}

.price-discount {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-actions .button {
  width: 100%;
}

.profile-form .button.primary,
.checkout-submit,
.cart-summary .checkout-button,
.auth-forms button,
.auth-page button,
.login-card button {
  width: 100%;
}

.auth-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.auth-modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 34px 88px rgba(0, 0, 0, 0.2);
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 6px;
  font-size: 26px;
  cursor: pointer;
}

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

.auth-forms .panel {
  padding: 26px;
}

.auth-forms h2,
.auth-forms h3 {
  margin-bottom: 14px;
  font-size: 30px;
}

.auth-forms form {
  display: grid;
  gap: 12px;
}

.auth-forms input,
.auth-page input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.auth-page {
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 0 84px;
}

.auth-page .auth-forms {
  width: min(980px, 100%);
}

.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 34px;
  padding: 42px 0 84px;
}

.product-gallery {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.thumb-column {
  position: sticky;
  top: 116px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thumb {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  border: 2px solid transparent;
  border-radius: 18px;
  object-fit: cover;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 17, 0.14);
}

.main-image-area {
  min-height: 700px;
  border-radius: 34px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

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

.product-info {
  position: sticky;
  top: 116px;
  padding: 30px;
}

.product-category {
  margin-bottom: 12px;
  color: #777777;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-info h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.product-description {
  margin: 18px 0 0;
  color: var(--text-muted);
}

.product-price {
  margin: 18px 0 6px;
  font-size: 28px;
  font-weight: 700;
}

.option-group {
  margin-top: 24px;
}

.option-group h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

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

.option {
  min-width: 58px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  cursor: pointer;
}

.option:hover,
.option.selected,
.selected {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.stock-box,
.delivery-box,
.pix-box,
.shipping-selected {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.delivery-box {
  background: rgba(17, 17, 17, 0.04);
}

.pix-box {
  background: #edf7ee;
  color: var(--success);
}

.stock-warning {
  color: var(--danger);
  font-weight: 700;
}

.stock-ok {
  color: var(--success);
  font-weight: 700;
}

.quantity-box {
  margin-top: 18px;
  padding: 18px;
}

.quantity-box-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.quantity-box-header small {
  max-width: 260px;
  color: var(--text-muted);
  text-align: right;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
}

.quantity-stepper button,
.quantity-stepper input,
.cart-quantity-input,
.quantity-action,
.remove-cart-item {
  min-height: 50px;
  border-radius: 16px;
}

.quantity-stepper button,
.quantity-action {
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.quantity-stepper input,
.cart-quantity-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.product-info .button,
.product-info .buy-button {
  width: 100%;
  margin-top: 14px;
}

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 42px 0 84px;
  align-items: start;
}

.cart-page h1 {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-size: clamp(34px, 6vw, 50px);
}

#cartItems {
  display: grid;
  gap: 16px;
}

.cart-empty {
  padding: 34px;
}

.cart-empty h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.cart-empty p {
  margin-bottom: 22px;
  color: var(--text-muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.cart-item-media img,
.cart-image-fallback {
  width: 120px;
  height: 150px;
  border-radius: 20px;
  object-fit: cover;
}

.cart-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.cart-item-top h3 {
  font-size: 19px;
}

.cart-item-top p {
  margin-top: 4px;
  color: var(--text-muted);
}

.cart-item-total {
  font-size: 18px;
  white-space: nowrap;
}

.cart-quantity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cart-quantity > span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cart-quantity-controls {
  display: grid;
  grid-template-columns: 48px minmax(88px, 120px) 48px;
  gap: 8px;
}

.remove-cart-item {
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  cursor: pointer;
}

.cart-summary {
  position: sticky;
  top: 116px;
  padding: 28px;
}

.cart-summary h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.cart-summary > p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
}

.shipping-calculator,
.checkout-shipping {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.shipping-calculator > label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.shipping-postal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
}

.shipping-postal-row input,
.shipping-postal-row button {
  min-height: 48px;
  border-radius: 16px;
}

.shipping-postal-row input {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 0 14px;
}

.shipping-postal-row button {
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.shipping-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.shipping-option:last-child {
  border-bottom: 0;
}

.shipping-option span {
  display: grid;
  gap: 4px;
}

.shipping-option small,
.shipping-selected span {
  color: var(--text-muted);
}

.cart-total,
.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.checkout-page {
  padding: 42px 0 84px;
}

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

.checkout-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(36px, 6vw, 50px);
}

.checkout-hero p:last-child {
  max-width: 620px;
  color: var(--text-muted);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

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

.checkout-card,
.checkout-summary-card {
  padding: 24px;
}

.checkout-card-head {
  display: flex;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.checkout-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-weight: 700;
}

.checkout-card h2,
.checkout-summary-card h2 {
  margin-bottom: 4px;
  font-size: 24px;
}

.checkout-card p,
.checkout-summary-card p {
  color: var(--text-muted);
}

#checkoutProfileNotice {
  margin-top: 14px;
}

#checkoutProfileAction {
  margin-top: 12px;
}

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

.checkout-grid-two {
  margin-top: 16px;
}

.shipping-options-list {
  display: grid;
  gap: 10px;
}

.shipping-selected-box {
  margin-top: 4px;
}

.checkout-summary {
  position: sticky;
  top: 116px;
}

.checkout-summary-card {
  display: grid;
  gap: 14px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line:last-of-type {
  border-bottom: 0;
}

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

.summary-line strong {
  font-size: 20px;
}

.summary-total strong {
  font-size: 26px;
}

.checkout-note {
  padding: 18px;
  border-radius: 22px;
  background: rgba(17, 17, 17, 0.04);
}

.checkout-note strong {
  display: block;
  margin-bottom: 6px;
}

.account-page {
  padding: 42px 0 84px;
}

body.account-view {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 38%),
    linear-gradient(180deg, #f2efea 0%, #ebe6df 100%);
}

.account-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.account-header h1 {
  margin: 10px 0 12px;
  font-size: clamp(36px, 6vw, 50px);
}

.account-intro {
  max-width: 620px;
  color: var(--text-muted);
}

.account-summary {
  margin-bottom: 28px;
}

.summary-card,
.profile-card,
.orders-panel {
  padding: 30px;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.summary-header h2 {
  font-size: 24px;
}

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

.summary-metric {
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 20px;
  background: rgba(17, 17, 17, 0.04);
}

.summary-metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
}

.summary-metric span {
  color: #787878;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #111111;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-details h2 {
  font-size: 28px;
}

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

.profile-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.profile-summary > div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(17, 17, 17, 0.04);
}

.profile-summary span {
  display: block;
  margin-bottom: 8px;
  color: #787878;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-summary strong {
  font-size: 22px;
}

.profile-form {
  display: grid;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-row label,
.profile-form label,
.store-settings-form label,
.image-upload-card label,
.order-filters label,
.shipping-update-card label {
  display: grid;
  gap: 8px;
  color: #4e4e4e;
  font-size: 13px;
  font-weight: 700;
}

.account-orders {
  display: grid;
}

.orders-head {
  margin-bottom: 22px;
}

.orders-head h2 {
  margin: 8px 0 10px;
  font-size: 34px;
}

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

.account-orders #ordersList {
  display: grid;
  gap: 16px;
}

.order-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
}

.order-thumb,
.item-thumb,
.item-thumb-fallback {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.05);
}

.order-thumb img,
.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
}

.order-meta h2,
.order-meta h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.order-meta p,
.item-meta span {
  color: var(--text-muted);
}

.muted {
  color: #777777;
  font-size: 13px;
}

.order-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.order-actions .button {
  min-width: 180px;
}

.order-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pending {
  background: var(--warning-bg);
  color: var(--warning);
}

.status-approved {
  background: #111111;
  color: #ffffff;
}

.order-detail-content {
  display: grid;
  gap: 22px;
}

.order-items {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.order-items h3 {
  font-size: 24px;
}

.order-item-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.order-item-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17, 17, 17, 0.03);
}

.item-meta {
  display: grid;
  gap: 6px;
}

.payment-page {
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
  padding: 42px 0 84px;
}

.payment-card {
  width: min(560px, 100%);
  padding: 38px;
  text-align: center;
}

.payment-card h1 {
  margin: 18px 0 10px;
  font-size: 42px;
}

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

.payment-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.08);
  font-size: 34px;
  font-weight: 700;
}

.payment-icon[data-status="approved"] {
  background: var(--success-bg);
  color: var(--success);
}

.payment-icon[data-status="rejected"],
.payment-icon[data-status="cancelled"],
.payment-icon[data-status="expired"] {
  background: var(--danger-bg);
  color: var(--danger);
}

.payment-actions {
  margin-top: 24px;
}

.payment-summary {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  text-align: left;
}

.payment-summary div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

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

.payment-summary dd {
  margin: 0;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 36px), var(--page-width));
  margin: 0 auto 20px;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  color: var(--text);
}

.site-footer nav,
.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a,
.support-links a {
  color: var(--text-muted);
}

.support-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: #111111;
  color: #ffffff;
  font-weight: 700;
}

.legal-page {
  padding: 42px 0 84px;
}

.legal-page > header,
.legal-page section {
  padding: 28px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.legal-page h1 {
  margin: 12px 0 16px;
  font-size: clamp(42px, 8vw, 72px);
}

.legal-page h2 {
  margin-bottom: 14px;
  font-size: 30px;
}

.legal-page p {
  max-width: 780px;
  color: #444444;
}

.legal-reference a {
  text-decoration: underline;
}

body.admin-view {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(180deg, #f2ede5 0%, #ebe3d7 100%);
}

body.admin-view .header {
  background: rgba(255, 255, 255, 0.88);
}

body.admin-view .logo {
  font-size: 17px;
  letter-spacing: 0.22em;
}

.admin-page {
  padding: 36px 0 84px;
}

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

.admin-page-heading h1 {
  margin-top: 8px;
  font-size: clamp(34px, 6vw, 48px);
}

.admin-intro {
  max-width: 720px;
  color: var(--text-muted);
}

.admin-button {
  margin-bottom: 20px;
}

.admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.admin-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 24px;
}

.admin-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

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

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-actions a,
.table-action,
.admin-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.admin-actions a:hover,
.table-action:hover,
.admin-back-link:hover {
  background: #111111;
  color: #ffffff;
}

.order-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.stat-card span {
  display: block;
  color: #777777;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 32px;
}

.order-filters {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
}

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.9);
}

.admin-table th,
.admin-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-table th {
  background: rgba(17, 17, 17, 0.04);
  color: #646464;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-message {
  color: #666666;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-approved,
.shipping-delivered {
  background: var(--success-bg);
  color: var(--success);
}

.payment-pending,
.payment-in_process,
.shipping-pending,
.shipping-preparing {
  background: var(--warning-bg);
  color: var(--warning);
}

.payment-rejected,
.payment-cancelled,
.payment-expired,
.payment-charged_back,
.shipping-cancelled {
  background: var(--danger-bg);
  color: var(--danger);
}

.payment-refunded,
.shipping-shipped {
  background: #e6f2ff;
  color: #1f5c8f;
}

.admin-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.order-heading-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.detail-card {
  padding: 24px;
}

.detail-card h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

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

.detail-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
}

.detail-list dt {
  color: #777777;
}

.detail-list dd {
  overflow-wrap: anywhere;
}

.detail-card address {
  font-style: normal;
  line-height: 1.7;
}

.shipping-service-detail {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
}

.shipping-update-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.shipping-update-card small {
  color: var(--text-muted);
}

.form-feedback {
  min-height: 20px;
  font-size: 13px;
}

.image-upload-help {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.order-items-card,
.payment-reference {
  margin-top: 18px;
}

.order-totals {
  width: min(100%, 360px);
  margin: 20px 0 0 auto;
}

.order-totals p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.order-total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.store-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.store-settings-form,
.image-upload-card {
  display: grid;
  gap: 16px;
}

.store-settings-form h2 {
  margin-top: 8px;
  font-size: 24px;
}

.upload-block {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  background: rgba(17, 17, 17, 0.03);
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.upload-row input[type="file"] {
  padding: 10px 0;
  border: 0;
  background: transparent;
}

.asset-preview {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  object-fit: cover;
}

.logo-preview {
  max-width: 220px;
  height: 110px;
}

.hero-preview {
  height: 190px;
}

.settings-preview-card,
.image-preview-card {
  position: sticky;
  top: 116px;
}

.settings-preview {
  display: grid;
  gap: 14px;
}

.settings-preview-logo {
  max-width: 180px;
  height: 84px;
}

.variant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.variant-row button {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.image-manager-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.image-product-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.image-upload-field {
  display: grid;
  gap: 10px;
}

.image-upload-actions {
  display: flex;
  justify-content: flex-start;
}

.primary-image-preview {
  display: grid;
  gap: 12px;
}

.primary-image-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  object-fit: cover;
}

.primary-image-caption {
  display: grid;
  gap: 4px;
}

.primary-image-caption strong {
  font-size: 18px;
}

.primary-image-caption span,
.image-path {
  color: var(--text-muted);
  font-size: 12px;
  word-break: break-all;
}

.image-gallery-card {
  padding: 24px;
}

.image-gallery-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.image-gallery-head h2 {
  font-size: 30px;
}

.gallery-count {
  color: #777777;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.image-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.image-card-primary {
  background: rgba(255, 255, 255, 0.96);
}

.image-card-media {
  position: relative;
}

.image-card-media img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  border-radius: 20px;
  object-fit: cover;
}

.image-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-card-actions {
  display: grid;
  gap: 8px;
}

.image-action-button {
  width: 100%;
}

.image-delete-button {
  background: #ffffff;
  color: #111111;
}

.empty-state {
  padding: 30px;
  border: 1px dashed rgba(17, 17, 17, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: 28px;
}

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

body.admin-view .admin-page > h1 {
  margin-bottom: 14px;
  font-size: clamp(36px, 6vw, 48px);
}

body.admin-view .admin-page > p {
  margin-bottom: 12px;
}

body.admin-view .admin-page > input,
body.admin-view .admin-page > select,
body.admin-view .admin-page > textarea,
body.admin-view .admin-page > button {
  width: min(760px, 100%);
  margin-bottom: 10px;
}

body.admin-view .admin-page > textarea {
  min-height: 120px;
}

body.admin-view hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

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

.login-card {
  width: min(460px, 100%);
  padding: 34px;
}

.login-card h1 {
  margin: 12px 0 8px;
  font-size: 38px;
}

.login-card a {
  margin-top: 10px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 0 24px;
  }

  .hero-carousel {
    padding: 0 24px 12px;
  }

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

  .store-highlights,
  .checkout-layout,
  .store-settings-layout,
  .image-manager-layout,
  .cart-page,
  .account-grid,
  .product-page,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-filters,
  .product-info,
  .thumb-column,
  .cart-summary,
  .checkout-summary,
  .settings-preview-card,
  .image-preview-card {
    position: static;
  }

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

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

@media (max-width: 960px) {
  .header {
    gap: 12px;
    padding: 14px 18px;
  }

  .header nav,
  .header-center {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 700px;
  }

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

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

  .thumb-column {
    order: 2;
    flex-direction: row;
    overflow: auto;
  }

  .main-image-area {
    min-height: 520px;
  }

  .order-filters {
    grid-template-columns: 1fr 1fr;
  }

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

  .field-row,
  .checkout-grid,
  .auth-forms,
  .summary-grid,
  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .account-header,
  .checkout-hero,
  .admin-page-heading,
  .summary-header,
  .site-footer,
  .image-gallery-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-card,
  .cart-item {
    grid-template-columns: 1fr;
  }

  .order-actions {
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  main,
  .products,
  .cart-page,
  .checkout-page,
  .account-page,
  .admin-page,
  .legal-page,
  .site-footer,
  .store-highlights {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .header {
    width: min(calc(100% - 16px), calc(var(--page-width) + 24px));
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 22px;
  }

  .logo {
    font-size: 16px;
    letter-spacing: 0.18em;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .header-actions .user,
  .header-actions .cart,
  .header-actions #logoutLink,
  .header > .cart {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    min-height: 0;
    border-radius: 28px;
  }

  .hero-shell {
    gap: 14px;
    padding-bottom: 20px;
  }

  .hero-content {
    max-width: none;
    padding: 80px 22px 8px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero p {
    font-size: 14px;
  }

  .hero-carousel {
    padding: 0 18px 6px;
  }

  .hero-carousel-card {
    width: 188px;
    min-width: 188px;
  }

  .product-grid,
  .store-highlights,
  .order-stats,
  .order-filters,
  .variant-row {
    grid-template-columns: 1fr;
  }

  .shipping-postal-row,
  .upload-row,
  .image-product-head {
    grid-template-columns: 1fr;
  }

  .cart-item-media img,
  .cart-image-fallback {
    width: 100%;
    height: 240px;
  }

  .cart-item-top {
    flex-direction: column;
  }

  .auth-modal-panel,
  .auth-forms .panel,
  .summary-card,
  .profile-card,
  .orders-panel,
  .checkout-card,
  .checkout-summary-card,
  .payment-card,
  .detail-card,
  .login-card {
    padding: 22px;
  }

  .main-image-area {
    min-height: 400px;
  }

  .thumb {
    width: 72px;
    min-width: 72px;
  }

  .order-thumb,
  .item-thumb,
  .item-thumb-fallback {
    width: 96px;
    height: 96px;
  }

  .admin-table th,
  .admin-table td {
    padding: 14px;
  }
}
