/* ===========================================================
   VELİSMA MOBİLYA & CEYİZ — HOME COLLECTION
   Renk paleti Instagram (@velismamobilya) görsellerinden:
   koyu antrasit/kahve iç mekanlar, krem/bej mobilyalar,
   gold/pirinç aksesuar detayları, logo kırmızı-gold rozet.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --cream:        #F4EEE3;
  --cream-soft:   #FBF8F2;
  --cream-dark:   #E7DDC9;
  --charcoal:     #211D1A;
  --charcoal-2:   #2C2622;
  --charcoal-3:   #3A332C;
  --gold:         #C6A15B;
  --gold-light:   #E2C588;
  --gold-dark:    #9B7A3F;
  --red:          #8A1F1F;
  --red-dark:     #6B1717;
  --taupe:        #A99680;
  --text-dark:    #2A2521;
  --text-muted:   #756B60;
  --text-on-dark: #EFE7D8;
  --white:        #FFFFFF;
  --border-soft:  #E1D5BE;
  --shadow:       0 10px 30px rgba(33, 29, 26, 0.12);
  --shadow-sm:    0 4px 14px rgba(33, 29, 26, 0.08);
  --radius:       10px;
  --radius-sm:    6px;
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'Poppins', 'Segoe UI', sans-serif;
  --container:    1240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  margin-bottom: 8px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.gold-rule {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  margin: 14px auto 0;
}

.section-head.left .gold-rule { margin-left: 0; }

section { padding: 70px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  color: var(--charcoal);
  box-shadow: 0 6px 18px rgba(198, 161, 91, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(198, 161, 91, 0.45); }

.btn-outline {
  border-color: var(--gold);
  color: var(--text-on-dark);
  background: transparent;
}
.btn-outline:hover { background: rgba(198, 161, 91, 0.14); }

.btn-dark {
  background: var(--charcoal);
  color: var(--text-on-dark);
}
.btn-dark:hover { background: var(--charcoal-2); }

.btn-sm { padding: 9px 18px; font-size: 0.72rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; border-color: var(--border-soft); color: var(--text-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--charcoal);
  color: var(--taupe);
  font-size: 0.78rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: var(--text-on-dark); }
.topbar-links { display: flex; gap: 18px; }
.topbar-links span, .topbar-links a { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header ---------- */
header.site-header {
  background: var(--cream-soft);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}
.brand-text .name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}
.brand-text .name span { color: var(--red); }
.brand-text .tagline {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--gold-dark); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  color: var(--charcoal);
  transition: all 0.2s ease;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--cream); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.burger span { width: 24px; height: 2px; background: var(--charcoal); display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--text-on-dark);
  padding: 130px 0 110px;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(33,29,26,0.88), rgba(33,29,26,0.6));
  pointer-events: none;
}
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(198,161,91,0.18), transparent 45%);
}
.hero-content { max-width: 620px; position: relative; z-index: 2; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  color: var(--cream);
  margin-bottom: 18px;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero p {
  color: var(--taupe);
  font-size: 1.02rem;
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  position: relative;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--gold-light);
}
.hero-stats div span {
  font-size: 0.76rem;
  color: var(--taupe);
  letter-spacing: 0.05em;
}

/* ---------- Category cards ---------- */
.categories { background: var(--cream-soft); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.cat-card {
  position: relative;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.cat-card:hover .bg { transform: scale(1.06); }
.cat-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,29,26,0.05) 30%, rgba(33,29,26,0.92));
}
.cat-card .content {
  position: relative;
  padding: 26px;
  color: var(--text-on-dark);
  width: 100%;
}
.cat-card .icon {
  width: 46px; height: 46px;
  margin-bottom: 12px;
  color: var(--gold-light);
}
.cat-card h3 { color: var(--cream); font-size: 1.35rem; }
.cat-card p { color: var(--taupe); font-size: 0.84rem; margin-top: 4px; }
.cat-card .go {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}

