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

:root {
  --admin-maroon: #7A1526;
  --admin-dark: #2A090E;
  --admin-gold: #C5A059;
  --admin-gold-light: #F4E8D1;
  --admin-bg: #F8F9FA;
  --admin-card: #FFFFFF;
  --admin-text: #1E1A1A;
  --admin-muted: #6C757D;
  --admin-border: #E5E7EB;
  --admin-success: #16A34A;
  --admin-info: #2563EB;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background: var(--admin-dark);
  color: #FFF;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
  border-right: 1px solid rgba(197, 160, 89, 0.3);
  max-height: 100vh;
  overflow: hidden;
}

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sidebar-logo {
  height: 38px;
  background: white;
  padding: 4px;
  border-radius: 6px;
}

.sidebar-brand-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--admin-gold);
}

.sidebar-brand-text span {
  font-size: 0.65rem;
  color: #D1C5C5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--admin-gold) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--admin-gold);
  border-radius: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #D5CECE;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-item:hover, .nav-item.active {
  background: var(--admin-maroon);
  color: #FFF;
}

.nav-item.active {
  border-left: 4px solid var(--admin-gold);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: #A39696;
  flex-shrink: 0;
}

/* B2C Subtab Pills */
.b2c-tab-pill {
  padding: 10px 20px;
  border-radius: 8px;
  background: #FFF;
  border: 1px solid var(--admin-border);
  color: var(--admin-dark);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.b2c-tab-pill:hover, .b2c-tab-pill.active {
  background: var(--admin-maroon);
  color: #FFF;
  border-color: var(--admin-maroon);
  box-shadow: 0 4px 12px rgba(122, 21, 38, 0.25);
}

/* Main Content */
.admin-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: #FFF;
  border-bottom: 1px solid var(--admin-border);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-title h2 {
  font-size: 1.4rem;
  color: var(--admin-maroon);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--admin-maroon);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.logout-btn {
  background: #FEE2E2;
  color: #991B1B;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.logout-btn:hover {
  background: #FCA5A5;
}

.store-preview-btn {
  background: var(--admin-gold-light);
  color: #78350F;
  border: 1px solid var(--admin-gold);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-content {
  padding: 32px;
  flex: 1;
}

/* Dashboard Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  background: #FFF;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 16px;
}

.kpi-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8EBEF;
  color: var(--admin-maroon);
}

.kpi-content h5 {
  font-size: 0.78rem;
  color: var(--admin-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.kpi-content strong {
  font-size: 1.5rem;
  color: var(--admin-text);
}

/* Tabs & Sections */
.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

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

.btn-primary {
  background: var(--admin-maroon);
  color: #FFF;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #520E1A;
}

.btn-secondary {
  background: #FFF;
  color: var(--admin-text);
  border: 1px solid var(--admin-border);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: #F3F4F6;
}

/* Data Table */
.table-card {
  background: #FFF;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
}

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

.admin-table th {
  background: #F9FAFB;
  padding: 14px 18px;
  font-weight: 600;
  color: #4B5563;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

.admin-table tr:hover {
  background: #FAF5F6;
}

/* Multi Checkbox Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  background: #F9FAFB;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  text-transform: capitalize;
}

.checkbox-item input {
  accent-color: var(--admin-maroon);
  width: 16px;
  height: 16px;
}

/* Color Tags */
.color-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.color-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF;
  border: 1px solid var(--admin-border);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
}

.color-tag-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #CCC;
}

.color-tag-remove {
  cursor: pointer;
  color: #EF4444;
  font-weight: 700;
  margin-left: 4px;
}

/* Pricing Tool Cards */
.pricing-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.simulator-box {
  background: #FFF;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.simulator-results {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sim-country-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #F9FAFB;
  border: 1px solid var(--admin-border);
}

.sim-country-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.sim-formula {
  font-size: 0.78rem;
  color: var(--admin-muted);
}

.sim-final-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--admin-maroon);
}

/* Modal */
.admin-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-backdrop.active {
  display: flex;
}

