/* ============================================
   OGFINEARTS Webshop - Premium Design System
   ============================================ */

/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Color Palette - Premium & Sophisticated */
  --color-primary: #2c1810;
  --color-primary-light: #4a2f23;
  --color-accent: #d4af37;
  --color-accent-dark: #b8941f;
  --color-accent-light: #f0d98d;

  --color-bg-main: #e6dac8;
  --color-bg-secondary: #f5f3f0;
  --color-bg-dark: #1a1a1a;
  --color-text-primary: #2c2c2c;
  --color-text-secondary: #666666;
  --color-text-light: #999999;
  --color-white: #ffffff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2c1810 0%, #4a2f23 100%);
  --gradient-accent: linear-gradient(135deg, #d4af37 0%, #f0d98d 100%);
  --gradient-hero: linear-gradient(135deg, rgba(44, 24, 16, 0.95) 0%, rgba(74, 47, 35, 0.9) 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Georgia, serif;
  background: #f4efe6;
  /* Creme / Beige */
  color: #333;
}

a {
  color: #333;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 30px;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-dark);
}

/* ============================================
   Layout Components
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-narrow {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-primary);
  font-weight: 500;
  position: relative;
  padding: var(--spacing-xs) 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-normal);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.cart-icon {
  position: relative;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--gradient-accent);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 20px;
  text-align: center;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-hero);
  color: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L100 100M100 0L0 100" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: var(--spacing-xl);
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-secondary-dark {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--gradient-accent);
  color: var(--color-primary);
  border-color: transparent;
}

.btn-large {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.125rem;
}

/* ============================================
   Search & Filter Bar
   ============================================ */
.search-filter-bar {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: var(--spacing-xl) 0;
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) 3rem;
  border: 2px solid var(--color-bg-secondary);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-icon {
  position: absolute;
  left: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  font-size: 1.25rem;
}

.filter-select {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--color-bg-secondary);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* ============================================
   Product Grid
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.product-card {
  background: transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: none;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gradient-overlay);
  padding: var(--spacing-md);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.product-card:hover .product-overlay {
  transform: translateY(0);
}

.product-info {
  padding: var(--spacing-md);
}

.product-artist {
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-xs);
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.product-technique {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #B12704;
  /* Amazon Price Red */
}

.product-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: var(--gradient-accent);
  color: var(--color-primary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--color-bg-secondary);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-error {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-xs);
  display: block;
}

.footer-section a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--gradient-accent);
  transform: translateY(-3px);
}

/* ============================================
   Cart Page
   ============================================ */
/* ============================================
   Cart Page
   ============================================ */
/* ============================================
   Cart Page - Amazon Style Tweaks
   ============================================ */
.cart-table,
.cart-summary,
h1,
h2,
h3,
h4,
h5,
h6,
.form-label,
.product-title,
.btn {
  font-family: "Amazon Ember", Arial, sans-serif !important;
}

.cart-table {
  width: 100%;
  background: var(--color-white);
  border-radius: 4px;
  /* Reduced radius */
  overflow: hidden;
  box-shadow: none;
  /* Flatter design */
  border: 1px solid #ddd;
  margin: var(--spacing-lg) 0;
  font-size: 14px;
}

.cart-table th {
  background: var(--color-bg-secondary);
  padding: var(--spacing-sm);
  /* Reduced padding */
  text-align: left;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.85rem;
  /* Even smaller headers */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-table td {
  padding: var(--spacing-sm);
  /* Reduced padding */
  border-bottom: 1px solid var(--color-bg-secondary);
  vertical-align: middle;
}

.cart-item-image {
  width: 60px;
  /* Smaller image */
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  /* Tighter gap */
}

.quantity-btn {
  width: 24px;
  /* Smaller buttons */
  height: 24px;
  border: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  transition: all var(--transition-fast);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: var(--gradient-accent);
  color: var(--color-primary);
}

.quantity-input {
  width: 40px;
  /* Smaller input */
  text-align: center;
  border: 1px solid var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  padding: 2px;
  font-size: 0.9rem;
}

.cart-summary {
  background: var(--color-white);
  padding: var(--spacing-md);
  /* Reduced padding */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: var(--spacing-lg);
  max-width: 400px;
  /* Constrain width */
  margin-left: auto;
  /* Align right */
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  /* Reduced padding */
  border-bottom: 1px solid var(--color-bg-secondary);
  font-size: 0.9rem;
}

.summary-row.total {
  font-size: 1.2rem;
  /* Smaller total */
  font-weight: 700;
  border-bottom: none;
  margin-top: var(--spacing-sm);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .header.scrolled {
    padding: var(--spacing-xs) 0;
  }
}

/* ============================================
   Compatibility / Legacy HTML Support
   ============================================ */

/* Header Adjustments */
/* Header Adjustments to match original */
header {
  background: #ffffff;
  border-bottom: none;
  padding: 14px 16px 12px;
  margin: 0 -20px;
  width: auto;
  box-shadow: none;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  margin: 0;
  flex-wrap: nowrap;
}

.header-center {
  flex: 1;
  text-align: center;
}

.header-center h1 {
  margin: 0;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: #8a6a36;
  font-family: var(--font-heading);
  /* Keeping font var but using original sizes */
}

.header-center p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #666;
  font-family: inherit;
}

