/* ═══════════════════════════════════════════
   LUMIÈRE — Shared Stylesheet
   Use on every page of the site
═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #fdf8f3;
  --warm-white: #fff9f5;
  --blush: #f2d9d0;
  --rose: #c9897a;
  --rose-dark: #a86b5c;
  --gold: #c8a96e;
  --gold-light: #e8d5aa;
  --charcoal: #2c2420;
  --text: #3d2e28;
  --text-light: #8a6e66;
  --border: #e8d8d0;
  --shadow: rgba(44,36,32,0.08);
}

html { scroll-behavior: smooth; }

body {
  /*font-family: 'Jost', sans-serif;*/
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  font-family: "BPG Nino Mkhedruli Book", sans-serif;
}

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,248,243,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 300; letter-spacing: 0.12em;
  color: var(--charcoal);
  text-decoration: none;
}
.logo span { color: var(--rose); font-style: italic; }

.logoimg{
  width: auto;
  height: 70px;
}
nav { display: flex; align-items: center; gap: 2rem; }
nav a {
  font-size: 1rem; 
  letter-spacing: 0.1em; 
  text-transform: uppercase;
  color: var(--text-light); text-decoration: none;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--rose); }

.btn-admin {
  background: var(--charcoal); color: var(--cream);
  border: none; cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.55rem 1.4rem; border-radius: 2px;
  transition: background 0.2s;
}
.btn-admin:hover { background: var(--rose-dark); }

/* ── HERO ── */
.hero {
  min-height: 88vh;
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0vh 8vw 8vh 8vw;
  background: var(--warm-white);
}

.hero-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 1px; background: var(--gold);
}

.hero h1 {
 font-family: "BPG Nino Mkhedruli Book", sans-serif;
 font-weight: 600;
  font-size: clamp(3rem, 5vw, 5.5rem);
   line-height: 1.05;
  color: var(--charcoal); margin-bottom: 1.6rem;
}
.hero h1 em { 
  font-style: italic; 
  color: var(--rose);
 font-family: "BPG Irubaqidze", sans-serif;
font-weight: 400; }

.hero p {
  font-size: 1rem; line-height: 1.9;
  color: var(--text-light); max-width: 420px;
  font-weight: 300; margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--rose); color: #fff;
  border: none; cursor: pointer;
  font-family: "BPG Nino Mkhedruli Book", sans-serif;
  font-weight: bold;
  font-size: 1.2rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1rem 2.4rem; border-radius: 2px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
  align-self: flex-start;
}
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-1px); }

.hero-image {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f2d9d0 0%, #e8c5b8 50%, #d4a898 100%);
}
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 6s ease;
}
.hero-image:hover img { transform: scale(1.03); }

.hero-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(253,248,243,0.15) 0%, transparent 40%);
}

.hero-badge {
  position: absolute; bottom: 2.5rem; right: 2.5rem;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(253,248,243,0.9);
  border: 1px solid var(--gold-light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
}
.hero-badge span:first-child { font-size: 1.5rem; font-weight: 500; color: var(--rose); }
.hero-badge span:last-child { font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light); }

/* ── MARQUEE ── */
.marquee-bar {
  background: var(--charcoal); color: var(--gold-light);
  padding: 0.75rem 0; overflow: hidden;
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
}
.marquee-inner {
  display: flex; gap: 4rem;
  animation: marquee 28s linear infinite;
  width: max-content;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTION HEADER ── */
.section-header {
  text-align: center; padding: 3rem 5vw 3.5rem;
}
.section-eyebrow {
  font-size: 1rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300; color: var(--charcoal);
}
.section-header h2 em { 
  font-style: italic; 
  color: var(--rose);
  font-family: "BPG Irubaqidze", sans-serif;
}

.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin: 1.2rem auto 0; width: fit-content;
}
.divider::before, .divider::after {
  content: ''; display: block;
  width: 50px; height: 1px; background: var(--gold-light);
}
.divider-diamond {
  width: 6px; height: 6px; background: var(--gold);
  transform: rotate(45deg);
}