.admin-modal {
  background: #FFF;
  width: 100%;
  max-width: 780px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.admin-modal-header {
  padding: 18px 24px;
  background: #F9FAFB;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--admin-maroon);
  box-shadow: 0 0 0 3px rgba(122, 21, 38, 0.1);
}

/* Status Badges */
.badge-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-status.paid, .badge-status.delivered {
  background: #DCFCE7;
  color: #15803D;
}

.badge-status.pending, .badge-status.placed {
  background: #FEF3C7;
  color: #B45309;
}

.badge-status.shipped, .badge-status.in_production {
  background: #DBEAFE;
  color: #1D4ED8;
}

.badge-status.failed, .badge-status.cancelled {
  background: #FEE2E2;
  color: #B91C1C;
}

.badge-status.courier_missed {
  background: #F3E8FF;
  color: #6B21A8;
  border: 1px solid #D8B4FE;
}

/* Clickable KPI Cards */
.clickable-kpi-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.clickable-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(122, 21, 38, 0.15);
  border-color: var(--admin-maroon);
}

/* Login Box */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  background: radial-gradient(circle at center, #5A0E1A, #2A090E);
}

.login-card {
  background: #FFF;
  width: 100%;
  max-width: 440px;
  padding: 36px;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.3);
  text-align: center;
}

.login-logo {
  max-width: 160px;
  margin-bottom: 18px;
}

/* Responsive Admin Dashboard */
@media (max-width: 992px) {
  body {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    position: relative;
    border-right: none;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
  }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-item {
    white-space: nowrap;
    padding: 8px 12px;
  }
  .admin-main {
    margin-left: 0;
  }
  .admin-topbar {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .admin-content {
    padding: 16px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .table-responsive,
  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Shopdeck Subtab Bar */
.shopdeck-subtab-bar {
  display: flex;
  gap: 8px;
  background: #FFFFFF;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.shopdeck-subtab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: #F3F4F6;
  color: var(--admin-text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.shopdeck-subtab-btn:hover {
  background: #E5E7EB;
  color: var(--admin-maroon);
}

.shopdeck-subtab-btn.active {
  background: var(--admin-maroon);
  color: #FFFFFF;
  border-color: var(--admin-maroon);
  box-shadow: 0 2px 8px rgba(122, 21, 38, 0.25);
}

@media (max-width: 600px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .sim-country-row {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }
}

/* Shopdeck Analytics Charts & Visual Insights */
.chart-card {
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 10px;
}

.chart-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--admin-maroon);
  display: flex;
  align-items: center;
  gap: 8px;
}

.insight-box {
  background: linear-gradient(135deg, #FFF9FA 0%, #FFF5F7 100%);
  border: 1px solid #F3C6CF;
  border-left: 4px solid var(--admin-maroon);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.insight-box h5 {
  font-size: 0.9rem;
  color: var(--admin-maroon);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.insight-box p {
  font-size: 0.83rem;
  color: #4B5563;
  line-height: 1.5;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--admin-maroon), var(--admin-gold));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.funnel-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.funnel-step {
  background: #F9FAFB;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.funnel-step-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-text);
}

.badge-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.badge-gold {
  background: #FEF3C7;
  color: #92400E;
}

.badge-maroon {
  background: #FEE2E2;
  color: #991B1B;
}

.badge-green {
  background: #DCFCE7;
  color: #166534;
}

.badge-blue {
  background: #DBEAFE;
  color: #1E40AF;
}

/* Latest Trending Products View (Image 2 style) */
.trending-cat-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--admin-text);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-weight: 500;
}

.trending-cat-btn:hover {
  background: #F1F5F9;
  color: var(--admin-maroon);
}

.trending-cat-btn.active {
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 700;
  border-left: 3px solid #2563EB;
}

.trending-cat-badge {
  font-size: 0.72rem;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.trending-cat-btn.active .trending-cat-badge {
  background: #DBEAFE;
  color: #1D4ED8;
}

/* Product Card */
.trending-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trending-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.trending-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #B45309;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 4px;
}

.trending-card-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.4);
  color: #FFF;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.trending-card-fav:hover {
  background: #EF4444;
  color: #FFF;
}

.trending-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: #111;
  overflow: hidden;
  cursor: pointer;
}