.header-left img {
  height: 56px;
  width: auto;
  display: block;
}

.header-right {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.header-right a {
  text-decoration: none;
  margin-left: 0;
  color: #333;
}

.header-right a:hover {
  text-decoration: underline;
}

/* Nav */
.nav-row {
  margin-top: 8px;
  text-align: center;
  padding-top: 0;
  border-top: none;
}

.nav-row nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: normal;
  justify-content: center;
}

.nav-row a {
  text-decoration: none;
  color: #333;
  /* Explicit original color */
}

.nav-row a:hover {
  text-decoration: underline;
  color: #333;
}

/* Intro */
.intro {
  max-width: 900px;
  margin: 26px auto 14px;
  font-size: 18px;
  text-align: justify;
  line-height: 1.8;
  padding: 0;
  color: #333;
}

.intro strong {
  font-weight: 600;
}

.neu-hinweis-start {
  font-size: 13px;
  color: #7a5d2c;
  margin-top: 4px;
  font-weight: normal;
}

.neu-hinweis-start a {
  font-weight: bold;
  text-decoration: none;
  color: #7a5d2c;
  /* Ensure color match */
}

.neu-hinweis-start a:hover {
  text-decoration: underline;
}

/* Filter Bar */
.filter-bar-wrap {
  margin: 10px auto 28px;
  text-align: center;
  padding: 0;
  max-width: 900px;
  width: 100%;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Slightly reduced gap to fit items */
  background: #f4efe6;
  padding: 4px 0;
  flex-wrap: wrap;
  /* Allow wrapping */
  justify-content: space-between;
  border-radius: 0;
  box-shadow: none;
  border: none;
  width: 100%;
}

/* Force last row to be centered if wrapped ? No, user wants blocksatz. 
   If it wraps, space-between looks weird. 
   But "blocksatz" implies space-between. 
   I will keep space-between. 
*/

.filter-label {
  font-size: 16px;
  color: #6a5631;
  margin-right: 4px;
  font-weight: normal;
}

.filter-bar select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  color: #6a5631;
  padding: 0 0;
  /* Minimized padding */
  cursor: pointer;
  outline: none;
  transition: none;
}

.filter-bar select:hover {
  color: #8a6a36;
  text-decoration: underline;
}

.filter-bar select option {
  background: #f8f4ed;
  color: #333;
  padding: 4px;
}

.filter-contact {
  margin-left: 8px;
  font-size: 12px;
  font-weight: bold;
  color: #6a5631;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 18px;
  border: 1px solid #c7a772;
  background: #fffaf2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: none;
  /* Removed transition to match original feel */
}

/* Specific selector from original */
.filter-contact+.filter-contact {
  margin-left: 4px;
}

.filter-contact:hover {
  background: #c7a772;
  color: #ffffff;
  border-color: #c7a772;
}


/* Grid Override - Mapping .bilder-grid to .product-grid style */
.bilder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Product Card Internal Mapping */
.werk-karte {
  font-size: 13px;
  text-align: center;
  background: transparent;
  border-radius: 6px;
  border: none;
  padding: 6px;
  /* Keeping the requested modification */
  box-sizing: border-box;

  /* Resetting flex properties that might interfere */
  display: block;
  transition: none;
  box-shadow: none !important;
}

.werk-karte:hover {
  border-color: #e0d6c5;
  /* Original didn't change border on hover */
  box-shadow: none;
  transform: none;
}

/* Image Container */
.bild-kaestchen {
  width: 100%;
  height: 190px;
  background: transparent;
  border-radius: 4px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
  position: static;
  /* Reset relative */
}

.bild-kaestchen img {
  width: 100%;
  height: 100%;
  object-fit: contain;

  display: block;
  transition: none;
}

.werk-karte:hover .bild-kaestchen img {
  transform: none;
}