/* ---------- Product cards / grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-thumb {
  position: relative;
  aspect-ratio: 4 / 3.1;
  overflow: hidden;
  background: var(--cream-dark);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-thumb img { transform: scale(1.07); }
.badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--charcoal);
  color: var(--gold-light);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  font-weight: 600;
}
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-brand { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.product-name { font-family: var(--font-head); font-size: 1.08rem; color: var(--charcoal); font-weight: 600; }
.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
}
.product-price { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--gold-dark); }
.product-price small { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; font-family: var(--font-body); }
.price-hint {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold-dark);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state strong { display: block; color: var(--charcoal); font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 6px; }

/* ---------- Featured strip on homepage ---------- */
.featured { background: var(--cream); }

/* ---------- About / brand strip ---------- */
.brand-strip {
  background: var(--charcoal);
  color: var(--text-on-dark);
}
.brand-strip .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.brand-strip img { border-radius: var(--radius); box-shadow: var(--shadow); }
.brand-strip .eyebrow { color: var(--gold-light); }
.brand-strip h2 { color: var(--cream); }
.brand-strip p { color: var(--taupe); margin: 18px 0 24px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-bottom: 28px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--text-on-dark); }
.feature-list svg { flex-shrink: 0; color: var(--gold-light); margin-top: 2px; }

/* ---------- Catalog / filters page ---------- */
.catalog-hero {
  background: var(--charcoal);
  color: var(--text-on-dark);
  padding: 56px 0;
  text-align: center;
}
.catalog-hero h1 { color: var(--cream); }
.breadcrumb { color: var(--taupe); font-size: 0.82rem; margin-top: 10px; }
.breadcrumb a { color: var(--gold-light); }

.catalog-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 36px;
  align-items: start;
}

.filters-panel {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 96px;
}
.filters-panel h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.filter-group { margin-bottom: 26px; }
.filter-group:last-child { margin-bottom: 0; }
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-dark);
  padding: 6px 0;
  cursor: pointer;
}
.check-row input {
  accent-color: var(--gold-dark);
  width: 16px; height: 16px;
}
.check-row .count { margin-left: auto; color: var(--text-muted); font-size: 0.76rem; }

.price-inputs { display: flex; align-items: center; gap: 10px; }
.price-inputs input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
}
.price-inputs input:focus { outline: none; border-color: var(--gold); }
.price-inputs span { color: var(--text-muted); }

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.result-count { color: var(--text-muted); font-size: 0.88rem; }
.result-count strong { color: var(--charcoal); }
.sort-select {
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.84rem;
  color: var(--text-dark);
}

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream-dark);
  color: var(--charcoal);
  font-size: 0.76rem;
  padding: 6px 10px;
  border-radius: 20px;
}
.chip button { background: none; border: none; color: var(--gold-dark); font-weight: 700; line-height: 1; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(33,29,26,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.modal-box .m-img { background: var(--cream-dark); display: flex; flex-direction: column; }
.modal-box .gallery-main { position: relative; flex: 1; min-height: 280px; }
.modal-box .gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-box .gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--charcoal);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.modal-box .gallery-nav:hover { background: var(--white); }
.modal-box .gallery-nav.prev { left: 12px; }
.modal-box .gallery-nav.next { right: 12px; }
.modal-box .gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  background: var(--cream-soft);
}
.modal-box .gallery-thumbs img {
  width: 50px; height: 50px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.65;
  flex-shrink: 0;
  transition: opacity 0.2s, border-color 0.2s;
}
.modal-box .gallery-thumbs img:hover { opacity: 0.9; }
.modal-box .gallery-thumbs img.active { border-color: var(--gold); opacity: 1; }
.modal-box .m-body { padding: 32px; }
.modal-box .m-desc-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  border: none;
  font-size: 1.1rem;
}
.modal-box .m-cat { color: var(--gold-dark); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.modal-box h2 { margin: 8px 0 4px; }
.modal-box .m-brand { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }
.modal-box .price-cta { display: inline-flex; margin-bottom: 18px; }
.modal-box .m-desc { color: var(--text-dark); font-size: 0.92rem; margin-bottom: 26px; }
.modal-box .m-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--charcoal);
  color: var(--taupe);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h4 {
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { font-size: 0.88rem; color: var(--taupe); transition: color 0.2s; }
.footer-grid ul a:hover { color: var(--gold-light); }
.footer-brand p { font-size: 0.88rem; margin: 14px 0 18px; color: var(--taupe); }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.social-row a:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(198,161,91,0.1); }
.contact-item { display: flex; gap: 10px; font-size: 0.88rem; margin-bottom: 12px; align-items: flex-start; }
.contact-item svg { color: var(--gold-light); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #877E70;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #877E70; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Admin ---------- */
.admin-body { background: var(--cream); min-height: 100vh; }
.admin-header {
  background: var(--charcoal);
  color: var(--text-on-dark);
  padding: 18px 0;
}
.admin-header .container { display: flex; align-items: center; justify-content: space-between; }
.admin-header .brand-text .name { color: var(--cream); }

.gate-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  padding: 20px;
}
.gate-card {
  background: var(--cream-soft);
  padding: 44px;
  border-radius: var(--radius);
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}
.gate-card .brand-badge { margin: 0 auto 16px; }
.gate-card h2 { margin-bottom: 6px; }
.gate-card p { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 22px; }
.gate-card input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 0.92rem;
}
.gate-error { color: var(--red); font-size: 0.82rem; margin-bottom: 10px; min-height: 18px; }
.gate-note { font-size: 0.74rem; color: var(--text-muted); margin-top: 18px; line-height: 1.5; }

