/* ============================================
   BookIT Shop — Stylesheet
   Matching BookIT main site design system
   ============================================ */

:root {
  --teal: #4d8496;
  --emerald: #118075;
  --black: #0a0a0a;
  --white: #f8f9fa;
  --pure-white: #ffffff;
  --gray-100: #f1f3f5;
  --gray-200: #e2e6ea;
  --gray-300: #c9cfd5;
  --gray-500: #6c757d;
  --teal-light: rgba(77, 132, 150, 0.08);
  --emerald-light: rgba(17, 128, 117, 0.08);
  --danger: #c0392b;
  --danger-light: rgba(192, 57, 43, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--black); overflow-x: hidden; padding-top: 72px; }
a { color: inherit; }

/* ========== NAV ========== */
nav { position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--gray-200); transition: box-shadow 0.3s; }
nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.06); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.5rem; color: var(--black); display: flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.logo-icon { width: 32px; height: 32px; border-radius: 8px; }
.logo .book { color: var(--black); }
.logo .it { color: var(--emerald); font-size: 1.6rem; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--gray-500); font-size: 0.88rem; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--black); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--emerald); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 0.3rem; }
.cart-badge { background: var(--emerald); color: white; font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; position: relative; top: -2px; }

/* ===== NAV DROPDOWNS ===== */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: .25rem;
  text-decoration: none; color: var(--gray-500); font-size: .88rem; font-weight: 500;
  transition: color .2s; position: relative; cursor: pointer;
  background: none; border: none; font-family: inherit; padding: 0;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active { color: var(--black); }
.nav-dropdown-trigger::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--emerald); transition: width .3s;
}
.nav-dropdown-trigger:hover::after,
.nav-dropdown-trigger.active::after { width: 100%; }
/* Chevron dreht sich beim Hover */
.nav-dropdown:hover .nav-dropdown-trigger i[data-lucide="chevron-down"] { transform: rotate(180deg); }