.trending-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.trending-card:hover .trending-media-img {
  transform: scale(1.05);
}

.trending-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(225, 48, 108, 0.9);
  border: 2px solid #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.5);
  transition: all 0.25s ease;
  z-index: 4;
}

.trending-media-wrap:hover .trending-play-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: #E1306C;
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.7);
}

.trending-play-hint {
  position: absolute;
  top: 66%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 4;
}

.trending-media-wrap:hover .trending-play-hint {
  opacity: 1;
}

.trending-status-pill {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.trending-info-box {
  padding: 12px 14px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trending-metrics-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #334155;
  font-weight: 600;
}

.trending-metrics-views {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #0F172A;
  font-weight: 700;
}

.trending-metrics-likes {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #E1306C;
  font-weight: 600;
}

.trending-action-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 12px 14px;
}

.btn-trending-dismiss {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #FECDD3;
  background: #FFF1F2;
  color: #E11D48;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.btn-trending-dismiss:hover {
  background: #E11D48;
  color: #FFF;
}

.btn-trending-source {
  flex: 1;
  height: 32px;
  border-radius: 6px;
  background: #2563EB;
  color: #FFF;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s ease;
}

.btn-trending-source:hover {
  background: #1D4ED8;
}

.btn-trending-source.sourced {
  background: #16A34A;
}

.btn-trending-wa {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #BBF7D0;
  background: #DCFCE7;
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-trending-wa:hover {
  background: #16A34A;
  color: #FFF;
}

.trending-links-footer {
  padding: 8px 14px;
  background: #F8FAFC;
  border-top: 1px solid #F1F5F9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
}

/* ==========================================================================
   SAREE PHOTOS LOCAL UPLOADER & B2C DISPLAY GALLERY
   ========================================================================== */
.saree-photo-management-section {
  background: #FCFDFE;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px;
  margin-top: 8px;
}

.saree-photo-info-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 4px solid #D97706;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.saree-photo-dropzone {
  border: 2px dashed #CBD5E1;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.saree-photo-dropzone:hover {
  border-color: var(--admin-maroon);
  background: #FDF2F4;
}

.saree-photo-dropzone.dragover {
  border-color: var(--admin-gold);
  background: #FEF3C7;
  transform: scale(1.01);
}

.saree-photos-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.saree-photo-card {
  position: relative;
  background: #FFF;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}

.saree-photo-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.saree-photo-card.is-main {
  border-color: #D97706;
  box-shadow: 0 0 0 1px #D97706, 0 4px 12px rgba(217, 119, 6, 0.15);
}

.photo-badge-main {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #7A1526, #3D0016);
  color: #F4E8D1;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid #D4AF37;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 0.02em;
}

.photo-badge-gallery {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(17, 24, 39, 0.75);
  color: #FFF;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.saree-photo-thumb-wrap {
  position: relative;
  width: 100%;
  height: 130px;
  background: #FAF6F0;
  overflow: hidden;
}

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

.photo-card-actions {
  padding: 6px 8px;
  background: #FFF;
  border-top: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.photo-card-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.btn-set-main {
  width: 100%;
  font-size: 0.65rem;
  font-weight: 700;
  color: #7A1526;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 4px;
  padding: 4px 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.btn-set-main:hover {
  background: #FDE68A;
  color: #2A090E;
}

.btn-photo-nav {
  padding: 2px 6px;
  font-size: 0.7rem;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  cursor: pointer;
  color: #334155;
}

.btn-photo-nav:hover:not(:disabled) {
  background: #E2E8F0;
  color: #0F172A;
}

.btn-photo-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-photo-delete {
  padding: 2px 6px;
  font-size: 0.7rem;
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

.btn-photo-delete:hover {
  background: #EF4444;
  color: #FFF;
}



