/* ============================================
   DRAGAN PINTURAS - Stiluri principale
   Font: Playfair Display + Lato
   Tema: Light elegant, accent auriu/albastru
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Lato:wght@300;400;700&display=swap');

/* ---- VARIABILE CSS ---- */
:root {
  --primary:       #1a3a5c;
  --primary-dark:  #0f2540;
  --primary-light: #2d5a8e;
  --accent:        #e8a020;
  --accent-dark:   #c07a10;
  --accent-light:  #f5c04a;
  --white:         #ffffff;
  --off-white:     #f8f7f4;
  --light-gray:    #f0eeeb;
  --mid-gray:      #d0cdc8;
  --text-dark:     #1a1a1a;
  --text-mid:      #444;
  --text-light:    #888;
  --success:       #28a745;
  --danger:        #dc3545;
  --warning:       #ffc107;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.16);
  --radius:        12px;
  --radius-sm:     6px;
  --radius-lg:     20px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Lato', 'Helvetica Neue', sans-serif;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- UTILITARE ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-accent { background: var(--accent); color: var(--white); }
.badge-primary { background: var(--primary); color: var(--white); }
.badge-light { background: var(--light-gray); color: var(--text-mid); }

/* ---- BUTOANE ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  letter-spacing: 0.5px; transition: all var(--transition);
  cursor: pointer; border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark); border-color: var(--primary-dark);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--accent); color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark); border-color: var(--accent-dark);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary); color: var(--white);
  transform: translateY(-1px);
}
.btn-outline-accent {
  background: transparent; color: var(--accent);
  border-color: var(--accent);
}
.btn-outline-accent:hover { background: var(--accent); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ---- TITLURI SECTIUNI ---- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 48px;
}
.section-line {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mid-gray);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: clamp(12px, 2vw, 32px);
}
/* Navbar-ul foloseste toata latimea ecranului, nu se limiteaza la 1200px,
   ca sa incapa oricate categorii. */
#navbar .container.nav-inner {
  max-width: min(1720px, 100% - 32px);
  padding: 0 clamp(12px, 1.5vw, 24px);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav-logo img, .nav-logo svg { height: 44px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.nav-logo-text span { color: var(--accent); display: block; font-size: 11px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; }
.nav-partners { display: flex; align-items: center; gap: 10px; }
.nav-partners img { height: 30px; opacity: 0.7; transition: opacity var(--transition); }
.nav-partners img:hover { opacity: 1; }

.nav-menu {
  display: flex; align-items: center;
  gap: var(--nav-gap, 4px);
  flex: 1 1 auto; min-width: 0;
  justify-content: center;
}
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px var(--nav-pad, 14px); border-radius: var(--radius-sm);
  font-size: var(--nav-fs, 14px); font-weight: 700;
  color: var(--text-mid); letter-spacing: 0.3px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--light-gray); }
.nav-link .nav-arrow { font-size: 10px; transition: transform var(--transition); }
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-mid);
  transition: all var(--transition);
}
.nav-dropdown a:hover { background: var(--light-gray); color: var(--primary); padding-left: 18px; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cart-btn {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--primary); color: var(--white);
  font-size: 14px; font-weight: 700;
  transition: all var(--transition);
}
.nav-cart-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: var(--accent); color: var(--white);
  border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--primary); border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative; overflow: hidden;
  padding: 100px 0 80px;
  min-height: 500px;
  display: flex; align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-accent-line {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light), transparent);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.4);
  color: var(--accent-light);
  padding: 6px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent-light); }