/* ── FILTER BAR ── */
.filter-bar {
  display: flex; justify-content: center; gap: 0.5rem;
  padding: 0 5vw 3rem; flex-wrap: wrap;
}
.filter-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-light); cursor: pointer;
 font-family: "BPG Nino Mkhedruli Book", sans-serif;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.55rem 1.4rem; border-radius: 100px;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--rose); border-color: var(--rose);
  color: #fff;
}

/* ── PRODUCT GRID ── */
.products-section { padding: 0 5vw 7rem; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 20px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  animation: fadeUp 0.5s ease both;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(44,36,32,0.14);
}

.product-image {
  position: relative; overflow: hidden;
  aspect-ratio: 3/3.6;
  background: var(--blush);
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.07); }

.product-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--rose); color: #fff;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 2px;
}

.product-info { padding: 1.4rem 1.5rem 1.6rem; }

.product-category {
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
  font-weight: bold;
}

.product-name {
  font-family: "BPG Nino Mkhedruli Book", sans-serif;
  font-weight: bold;
  font-size: 1.7rem; 
  color: var(--charcoal); margin-bottom: 0.5rem;
  line-height: 1.25;
}

.product-desc {
  font-size: 0.88rem; color: var(--text-light);
  line-height: 1.7; margin-bottom: 1.2rem;
  font-weight: 300;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 1rem;
}

.product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 500;
  color: var(--rose);
}

.btn-add {
    color: rgb(255, 255, 255);
    cursor: pointer;
     font-family: "BPG Nino Mkhedruli Book", sans-serif;
    font-size:1rem;
    letter-spacing: 0.1em;
    font-weight: bold;
    text-transform: uppercase;
    background: var(--rose);
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    padding: 0.65rem 1.5rem;
    border-radius: 3px;
    transition: background 0.2s;
}

.btn-view {
  background: var(--charcoal); color: var(--cream);
  border: none; cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.5rem 1.1rem; border-radius: 2px;
  transition: background 0.2s;
}
.btn-view:hover { background: var(--rose); }

/* ── ABOUT STRIP ── */
.about-strip {
  background: var(--charcoal);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  
}
.about-item {
  padding: 4rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.about-item:last-child { border-right: none; }
.about-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.about-item h3 {
  font-family: "BPG Irubaqidze", sans-serif;
  font-size: 1.4rem; font-weight: 400;
  color: var(--gold-light); margin-bottom: 0.6rem;
}
.about-item p {
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
  line-height: 1.8; font-weight: 300;
}

/* ── FOOTER ── */
footer {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  padding: 3rem 5vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 300; letter-spacing: 0.1em;
  color: var(--charcoal);
}
.footer-logo span { color: var(--rose); font-style: italic; }
footer p { font-size: 0.75rem; color: var(--text-light); letter-spacing: 0.05em; }

/* ── MODAL OVERLAY ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(44,36,32,0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--cream);
  border-radius: 6px;
  max-width: 900px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s;
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; color: var(--text-light);
  line-height: 1; z-index: 2;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--rose); }

/* Product detail modal */
.modal-product { display: grid; grid-template-columns: 1fr 1fr; }
.modal-product-img {
  aspect-ratio: 1; overflow: hidden;
  background: var(--blush);
  border-radius: 6px 0 0 6px;
}
.modal-product-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-product-info { padding: 3rem 2.5rem; }
.modal-product-info .product-category {
  font-size: 0.68rem; letter-spacing: 0.3em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 0.8rem;
}
.modal-product-info h2 {
  font-family: "BPG Nino Mkhedruli Book", sans-serif;
  font-size: 2.2rem; font-weight: 400; color: var(--charcoal);
  margin-bottom: 0.8rem; line-height: 1.1;
}
.modal-price {
  font-family: "BPG Nino Mkhedruli Book", sans-serif;
  font-size: 2.5rem; color: var(--rose); margin-bottom: 1.5rem;
}
.modal-desc { font-size: 0.88rem; line-height: 1.9; color: var(--text-light); font-weight: 300; }
.modal-divider { width: 40px; height: 1px; background: var(--gold-light); margin: 1.5rem 0; }

/* ── ADMIN MODAL ── */
.admin-modal { max-width: 480px; }

.admin-login-body { padding: 3rem; }
.admin-login-body h2 {
   font-family: "BPG Nino Mkhedruli Book", sans-serif;
   font-weight: bold;
  font-size: 2rem;  color: var(--charcoal);
}
.admin-login-body p { font-size: 0.82rem; color: var(--text-light); margin: 0.4rem 0 2rem; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-light);
  margin-bottom: 0.5rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: 3px;
  background: var(--warm-white);
  font-family: 'Jost', sans-serif; font-size: 0.88rem; color: var(--text);
  outline: none; transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--rose);
}

