:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-strong: #f7f2e8;
  --surface-muted: #f2ece4;
  --text: #332a1d;
  --text-muted: #6b6b6b;
  --primary: #9b7a46;
  --primary-dark: #6f5938;
  --primary-light: #bfa36b;
  --accent: rgba(191,163,107,0.12);
  --border: #e6e6e6;
  --border-strong: rgba(191,163,107,0.18);
  --shadow: 0 8px 32px rgba(155,122,70,0.15);
  --shadow-soft: 0 4px 16px rgba(155,122,70,0.1);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-round: 50%;
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: transparent;
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: #f3e7d7 !important;
  background-image: var(--page-bg-image) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  opacity: 0.25 !important;
  filter: saturate(0.85) contrast(1.05) brightness(1.1);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition), background var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--primary);
}

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

button {
  cursor: pointer;
}

html body .filter-card select,
html body .filter-card input[type="number"] {
  min-height: 42px;
  border: 1px solid rgba(155,122,70,0.38);
  border-radius: 10px;
  background-color: #f7f2e8;
  color: var(--primary-dark);
  padding: 9px 12px;
  box-shadow: 0 3px 10px rgba(155,122,70,0.10);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

html body .filter-card select {
  min-width: 150px;
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

html body .filter-card #sort-select {
  min-width: 188px;
}

html body .filter-card #availability-filter {
  min-width: 148px;
}

html body .filter-card #grade-filter {
  min-width: 180px;
}

html body .filter-card > div[style*="flex-wrap"] {
  gap: 10px !important;
}

html body .filter-card input[type="number"] {
  color: var(--text);
}

html body .filter-card select:hover {
  border-color: var(--primary-light);
  background-color: #f7f2e8;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  box-shadow: 0 3px 10px rgba(155,122,70,0.10);
}

html body .filter-card input[type="number"]:hover {
  border-color: var(--primary-light);
  background-color: #f7f2e8;
  box-shadow: 0 3px 10px rgba(155,122,70,0.10);
}

html body .filter-card select:focus-visible {
  outline: 2px solid rgba(191,163,107,0.36);
  outline-offset: 1px;
  border-color: var(--primary-light);
  background-color: #f7f2e8;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  box-shadow: 0 3px 10px rgba(155,122,70,0.10);
}

html body .filter-card input[type="number"]:focus-visible {
  outline: 2px solid rgba(191,163,107,0.36);
  outline-offset: 1px;
  border-color: var(--primary-light);
  background-color: #f7f2e8;
  box-shadow: 0 3px 10px rgba(155,122,70,0.10);
}

html body .filter-card select:active {
  background-color: #f7f2e8;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  border-color: var(--primary-light);
  box-shadow: 0 3px 10px rgba(155,122,70,0.10);
}

html body .filter-card input[type="number"]:active {
  background-color: #f7f2e8;
  border-color: var(--primary-light);
  box-shadow: 0 3px 10px rgba(155,122,70,0.10);
}

html body .filter-card select option {
  background: #f7f2e8;
  color: var(--primary-dark);
}

html body .filter-card input[type="number"]::placeholder {
  color: var(--text-muted);
  opacity: 0.9;
}

@media (max-width: 620px) {
  html body .filter-card select {
    min-width: min(100%, 220px);
  }

  html body .filter-card #sort-select,
  html body .filter-card #availability-filter,
  html body .filter-card #grade-filter {
    min-width: min(100%, 220px);
  }

  html body .filter-card input[type="number"] {
    width: 110px !important;
  }
}

.header,
header {
  padding: 0;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,248,245,0.95) 50%, rgba(243,231,215,0.95) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(155,122,70,0.12);
  border-bottom: 1px solid rgba(191,163,107,0.2);
  transition: all 0.3s ease;
}

.header.scrolled,
header.scrolled {
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(250,248,245,0.98) 50%, rgba(243,231,215,0.98) 100%);
  box-shadow: 0 4px 24px rgba(155,122,70,0.18);
}

.header nav,
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 40px;
}

.header-title,
.header-title {
  display: block;
  color: transparent !important;
  text-decoration: none;
  transition: none !important;
  animation: none !important;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  line-height: normal;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding: 0 12px;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

header a.header-title:hover,
header a.header-title:focus-visible,
header a.header-title.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: inherit;
  text-decoration: none;
  transform: none;
  box-shadow: none;
  background-color: transparent !important;
  border-radius: 0 !important;
  transition: none !important;
  animation: none !important;
}

