:root {
  --bg-primary: #e8eef3;
  --bg-secondary: #f5f8fa;
  --bg-card: #ffffff;
  --accent: #5a7a9a;
  --accent-hover: #4a6a8a;
  --accent-light: #8aa4bc;
  --text-primary: #2c3e50;
  --text-secondary: #6b7c8a;
  --text-muted: #9aacba;
  --gold: #c9a962;
  --gold-light: #e0c98a;
  --border: #d4dce4;
  --shadow: rgba(90, 122, 154, 0.1);
  --shadow-lg: rgba(90, 122, 154, 0.15);
  --success: #5a9a7a;
  --danger: #c97a7a;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  position: relative;
}

.background-decor {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.3;
}

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

img {
  max-width: 100%;
  height: auto;
}

.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.logo-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-count {
  background: var(--gold);
  color: var(--bg-card);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-title {
  font-size: 56px;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.2;
}

.gold-accent {
  display: block;
  color: var(--gold);
  font-style: italic;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

.btn-lg {
  padding: 18px 48px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-success {
  background: var(--success) !important;
}

.section-title {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
}

.featured {
  padding: 60px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.product-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--shadow);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--shadow-lg);
}

.product-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s;
  padding: 20px;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-content {
  padding: 24px;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.product-card-era {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-card-price {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
}

.about {
  padding: 80px 0;
  background: var(--bg-card);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}

.feature-icon {
  font-size: 24px;
  color: var(--gold);
}

.feature-text {
  font-weight: 500;
  font-size: 17px;
}

.footer {
  background: var(--text-primary);
  color: var(--bg-card);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text {
  color: var(--bg-card);
  margin-bottom: 8px;
  display: block;
}

.footer-brand p {
  color: var(--text-muted);
}

.footer-contact p {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.email-link {
  color: var(--gold-light);
  font-size: 18px;
}

.email-link:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.catalog-page {
  padding: 40px 0 80px;
}

.page-title {
  font-size: 42px;
  margin-bottom: 40px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

.filters {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}

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

.filter-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
}

.filter-option input {
  accent-color: var(--accent);
}

.price-range {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.products-count {
  color: var(--text-secondary);
}

.sort-select select {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  background: var(--bg-card);
  cursor: pointer;
}

.product-page {
  padding: 40px 0 80px;
}

.breadcrumbs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.product-gallery {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.carousel {
  position: relative;
  background: var(--bg-secondary);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  padding: 20px;
  cursor: zoom-in;
}

.no-image-large {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--shadow);
  transition: all 0.2s;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--bg-card);
  box-shadow: 0 4px 15px var(--shadow-lg);
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--bg-card);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-dot:hover {
  background: var(--accent-light);
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.product-info {
  padding: 20px 0;
}

.product-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.product-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.product-era {
  background: var(--bg-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent);
}

.product-condition {
  color: var(--text-muted);
  font-size: 14px;
}

.product-description {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.product-price-block {
  margin-bottom: 32px;
}

.product-price {
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
}

.product-actions {
  display: flex;
  gap: 16px;
}

.cart-page {
  padding: 40px 0 80px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

.cart-items {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 20px var(--shadow);
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--bg-secondary);
  padding: 8px;
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 4px;
}

.cart-item-era {
  font-size: 13px;
  color: var(--text-muted);
}

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

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.cart-item-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  min-width: 120px;
  text-align: right;
}

.cart-item-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: var(--danger);
}

.cart-summary {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 20px var(--shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.summary-title {
  font-size: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  color: var(--text-secondary);
}

.summary-total {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 16px;
}

.order-form {
  margin-top: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.cart-empty {
  text-align: center;
  padding: 80px 0;
}

.cart-empty p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.admin-body {
  background: var(--bg-secondary);
}

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.login-box {
  background: var(--bg-card);
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 20px 60px var(--shadow-lg);
  max-width: 400px;
  width: 100%;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo .logo-text {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.login-error {
  background: #fce8e8;
  color: var(--danger);
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
}

.admin-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg-card);
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.admin-badge {
  background: var(--gold);
  color: var(--bg-card);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: auto;
}

.admin-nav-link {
  padding: 12px 16px;
  border-radius: 4px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: var(--bg-secondary);
  color: var(--accent);
}

.admin-sidebar-bottom {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-main {
  padding: 32px;
}

.admin-section {
  max-width: 900px;
}

.admin-title {
  font-size: 28px;
  margin-bottom: 32px;
}

.admin-hint {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.admin-products {
  display: grid;
  gap: 16px;
}

.admin-product-row {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  background: var(--bg-card);
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow);
}

.admin-product-images {
  position: relative;
  width: 80px;
  height: 80px;
}

.admin-product-images img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--bg-secondary);
}

.admin-product-images .no-image {
  width: 80px;
  height: 80px;
  background: var(--bg-secondary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
}

.images-count {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.admin-product-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.admin-product-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.admin-product-price {
  font-weight: 600;
  color: var(--accent);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #b86a6a;
}

.admin-form {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.file-upload {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.file-upload:hover {
  border-color: var(--accent);
}

.file-upload input {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.file-upload-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}

.file-upload-text {
  color: var(--text-muted);
}

.file-upload-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.image-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.preview-item {
  position: relative;
}

.preview-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 4px;
  background: var(--bg-secondary);
  padding: 8px;
}

.preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}

.image-preview {
  max-width: 200px;
  max-height: 200px;
  margin-top: 16px;
  border-radius: 4px;
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.edit-preview {
  max-width: 150px;
  border-radius: 4px;
}

.edit-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.edit-image-item {
  position: relative;
}

.edit-image-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 4px;
  background: var(--bg-secondary);
  padding: 8px;
}

.edit-image-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}

.decor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.decor-item {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.decor-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.decor-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}

.form-range {
  width: 100%;
  accent-color: var(--accent);
}

.text-center {
  text-align: center;
}

@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  
  .filters {
    position: static;
  }
  
  .product-detail {
    grid-template-columns: 1fr;
  }
  
  .cart-layout {
    grid-template-columns: 1fr;
  }
  
  .cart-summary {
    position: static;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav {
    gap: 20px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 12px;
  }
  
  .cart-item-quantity,
  .cart-item-price,
  .cart-item-remove {
    grid-column: 2;
  }
  
  .admin-container {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .login-box {
    margin: 16px;
    padding: 32px;
  }
}

.zoom-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-content img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  user-select: none;
}

.lightbox-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.lightbox-controls > * {
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  margin-top: -28px;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-zoom-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

#zoomLevel {
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 20px;
}

.zoom-hint-lightbox {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}