.btn-full {
  width: 100%; padding: 0.9rem;
  background: var(--rose); color: #fff;
  border: none; cursor: pointer;
  font-family: "BPG Nino Mkhedruli Book", sans-serif;
  font-weight: bold;
  font-size: 1rem; letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.2s;
  margin-top: 0.5rem;

}
.btn-full:hover { background: var(--rose-dark); }

.login-error {
  background: #fde8e8; color: #c0392b;
  padding: 0.7rem 1rem; border-radius: 3px;
  font-size: 0.8rem; margin-bottom: 1rem;
  display: none;
}
.login-error.show { display: block; }

/* ══════════════════════════════════════════
   ADMIN DASHBOARD — Full redesign
══════════════════════════════════════════ */
#admin-panel {
  position: fixed; inset: 0; z-index: 2000;
  display: none; flex-direction: row;
  font-family: 'Jost', sans-serif;
}
#admin-panel.open { display: flex; }

/* Product form & detail modals must sit ABOVE the admin panel */
#product-form-overlay,
#detail-overlay { z-index: 3000; }

/* ── SIDEBAR ── */
.ap-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--charcoal);
  display: flex; flex-direction: column;
  padding: 2rem 1.2rem 1.5rem;
  overflow-y: auto;
}

.ap-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 300; letter-spacing: 0.12em;
  color: var(--gold-light);
}
.ap-logo span { color: var(--rose); font-style: italic; }
.ap-logo-sub {
  font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-top: 0.2rem; margin-bottom: 2rem;
}

.ap-nav { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 2rem; }
.ap-nav-btn {
  display: flex; align-items: center; gap: 0.7rem;
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  font-family: "BPG Nino Mkhedruli Book", sans-serif;
  font-size: 1rem; letter-spacing: 0.08em;
  font-weight: bold;
  color: rgba(255,255,255,0.5);
  padding: 0.65rem 0.9rem; border-radius: 4px;
  transition: all 0.18s;
}
.ap-nav-btn:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
.ap-nav-btn.active { background: var(--rose); color: #fff; }
.ap-nav-icon { font-size: 1rem; }

.ap-sidebar-label {
  font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.25); margin-bottom: 0.8rem; padding-left: 0.4rem;
}

.ap-cat-list { list-style: none; flex: 1; }
.ap-cat-list li { margin-bottom: 0.15rem; }
.ap-cat-list button {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
   font-family: "BPG Nino Mkhedruli Book", sans-serif; font-size: 1rem;
  color: rgba(255,255,255,0.45);
  padding: 0.5rem 0.9rem; border-radius: 4px;
  transition: all 0.18s;
  display: flex; justify-content: space-between; align-items: center;
}
.ap-cat-list button:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.ap-cat-list button.active { background: rgba(201,137,122,0.25); color: var(--rose); }
.ap-cat-count {
  font-size: 0.65rem; background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  padding: 0.1rem 0.45rem; border-radius: 100px;
}
.ap-cat-list button.active .ap-cat-count { background: rgba(201,137,122,0.3); color: var(--rose); }

