/* ============================================================
   HDM — Executive Admin Control Center Stylesheet
   Luxury Botanical Boutique CMS Styling
   ============================================================ */

:root {
  --admin-bg: #f4f6f4;
  --admin-surface: #ffffff;
  --admin-sidebar-bg: #0d1a12;
  --admin-sidebar-border: rgba(255, 255, 255, 0.08);

  --text-main: #14211a;
  --text-muted: #5e7065;
  --text-light: #9db2a5;
  --text-white: #ffffff;

  --forest-900: #0d1a12;
  --forest-800: #14281b;
  --forest-700: #1c3826;
  --forest-600: #264a33;

  --accent-green: #1d5231;
  --accent-green-hover: #164026;
  --accent-gold: #c8a265;
  --accent-gold-soft: #f4ece0;
  --accent-red: #b83329;
  --accent-blue: #2364a8;

  --border-subtle: rgba(20, 50, 30, 0.08);
  --border-light: rgba(20, 50, 30, 0.04);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(10, 30, 20, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 30, 20, 0.06);
  --shadow-lg: 0 16px 40px rgba(10, 30, 20, 0.12);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sidebar-w: 260px;
}

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

body.admin-body {
  font-family: var(--font-sans);
  background-color: var(--admin-bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

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

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* ============================================================
   LAYOUT ARCHITECTURE
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: var(--sidebar-w);
  background-color: var(--admin-sidebar-bg);
  color: var(--text-white);
  border-right: 1px solid var(--admin-sidebar-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--admin-sidebar-border);
}

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

.sidebar-logo {
  border-radius: 8px;
  object-fit: cover;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: block;
}

.brand-badge {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
}

.sidebar-nav {
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.nav-tab:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nav-tab.is-active {
  background-color: var(--forest-700);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-tab.is-active .nav-icon {
  color: var(--accent-gold);
}

.nav-icon {
  width: 18px;
  height: 18px;
  color: var(--text-light);
  flex-shrink: 0;
}

.nav-count {
  margin-left: auto;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.sidebar-footer {
  padding: 20px 16px;
  border-top: 1px solid var(--admin-sidebar-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.live-store-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.live-store-btn:hover {
  background-color: var(--forest-600);
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--forest-900);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-user-info strong {
  display: block;
  font-size: 0.84rem;
  color: #ffffff;
}

.admin-user-info small {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* ============================================================
   WORKSPACE AREA
   ============================================================ */
.admin-workspace {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 32px 36px 60px 36px;
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--forest-900);
}

.live-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  background-color: #e3ede5;
  color: var(--accent-green);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-top: 4px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Tab Panes */
.tab-pane {
  display: none;
}

.tab-pane.is-active {
  display: block;
}

/* ============================================================
   BUTTONS & FORM ELEMENTS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background-color: var(--forest-800);
  color: #ffffff;
}

.btn--primary:hover {
  background-color: var(--forest-700);
  box-shadow: 0 4px 14px rgba(20, 40, 27, 0.2);
}

.btn--secondary {
  background-color: var(--admin-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background-color: #f0f3f0;
}

.btn--danger {
  background-color: #fdf2f2;
  color: var(--accent-red);
}

.btn--danger:hover {
  background-color: #f8dede;
}

.btn-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-green);
}

.btn-link:hover {
  text-decoration: underline;
}

/* ============================================================
   METRIC CARDS & PANELS
   ============================================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.metric-card {
  background-color: var(--admin-surface);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--forest-900);
  margin-bottom: 6px;
}

.metric-trend {
  font-size: 0.8rem;
  font-weight: 500;
}

.text-green { color: #1e7e45; }
.text-muted { color: var(--text-muted); }
.text-red { color: var(--accent-red); }

/* Card Panel */
.card-panel {
  background-color: var(--admin-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

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

.panel-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--forest-900);
}

.dashboard-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

/* Chart Representation */
.chart-container {
  height: 220px;
  display: flex;
  align-items: flex-end;
  padding-top: 20px;
}

.chart-bars {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.chart-col .bar {
  width: 100%;
  background-color: #d6e2d8;
  border-radius: 6px 6px 0 0;
  transition: height 0.6s ease, background-color 0.2s ease;
}

.chart-col .bar:hover {
  background-color: var(--forest-600);
}

.chart-col .bar.active {
  background-color: var(--forest-800);
}

.chart-col span {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Activity Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 220px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.84rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-content strong {
  display: block;
  color: var(--forest-900);
}

.activity-content span {
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* ============================================================
   DATA TABLES
   ============================================================ */
.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f7f9f7;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  width: 320px;
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.88rem;
  width: 100%;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-input, .text-input, .textarea-input {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.select-input:focus, .text-input:focus, .textarea-input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(29, 82, 49, 0.12);
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.data-table th {
  padding: 12px 14px;
  background-color: #f7f9f7;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: #fafbfa;
}

.table-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #eee;
}

.product-cell-title {
  font-weight: 600;
  color: var(--forest-900);
}

.product-cell-sku {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge--green { background-color: #e2f2e7; color: #1e7e45; }
.badge--gold { background-color: #faeed9; color: #91681a; }
.badge--blue { background-color: #e2eaf5; color: #205ca1; }
.badge--gray { background-color: #ececec; color: #555555; }
.badge--red { background-color: #fde8e8; color: #b83329; }

/* Action Buttons inside Table */
.action-btn-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.action-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.action-icon-btn:hover {
  background-color: #eef2ee;
  color: var(--forest-900);
}

.action-icon-btn--danger:hover {
  background-color: #fde8e8;
  color: var(--accent-red);
}

/* ============================================================
   SETTINGS FORM
   ============================================================ */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-900);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row > * {
  flex: 1;
}

.field-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ============================================================
   ADMIN MODALS
   ============================================================ */
.admin-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(13, 26, 18, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.admin-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal-box {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 30px;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal.is-active .admin-modal-box {
  transform: translateY(0);
}

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

.modal-head h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest-900);
}

.modal-close-btn {
  padding: 4px;
  color: var(--text-muted);
  border-radius: 4px;
}

.modal-close-btn:hover {
  color: var(--forest-900);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* ============================================================
   ADMIN TOAST
   ============================================================ */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--forest-900);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(60px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 2000;
}

.admin-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   POSITION BADGES & REORDERING GROUP
   ============================================================ */
.pos-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--forest-800);
  background-color: #e5ece6;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.pos-quick-select {
  padding: 4px 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--forest-900);
  background-color: #eef4f0;
  border: 1px solid #c9ded0;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.pos-quick-select:hover, .pos-quick-select:focus {
  background-color: #ffffff;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 2px rgba(29, 82, 49, 0.15);
}

.reorder-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.move-product-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background-color: #f0f4f1;
  color: var(--forest-800);
  border: 1px solid #d8e5db;
  cursor: pointer;
  transition: all 0.15s ease;
}

.move-product-btn:hover:not(:disabled) {
  background-color: var(--forest-800);
  color: #ffffff;
  border-color: var(--forest-800);
  transform: translateY(-1px);
}

.move-product-btn svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   VISUAL STUDIO & PHOTOGRAPHY CUSTOMIZER
   ============================================================ */
.settings-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest-900);
  margin-bottom: 16px;
}

.settings-section-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
}

.preset-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.preset-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.preset-btn {
  font-size: 0.72rem;
  font-weight: 500;
  background-color: #eaf1ec;
  color: var(--forest-800);
  border: 1px solid #d0dfd3;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  background-color: var(--forest-800);
  color: #ffffff;
  border-color: var(--forest-800);
}

.img-preview-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: #122419;
  box-shadow: var(--shadow-sm);
}

.img-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    position: static;
  }
  .admin-workspace {
    margin-left: 0;
    padding: 20px 16px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    flex-direction: column;
  }
}

/* ============================================================
   MULTI-PHOTO FORMULATION GALLERY & UPLOAD (UP TO 20 PHOTOS)
   ============================================================ */
.formulation-photos-panel {
  background: #fbfdfc;
  border: 1px solid #d4e2d7;
  border-radius: 12px;
  padding: 16px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.photos-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.photos-panel-title {
  font-weight: 700;
  color: var(--forest-900);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.photos-panel-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
}

.max-pill {
  font-size: 0.7rem;
  font-weight: 600;
  background: #eef5f0;
  color: var(--forest-800);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid #cce0d2;
}

.photos-panel-sub {
  color: var(--text-muted);
  font-size: 0.78rem;
  display: block;
  margin-top: 3px;
  line-height: 1.4;
}

.photo-dropzone {
  border: 2px dashed #b9d4c1;
  background: #ffffff;
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
}

.photo-dropzone:hover, .photo-dropzone.is-dragover {
  border-color: var(--forest-800);
  background: #f0f7f2;
  box-shadow: 0 4px 16px rgba(20, 53, 35, 0.08);
}

.dropzone-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8f3ec;
  color: var(--forest-800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  transition: transform 0.2s ease;
}

.photo-dropzone:hover .dropzone-icon-circle {
  transform: translateY(-2px);
  background: var(--forest-800);
  color: #ffffff;
}

.dropzone-instruction {
  font-size: 0.88rem;
  color: var(--text-main);
}

.dropzone-browse-link {
  background: none;
  border: none;
  color: var(--forest-800);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.dropzone-browse-link:hover {
  color: var(--accent-gold);
}

.dropzone-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.url-add-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.preset-pill-add {
  font-size: 0.72rem;
  font-weight: 500;
  background-color: #f0f4f1;
  color: var(--forest-800);
  border: 1px solid #d4e0d7;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-pill-add:hover {
  background-color: var(--forest-800);
  color: #ffffff;
  border-color: var(--forest-800);
}

.gallery-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #dbe6de;
  min-height: 40px;
}

.gallery-thumb-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #dbe6de;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumb-card:hover {
  border-color: var(--forest-800);
  box-shadow: 0 4px 12px rgba(20, 53, 35, 0.15);
  transform: translateY(-2px);
}

.gallery-thumb-card.is-cover {
  border: 2px solid #1e7e45;
  box-shadow: 0 0 0 2px rgba(30, 126, 69, 0.2);
}

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #1e7e45;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.gallery-thumb-index {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  z-index: 2;
}

.gallery-thumb-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.gallery-thumb-card:hover .gallery-thumb-actions {
  opacity: 1;
}

.thumb-action-btn {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.68rem;
  padding: 0;
  transition: all 0.15s ease;
}

.thumb-action-btn:hover {
  background: #111111;
  transform: scale(1.1);
}

.thumb-action-btn--delete:hover {
  background: #c53030;
}

.thumb-action-btn--cover:hover {
  background: #1e7e45;
}