/* Dropdown-Menü */
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0,0,0,.12); min-width: 170px; padding: .4rem 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 300; white-space: nowrap;
}
.nav-dropdown-menu--right { left: auto; right: 0; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-dropdown-menu a {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; font-size: .83rem; color: var(--gray-500);
  text-decoration: none; transition: color .15s, background .15s;
}
/* Kein Unterstrich-Pseudo auf Dropdown-Links */
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover { color: var(--black); background: var(--gray-100); }
.nav-dropdown-menu a.nav-dd-active { color: var(--emerald); font-weight: 600; }
.nav-dropdown-menu a.nav-dd-danger { color: #c0392b; }
.nav-dropdown-menu a.nav-dd-danger:hover { background: #fef2f2; color: #991b1b; }
.nav-dd-sep { height: 1px; background: var(--gray-100); margin: .3rem 0; }

/* User-Trigger sieht wie nav-user aus */
.nav-user-trigger { color: var(--emerald) !important; }
.nav-user-trigger:hover { opacity: .8; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--black); border-radius: 2px; transition: all 0.3s; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--gray-200); padding: 1.5rem 2rem; flex-direction: column; gap: 1rem; z-index: 99; transform: translateY(-10px); opacity: 0; transition: all 0.3s; pointer-events: none; }
.mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a { text-decoration: none; color: var(--gray-500); font-size: 1rem; font-weight: 500; padding: 0.5rem 0; }

/* ========== SHOP HERO ========== */
.shop-hero { padding: 3rem 2rem 3rem; background: linear-gradient(135deg, var(--black) 0%, #1a2f36 100%); position: relative; overflow: hidden; }
.shop-hero::before { content: ''; position: absolute; top: -30%; right: -10%; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(17,128,117,0.15), transparent 70%); }
.shop-hero::after { content: ''; position: absolute; bottom: -20%; left: -10%; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(77,132,150,0.1), transparent 70%); }
.shop-hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.shop-hero-text { flex: 1; min-width: 300px; }
.hero-pill { display: inline-block; background: rgba(17,128,117,0.15); color: var(--emerald); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1.2rem; border: 1px solid rgba(17,128,117,0.2); animation: fadeUp 0.6s ease-out; }
.shop-hero h1 { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; color: var(--pure-white); animation: fadeUp 0.8s ease-out 0.1s both; }
.shop-hero h1 em { font-style: italic; color: var(--emerald); }
.shop-hero .subtitle { margin-top: 1rem; font-size: 1rem; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 480px; animation: fadeUp 0.8s ease-out 0.2s both; }
.shop-search { display: flex; gap: 0; animation: fadeUp 0.8s ease-out 0.3s both; }
.search-input { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-right: none; border-radius: 10px 0 0 10px; padding: 0.85rem 1.2rem; color: white; font-size: 0.9rem; font-family: 'DM Sans', sans-serif; outline: none; width: 280px; transition: all 0.3s; }
.search-input::placeholder { color: rgba(255,255,255,0.35); }
.search-input:focus { border-color: var(--emerald); background: rgba(255,255,255,0.15); }
.search-btn { background: var(--emerald); border: 1px solid var(--emerald); border-radius: 0 10px 10px 0; padding: 0.85rem 1.2rem; font-size: 1rem; cursor: pointer; transition: background 0.3s; }
.search-btn:hover { background: var(--teal); }

/* ========== CATEGORY BAR ========== */
.category-bar { background: var(--pure-white); border-bottom: 1px solid var(--gray-200); padding: 1rem 2rem; position: sticky; top: 72px; z-index: 50; }
.category-bar-inner { max-width: 1280px; margin: 0 auto; display: flex; gap: 0.6rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.category-bar-inner::-webkit-scrollbar { display: none; }
.cat-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.2rem; border-radius: 50px; font-size: 0.85rem; font-weight: 500; text-decoration: none; color: var(--gray-500); background: var(--gray-100); border: 1px solid transparent; transition: all 0.25s; white-space: nowrap; }
.cat-chip:hover { color: var(--black); border-color: var(--gray-300); }
.cat-chip.active { background: var(--emerald); color: white; border-color: var(--emerald); }
.cat-count { background: rgba(0,0,0,0.08); padding: 0.1rem 0.5rem; border-radius: 10px; font-size: 0.72rem; font-weight: 600; }
.cat-chip.active .cat-count { background: rgba(255,255,255,0.25); }

/* ========== SHOP CONTENT / TOOLBAR ========== */
.shop-content { max-width: 1280px; margin: 0 auto; padding: 2rem; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.result-count { font-size: 0.9rem; color: var(--gray-500); }
.sort-wrapper { display: flex; align-items: center; gap: 0.5rem; }
.sort-wrapper label { font-size: 0.85rem; color: var(--gray-500); }
.sort-wrapper select { background: var(--pure-white); border: 1px solid var(--gray-200); border-radius: 8px; padding: 0.5rem 0.8rem; font-size: 0.85rem; font-family: 'DM Sans', sans-serif; color: var(--black); cursor: pointer; outline: none; }
.sort-wrapper select:focus { border-color: var(--emerald); }

/* ========== PRODUCT GRID ========== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product-grid.compact { grid-template-columns: repeat(4, 1fr); }
.product-card { background: var(--pure-white); border-radius: 18px; border: 1px solid var(--gray-200); overflow: hidden; text-decoration: none; color: var(--black); transition: all 0.35s; position: relative; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.08); border-color: var(--emerald); }
.product-badge { position: absolute; top: 1rem; left: 1rem; background: var(--emerald); color: white; padding: 0.3rem 0.8rem; border-radius: 6px; font-size: 0.72rem; font-weight: 700; z-index: 3; letter-spacing: 0.3px; }
.product-badge.large { font-size: 0.85rem; padding: 0.4rem 1rem; }
.product-image { aspect-ratio: 1; background: var(--gray-100); position: relative; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-image-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; background: linear-gradient(145deg, var(--gray-100), var(--gray-200)); transition: transform 0.5s; }
.product-card:hover .product-image-placeholder { transform: scale(1.05); }
.product-image-placeholder.large { min-height: 400px; border-radius: 18px; }
.product-image-placeholder.small { width: 80px; height: 80px; border-radius: 12px; flex-shrink: 0; }
.placeholder-icon { font-size: 3rem; opacity: 0.3; }
.product-image-placeholder.large .placeholder-icon { font-size: 5rem; }
.product-image-placeholder.small .placeholder-icon { font-size: 1.8rem; }
.placeholder-name { font-size: 0.75rem; color: var(--gray-500); text-align: center; padding: 0 1rem; opacity: 0.5; }
.product-image-placeholder.small .placeholder-name { display: none; }
.product-info { padding: 1.2rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--emerald); font-weight: 600; margin-bottom: 0.3rem; }
.product-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.3; }
.product-desc { font-size: 0.82rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 0.8rem; flex: 1; }
.product-price-row { display: flex; align-items: baseline; gap: 0.6rem; margin-top: auto; }
.product-price { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 800; color: var(--emerald); }
.product-compare-price { font-size: 0.85rem; color: var(--gray-500); text-decoration: line-through; }
.product-interval { font-size: 0.78rem; color: var(--gray-500); font-weight: 500; }
.product-low-stock { font-size: 0.75rem; color: #c0392b; font-weight: 600; margin-top: 0.4rem; display: flex; align-items: center; gap: 0.25rem; }
.product-out-of-stock { font-size: 0.75rem; color: var(--gray-500); font-weight: 500; margin-top: 0.4rem; display: flex; align-items: center; gap: 0.25rem; }
.pd-interval-badge { font-size: 0.85rem; color: var(--teal); background: var(--teal-light); padding: 0.25rem 0.7rem; border-radius: 6px; font-weight: 600; }
.ci-interval { background: var(--teal-light); color: var(--teal); font-weight: 600; }
.oc-interval { font-style: italic; color: var(--teal); font-size: 0.82rem; }
.nav-user { font-size: 0.85rem; color: var(--emerald); font-weight: 500; text-decoration: none; transition: opacity .2s; }
.nav-user:hover { opacity: .75; }

/* ========== EMPTY STATE ========== */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: 4rem; margin-bottom: 1.5rem; opacity: 0.3; }
.empty-state h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; }
.empty-state p { color: var(--gray-500); margin-bottom: 2rem; }