header a.header-title {
  overflow: visible;
}

.header-title::after,
.header-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(191,163,107,0.5) 50%, transparent 100%) !important;
  animation: none !important;
  transition: none !important;
}

.header__nav,
header nav .nav-links,
header .nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

header a,
.header a {
  text-decoration: none;
  color: #6f5938;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

header a:hover,
.header a:hover {
  color: #5a4a2a;
  background: rgba(191,163,107,0.15);
  transform: translateY(-2px);
}

header a.active,
.header a.active {
  background: linear-gradient(135deg, rgba(155,122,70,0.12) 0%, rgba(191,163,107,0.12) 100%);
  color: #9b7a46;
  box-shadow: 0 2px 8px rgba(155,122,70,0.15);
}

header a[href="warenkorb.html"],
.header a[href="warenkorb.html"] {
  padding: 10px 12px;
  margin-left: 8px;
  background: linear-gradient(135deg, #9b7a46 0%, #bfa36b 100%);
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(155,122,70,0.25);
}

header a[href="warenkorb.html"]:hover,
.header a[href="warenkorb.html"]:focus {
  background: linear-gradient(135deg, #bfa36b 0%, #9b7a46 100%);
  transform: translateY(-2px);
}

header a[href="warenkorb.html"] svg {
  stroke: white !important;
}

.menu-toggle-header {
  width: 44px;
  height: 44px;
  margin-left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,247,243,0.9) 100%);
  color: var(--primary);
  border-radius: 10px;
  border: 1.5px solid rgba(155,122,70,0.15);
  box-shadow: 0 2px 8px rgba(155,122,70,0.12);
  cursor: pointer;
  transition: all var(--transition);
}

.menu-toggle-header:hover,
.menu-toggle-header:focus {
  background: linear-gradient(135deg, rgba(155,122,70,0.12) 0%, rgba(191,163,107,0.12) 100%);
  border-color: rgba(155,122,70,0.3);
  transform: translateY(-1px);
}

.hamburger-lines {
  position: relative;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.hamburger-lines::before,
.hamburger-lines::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  left: 0;
}

.hamburger-lines::before {
  top: -6px;
}

.hamburger-lines::after {
  top: 6px;
}

.profile-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 24px;
  margin-right: 4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.2s ease;
  cursor: pointer;
}

.profile-icon-wrapper:hover,
.profile-icon-wrapper:focus-within {
  background: rgba(191,163,107,0.10);
}

.profile-icon {
  display: block;
  margin: 0 auto;
  width: 22px;
  height: 22px;
}

.profile-dropdown,
#profileDropdown.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(155,122,70,0.18);
  border: 1px solid rgba(191,163,107,0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2000;
}

.profile-dropdown.show,
#profileDropdown.profile-dropdown.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-dropdown a,
.profile-dropdown button,
#profileDropdown.profile-dropdown a,
#profileDropdown.profile-dropdown button {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.profile-dropdown a:hover,
.profile-dropdown button:hover,
#profileDropdown.profile-dropdown a:hover,
#profileDropdown.profile-dropdown button:hover {
  background: rgba(191,163,107,0.08);
  color: #3e2f1d;
}

.profile-dropdown .divider,
#profileDropdown.profile-dropdown .divider {
  height: 1px;
  background: rgba(191,163,107,0.16);
  margin: 6px 0;
}

.profile-dropdown i,
.profile-dropdown svg,
#profileDropdown.profile-dropdown i,
#profileDropdown.profile-dropdown svg {
  min-width: 20px;
  min-height: 20px;
  color: var(--primary);
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,248,245,0.95) 100%);
  box-shadow: -4px 0 24px rgba(155,122,70,0.16);
  border-left: 1px solid rgba(191,163,107,0.18);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.2s linear;
  z-index: 1300;
}

.side-menu.open,
.side-menu.side-menu--open {
  transform: translateX(0);
}

.side-menu ul {
  list-style: none;
  margin: 0;
  padding: 20px 0;
}

.side-menu ul li {
  margin: 4px 12px;
  border-radius: 12px;
}