.hero p {
  font-size: 18px; color: rgba(255,255,255,0.8);
  margin-bottom: 36px; max-width: 520px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================
   CATEGORII NAV GRID
   ============================================ */
.categories-nav {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--light-gray);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 16px; border-radius: var(--radius);
  border: 2px solid var(--light-gray);
  background: var(--white);
  text-align: center; cursor: pointer;
  transition: all var(--transition);
}
.cat-card:hover {
  border-color: var(--primary); background: var(--off-white);
  transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.cat-card.active { border-color: var(--accent); background: rgba(232,160,32,0.05); }
.cat-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; font-size: 24px;
  transition: all var(--transition);
}
.cat-card:hover .cat-icon {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  transform: scale(1.1);
}
.cat-card span { font-size: 13px; font-weight: 700; color: var(--text-dark); line-height: 1.3; }
.cat-count { font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* ============================================
   GRID PRODUSE
   ============================================ */
.products-section { padding: 60px 0; background: var(--off-white); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
  display: flex; flex-direction: column;
  border: 1px solid transparent;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--mid-gray);
}
.product-img-wrap {
  height: 220px; overflow: hidden;
  background: linear-gradient(135deg, #f0f4f8, #e8ecf0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-img-wrap svg, .product-img-wrap img {
  height: 180px; width: auto;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-img-wrap svg,
.product-card:hover .product-img-wrap img { transform: scale(1.05) translateY(-4px); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
}
.product-colors-dot {
  position: absolute; bottom: 12px; right: 12px;
  display: flex; gap: 4px;
}
.color-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.product-name {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--primary); margin-bottom: 8px; line-height: 1.3;
}
.product-sub { font-size: 13px; color: var(--text-light); margin-bottom: 16px; flex: 1; line-height: 1.5; }
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--light-gray);
}
.product-price { font-size: 20px; font-weight: 700; color: var(--primary); }
.product-price-old { font-size: 13px; color: var(--text-light); text-decoration: line-through; }
.product-price-new { color: var(--danger); }
.product-btn {
  background: var(--primary); color: var(--white);
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700;
  transition: all var(--transition);
}
.product-btn:hover { background: var(--accent); transform: translateY(-1px); }

/* ============================================
   PAGINA PRODUS - ANIMATIE CARTE
   ============================================ */
.product-page { padding: 60px 0; background: var(--off-white); min-height: 80vh; }

.book-container {
  perspective: 2000px;
  max-width: 960px;
  margin: 0 auto;
}
.book-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 60%; /* aspect ratio */
  transform-style: preserve-3d;
}

.book {
  position: absolute; inset: 0;
  display: flex;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg), 20px 20px 60px rgba(0,0,0,0.15);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.book.opening { transform: rotateY(-8deg); }

.book-left {
  flex: 1;
  background: linear-gradient(160deg, #f8f6f2 0%, #eee9e0 100%);
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  border-right: 3px solid var(--mid-gray);
}
.book-left::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 0%, transparent 30%);
  pointer-events: none;
}
.book-spine {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  display: flex; align-items: center; justify-content: center;
}
.book-spine-text {
  writing-mode: vertical-rl; text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,0.8); letter-spacing: 2px;
}
.book-product-img {
  width: 100%; max-width: 280px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; z-index: 1;
}
.book:hover .book-product-img { transform: translateY(-10px) scale(1.02); }
.book-left-badge {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white); padding: 6px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.book-page-number {
  position: absolute; bottom: 12px; right: 16px;
  font-size: 12px; color: var(--text-light); font-style: italic;
}

.book-right {
  flex: 1.1;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 44px 48px;
  display: flex; flex-direction: column;
  overflow-y: auto; max-height: 100%;
  position: relative;
}
.book-right::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, rgba(0,0,0,0.04), transparent);
  pointer-events: none;
}
.book-category-label {
  font-size: 11px; font-weight: 700; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 12px;
}
.book-title {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  color: var(--primary); line-height: 1.2; margin-bottom: 8px;
}
.book-subtitle { font-size: 15px; color: var(--text-light); margin-bottom: 24px; }
.book-divider {
  height: 2px; width: 60px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 24px;
}
.book-tabs {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--light-gray);
  margin-bottom: 24px;
}
.book-tab {
  padding: 10px 18px; font-size: 13px; font-weight: 700;
  color: var(--text-light); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition);
}
.book-tab:hover { color: var(--primary); }
.book-tab.active { color: var(--primary); border-bottom-color: var(--accent); }
.book-tab-content { display: none; }
.book-tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.book-text { font-size: 14px; color: var(--text-mid); line-height: 1.8; }
.book-steps { counter-reset: steps; }
.book-step {
  display: flex; gap: 12px; margin-bottom: 12px;
  counter-increment: steps;
}
.book-step::before {
  content: counter(steps);
  flex-shrink: 0; width: 24px; height: 24px;
  background: var(--primary); color: var(--white);
  border-radius: 50%; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.book-step p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

.book-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.book-spec {
  background: var(--off-white); border-radius: var(--radius-sm);
  padding: 12px;
}
.book-spec-label { font-size: 11px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.book-spec-value { font-size: 14px; font-weight: 700; color: var(--primary); }

.book-char-list { display: flex; flex-direction: column; gap: 8px; }
.book-char-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--light-gray);
  gap: 16px;
}
.book-char-item:last-child { border-bottom: none; }
.book-char-name { font-size: 13px; color: var(--text-light); }
.book-char-val { font-size: 13px; font-weight: 700; color: var(--primary); text-align: right; }