/* ========== PRODUCT DETAIL ========== */
.breadcrumb { padding: 5.5rem 2rem 0; background: var(--gray-100); }
.breadcrumb-inner { max-width: 1280px; margin: 0 auto; font-size: 0.82rem; padding: 1rem 0; }
.breadcrumb a { text-decoration: none; color: var(--gray-500); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--emerald); }
.bc-sep { margin: 0 0.5rem; color: var(--gray-300); }
.bc-current { color: var(--black); font-weight: 500; }

.product-detail { max-width: 1280px; margin: 0 auto; padding: 2rem 2rem 4rem; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.pd-image-area { position: relative; }
.pd-image-main { border-radius: 20px; overflow: hidden; border: 1px solid var(--gray-200); max-height: 480px; }
.pd-img { width: 100%; height: auto; max-height: 480px; object-fit: cover; display: block; }
.pd-info { padding-top: 0.5rem; }
.pd-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--emerald); font-weight: 700; margin-bottom: 0.5rem; display: block; }
.pd-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 1rem; line-height: 1.15; }
.pd-price-row { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.pd-price { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 800; color: var(--emerald); }
.pd-compare { font-size: 1.1rem; color: var(--gray-500); text-decoration: line-through; }
.pd-save { font-size: 0.82rem; background: var(--emerald-light); color: var(--emerald); padding: 0.3rem 0.8rem; border-radius: 6px; font-weight: 600; }
.pd-description { font-size: 0.95rem; color: var(--gray-500); line-height: 1.8; margin-bottom: 2rem; }

/* Form Options */
.pd-form { margin-bottom: 2rem; }
.pd-option { margin-bottom: 1.5rem; }
.pd-option > label { display: block; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.6rem; color: var(--gray-500); }
.size-selector, .color-selector { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.size-chip input, .color-chip input { position: absolute; opacity: 0; pointer-events: none; }
.size-chip span, .color-chip span { display: inline-block; padding: 0.55rem 1rem; border-radius: 8px; border: 1.5px solid var(--gray-200); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.25s; }
.size-chip span:hover, .color-chip span:hover { border-color: var(--emerald); color: var(--emerald); }
.size-chip input:checked + span, .color-chip input:checked + span { background: var(--emerald); color: white; border-color: var(--emerald); }
.qty-selector { display: inline-flex; align-items: center; border: 1.5px solid var(--gray-200); border-radius: 10px; overflow: hidden; }
.qty-btn { width: 42px; height: 42px; border: none; background: var(--gray-100); font-size: 1.1rem; cursor: pointer; transition: background 0.2s; color: var(--black); font-family: 'DM Sans', sans-serif; }
.qty-btn:hover { background: var(--gray-200); }
.qty-btn.small { width: 32px; height: 32px; font-size: 0.9rem; }
.qty-input { width: 50px; text-align: center; border: none; font-size: 0.95rem; font-weight: 600; font-family: 'DM Sans', sans-serif; outline: none; -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-input.small { width: 40px; font-size: 0.85rem; height: 32px; }

.btn-add-cart { width: 100%; padding: 1rem; border: none; border-radius: 12px; background: var(--emerald); color: white; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; font-family: 'DM Sans', sans-serif; margin-bottom: 0.8rem; }
.btn-add-cart:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(17,128,117,0.3); }
.btn-add-cart.disabled { opacity: 0.4; cursor: not-allowed; background: var(--gray-500); }
.stock-info { font-size: 0.82rem; font-weight: 500; }
.stock-info.available { color: var(--emerald); }
.stock-info.unavailable { color: var(--danger); }

.pd-features { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--gray-200); display: flex; flex-direction: column; gap: 0.6rem; }
.pd-feature { font-size: 0.85rem; color: var(--gray-500); display: flex; align-items: center; gap: 0.6rem; }

/* ========== RELATED SECTION ========== */
.related-section { background: var(--gray-100); padding: 4rem 2rem; }
.related-inner { max-width: 1280px; margin: 0 auto; }
.related-inner .section-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 2rem; }