.side-menu ul li:hover {
  background: linear-gradient(90deg, rgba(191,163,107,0.1), rgba(155,122,70,0.08));
  transform: translateX(2px);
}

.side-menu ul li a {
  display: block;
  padding: 14px 18px;
  color: var(--primary-dark);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
}

.side-menu ul li a:hover {
  color: var(--primary);
  background: rgba(255,253,248,0.8);
}

.side-menu-search {
  margin: 20px 16px 8px;
  padding: 16px;
  border: 1px solid rgba(155,122,70,0.2);
  border-radius: 12px;
  background: rgba(255,255,255,0.75);
}

.side-menu-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-weight: 600;
}

.side-menu-search-controls {
  display: flex;
  gap: 6px;
}

.side-menu-search input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(155,122,70,0.35);
  border-radius: 8px;
  color: #222;
  font: inherit;
}

.side-menu-search button {
  flex: 0 0 auto;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #9b7a46, #bfa36b);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.home-search-bar {
  position: sticky;
  top: 84px;
  z-index: 90;
  height: 0;
  pointer-events: none;
}

.home-search-form {
  display: flex;
  width: min(100%, 520px);
  align-items: center;
  gap: 0;
  position: relative;
  top: 10px;
  margin-left: 16px;
  pointer-events: auto;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.16));
}

.home-search-form input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(155,122,70,0.35);
  border-radius: 20px 0 0 20px;
  background: rgba(255,255,255,0.85);
  color: #222;
  font: inherit;
}

.home-search-form button {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 0 20px 20px 0;
  background: linear-gradient(135deg, #9b7a46, #bfa36b);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

footer {
  background: #2c2c2c;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

footer a {
  color: white;
  text-decoration: none;
  transition: color var(--transition);
}

footer a:hover,
footer a:focus {
  color: var(--primary-light);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

/* Cart specific styles */
.cart-item {
  display: flex;
  gap: 20px;
  padding: 18px;
  background: var(--surface-strong);
  border-radius: 12px;
  margin-bottom: 14px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}
.cart-item img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; }
.cart-item-info h3 { margin: 0 0 6px 0; color: var(--primary-dark); font-family: 'Playfair Display', serif; }
.cart-item-info p { margin: 4px 0; color: var(--text-muted); }
.cart-item-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); min-width: 120px; text-align: right; }
.cart-item button { padding: 8px 12px; background: #e74c3c; color: #fff; border: none; border-radius: 8px; cursor: pointer; }
.cart-item button:hover { background: #c0392b; }

.cart-total {
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(180deg, var(--surface), var(--surface-strong));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-strong);
}
.cart-total .summary-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; color:var(--text); }
.cart-total h2 { display:flex; justify-content:space-between; align-items:center; margin-top:12px; color:var(--primary-dark); font-family: inherit; }
.cart-total h2 span { font-family: inherit; }
.cart-total h2 span:first-child { font-size: 1.15rem; color: var(--primary-dark); font-weight: 700; }
.cart-total h2 span:last-child { font-size: 2rem; color: var(--primary); font-weight: 800; letter-spacing: -0.01em; }
.shipping-info { margin-top:12px; color:var(--text-muted); font-size:0.95rem; }
.free-shipping { color: #27ae60; font-weight: 700; }
.discount-line { display:flex; justify-content:space-between; margin-bottom:10px; color:#e74c3c; }

.coupon-section { margin: 20px 0; padding: 18px; background: var(--surface-strong); border-radius: 12px; box-shadow: var(--shadow-soft); }
.coupon-section h3 { margin-top:0; color:var(--primary-dark); }
.coupon-section input { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 6px; }
.coupon-section .btn { padding: 10px 20px; }

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 18, 12, 0.44);
  backdrop-filter: blur(10px);
  z-index: 3000;
  overflow: auto;
}

.overlay.open,
.overlay[aria-hidden="false"] {
  display: flex;
  animation: overlayFadeIn 0.22s ease-out forwards;
}

#cartConfirmOverlay {
  padding: 0;
}

.confirm-modal {
  width: min(100%, 520px);
  background: rgba(255,255,255,0.98);
  border-radius: 24px;
  border: 1px solid rgba(155,122,70,0.18);
  box-shadow: 0 28px 70px rgba(0,0,0,0.12);
  padding: 36px 28px;
  text-align: center;
  color: var(--text);
}