.ap-logout {
  margin-top: auto; padding-top: 1.5rem;
  background: none; border: none; cursor: pointer;
  font-family: "BPG Nino Mkhedruli Book", sans-serif;
  font-size: 1rem; letter-spacing: 0.12em;
  font-weight: bold;
  color: rgba(255,255,255,0.3); text-align: left;
  transition: color 0.2s; padding-left: 0.4rem;
}
.ap-logout:hover { color: var(--rose); }

/* ── MAIN AREA ── */
.ap-main {
  flex: 1; display: flex; flex-direction: column;
  background: #f8f3ef; overflow: hidden;
}

/* ── TOP BAR ── */
.ap-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  flex-shrink: 0;
}
.ap-search-wrap {
  position: relative; flex: 1; max-width: 380px;
}
.ap-search-icon {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 1.1rem; pointer-events: none;
}
.ap-search {
  width: 100%; padding: 0.6rem 1rem 0.6rem 2.4rem;
  border: 1px solid var(--border); border-radius: 100px;
  background: var(--warm-white);
   font-family: "BPG Nino Mkhedruli Book", sans-serif; font-size: 0.82rem; color: var(--text);
  outline: none; transition: border-color 0.2s;
  font-weight: bold;
}
.ap-search:focus { border-color: var(--rose); }

/* ── VIEWS ── */
.ap-view { flex: 1; overflow-y: auto; padding: 2rem; }

.ap-table-meta {
  font-size: 0.75rem; color: var(--text-light);
  letter-spacing: 0.05em; margin-bottom: 1rem;
}

/* ── STATS GRID ── */
.ap-section-title {
  font-family: "BPG Nino Mkhedruli Book", sans-serif;
  font-size: 1.3rem; font-weight: bold; color: var(--charcoal);
  margin-bottom: 1.2rem;
}
.ap-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-bottom: 0.5rem;
}
.ap-stat-card {
  background: #fff; border-radius: 6px;
  padding: 1.5rem 1.2rem; text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
  border-bottom: 3px solid var(--rose);
}
.ap-stat-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }
.ap-stat-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 500; color: var(--charcoal);
  line-height: 1;
}
.ap-stat-label {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light); margin-top: 0.4rem;
}

/* ── CATEGORY BREAKDOWN ── */
.ap-cat-row {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border-radius: 6px; padding: 0.9rem 1.2rem;
  margin-bottom: 0.6rem; box-shadow: 0 1px 6px var(--shadow);
}
.ap-cat-row-info { width: 180px; flex-shrink: 0; }
.ap-cat-row-name { font-size: 0.85rem; font-weight: 500; color: var(--charcoal); display: block; }
.ap-cat-row-meta { font-size: 0.72rem; color: var(--text-light); }
.ap-bar-wrap { flex: 1; background: var(--blush); border-radius: 100px; height: 8px; overflow: hidden; }
.ap-bar { height: 100%; background: linear-gradient(to right, var(--rose), var(--gold)); border-radius: 100px; transition: width 0.6s ease; }
.ap-cat-row-count { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--rose); width: 2rem; text-align: right; }

/* ── RECENT PRODUCTS GRID ── */
.ap-recent-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.ap-recent-card {
  background: #fff; border-radius: 6px;
  overflow: hidden; box-shadow: 0 2px 12px var(--shadow);
  display: flex; flex-direction: column;
}
.ap-recent-img { aspect-ratio: 1; overflow: hidden; background: var(--blush); }
.ap-recent-img img { width: 100%; height: 100%; object-fit: cover; }
.ap-recent-info { padding: 0.8rem 1rem 0.4rem; flex: 1; }
.ap-recent-name {  font-family: "BPG Nino Mkhedruli Book", sans-serif; font-size: 1.3rem; font-weight: bold; color: var(--charcoal); }
.ap-recent-cat  { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-top: 0.2rem; }
.ap-recent-price { font-family: "BPG Nino Mkhedruli Book", sans-serif; font-size: 1.1rem; color: var(--rose); margin-top: 0.3rem; }
.ap-recent-edit { margin: 0.5rem 0.8rem 0.8rem; }