/* ========== CART ========== */
.cart-section { max-width: 1280px; margin: 0 auto; padding: 6rem 2rem 4rem; }
.cart-inner { max-width: 1100px; margin: 0 auto; }
.page-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 2rem; }
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 0; }
.cart-item { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--gray-200); }
.ci-image { flex-shrink: 0; }
.ci-image img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; display: block; }
.ci-details { flex: 1; min-width: 0; }
.ci-name { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--black); display: block; margin-bottom: 0.2rem; }
.ci-name:hover { color: var(--emerald); }
.ci-variants { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.ci-variants span { font-size: 0.78rem; color: var(--gray-500); background: var(--gray-100); padding: 0.15rem 0.5rem; border-radius: 4px; }
.ci-price-mobile { display: none; font-size: 0.85rem; font-weight: 600; color: var(--emerald); margin-top: 0.3rem; }
.ci-qty { flex-shrink: 0; }
.ci-qty-form { display: flex; align-items: center; border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.ci-price { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1rem; min-width: 80px; text-align: right; }
.ci-remove { color: var(--gray-300); text-decoration: none; font-size: 1.1rem; padding: 0.3rem; transition: color 0.2s; margin-left: 0.5rem; }
.ci-remove:hover { color: var(--danger); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; }
.btn-text-danger { background: none; border: none; color: var(--danger); font-size: 0.85rem; cursor: pointer; text-decoration: none; font-family: 'DM Sans', sans-serif; }
.btn-text-danger:hover { text-decoration: underline; }

/* ========== CART SUMMARY ========== */
.cart-summary, .checkout-summary-sticky { background: var(--pure-white); border: 1px solid var(--gray-200); border-radius: 20px; padding: 2rem; }
.cart-summary h3, .checkout-summary-sticky h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; font-size: 0.9rem; }
.summary-row.total { font-size: 1.15rem; font-weight: 700; }
.summary-row.total span:last-child { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--emerald); }
.summary-divider { height: 1px; background: var(--gray-200); margin: 0.8rem 0; }
.summary-tax { font-size: 0.78rem; color: var(--gray-500); text-align: right; margin-top: 0.3rem; }
.free-shipping { color: var(--emerald); font-weight: 600; }
.shipping-hint { font-size: 0.82rem; color: var(--emerald); margin-top: 0.5rem; font-weight: 500; }
.shipping-bar { height: 4px; background: var(--gray-200); border-radius: 2px; margin-top: 0.4rem; overflow: hidden; }
.shipping-bar-fill { height: 100%; background: var(--emerald); border-radius: 2px; transition: width 0.4s ease; }
.btn-checkout { display: block; width: 100%; padding: 1rem; border: none; border-radius: 12px; background: var(--black); color: white; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; font-family: 'DM Sans', sans-serif; text-align: center; text-decoration: none; margin-top: 1.5rem; }
.btn-checkout:hover { background: var(--emerald); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(17,128,117,0.25); }
.trust-badges, .checkout-trust { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1.2rem; }
.trust-badges span, .checkout-trust span { font-size: 0.78rem; color: var(--gray-500); }