/* Price / shop elements in book */
.book-price-wrap { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--light-gray); }
.book-price { font-size: 28px; font-weight: 700; color: var(--primary); }
.book-add-cart { margin-top: 16px; display: flex; gap: 10px; align-items: center; }
.qty-input {
  width: 70px; padding: 10px;
  border: 2px solid var(--mid-gray); border-radius: var(--radius-sm);
  font-size: 16px; text-align: center; font-family: inherit; font-weight: 700;
}
.qty-input:focus { outline: none; border-color: var(--primary); }

/* ============================================
   VARIANTE CULORI - PAGINA PRODUS
   ============================================ */
.colors-reveal-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 24px; margin-top: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); border-radius: var(--radius);
  font-size: 14px; font-weight: 700; letter-spacing: 0.5px;
  cursor: pointer; transition: all var(--transition);
  border: none;
}
.colors-reveal-btn:hover { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.colors-reveal-btn .arrow-bounce { animation: bounce 1.5s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.colors-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
}
.colors-panel.open { max-height: 500px; margin-top: 16px; }
.colors-panel-inner {
  background: var(--off-white); border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--mid-gray);
}
.colors-panel h4 {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--primary); margin-bottom: 16px;
}
.colors-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  max-height: 220px; overflow-y: auto;
  padding-right: 4px;
}
.colors-grid::-webkit-scrollbar { width: 4px; }
.colors-grid::-webkit-scrollbar-track { background: var(--light-gray); border-radius: 2px; }
.colors-grid::-webkit-scrollbar-thumb { background: var(--mid-gray); border-radius: 2px; }
.color-chip {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; padding: 6px;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  transition: all var(--transition);
  min-width: 52px;
}
.color-chip:hover { border-color: var(--primary); background: var(--white); }
.color-chip.selected { border-color: var(--accent); background: rgba(232,160,32,0.08); }
.color-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.color-chip span { font-size: 10px; font-weight: 700; color: var(--text-dark); text-align: center; line-height: 1.2; max-width: 50px; word-wrap: break-word; }

/* Animatie flip culoare selectata */
.color-flip-overlay {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
}
.color-flip-overlay.animating {
  pointer-events: all;
  animation: flipPage 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes flipPage {
  0% { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); background: var(--white); opacity: 0.8; }
  50% { clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); opacity: 0.6; }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); opacity: 0; }
}