.confirm-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(155,122,70,0.12);
  color: var(--primary-dark);
  font-size: 34px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(155,122,70,0.2);
}

.confirm-modal h2 {
  margin: 0 0 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--primary-dark);
}

.confirm-modal p {
  margin: 0 auto 20px;
  max-width: 420px;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

.delivery-info {
  margin: 0 auto 18px;
  max-width: 400px;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.confirm-secondary {
  display: block;
  margin: 14px auto 0;
  width: min(220px, 100%);
}

.confirm-actions .btn,
.confirm-secondary {
  min-width: 160px;
}

.btn.secondary {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid rgba(155,122,70,0.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8);
}

.btn.secondary:hover {
  background: rgba(255,255,255,0.95);
}

html body #cartConfirmOverlay {
  padding: 0;
}

html body .modal {
  position: relative;
  width: 980px;
  max-width: 98%;
  background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(248,244,236,0.98) 45%, rgba(242,239,231,0.95) 100%);
  border-radius: 24px;
  box-shadow: 0 24px 72px rgba(80,80,80,0.26), 0 0 0 1px rgba(120,90,45,0.24);
  display: flex;
  gap: 24px;
  padding: 32px;
  position: relative;
  box-sizing: border-box;
  font-size: 15px;
  border: 3px solid #6f5938;
  overflow: hidden;
}

html body .modal::before {
  content: "";
  position: absolute;
  top: -26px;
  right: -30px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.45), transparent 55%);
  pointer-events: none;
}

html body .close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(245,245,245,0.9));
  border: 1.5px solid rgba(200,200,200,0.4);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(100,100,100,0.15);
  z-index: 10;
}

html body .close:hover {
  background: linear-gradient(135deg, #9b7a46, #6f5938);
  color: white;
  border-color: #6f5938;
  box-shadow: 0 4px 12px rgba(111,89,56,0.3);
}

html body .left {
  width: 420px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

html body .main-image {
  width: 100%;
  background: linear-gradient(135deg, rgba(250,250,250,0.95), rgba(240,240,240,0.85));
  border-radius: 16px;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(150,150,150,0.12) inset, 0 0 0 1px rgba(200,200,200,0.25);
  border: 2px solid rgba(200,200,200,0.3);
  position: relative;
}

html body .main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: transform 0.35s ease;
  transform-origin: center center;
}

html body .main-image:hover img {
  transform: scale(1.28);
}

html body .image-nav-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(255,255,255,0.7) !important;
  border: 1.5px solid rgba(191,163,107,0.4) !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
  z-index: 10 !important;
  color: #9b7a46 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(155,122,70,0.15) !important;
  opacity: 0.6 !important;
  backdrop-filter: blur(4px) !important;
  padding: 0 !important;
  gap: 0 !important;
}

html body .image-nav-arrow:hover {
  background: linear-gradient(135deg, #9b7a46, #bfa36b) !important;
  color: white !important;
  border-color: #9b7a46 !important;
  box-shadow: 0 4px 12px rgba(155,122,70,0.35) !important;
  transform: translateY(-50%) scale(1.1) !important;
  opacity: 1 !important;
}

html body .image-nav-arrow.left { left: 8px !important; }
html body .image-nav-arrow.right { right: 8px !important; }

html body .thumb-row {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

html body .thumb-row button {
  width: 72px;
  aspect-ratio: 1 / 1;
  min-width: 72px;
  border-radius: 12px;
  border: 2px solid rgba(200,200,200,0.35);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,245,245,0.9));
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(120,120,120,0.1);
}

html body .thumb-row button:hover {
  border-color: rgba(150,150,150,0.6);
  box-shadow: 0 4px 16px rgba(120,120,120,0.25);
  transform: translateY(-2px);
}

html body .thumb-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html body .right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html body .title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

html body .title-row h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: #111;
  font-weight: 700;
  letter-spacing: 0.5px;
}

html body .badge {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}

html body .specs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

html body .spec {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,240,225,0.96));
  border: 1.5px solid rgba(200,200,200,0.35);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  color: #555;
  box-shadow: 0 2px 6px rgba(120,120,120,0.08);
}

html body .grade-dropdown {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-top: 10px;
}