/* ========== CHECKOUT ========== */
.checkout-section { max-width: 1280px; margin: 0 auto; padding: 6rem 2rem 4rem; }
.checkout-inner { max-width: 1100px; margin: 0 auto; }
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 3rem; align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 2rem; }
.form-section { background: var(--pure-white); border: 1px solid var(--gray-200); border-radius: 18px; padding: 2rem; }
.form-section h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row .form-group.small { max-width: 120px; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gray-500); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.3px; }
.form-group input, .form-group select, .form-section textarea { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 0.9rem; font-family: 'DM Sans', sans-serif; color: var(--black); outline: none; transition: border-color 0.3s; background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-section textarea:focus { border-color: var(--emerald); }
.form-group input::placeholder, .form-section textarea::placeholder { color: var(--gray-300); }

.payment-options { display: flex; flex-direction: column; gap: 0.8rem; }
.payment-option { display: flex; align-items: flex-start; gap: 0.8rem; padding: 1rem; border: 1.5px solid var(--gray-200); border-radius: 12px; cursor: pointer; transition: all 0.25s; }
.payment-option:hover { border-color: var(--emerald); }
.payment-option input:checked ~ .po-content { color: var(--emerald); }
.payment-option:has(input:checked) { border-color: var(--emerald); background: var(--emerald-light); }
.payment-option input { margin-top: 0.25rem; accent-color: var(--emerald); }
.po-content strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.po-content span { font-size: 0.78rem; color: var(--gray-500); }

.checkout-summary { position: sticky; top: 90px; }
.checkout-items { display: flex; flex-direction: column; gap: 0; }
.co-item { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--gray-100); }
.co-item-name { font-size: 0.85rem; font-weight: 600; display: block; }
.co-item-variant { font-size: 0.75rem; color: var(--gray-500); }
.co-item-price { font-weight: 600; font-size: 0.9rem; flex-shrink: 0; }