.selected-color-display {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--white);
  border-radius: var(--radius-sm); margin-top: 12px;
  border: 2px solid var(--accent);
  animation: fadeIn 0.3s ease;
}
.selected-color-swatch {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.selected-color-info { flex: 1; }
.selected-color-info strong { font-size: 14px; color: var(--primary); display: block; }
.selected-color-info small { font-size: 12px; color: var(--text-light); }

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  padding: 16px 0;
  border-bottom: 1px solid var(--light-gray);
  background: var(--white);
}
.breadcrumbs ol {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.breadcrumbs li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-light);
}
.breadcrumbs li a { color: var(--primary); font-weight: 600; }
.breadcrumbs li a:hover { color: var(--accent); }
.breadcrumbs li::after { content: '›'; }
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs li:last-child { color: var(--text-dark); font-weight: 600; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--white); margin-bottom: 16px;
}
.footer h4 { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer p { font-size: 14px; line-height: 1.7; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { font-size: 14px; color: rgba(255,255,255,0.65); transition: all var(--transition); }
.footer ul li a:hover { color: var(--accent-light); padding-left: 4px; }
.footer-logo-wrap { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.footer-logo-wrap img { height: 36px; opacity: 0.8; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; font-size: 13px;
}
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.footer-contact li span { font-size: 14px; }

/* ============================================
   ADMIN PANEL - general
   ============================================ */
.admin-body { background: #f0f2f5; font-family: var(--font-body); }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--primary-dark);
  position: fixed; top: 0; bottom: 0; left: 0;
  overflow-y: auto; z-index: 100;
  transition: transform var(--transition);
}
.admin-main {
  margin-left: 260px;
  flex: 1; min-height: 100vh;
}
.admin-topbar {
  background: var(--white);
  padding: 0 32px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 50;
}
.admin-content { padding: 32px; }

/* Sidebar */
.admin-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-logo-text {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--white);
}
.admin-logo-text span { display: block; font-size: 11px; color: var(--accent); font-weight: 400; letter-spacing: 2px; text-transform: uppercase; }
.admin-nav-section { padding: 16px 12px 8px; }
.admin-nav-section-title { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.35); letter-spacing: 1.5px; text-transform: uppercase; padding: 0 8px; margin-bottom: 4px; }
.admin-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.65);
  transition: all var(--transition); cursor: pointer;
}
.admin-nav-link:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.admin-nav-link.active { background: var(--accent); color: var(--white); }
.admin-nav-link .icon { font-size: 16px; width: 20px; text-align: center; }

/* Mode toggle */
.mode-toggle-wrap {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 16px;
  margin: 16px 12px;
}
.mode-toggle-label {
  font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 700; margin-bottom: 10px;
}
.mode-switch {
  display: flex; background: rgba(0,0,0,0.2); border-radius: 8px; padding: 4px;
}
.mode-option {
  flex: 1; padding: 8px 4px; border-radius: 6px;
  font-size: 12px; font-weight: 700; text-align: center; cursor: pointer;
  color: rgba(255,255,255,0.45); transition: all var(--transition);
}
.mode-option.active { background: var(--accent); color: var(--white); }
.mode-option:hover:not(.active) { color: rgba(255,255,255,0.7); }

/* Cards admin */
.admin-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.admin-card-header {
  padding: 20px 24px; border-bottom: 1px solid var(--light-gray);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-card-header h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--primary); }
.admin-card-body { padding: 24px; }

/* Tabele admin */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; padding: 12px 16px;
  font-size: 12px; font-weight: 700; color: var(--text-light);
  letter-spacing: 0.5px; text-transform: uppercase;
  background: var(--off-white); border-bottom: 2px solid var(--light-gray);
}
.admin-table td {
  padding: 14px 16px;
  font-size: 14px; color: var(--text-dark);
  border-bottom: 1px solid var(--light-gray);
}
.admin-table tr:hover td { background: var(--off-white); }
.admin-table tr:last-child td { border-bottom: none; }

/* Formulare admin */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--text-dark); margin-bottom: 6px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--mid-gray); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; color: var(--text-dark);
  background: var(--white); transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,58,92,0.08); }
.form-control-sm { padding: 8px 12px; font-size: 13px; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: 12px; }
.toggle {
  position: relative; width: 48px; height: 26px; cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--mid-gray); border-radius: 13px;
  transition: all var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  left: 3px; top: 3px;
  transition: all var(--transition);
}
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }
.toggle-label { font-size: 14px; font-weight: 600; color: var(--text-dark); }