.admin-wrap { padding: 40px 0 80px; }
.admin-grid { display: grid; grid-template-columns: 380px 1fr; gap: 30px; align-items: start; }

.panel {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
}
.panel h3 { font-size: 1.1rem; margin-bottom: 4px; }
.panel .hint { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 20px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.field input[type=text],
.field input[type=number],
.field input[type=url],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  background: var(--cream-soft);
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.image-drop {
  border: 1.5px dashed var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: var(--cream-soft);
  position: relative;
}
.image-drop img { max-height: 130px; margin: 0 auto 10px; border-radius: var(--radius-sm); }
.image-drop span { font-size: 0.8rem; color: var(--text-muted); }
.image-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.image-gallery-manager { display: flex; flex-wrap: wrap; gap: 10px; }
.image-gallery-manager:not(:empty) { margin-bottom: 12px; }
.gallery-thumb-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--border-soft);
  flex-shrink: 0;
}
.gallery-thumb-item.is-cover { border-color: var(--gold); }
.gallery-thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb-item .cover-badge {
  position: absolute;
  top: 3px;
  left: 3px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.gallery-thumb-item .thumb-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: rgba(33, 29, 26, 0.78);
}
.gallery-thumb-item .thumb-actions button {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.62rem;
  padding: 4px 0;
  cursor: pointer;
  line-height: 1;
}
.gallery-thumb-item .thumb-actions button:hover { background: rgba(255, 255, 255, 0.18); }

.form-actions { display: flex; gap: 10px; margin-top: 22px; }

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 14px;
  flex-wrap: wrap;
}
.admin-toolbar input[type=search] {
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  min-width: 220px;
  font-size: 0.86rem;
}
.stat-row { display: flex; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.stat-pill {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.stat-pill strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--charcoal); }

.admin-table-wrap {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
table.admin-table th {
  text-align: left;
  background: var(--cream);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
}
table.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.admin-table tr:last-child td { border-bottom: none; }
.row-thumb { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--cream-dark); }
.row-name { font-weight: 600; color: var(--charcoal); }
.row-actions { display: flex; gap: 8px; }
.row-actions button {
  border: 1px solid var(--border-soft);
  background: var(--white);
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.76rem;
}
.row-actions .edit-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.row-actions .del-btn:hover { border-color: var(--red); color: var(--red); }
.tag-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--cream-dark);
  color: var(--charcoal);
}

.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--charcoal);
  color: var(--text-on-dark);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  box-shadow: var(--shadow);
  z-index: 999;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  border-left: 3px solid var(--gold);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .brand-strip .container { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .admin-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .cat-grid { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 70px; text-align: left; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-box .gallery-main { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-links span:not(:last-child) { display: none; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed;
  top: 0; right: -300px;
  width: 280px; height: 100%;
  background: var(--charcoal);
  z-index: 300;
  padding: 30px 24px;
  transition: right 0.3s ease;
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  display: block;
  color: var(--text-on-dark);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
}
.mobile-nav-close { color: var(--gold-light); font-size: 1.4rem; margin-bottom: 20px; display: block; }
.mobile-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 290;
  display: none;
}
.mobile-backdrop.open { display: block; }