html body .grade-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 20px;
  border: 1.5px solid rgba(160,138,86,0.35);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(245,240,225,0.96));
  color: #3c3c3c;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 3px 10px rgba(120,120,120,0.08);
  text-align: left;
}

html body .grade-dropdown-toggle:hover {
  border-color: #bfa36b;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(243,237,217,0.98));
}

html body .grade-dropdown.open .grade-dropdown-toggle {
  border-color: #9b7a46;
  box-shadow: 0 0 0 4px rgba(151,122,70,0.08);
}

html body .grade-dropdown-toggle svg {
  transition: transform 0.25s ease;
}

html body .grade-dropdown.open .grade-dropdown-toggle svg {
  transform: rotate(180deg);
}

html body .grade-dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 100%;
  padding: 14px;
  background: #fff;
  border: 1.5px solid rgba(160,138,86,0.3);
  border-radius: 20px;
  box-shadow: 0 22px 45px rgba(100,80,40,0.16);
  z-index: 50;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

html body .grade-dropdown.open .grade-dropdown-menu {
  max-height: 360px;
  opacity: 1;
  transform: translateY(0);
}

html body .zustand-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.2px solid rgba(210,180,140,0.5);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(245,245,241,0.98));
  color: #2d2d2d;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(120,120,120,0.08);
}

html body .zustand-btn:hover:not(.disabled) {
  transform: translateY(-1px);
  border-color: rgba(151,122,70,0.55);
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(249,243,225,0.98));
}

html body .zustand-btn.selected {
  border-color: #9b7a46;
  background: linear-gradient(135deg, rgba(249,245,229,0.98), rgba(248,242,222,0.98));
  box-shadow: 0 4px 16px rgba(148,118,63,0.14);
}