/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); display: flex; align-items: flex-start; gap: 16px;
  border-left: 4px solid var(--primary);
  transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-value { font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* Alerts */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid;
}
.alert-success { background: #d4edda; border-color: #c3e6cb; color: #155724; }
.alert-danger { background: #f8d7da; border-color: #f5c6cb; color: #721c24; }
.alert-warning { background: #fff3cd; border-color: #ffeeba; color: #856404; }
.alert-info { background: #d1ecf1; border-color: #bee5eb; color: #0c5460; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---- Tablet landscape ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .book-right { padding: 32px 36px; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .admin-main { margin-left: 0; }
  /* About section pe tablet */
  #despre .container > div { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* ---- Tablet portrait & mare mobile ---- */
@media (max-width: 768px) {

  /* Navbar */
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--white); padding: 12px 16px;
    border-bottom: 2px solid var(--light-gray);
    box-shadow: var(--shadow-lg);
    z-index: 999; gap: 2px;
  }
  .nav-menu.open .nav-link { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav-hamburger { display: flex; }
  .nav-logo-text { font-size: 18px; }
  .nav-logo-text span { display: none; } /* ascunde sloganul pe mobile */
  .nav-actions .btn-outline { display: none; } /* ascunde butonul Admin din navbar */

  /* Hero */
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Categorii - 3 pe rand pe tablet */
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cat-card { padding: 16px 10px; }
  .cat-icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 8px; }
  .cat-card span { font-size: 12px; }
  .cat-count { font-size: 10px; }

  /* Produse */
  .products-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .product-name { font-size: 15px; }
  .product-img-wrap { height: 180px; }

  /* Sectiuni */
  .section-pad { padding: 48px 0; }
  .section-title { font-size: 26px; }

  /* Book carta -> stivuita pe mobile */
  .book-wrapper { padding-bottom: 0 !important; height: auto !important; }
  .book {
    position: relative !important; inset: auto !important;
    flex-direction: column;
    border-radius: var(--radius);
  }
  .book-left {
    border-radius: var(--radius) var(--radius) 0 0;
    border-right: none; border-bottom: 3px solid var(--mid-gray);
    min-height: 220px; padding: 24px 20px;
  }
  .book-product-img { max-width: 140px !important; }
  .book-right {
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 24px 20px; overflow-y: visible;
  }
  .book-spine { display: none; }
  .book-title { font-size: 20px; }
  .book-specs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .book-tab { padding: 8px 12px; font-size: 12px; }

  /* Colors panel */
  .colors-panel.open { max-height: 600px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer { padding: 40px 0 20px; }

  /* Admin */
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- iPhone 12 Pro & mobile mic (390px) ---- */
@media (max-width: 430px) {

  /* Container padding mai mic */
  .container, .container-wide { padding: 0 16px; }

  /* Navbar */
  .nav-inner { height: 60px; gap: 12px; }
  .nav-logo-text { font-size: 16px; }

  /* Hero */
  .hero { padding: 40px 0 32px; min-height: auto; }
  .hero h1 { font-size: 26px; line-height: 1.2; }
  .hero p { font-size: 14px; margin-bottom: 24px; }
  .hero-badge { font-size: 11px; padding: 4px 12px; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }

  /* Categorii - 2 pe rand pe phone */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 14px 8px; border-radius: 10px; }
  .cat-icon { width: 40px; height: 40px; font-size: 18px; border-radius: 10px; margin-bottom: 6px; }
  .cat-card span { font-size: 11px; }
  .cat-count { font-size: 10px; }

  /* Produse - 1 pe rand pe phone mic */
  .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-img-wrap { height: 200px; }
  .product-body { padding: 16px; }
  .product-name { font-size: 16px; }

  /* Sectiuni */
  .section-pad { padding: 36px 0; }
  .section-title { font-size: 22px; }
  .section-subtitle { font-size: 14px; margin-bottom: 28px; }

  /* Book pe telefon */
  .book-left { min-height: 200px; padding: 20px 16px; }
  .book-product-img { max-width: 120px !important; }
  .book-right { padding: 20px 16px; }
  .book-title { font-size: 18px; }
  .book-subtitle { font-size: 13px; }
  .book-tab { padding: 8px 10px; font-size: 11px; }
  .book-tabs { gap: 2px; overflow-x: auto; flex-wrap: nowrap; }
  .book-text { font-size: 13px; }
  .book-specs { grid-template-columns: 1fr; gap: 8px; }
  .book-spec { padding: 10px; }
  .book-spec-label { font-size: 10px; }
  .book-spec-value { font-size: 13px; }
  .book-char-name, .book-char-val { font-size: 12px; }
  .book-price { font-size: 22px; }

  /* Coloane culori panel */
  .colors-panel-inner { padding: 16px; }
  .color-chip { min-width: 44px; }
  .color-swatch { width: 30px; height: 30px; }
  .color-chip span { font-size: 9px; }

  /* Footer 1 coloana */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Produse similare */
  #similare-grid { grid-template-columns: 1fr !important; }

  /* Breadcrumbs */
  .breadcrumbs ol { gap: 4px; }
  .breadcrumbs li { font-size: 12px; }

  /* Admin stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px; gap: 10px; }
  .stat-value { font-size: 22px; }
  .admin-content { padding: 16px; }
  .admin-topbar { padding: 0 16px; }
}

/* About grid responsive */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}
@media (max-width: 430px) {
  .about-grid { gap: 24px !important; }
}

/* ---- Navbar: butoane admin/login ---- */
.nav-admin-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  background: var(--primary); color: var(--white);
  font-size: 13px; font-weight: 700;
  transition: all var(--transition); white-space: nowrap;
  border: 2px solid var(--primary);
}
.nav-admin-btn:hover {
  background: var(--accent); border-color: var(--accent);
  transform: translateY(-1px);
}
.nav-admin-icon { font-size: 15px; }

.nav-login-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--text-light); border: 2px solid var(--mid-gray);
  transition: all var(--transition);
}
.nav-login-btn:hover {
  color: var(--primary); border-color: var(--primary);
  background: var(--light-gray);
}