/* ========== SUCCESS ========== */
.success-section { max-width: 800px; margin: 0 auto; padding: 8rem 2rem 4rem; text-align: center; }
.success-inner { }
.success-icon { font-size: 4rem; margin-bottom: 1.5rem; }
.success-section h1 { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.success-sub { color: var(--gray-500); font-size: 1.05rem; margin-bottom: 2rem; }
.order-confirmation { background: var(--pure-white); border: 1px solid var(--gray-200); border-radius: 20px; padding: 2rem; text-align: left; margin-bottom: 2rem; }
.oc-header { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-200); margin-bottom: 1.5rem; }
.oc-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); margin-bottom: 0.3rem; }
.oc-value { font-weight: 700; font-size: 0.95rem; }
.oc-status { background: var(--emerald-light); color: var(--emerald); padding: 0.3rem 0.8rem; border-radius: 6px; font-size: 0.82rem; font-weight: 600; }
.oc-items { margin-bottom: 1rem; }
.oc-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--gray-100); font-size: 0.88rem; }
.oc-item-name { flex: 1; }
.oc-item-qty { color: var(--gray-500); padding: 0 1rem; }
.oc-item-price { font-weight: 600; }
.oc-shipping { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); }
.oc-shipping h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }
.oc-shipping p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }
.success-email { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 2rem; }
.success-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ========== ALERT ========== */
.alert { padding: 1rem 1.5rem; border-radius: 12px; margin-bottom: 2rem; font-size: 0.9rem; }
.alert-error { background: var(--danger-light); border: 1px solid rgba(192,57,43,0.2); color: var(--danger); }
.alert-error p { margin-bottom: 0.3rem; }

/* ========== INFO BANNER ========== */
.info-banner { background: var(--pure-white); border-top: 1px solid var(--gray-200); padding: 3rem 2rem; margin-top: 3rem; }
.info-banner-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.info-item { display: flex; align-items: center; gap: 1rem; }
.info-icon { font-size: 1.8rem; }
.info-item strong { display: block; font-size: 0.88rem; margin-bottom: 0.1rem; }
.info-item span { font-size: 0.78rem; color: var(--gray-500); }

/* ========== BUTTONS (shared) ========== */
.btn-primary { background: var(--emerald); color: var(--pure-white); border: none; padding: 0.9rem 2rem; border-radius: 10px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s; font-family: 'DM Sans', sans-serif; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(17,128,117,0.25); }
.btn-secondary { background: transparent; color: var(--black); border: 1.5px solid var(--gray-300); padding: 0.9rem 2rem; border-radius: 10px; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.3s; font-family: 'DM Sans', sans-serif; text-decoration: none; display: inline-block; }
.btn-secondary:hover { border-color: var(--black); }

/* ========== TOAST ========== */
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--pure-white); border-radius: 14px; padding: 1.2rem 1.8rem; box-shadow: 0 12px 40px rgba(0,0,0,0.15); border: 1px solid var(--gray-200); z-index: 1000; display: flex; align-items: center; gap: 0.8rem; transform: translateY(120%); opacity: 0; transition: all 0.4s cubic-bezier(0.16,1,0.3,1); max-width: 420px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--emerald); }
.toast.error { border-left: 4px solid var(--danger); }
.toast-icon { font-size: 1.4rem; flex-shrink: 0; }
.toast-text strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.toast-text span { font-size: 0.8rem; color: var(--gray-500); }

