:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --gold: #c9a227;
  --gold-light: #e2c568;
  --text: #f2f2f0;
  --text-muted: #b3b3ad;
  --border: #2a2a2a;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  line-height: 1.5;
}

h1, h2, h3, .logo-text {
  font-family: 'Playfair Display', Georgia, serif;
}

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

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand img {
  height: 48px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .name {
  font-size: 1.2rem;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.brand-text .tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand { cursor: pointer; }

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

nav.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

nav.site-nav a:hover {
  color: var(--gold-light);
}

nav.site-nav a.active {
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 600;
}

/* Превключвател на език */
.lang-switch {
  display: flex;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--gold-light);
}

.lang-btn.active {
  background: var(--gold);
  color: #0a0a0a;
}

/* Бутон за количката в хедъра */
.cart-toggle {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.cart-toggle:hover {
  border-color: var(--gold);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  margin-left: 6px;
  background: var(--gold);
  color: #0a0a0a;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.cart-count.hidden {
  display: none;
}

/* Панел на количката */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100vw);
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  z-index: 901;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-header h3 {
  color: var(--gold-light);
  font-size: 1.2rem;
}

.cart-close {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.cart-close:hover {
  color: var(--gold-light);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 32px;
  line-height: 1.6;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.cart-item-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-name {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text);
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.cart-item-remove:hover {
  color: #e05d5d;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.cart-drawer-footer .btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.cart-drawer-footer .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Бутон "Добави в количката" върху картите */
.btn-add-cart {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-add-cart:hover {
  background: var(--gold);
  color: #0a0a0a;
}

.btn-add-cart.in-cart {
  background: rgba(201, 162, 39, 0.15);
  border-color: var(--border);
  color: var(--text-muted);
}

.card-footer {
  flex-wrap: wrap;
  gap: 10px;
}

.card-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Формуляр за запитване (compose modal) */
.compose-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.compose-overlay.open {
  opacity: 1;
  visibility: visible;
}

.compose-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  width: min(480px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  z-index: 1101;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.compose-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.compose-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.compose-header h3 {
  color: var(--gold-light);
  font-size: 1.15rem;
}

.compose-close {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.compose-close:hover {
  color: var(--gold-light);
}

.compose-hint {
  padding: 14px 24px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.compose-body {
  padding: 16px 24px 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compose-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.compose-field input,
.compose-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.compose-field input:focus,
.compose-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.compose-field input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.compose-error {
  display: none;
  color: #e07a7a;
  font-size: 0.82rem;
  padding: 0 24px;
  margin-top: -6px;
}

.compose-footer {
  padding: 18px 24px 24px;
}

.compose-footer .btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

@media (max-width: 520px) {
  .compose-modal { width: 94vw; }
}

/* Dropdown за "Каталог" */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.dropdown-menu a:hover {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-light);
}

nav.categories {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav.categories button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

nav.categories button:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

nav.categories button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
  font-weight: 600;
}

/* Hero */
.hero {
  text-align: center;
  padding: 64px 24px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.4rem;
  color: var(--text);
  margin-bottom: 12px;
}

.hero h1 span { color: var(--gold-light); }

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Catalog */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.category-section {
  margin-bottom: 56px;
}

.category-section h2 {
  font-size: 1.6rem;
  color: var(--gold-light);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  /* Бял фон, за да се слива с белия фон на продуктовите снимки —
     ако снимката не запълва изцяло кутията, вижда се бял ръб, а не
     изрязана част от артикула. */
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8a8a;
  font-size: 0.8rem;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  /* contain вместо cover — цялият артикул остава видим, дори ако
     снимката му има различни пропорции от останалите. */
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

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

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-content {
  display: flex;
  align-items: stretch;
  gap: 28px;
  max-width: 1100px;
  width: 100%;
  max-height: 85vh;
  transform: scale(0.9) translateY(12px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  cursor: default;
}

.lightbox.open .lightbox-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.lightbox-image-wrap {
  flex: 1 1 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.lightbox-image-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-info {
  flex: 0 0 320px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lightbox-info h3 {
  color: var(--gold-light);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.lightbox-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  color: var(--gold-light);
  transform: rotate(90deg);
}

@media (max-width: 800px) {
  .lightbox-content {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }

  .lightbox-image-wrap img {
    max-height: 45vh;
  }

  .lightbox-info {
    flex: none;
  }
}

.card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.card-body h3 {
  font-size: 1.05rem;
  color: var(--text);
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.88rem;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.card-footer .price {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-inquire {
  background: var(--gold);
  color: #0a0a0a;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-inquire:hover { background: var(--gold-light); }

.load-more-wrap {
  text-align: center;
  margin-top: 28px;
}

.btn-load-more {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 10px 28px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-load-more:hover {
  background: var(--gold);
  color: #0a0a0a;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer / contact */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
}

footer .footer-brand {
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

footer a.contact-email {
  color: var(--gold-light);
}

footer .fine-print {
  margin-top: 16px;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ===== Начална страница ===== */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: 1.9rem;
  color: var(--text);
  margin-bottom: 10px;
}

.section-heading h2 span { color: var(--gold-light); }

.section-heading p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.about-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.service-card .icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.service-card h3 {
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.service-card a.link {
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 1px solid var(--gold-light);
  padding-bottom: 2px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

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

.why-item .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.why-item h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.cta-section {
  text-align: center;
  padding: 56px 24px 72px;
}

.cta-section h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: #0a0a0a;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.btn-primary:hover { background: var(--gold-light); }

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  nav.categories { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  nav.site-nav { width: 100%; }
  .hero h1 { font-size: 1.8rem; }
}
