:root {
  color-scheme: dark;
  color: #111;
  background: #f8f7f3;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: inherit;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(-45deg, #f5f1eb, #e8dfd8, #dcd5c9, #f0eae1);
  background-size: 400% 400%;
  animation: calmaGradient 15s ease infinite;
  color: #161616;
}

main,
.container,
.section,
.section-alt {
  background: transparent;
}

@keyframes calmaGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 18, 18, 0.1);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.action-menu-toggle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.action-menu-toggle:hover {
  transform: translateY(-1px);
  background: #111;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.action-menu-toggle span {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 1.2px;
  border-radius: 50%;
  background: #faf5f0;
}

.action-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  width: 200px;
  background: #faf5f0;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  padding: 0.25rem 0;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  z-index: 20;
}

.action-dropdown.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.action-dropdown a {
  display: block;
  padding: 0.9rem 1.2rem;
  color: #111;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.action-dropdown a + a {
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.action-dropdown a:hover {
  background: rgba(17, 17, 17, 0.06);
}

/* User Account Menu */
.user-account-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-account-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1.5px solid rgba(17, 17, 17, 0.2);
  background: #faf5f0;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #111;
}

.user-account-button:hover {
  background: #f5f5f5;
  border-color: rgba(17, 17, 17, 0.3);
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.user-account-button:is(:hover, :focus) .dropdown-arrow {
  transform: translateY(2px);
}

.user-account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: 160px;
  background: #faf5f0;
  border-radius: 0.8rem;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  z-index: 20;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-account-dropdown.hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.user-account-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-menu-link {
  display: block;
  padding: 0.8rem 1.1rem;
  color: #111;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

.user-menu-link:first-child {
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.user-menu-link:hover {
  background: rgba(17, 17, 17, 0.05);
}

.logout-button {
  color: #c00;
}

.logout-button:hover {
  background: rgba(192, 0, 0, 0.08);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  margin: 4px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav a,
.footer-links a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
}

.main-nav a {
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: rgba(17, 17, 17, 0.08);
  color: #111;
  transform: translateY(-1px);
}

.footer-links.vertical {
  display: grid;
  gap: 0.5rem;
  align-items: start;
}

.user-menu,
.admin-menu {
  position: relative;
}

.user-button,
.admin-button {
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #faf5f0;
  color: #111;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-menu,
.admin-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 190px;
  padding: 0.3rem 0;
  background: #faf5f0;
  border: 1px solid #e8e4de;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 15, 15, 0.12);
  display: none;
  z-index: 20;
}

.dropdown-menu.active,
.admin-dropdown-menu.active {
  display: block;
}

.dropdown-menu a,
.dropdown-menu button,
.admin-dropdown-menu a {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  color: #111;
  background: transparent;
  border: none;
  text-decoration: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover,
.admin-dropdown-menu a:hover {
  background: #f4f1eb;
}

.dropdown-menu a:focus-visible,
.dropdown-menu button:focus-visible,
.admin-dropdown-menu a:focus-visible {
  outline: 2px solid #111;
  outline-offset: -2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.button-primary {
  background: #000;
  color: #fff;
  border-color: #000;
}

.button-primary:hover {
  background: #333;
  border-color: #333;
}

.button-secondary {
  border: 1px solid #ddd;
  color: #333;
  background: #faf5f0;
}

.button-secondary:hover {
  background: #f9f9f9;
  border-color: #ccc;
}

.hero {
  padding: 4rem 0 2rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
  gap: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.5rem, 3.4vw, 4.5rem);
  max-width: 12ch;
}

.hero-copy,
.section-header p,
.product-body p,
.about-content p {
  color: #555;
  line-height: 1.75;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-card {
  padding: 2rem;
  border-radius: 28px;
  background: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-tag {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #f8f7f3;
}

.price {
  font-size: 1.2rem;
  font-weight: 700;
}

.section {
  padding: 4rem 0;
  background: transparent;
}

.section-alt {
  background: transparent;
}

.section-header {
  max-width: 60ch;
  margin-bottom: 2rem;
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.product-image-large {
  min-height: 420px;
  border-radius: 32px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 60px rgba(15, 15, 15, 0.12);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.product-gallery-thumb {
  border: none;
  padding: 0;
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}

.product-gallery-thumb.active {
  border-color: #111;
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info {
  display: grid;
  gap: 1.5rem;
}

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-actions .button {
  min-width: 180px;
}

.product-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  align-items: flex-end;
}

.product-options label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #555;
  font-weight: 600;
}

.product-options select,
.product-selects select,
.option-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 18px;
  background: #faf5f0;
  color: #1a1a1a;
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23666' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 6px;
}

.product-options select:hover,
.product-options select:focus,
.product-selects select:hover,
.product-selects select:focus,
.option-group select:hover,
.option-group select:focus {
  border-color: rgba(17, 17, 17, 0.24);
  box-shadow: 0 8px 20px rgba(15, 15, 15, 0.08);
  outline: none;
}

.product-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 15, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 15, 15, 0.16);
}

.product-image {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.image-1 {
  background-image: linear-gradient(135deg, #ece7de 0%, #d1c8bd 100%);
}

.image-2 {
  background-image: linear-gradient(135deg, #f7f3ee 0%, #d9d7d0 100%);
}

.image-3 {
  background-image: linear-gradient(135deg, #e7ecea 0%, #c7d1cc 100%);
}

.product-body {
  padding: 1.5rem;
}

.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  border-radius: 24px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.about-section {
  padding-bottom: 6rem;
}

.about-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
}

.about-stats {
  display: grid;
  gap: 1rem;
}

.about-stats div {
  background: #111;
  color: #fff;
  border-radius: 24px;
  padding: 1.5rem;
}

.about-stats strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.site-footer {
  padding: 2rem 0;
  background: #111;
  color: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cart-message {
  color: #1a7f37;
  margin-bottom: 1rem;
  min-height: 1.4rem;
}

.cart-list {
  display: grid;
  gap: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(15, 15, 15, 0.06);
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cart-actions button {
  border-radius: 8px;
  border: 1.5px solid rgba(17, 17, 17, 0.25);
  background: #faf5f0;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cart-actions button:hover {
  background: #f0f0f0;
  border-color: rgba(17, 17, 17, 0.4);
}

.cart-actions button:not(.button-small) {
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  min-width: auto;
}

.button-small {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  min-width: 5.5rem;
  white-space: nowrap;
}

.cart-footer,
.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
}

.checkout-form,
.account-form,
.admin-form,
.admin-product-form,
.background-settings {
  display: grid;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 15, 15, 0.08);
}

.background-settings {
  padding: 1.5rem;
}

.background-settings h3 {
  margin: 0;
  font-size: 1.05rem;
}

.hint-text {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.image-preview-container {
  display: grid;
  gap: 0.6rem;
}

.image-preview-label {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.image-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #e4e0da;
}

.image-preview-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.image-preview-thumb {
  position: relative;
  width: 100%;
  padding-top: 70%;
  border-radius: 16px;
  overflow: hidden;
  background: #faf5f0;
  border: 2px solid transparent;
  cursor: pointer;
}

.image-preview-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-thumb.active {
  border-color: #111;
}

.image-display-settings {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e4e0da;
}

.image-display-settings label {
  display: grid;
  gap: 0.5rem;
}

.image-display-settings select {
  padding: 0.75rem;
  border: 1px solid #d7d3cc;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.account-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  border: 1px solid #d7d3cc;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  font: inherit;
}

.tab-button.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.checkout-form input,
.account-form input,
.admin-form input,
.admin-form select,
.admin-product-form input,
.admin-product-form select,
.admin-product-form textarea {
  width: 100%;
  border: 1px solid #d7d3cc;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
}

.checkout-summary,
.admin-table {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 15, 15, 0.08);
}

.checkout-summary h3 {
  margin-top: 0;
}

.checkout-summary .summary-note {
  color: #666;
  margin: 0 0 1rem;
  line-height: 1.6;
  font-size: 0.96rem;
}

.checkout-summary ul {
  padding-left: 1.2rem;
  margin: 1rem 0;
  color: #555;
}

.checkout-summary li {
  margin-bottom: 0.75rem;
}

.checkout-summary li.discount-line {
  color: #0a7;
  font-weight: 600;
}

.discount-row {
  display: grid;
  gap: 1rem;
}

.discount-row label {
  display: grid;
  gap: 0.35rem;
}

.discount-row button {
  width: fit-content;
}

.discount-status {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 1.8rem;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e9e5df;
  border-radius: 22px;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 170px;
  flex: 1;
}

.filter-item label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-item input,
.filter-item select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #faf7f3;
  color: #333;
  font-size: 0.95rem;
}

.filter-item input::placeholder {
  color: #999;
}

.filter-clear {
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.2s ease;
  min-width: 170px;
}

.filter-clear:hover {
  background: #333;
}

.admin-sidebar {
  display: grid;
  gap: 1.5rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.4rem 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #f1f0ec;
  color: #333;
  font-size: 0.92rem;
}

.chip button {
  border: none;
  background: transparent;
  color: #777;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.admin-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.admin-product-heading {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.admin-table td.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.order-section {
  display: grid;
  gap: 1.25rem;
}

.order-section .admin-table th,
.order-section .admin-table td {
  padding: 0.75rem 0;
}

.order-status {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.order-status.neu {
  background: #e9f8ff;
  color: #055a7d;
}

.order-status.versendet {
  background: #eef7eb;
  color: #1f6f31;
}

.order-status.storniert {
  background: #fde7e7;
  color: #9e2d2d;
}

.small-note {
  font-size: 0.88rem;
  color: #777;
  margin-top: 0.5rem;
}

.product-card-body {
  padding: 1.5rem;
}

.product-reviews-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 1.5rem;
}

.review-stars,
.review-score {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: #f9b700;
  font-size: 1rem;
}

.product-review-cta {
  margin-bottom: 1.5rem;
}

.product-review-form {
  background: #faf5f0;
  border: 1px solid #e8e4de;
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.product-review-form.hidden {
  display: none;
}

.star-input {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.star-button {
  border: 1px solid #d7d3cc;
  background: #faf5f0;
  color: #f9b700;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
}

.product-review-form textarea {
  min-height: 120px;
}

.product-review-list {
  display: grid;
  gap: 1rem;
}

.review-card {
  background: #faf5f0;
  border: 1px solid #e9e5df;
  border-radius: 20px;
  padding: 1.2rem;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: #333;
  font-weight: 700;
}

.review-card p {
  margin: 0 0 0.85rem;
  color: #555;
}

.review-card small {
  color: #888;
}

.product-card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.product-card-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-available {
  background: #e7f6ed;
  color: #1a7f37;
}

.badge-soldout {
  background: #fce9e9;
  color: #c62828;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 1rem 0;
  color: #666;
  font-size: 0.95rem;
}

.product-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.admin-tab {
  border: 1px solid #e8e4de;
  background: #faf5f0;
  color: #222;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab.active,
.admin-tab:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-stat {
  background: #faf5f0;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.admin-stat span {
  display: block;
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.admin-stat strong {
  display: block;
  font-size: 1.75rem;
  color: #1a1a1a;
}

.admin-actions {
  margin-bottom: 1rem;
}

.admin-form-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ece9e4;
  border-radius: 22px;
  padding: 1.6rem;
  margin-bottom: 1rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.admin-table button {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
}

.button-secondary {
  background: #f5f5f5;
  color: #1a1a1a;
}

.button-secondary:hover {
  background: #e8e8e8;
}

.button-danger {
  background: #d32f2f;
  color: #fff;
}

.button-danger:hover {
  background: #b72826;
}

@media (max-width: 860px) {
  .product-selects {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

.admin-panel {
  display: grid;
  gap: 1rem;
}

.admin-message {
  color: #1a7f37;
  font-weight: 600;
}

.admin-note {
  font-size: 0.9rem;
  color: #666;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.9rem 0;
  border-bottom: 1px solid #eee;
}

.admin-table th {
  color: #555;
  font-weight: 700;
}

.hidden {
  display: none;
}

.empty-state {
  color: #666;
  padding: 1.5rem;
  background: #faf5f0;
  border-radius: 24px;
  text-align: center;
}

.button-full {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 1.4rem;
  border-radius: 18px;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
  }

  .header-inner.nav-open .main-nav {
    display: flex;
  }

  .checkout-grid,
  .admin-grid,
  .hero-content,
  .about-content,
  .features-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.5rem;
  }

  .button {
    width: 100%;
  }
}

.profile-card {
  background: #faf5f0;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f0f0f0;
}

.profile-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.recent-orders h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.order-list {
  list-style: none;
  padding: 0;
}

.order-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

@media (max-width: 900px) {
  .hero-content,
  .about-content,
  .features-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.5rem;
  }

  .button {
    width: 100%;
  }
}

.settings-form {
  display: grid;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 15, 15, 0.08);
}

.settings-form h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #111;
}

.settings-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #333;
}

.settings-form input,
.settings-form select {
  width: 100%;
  border: 1px solid #d7d3cc;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
}

.contact-info {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

.contact-info div {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 15, 15, 0.08);
}

.contact-info h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

body.dark-mode {
  background: linear-gradient(-45deg, #1a1a1a, #2a2a2a, #1f1f1f, #151515);
  color: #f8f7f3;
}

body.dark-mode .site-header {
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .product-card {
  background: rgba(0, 0, 0, 0.82);
}

body.dark-mode .feature-card {
  background: rgba(0, 0, 0, 0.7);
}

body.dark-mode .checkout-form,
body.dark-mode .admin-form,
body.dark-mode .settings-form {
  background: rgba(0, 0, 0, 0.9);
}

body.dark-mode .site-footer {
  background: #000;
}

.product-detail {
  max-width: 1200px;
  margin: 0 auto;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.product-image-large {
  min-height: 420px;
  background-size: cover;
  background-position: center;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(15, 15, 15, 0.12);
}

.product-info h1 {
  margin-bottom: 1rem;
}

.product-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  align-items: flex-end;
  margin: 2rem 0;
}

.product-options label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #555;
  font-weight: 600;
}

.product-options select,
.product-selects select,
.option-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 18px;
  background: #faf5f0;
  color: #1a1a1a;
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23666' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 6px;
}

.product-options select:hover,
.product-options select:focus,
.product-selects select:hover,
.product-selects select:focus,
.option-group select:hover,
.option-group select:focus {
  border-color: rgba(17, 17, 17, 0.24);
  box-shadow: 0 8px 20px rgba(15, 15, 15, 0.08);
  outline: none;
}

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-actions .button {
  min-width: 180px;
}

.profile-info {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 15, 15, 0.08);
  margin-bottom: 2rem;
}

.profile-section h3 {
  margin-bottom: 1rem;
}