/* Text Elements */
.untertitel {
  margin-top: 6px;
  font-weight: bold;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: normal;
}

.preis {
  margin-top: 2px;
  font-weight: bold;
  font-size: 14px;
  color: #8a6a36;
  margin-bottom: 0;
}

.preis-request {
  font-weight: normal !important;
  color: #333 !important;
  font-size: 14px;
}

/* Action Buttons */
.werk-actions {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
}

.werk-actions a {
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 18px;
  border: 1px solid #c7a772;
  background: #fffaf2;
  color: #333;
  font-size: 12px;
  font-weight: normal;
  transition: none;
}

.werk-actions a:hover {
  background: #c7a772;
  color: #ffffff;
}

/* Footer Compatibility */
footer {
  background: #f4efe6;
  padding: 18px 0 12px;
  font-family: inherit;
  /* Georgia from body */
  font-size: 13px;
  color: #333;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 40px;
  border-top: none;
}

.footer-left {
  padding-left: 20px;
  font-weight: bold;
  color: #333;
}

.footer-right {
  padding-right: 20px;
  text-align: right;
  font-size: 12px;
}

.footer-right a {
  margin-left: 12px;
  color: #333;
}

.footer-right a:hover {
  text-decoration: underline;
  color: #333;
}

/* Media Queries for Grid from Index - EXACTLY as original */
@media (max-width: 1000px) {
  .bilder-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  .header-row {
    flex-direction: column;
    align-items: center;
  }

  .header-center {
    order: 2;
  }

  .header-left,
  .header-right {
    order: 1;
  }

  .bilder-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .bilder-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .bilder-grid {
    grid-template-columns: 1fr;
  }
}

.mobile-menu-toggle {
  display: block;
}

.search-filter-bar {
  flex-direction: column;
}

.search-box {
  width: 100%;
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.footer-content {
  grid-template-columns: 1fr;
}

.cart-table {
  font-size: 0.875rem;
}

.cart-item-image {
  width: 60px;
  height: 60px;
}


/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.mt-4 {
  margin-top: var(--spacing-xl);
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

.mb-4 {
  margin-bottom: var(--spacing-xl);
}

.hidden {
  display: none;
}

.fade-in {
  animation: fadeIn var(--transition-slow);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Detail Page Specific Styles
   ============================================ */
.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

.breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 50px;
  /* Increased gap again */
  align-items: flex-start;
  margin-top: var(--spacing-lg);
}

.detail-image-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md);
  border: 1px solid var(--color-bg-secondary);
}

.detail-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.detail-info h2 {
  margin-bottom: var(--spacing-xs);
  color: var(--color-primary);
  font-size: 2rem;
}

.detail-info h3 {
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin-bottom: var(--spacing-lg);
}

.meta-table td {
  padding: var(--spacing-xs) 0;
  vertical-align: top;
  border-bottom: 1px solid var(--color-bg-secondary);
}

.meta-table td.label {
  width: 35%;
  font-weight: 600;
  color: var(--color-text-primary);
}

.price-block {
  margin: var(--spacing-md) 0 var(--spacing-lg);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.detail-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.detail-description {
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
  margin-top: var(--spacing-lg);
  color: var(--color-text-primary);
  padding-right: 60px;
}

.detail-description h4 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

/* Imported Header Styles */
/* ===== HEADER ===== */
header {
  background: #ffffff;
  border-bottom: none;
  /* Linie unter dem Header entfernt */
  padding: 14px 16px 12px;
  margin: 0 -20px;
  /* Header über die volle Breite */
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left img {
  height: 56px;
  width: auto;
  display: block;
}

.header-center {
  flex: 1;
  text-align: center;
}

.header-center h1 {
  margin: 0;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: #8a6a36;
}

.header-center p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #666;
}

.header-right {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.header-right a {
  text-decoration: none;
}

.header-right a:hover {
  text-decoration: underline;
}

.nav-row {
  margin-top: 8px;
  text-align: center;
}

.nav-row nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-row a {
  text-decoration: none;
}

.nav-row a:hover {
  text-decoration: underline;
}



/* Header Responsive */
@media (max-width: 800px) {
  .header-row {
    flex-direction: column;
    align-items: center;
  }

  .header-center {
    order: 2;
  }

  .header-left,
  .header-right {
    order: 1;
  }
}


/* Override for Detail Page Buttons - Decenter */
.detail-buttons .btn-primary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
  box-shadow: none;
}

.detail-buttons .btn-primary:hover {
  background: var(--color-accent-light);
  color: var(--color-primary);
  box-shadow: none;
  transform: none;
}

/* USER REQ: Remove breadcrumb */
.breadcrumb {
  display: none !important;
}

/* USER REQ: Minimalist Detail Buttons */
.detail-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
}