/* ── ADMIN TABLE IMPROVEMENTS ── */
.admin-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow);
}
.admin-table th {
  background: var(--charcoal); text-align: left;
  padding: 0.9rem 1.2rem;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 400;
  white-space: nowrap;
}
.admin-table th.sortable { cursor: pointer; user-select: none; }
.admin-table th.sortable:hover { color: #fff; }
.admin-table th.sort-asc  .sort-arrow::after { content: ' ↑'; }
.admin-table th.sort-desc .sort-arrow::after { content: ' ↓'; }
.sort-arrow { opacity: 0.4; font-size: 0.75em; }
.admin-table th.sort-asc .sort-arrow,
.admin-table th.sort-desc .sort-arrow { opacity: 1; color: var(--rose); }

.admin-table td {
  font-family: "BPG Nino Mkhedruli Book", sans-serif;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 1rem; color: var(--text);
  vertical-align: middle;
  font-weight: bold;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--warm-white); }

.admin-product-thumb {
  width: 48px; height: 48px; object-fit: cover;
  border-radius: 4px; background: var(--blush); display: block;
}

.ap-cat-pill {
  display: inline-block;
  background: var(--blush); color: var(--rose-dark);
  font-size: 0.68rem; letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem; border-radius: 100px;
}

.btn-edit, .btn-delete {
  border: none; cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.38rem 0.85rem; border-radius: 3px;
  transition: all 0.2s;
}
.btn-edit { background: var(--gold-light); color: var(--charcoal); margin-right: 0.4rem; }
.btn-edit:hover { background: var(--gold); }
.btn-delete { background: #fde8e8; color: #c0392b; }
.btn-delete:hover { background: #f5b5b5; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .ap-sidebar { width: 180px; padding: 1.5rem 0.8rem; }
  .ap-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  #admin-panel { flex-direction: column; }
  .ap-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 0.5rem; padding: 1rem; }
  .ap-logo-sub, .ap-sidebar-cats { display: none; }
  .ap-stats-grid { grid-template-columns: repeat(2, 1fr); }

  .btn-primary {
    display: inline-block;
    background: var(--rose);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: "BPG Nino Mkhedruli Book", sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.7rem 2rem;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
    align-self: flex-start;
}
}

/* Product form modal */
.product-form-modal { max-width: 560px; }
.product-form-body { padding: 2.5rem; }
.product-form-body h2 {
  font-family: "BPG Nino Mkhedruli Book", sans-serif;
  font-size: 2.2rem; font-weight: bold; color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.product-form-body p { font-size: 0.82rem; color: var(--text-light); margin-bottom: 2rem; }

/* ── NO PRODUCTS ── */
.no-products {
  grid-column: 1/-1; text-align: center; padding: 5rem 2rem;
}
.no-products p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: var(--text-light); font-style: italic;
}

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--charcoal); color: var(--gold-light);
  padding: 0.9rem 1.6rem; border-radius: 4px;
  font-size: 0.82rem; letter-spacing: 0.05em;
  transform: translateY(80px); opacity: 0;
  transition: all 0.35s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 50vw; }
  .modal-product {
     /*grid-template-columns: 1fr;*/
             display: inline; 
    }
  .modal-product-img { 
    border-radius: 6px 6px 0 0; 
    aspect-ratio: 16/9; 
  }

  .about-strip { grid-template-columns: 1fr; }
  .about-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .hero-text {
  padding: 8vh 6vw 8vh 8vw;
}

}
@media (max-width: 600px) {
  header { padding: 0 1.2rem; }
 
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
  .panel-body { padding: 1rem; }
  footer { flex-direction: column; text-align: center; }
}

/* Hide toggle on desktop */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-light);
}

/* Mobile styles */
@media (max-width: 800px) {

  #navbar {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(253,248,243,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
    display: none;
    border-bottom: 1px solid var(--border);
  }


  #navbar.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .ap-nav {
    margin-bottom: 0rem;
}
  .ap-logout{
    padding-top: 0px;
  }
}