/* Pe mobile ascunde textul "Panel Admin", pastreaza doar iconita */
@media (max-width: 430px) {
  .nav-admin-text { display: none; }
  .nav-admin-btn { padding: 8px 10px; }
  .nav-admin-icon { font-size: 18px; }
}

/* Contact grid responsive */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
}


/* ============================================
   NAVBAR DINAMIC — se adapteaza la nr. de categorii
   Clasele sunt aplicate automat de assets/js/main.js
   ============================================ */
#navbar                  { --nav-gap: 4px; --nav-pad: 14px; --nav-fs: 14px; }
#navbar.nav-s1           { --nav-gap: 2px; --nav-pad: 11px; --nav-fs: 13.5px; }
#navbar.nav-s2           { --nav-gap: 1px; --nav-pad: 8px;  --nav-fs: 13px; }
#navbar.nav-s3           { --nav-gap: 0px; --nav-pad: 6px;  --nav-fs: 12.5px; }
#navbar.nav-s3 .nav-logo-text span { display: none; }
#navbar.nav-s3 .nav-logo-text      { font-size: 18px; }

/* Ultima treapta: meniul nu mai incape nici comprimat -> hamburger,
   indiferent de latimea ecranului. */
#navbar.nav-collapsed .nav-menu { display: none; }
#navbar.nav-collapsed .nav-hamburger { display: flex; }
#navbar.nav-collapsed .nav-menu.open {
  display: flex; flex-direction: column;
  position: fixed; top: 72px; left: 0; right: 0;
  background: var(--white); padding: 12px 16px;
  border-bottom: 2px solid var(--light-gray);
  box-shadow: var(--shadow-lg);
  z-index: 999; gap: 2px;
  max-height: calc(100vh - 72px); overflow-y: auto;
}
#navbar.nav-collapsed .nav-menu.open .nav-link {
  padding: 12px 14px; font-size: 14px; border-radius: var(--radius-sm);
}

/* Cardurile din sectiunea "Quiénes somos" — o coloana pe ecrane mici */
@media (max-width: 768px) {
  .ventajas-grid { grid-template-columns: 1fr !important; }
}