.detail-buttons .btn,
.detail-buttons .btn-primary,
.detail-buttons .btn-secondary,
.detail-buttons .btn-outline {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #000 !important;
  font-size: 13px !important;
  padding: 0 !important;
  text-decoration: underline;
  text-transform: none;
  letter-spacing: normal;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
}

.detail-buttons .btn:hover,
.detail-buttons .btn-primary:hover,
.detail-buttons .btn-secondary:hover,
.detail-buttons .btn-outline:hover {
  background: transparent !important;
  color: #666 !important;
  text-decoration: none;
  transform: none !important;
  box-shadow: none !important;
}

.detail-buttons .btn-primary {
  font-weight: bold !important;
  font-size: 13px !important;
}

/* USER REQ: Smaller Description Heading */
.detail-description h4 {
  font-size: 13px !important;
  margin-bottom: 4px !important;
  letter-spacing: 0.05em !important;
}

/* USER REQ: Minimize Image Frame on Detail Pages */
.detail-image-wrapper {
  padding: 2px !important;
  border: 1px solid #eaeaea !important;
  background: #ffffff !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}

/* USER REQ: Limit Detail Image Size (Version 2) */
/* USER REQ: Limit Detail Image Size (Version 3 - Orientation Aware) */
.detail-image-wrapper img {
  max-height: 70vh;
  max-width: 100%;
  width: auto !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.detail-image-wrapper {
  display: flex;
  width: fit-content;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  padding: 3px !important;
  border: 1px solid #ccc !important;
  background: #ffffff !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  margin-bottom: 20px;
  /* Centered again */
  margin-left: auto;
  margin-right: auto;
}

/* Orientation Specifics */
.detail-image-wrapper[data-orientation="portrait"] img {
  height: 70vh;
  width: auto !important;
}

.detail-image-wrapper[data-orientation="landscape"] img {
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: 60vh;
}

/* Ensure container allows full height */
.detail-layout {
  align-items: flex-start;
}

.price-on-request {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #333 !important;
  text-decoration: underline;
  font-weight: 600;
  color: #8a6a36;
}

.header-center p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #666;
}

.header-right {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.header-right a {
  text-decoration: none;
}

.header-right a:hover {
  text-decoration: underline;
}

.nav-row {
  margin-top: 8px;
  text-align: center;
}

.nav-row nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-row a {
  text-decoration: none;
}

.nav-row a:hover {
  text-decoration: underline;
}



/* Header Responsive */
@media (max-width: 800px) {
  .header-row {
    flex-direction: column;
    align-items: center;
  }

  .header-center {
    order: 2;
  }

  .header-left,
  .header-right {
    order: 1;
  }
}


/* Override for Detail Page Buttons - Decenter */
.detail-buttons .btn-primary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
  box-shadow: none;
}

.detail-buttons .btn-primary:hover {
  background: var(--color-accent-light);
  color: var(--color-primary);
  box-shadow: none;
  transform: none;
}

/* USER REQ: Remove breadcrumb */
.breadcrumb {
  display: none !important;
}

/* USER REQ: Minimalist Detail Buttons */
.detail-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
}

.detail-buttons .btn,
.detail-buttons .btn-primary,
.detail-buttons .btn-secondary,
.detail-buttons .btn-outline {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #000 !important;
  font-size: 13px !important;
  padding: 0 !important;
  text-decoration: underline;
  text-transform: none;
  letter-spacing: normal;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
}

.detail-buttons .btn:hover,
.detail-buttons .btn-primary:hover,
.detail-buttons .btn-secondary:hover,
.detail-buttons .btn-outline:hover {
  background: transparent !important;
  color: #666 !important;
  text-decoration: none;
  transform: none !important;
  box-shadow: none !important;
}

.detail-buttons .btn-primary {
  font-weight: bold !important;
  font-size: 13px !important;
}

/* USER REQ: Smaller Description Heading */
.detail-description h4 {
  font-size: 13px !important;
  margin-bottom: 4px !important;
  letter-spacing: 0.05em !important;
}