html body .zustand-btn.selected .grade-label { color: #7a5a1a; }
html body .zustand-btn.selected .verf { color: #9b7a46; font-weight: 700; }
html body .zustand-btn.disabled { opacity: 0.65; cursor: not-allowed; border-color: rgba(170,170,170,0.45); }
html body .zustand-btn.disabled:hover { transform: none; }
html body .zustand-btn.unavailable { opacity: 0.7; border-color: rgba(200,150,100,0.4); background: linear-gradient(135deg, rgba(250,250,250,0.95), rgba(240,240,235,0.95)); }
html body .zustand-btn.unavailable:hover { transform: translateY(-1px); border-color: rgba(151,122,70,0.4); }

html body .modal-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

html body .availability-note {
  display: none;
  margin-top: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #fff8e8 0%, #fffbf0 100%);
  border: 1px solid #e9d9bc;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #6f5938;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-shadow: 0 2px 8px rgba(155, 122, 70, 0.08);
}

html body .availability-note strong {
  color: #9b7a46;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  html body .availability-note {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.55;
  }
}

@keyframes globalOverlayFadeIn {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to { opacity: 1; backdrop-filter: blur(10px); }
}


@keyframes overlayFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.btn.primary { background: var(--primary); color: #fff; border-radius: 12px; width: 100%; padding: 14px 20px; font-weight:700; }
.btn.primary:hover { background: var(--primary-dark); box-shadow: 0 6px 18px rgba(155,122,70,0.2); }

.cart-expiry { color: var(--primary-dark); font-weight:700; gap:10px; }
.cart-expiry span:first-child { font-size:0.95rem; color:var(--text-muted); font-weight:600; }

@media (max-width: 720px) {
  .cart-item { flex-direction: column; align-items: flex-start; }
  .cart-item-price { text-align: left; min-width: auto; }
}

.footer-copyright {
  color: #ccc;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  header {
    height: 12.5vh;
    min-height: 64px;
    height: auto;
  }

  header nav {
    padding: 0 20px;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }
  
  .header-title {
    font-size: 22px;
    margin: 0;
  }
  
  header a {
    display: none;
  }

  header a.header-title {
    display: block !important;
  }

  header a[href="warenkorb.html"] {
    display: flex;
  }

  .menu-toggle-header,
  .profile-icon-wrapper {
    display: flex;
  }

  .profile-icon-wrapper {
    margin-left: 12px;
  }

}

@media (max-width: 1024px) {
  .home-search-bar {
    top: 76px;
  }

  header nav,
  .header nav {
    padding: 16px 20px;
  }

  .header-title,
  .header__logo {
    font-size: 24px;
  }

  .header__nav,
  header .nav-links,
  header nav .nav-links {
    gap: 6px;
  }

  header a,
  .header a {
    font-size: 0.82rem;
    padding: 8px 10px;
  }
}

@media (max-width: 768px) {
  .home-search-bar {
    top: 68px;
  }

  .home-search-form {
    width: min(calc(100% - 32px), 520px);
    margin-left: 16px;
  }
}

@media (max-width: 720px) {
  html {
    font-size: 15px;
  }

  body {
    line-height: 1.55;
  }

  header nav,
  .header nav {
    padding: 12px 14px;
    min-height: 58px;
  }

  .header-title,
  .header__logo {
    font-size: 20px;
    padding: 0 4px;
  }

  .header-title::after,
  .header__logo::after {
    left: 4px;
    right: 4px;
  }

  .header__nav,
  header .nav-links,
  header nav .nav-links,
  .header a:not(.header-title),
  header a:not(.header-title) {
    display: none;
  }

  header a.header-title,
  .header a.header-title {
    display: block;
  }

  .profile-icon-wrapper {
    margin-left: 8px;
    margin-right: 0;
    width: 40px;
    height: 40px;
  }

  .side-menu {
    width: min(86vw, 320px);
  }

  .container,
  main > .content {
    width: 100%;
    max-width: none;
    padding-left: 12px;
    padding-right: 12px;
  }

  .container h1,
  main > .content h1 {
    font-size: 2rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  main > .content h2,
  main > .content h3 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  main > .content p,
  main > .content li,
  main > .content td,
  main > .content th {
    font-size: 0.96rem;
    overflow-wrap: anywhere;
  }

  main > .content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .categories-wrapper,
  .angebote-section {
    width: calc(100% - 24px);
    max-width: none;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  .categories-grid,
  .angebote-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  .hero-section {
    min-height: 360px;
    margin: 24px 12px 36px;
    border-radius: 16px;
  }

  .hero-section .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.1;
  }

  .hero-section .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }

  .category-card {
    min-width: 0;
  }

  footer {
    padding: 28px 16px;
  }

  .footer-links {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
  }

  .cart-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    align-items: start;
  }

  .cart-item img {
    width: 64px;
    height: 64px;
  }

  .cart-item-info {
    min-width: 0;
  }

  .cart-item-price,
  .cart-item button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
  }

  .cart-total {
    padding: 18px 14px;
  }

  .cart-total h2 span:last-child {
    font-size: 1.5rem;
  }

  .coupon-section {
    padding: 14px;
  }

  .coupon-section form,
  .coupon-section > div {
    display: grid;
    gap: 10px;
  }

  .coupon-section input,
  .coupon-section .btn,
  .btn.primary {
    width: 100%;
    min-height: 44px;
  }

  html body .modal {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 18px 14px;
    border-radius: 16px;
    overflow-y: auto;
  }

  html body .modal-footer,
  .confirm-actions {
    display: grid;
    gap: 10px;
  }

  html body .modal-footer .btn,
  .confirm-actions .btn,
  .confirm-secondary {
    width: 100%;
    min-height: 44px;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header-title,
  .header__logo {
    font-size: 18px;
  }

  .menu-toggle-header {
    width: 40px;
    height: 40px;
  }

  .profile-icon-wrapper {
    width: 36px;
    height: 36px;
  }

  footer a,
  .footer-links a {
    font-size: 0.92rem;
  }

  .cart-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .cart-item img {
    width: 52px;
    height: 52px;
  }
}

/* Keep the logo appearance and behavior consistent on every page. */
.header-title,
header a.header-title,
header a.header-title:hover,
header a.header-title:focus-visible,
header a.header-title.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  background-color: transparent !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.header-title::after,
header a.header-title::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  bottom: -4px !important;
  left: 12px !important;
  right: 12px !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent 0%, rgba(191,163,107,0.5) 50%, transparent 100%) !important;
  animation: none !important;
  transition: none !important;
}

@media (max-width: 700px) {
  button,
  a.btn,
  .btn,
  .hero-cta,
  .home-shortcuts a,
  .search-suggestions button {
    height: auto;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    line-height: 1.25;
    box-sizing: border-box;
  }
}