/* ========== FOOTER ========== */
footer { background: var(--black); color: rgba(255,255,255,0.4); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col .logo { margin-bottom: 1rem; }
.footer-col .logo .book { color: rgba(255,255,255,0.8); }
.footer-col .logo .it { color: var(--emerald); }
.footer-desc { font-size: 0.85rem; line-height: 1.6; max-width: 280px; }
.footer-col h5 { color: rgba(255,255,255,0.8); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.85rem; padding: 0.3rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; text-align: center; }
.footer-bottom p { font-size: 0.8rem; }
.footer-bottom a { color: var(--teal); text-decoration: none; }
.footer-bottom a:hover { color: var(--emerald); }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .pd-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cart-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .info-banner-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .oc-header { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .product-grid, .product-grid.compact { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .shop-hero h1 { font-size: 2.2rem; }
  .shop-hero-inner { flex-direction: column; }
  .search-input { width: 100%; }
  .shop-search { width: 100%; }
  .pd-title { font-size: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
}
/* ========== NAV AUTH LINKS ========== */
.nav-auth-link {
  font-size: 0.9rem; color: var(--gray-500); text-decoration: none;
  padding: 0.3rem 0.6rem; border-radius: 6px; transition: color .2s;
}
.nav-auth-link:hover { color: var(--emerald); }
.nav-auth-btn {
  font-size: 0.85rem; background: var(--emerald); color: #fff !important;
  padding: 0.4rem 1rem; border-radius: 20px; text-decoration: none; font-weight: 600;
  transition: background .2s;
}
.nav-auth-btn:hover { background: #0d6b62; }

/* ========== AUTH SEITEN (Login / Register) ========== */
.auth-section {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 6rem 1rem 3rem; background: var(--gray-100);
}
.auth-card {
  background: #fff; border-radius: 16px; padding: 2.5rem 2rem;
  width: 100%; max-width: 500px; box-shadow: 0 4px 30px rgba(0,0,0,.08);
}
.auth-title { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: .25rem; }
.auth-sub { font-size: .9rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.auth-sub a { color: var(--emerald); text-decoration: none; font-weight: 600; }
.auth-errors { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 1rem; margin-bottom: 1.25rem; }
.auth-error-item { font-size: .875rem; color: #991b1b; margin-bottom: .25rem; }
.auth-error-item:last-child { margin-bottom: 0; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.auth-group { display: flex; flex-direction: column; gap: .35rem; }
.auth-group label { font-size: .875rem; font-weight: 500; color: #374151; }
.auth-group input {
  padding: .7rem 1rem; border: 1px solid var(--gray-300); border-radius: 8px;
  font-size: 1rem; font-family: inherit; outline: none; transition: border-color .2s;
}
.auth-group input:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(17,128,117,.1); }
.auth-check { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; color: #374151; cursor: pointer; }
.auth-check a { color: var(--emerald); }
.auth-btn {
  background: var(--emerald); color: #fff; border: none; border-radius: 10px;
  padding: .85rem; font-size: 1rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background .2s; margin-top: .25rem;
}
.auth-btn:hover { background: #0d6b62; }
@media (max-width: 480px) {
  .auth-row { grid-template-columns: 1fr; }
  .auth-card { padding: 2rem 1.25rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .product-grid, .product-grid.compact { grid-template-columns: 1fr; }
  .shop-hero { padding: 2rem 1.5rem 2rem; }
  .shop-hero h1 { font-size: 1.8rem; }
  .category-bar-inner { padding: 0; }
  .cart-item { flex-wrap: wrap; }
  .ci-price { display: none; }
  .ci-price-mobile { display: block; }
  .info-banner-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .success-section { padding: 6rem 1.5rem 3rem; }
}

/* ICONS */
[data-lucide] { flex-shrink: 0; }
.info-icon [data-lucide] { width: 28px; height: 28px; color: var(--emerald); }
.pf-check { width: 14px; height: 14px; color: var(--emerald); vertical-align: middle; display: inline-block; }
.pf-x { width: 14px; height: 14px; color: var(--gray-300); vertical-align: middle; display: inline-block; }
.trust-icon { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust-icon [data-lucide] { width: 14px; height: 14px; color: var(--emerald); vertical-align: middle; }
.dl-icon [data-lucide] { width: 36px; height: 36px; color: var(--emerald); }
.dl-icon-err [data-lucide] { width: 64px; height: 64px; color: var(--gray-300); }
.empty-icon [data-lucide] { width: 64px; height: 64px; color: var(--gray-300); opacity: 0.5; }
.hero-pill [data-lucide] { width: 14px; height: 14px; vertical-align: middle; }
.search-btn [data-lucide] { width: 18px; height: 18px; color: white; vertical-align: middle; }
.section-icon [data-lucide] { width: 28px; height: 28px; }
.placeholder-icon [data-lucide] { width: 48px; height: 48px; opacity: 0.3; }
.product-image-placeholder.large .placeholder-icon [data-lucide] { width: 80px; height: 80px; }
.product-image-placeholder.small .placeholder-icon [data-lucide] { width: 28px; height: 28px; }