/* USER REQ: Minimize Image Frame on Detail Pages */
.detail-image-wrapper {
  padding: 2px !important;
  border: 1px solid #eaeaea !important;
  background: #ffffff !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}

/* USER REQ: Limit Detail Image Size (Version 2) */
/* USER REQ: Limit Detail Image Size (Version 3 - Orientation Aware) */
.detail-image-wrapper img {
  max-height: 70vh;
  max-width: 100%;
  width: auto !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.detail-image-wrapper {
  display: flex;
  width: fit-content;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  padding: 3px !important;
  border: 1px solid #ccc !important;
  background: #ffffff !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  margin-bottom: 20px;
  /* Centered again */
  margin-left: auto;
  margin-right: auto;
}

/* Orientation Specifics */
.detail-image-wrapper[data-orientation="portrait"] img {
  height: 70vh;
  width: auto !important;
}

.detail-image-wrapper[data-orientation="landscape"] img {
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: 60vh;
}

/* Ensure container allows full height */
.detail-layout {
  align-items: flex-start;
}

.price-on-request {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #333 !important;
  text-decoration: underline;
}

/* USER REQ: Text in black for description - matching page font */
.detail-description p {
  color: var(--color-text-primary) !important;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #2c1810;
  color: #fff;
  padding: 8px 20px;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  flex-wrap: nowrap;
  font-family: Arial, sans-serif;
  border-top: 1px solid #c7a772;
}

.cookie-banner-content {
  flex: 0 1 auto;
  font-size: 13px;
  line-height: normal;
}

.cookie-banner-content p {
  margin: 0;
  display: inline;
}

.cookie-banner-content a {
  color: #dbc08a;
  text-decoration: underline;
}

.cookie-buttons {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-btn {
  padding: 6px 14px;
  background: #c7a772;
  color: #2c1810;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
  transition: background 0.2s;
  white-space: nowrap;
}

.cookie-btn:hover {
  background: #e0d6c5;
}

.cookie-btn-secondary {
  background: transparent;
  border: 1px solid #c7a772;
  color: #c7a772;
}

.cookie-btn-secondary:hover {
  background: rgba(199, 167, 114, 0.1);
  color: #fff;
}

@media (max-width: 900px) {
  .cookie-banner {
    flex-wrap: wrap;
    text-align: center;
    padding: 15px;
    justify-content: center;
  }

  .cookie-banner-content {
    width: 100%;
    margin-bottom: 10px;
  }

  .cookie-buttons {
    justify-content: center;
  }
}

/* Links below filter bar - Simple Text Links */
.filter-links-row {
  margin-top: 12px;
  text-align: center;
  display: block;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Links below filter bar - Clean Link Style */
.filter-bottom-link {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 16px;
  color: #6a5631;
  text-decoration: none;
  margin: 0 10px;
  padding: 0;
  display: inline-block;
  font-weight: bold;
}

.filter-bottom-link:hover {
  text-decoration: underline;
  color: #8a6a36;
}
/* ============================================
   CONSOLIDATED & FIXED MOBILE STYLES
   ============================================ */

/* COOKIE BANNER (Migrated from Index) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #2c1810;
  color: #fff;
  padding: 15px 20px;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  flex-wrap: wrap;
  font-family: Arial, sans-serif;
  border-top: 1px solid #c7a772;
}

.cookie-banner-content {
  flex: 1;
  max-width: 800px;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-banner-content a {
  color: #dbc08a;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.cookie-btn {
  padding: 8px 16px;
  background: #c7a772;
  color: #2c1810;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  transition: background 0.2s;
}

.cookie-btn:hover {
  background: #e0d6c5;
}

.cookie-btn-secondary {
  background: transparent;
  border: 1px solid #c7a772;
  color: #c7a772;
}

.cookie-btn-secondary:hover {
  background: rgba(199, 167, 114, 0.1);
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* RESPONSIVE GRID OVERRIDES */
/* Ensure the grid is truly fluid and fits 2 columns on mobile */
.bilder-grid {
  display: grid;
  /* 170px allows 2 columns on screens >= 360px approx (with gaps) */
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  gap: 16px !important;
}

/* Disable old rigid overrides from previous CSS sections */
@media (max-width: 1000px) { .bilder-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important; } }
@media (max-width: 800px) { .bilder-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important; } }
@media (max-width: 600px) { .bilder-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important; } }
@media (max-width: 420px) { .bilder-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; } }

/* Ensure images scale correctly in the new smaller grid slots */
.bild-kaestchen {
    height: auto !important; /* Allow height to adapt? Or fixed aspect? */
    aspect-ratio: 1 / 1;
    min-height: 150px;
}


/* CART BADGE STYLE */
.header-right a.cart-link {
    position: relative;
    margin-right: 12px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
}
.header-right a.cart-link:hover {
    color: #8a6a36;
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #d9534f;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex; /* Flex to center content */
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

