/* ═══════════════════════════════════════════════════════════════
   DULHAN FAMILY — Admin Panel Stylesheet
   Luxury Heritage Theme with Modern Dashboard Components
   ═══════════════════════════════════════════════════════════════ */

@import url('tokens.css');

/* ══════════════════════════════════════════════════════════
   LOGIN OVERLAY
   ══════════════════════════════════════════════════════════ */

.admin-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1A0500 0%, #3A0F0F 45%, #5C2010 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Decorative background pattern */
.admin-login-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(201,144,42,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201,144,42,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.admin-login-overlay.login-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* Card */
.admin-login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 253, 247, 0.97);
  border-radius: 22px;
  border: 1px solid rgba(201, 144, 42, 0.35);
  padding: 2.5rem 2rem;
  box-shadow:
    0 0 0 1px rgba(201,144,42,0.15),
    0 24px 64px rgba(0,0,0,0.45),
    0 8px 24px rgba(92,26,26,0.3);
  animation: loginCardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.admin-login-card.shake {
  animation: loginShake 0.45s ease;
}

@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  18%      { transform: translateX(-8px); }
  36%      { transform: translateX(8px); }
  54%      { transform: translateX(-6px); }
  72%      { transform: translateX(6px); }
  90%      { transform: translateX(-3px); }
}

/* Branding */
.login-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.login-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(92,26,26,0.25);
}

.login-brand-text {
  display: flex;
  flex-direction: column;
}

.login-title {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #3A0F0F;
  line-height: 1.1;
}

.login-title em {
  font-style: italic;
  color: #C9902A;
}

.login-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6B3820;
  font-weight: 600;
  margin-top: 0.1rem;
}

/* Divider */
.login-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #DFC898, transparent);
  margin-bottom: 1.5rem;
}

/* Heading */
.login-heading {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #3A0F0F;
  margin-bottom: 0.3rem;
}

.login-hint {
  font-size: 0.82rem;
  color: #6B3820;
  margin-bottom: 1.5rem;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.login-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #3A0F0F;
}

/* Input with icon */
.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 0.85rem;
  width: 16px;
  height: 16px;
  color: #9C6840;
  pointer-events: none;
  flex-shrink: 0;
}

.login-input {
  width: 100%;
  padding: 0.72rem 2.8rem 0.72rem 2.5rem;
  border: 1.5px solid #DFC898;
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #FFFDF7;
  color: #1A0A00;
  transition: all 0.2s ease;
  outline: none;
}

.login-input:focus {
  border-color: #5C1A1A;
  box-shadow: 0 0 0 3px rgba(92, 26, 26, 0.12);
  background: #FFF;
}

/* Eye toggle */
.login-eye-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  color: #9C6840;
  display: flex;
  align-items: center;
}

.login-eye-btn svg {
  width: 16px;
  height: 16px;
}

.login-eye-btn:hover {
  color: #5C1A1A;
}

/* Error message */
.login-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #C5221F;
  background: #FEE8E7;
  border: 1px solid #FFCDD2;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  animation: fadeIn 0.2s ease;
}

/* Submit button */
.login-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.5rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #5C1A1A 0%, #7B2828 100%);
  color: #FFFDF7;
  border: none;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(92, 26, 26, 0.38);
  transition: all 0.2s ease;
}

.login-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 26, 26, 0.5);
}

.login-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.login-submit-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.login-submit-btn:hover:not(:disabled) svg {
  transform: translateX(4px);
}

/* Footer note */
.login-footer-note {
  font-size: 0.74rem;
  color: #9C6840;
  text-align: center;
  margin-top: 1.5rem;
}

/* Mobile */
@media (max-width: 480px) {
  .admin-login-card {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
  }

  .login-heading {
    font-size: 1.45rem;
  }
}



/* Base Reset & Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.admin-body {
  font-family: var(--font-body, 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  background-color: #F8F5EE;
  color: var(--txt-1, #1A0A00);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Top Header / Navbar ── */
.admin-navbar {
  background: linear-gradient(135deg, #3A0F0F 0%, #5C1A1A 100%);
  color: #FFFDF7;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold, #C9902A);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(58, 15, 15, 0.25);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-nav-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.admin-logo {
  height: 42px;
  width: auto;
  border-radius: 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.admin-title-wrap {
  display: flex;
  flex-direction: column;
}

.admin-title {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FAF4E4;
  line-height: 1.1;
}

.admin-title em {
  font-style: italic;
  color: var(--gold-light, #E4B84A);
}

.admin-badge-portal {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-pale, #F0D8A0);
  font-weight: 600;
}

.admin-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFDF7;
  border: 1px solid rgba(240, 216, 160, 0.35);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-store-link:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--gold-light, #E4B84A);
  color: #FFF;
  transform: translateY(-1px);
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: linear-gradient(135deg, #C9902A 0%, #E4B84A 100%);
  color: #3A0F0F;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(201, 144, 42, 0.4);
  transition: all 0.2s ease;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 144, 42, 0.55);
}

/* ── Main Container ── */
.admin-main {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  flex: 1;
}

/* ── Metrics Cards Grid ── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: #FFFDF7;
  border: 1px solid #E8D5A8;
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 4px 16px rgba(26, 10, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold, #C9902A);
}

.metric-card.exclusive::after {
  background: #7B2828;
}

.metric-card.sarees::after {
  background: #C9902A;
}

.metric-card.alerts::after {
  background: #D9534F;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 10, 0, 0.08);
}

.metric-info h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B3820;
  margin-bottom: 0.35rem;
}

.metric-info .metric-num {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #3A0F0F;
  line-height: 1;
}

.metric-info .metric-sub {
  font-size: 0.75rem;
  color: #9C6840;
  margin-top: 0.35rem;
}

.metric-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: #F5EDDA;
  color: #5C1A1A;
}

/* ── Navigation Tabs ── */
.admin-tabs-nav {
  display: flex;
  gap: 0.5rem;
  background: #F0E6D2;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid #DFC898;
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.admin-tabs-nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  background: transparent;
  border: none;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #5C2B14;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-tab-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #3A0F0F;
}

.admin-tab-btn.active {
  background: #5C1A1A;
  color: #FFFDF7;
  box-shadow: 0 4px 12px rgba(92, 26, 26, 0.25);
}

.admin-tab-btn.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFF;
}

.tab-count {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background: #DFC898;
  color: #3A0F0F;
  font-weight: 700;
}

/* ── Shop Outlets Banner Switcher ── */
.shop-hero-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .shop-hero-banners {
    grid-template-columns: 1fr;
  }
}

.shop-outlet-banner {
  background: #FFFDF7;
  border: 2px solid #E8D5A8;
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.shop-outlet-banner:hover {
  border-color: var(--gold, #C9902A);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 10, 0, 0.08);
}

.shop-outlet-banner.active {
  border-color: #5C1A1A;
  background: linear-gradient(135deg, #FFFDF7 0%, #FAF0E4 100%);
  box-shadow: 0 6px 24px rgba(92, 26, 26, 0.14);
}

.shop-outlet-banner.sarees-theme.active {
  border-color: #C9902A;
  background: linear-gradient(135deg, #FFFDF7 0%, #FFF8E7 100%);
  box-shadow: 0 6px 24px rgba(201, 144, 42, 0.18);
}

.banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.outlet-tag-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background: #F5EDDA;
  color: #5C1A1A;
  border: 1px solid #DFC898;
}

.outlet-tag-pill.gold {
  background: #FFF3D6;
  color: #8C5E00;
  border-color: #E8C87A;
}

.banner-icon {
  font-size: 1.8rem;
}

.banner-name {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #3A0F0F;
  margin-bottom: 0.35rem;
}

.banner-desc {
  font-size: 0.84rem;
  color: #6B3820;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.banner-cats-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.cat-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  background: #EDE0C4;
  color: #3D1C00;
  border-radius: 6px;
  font-weight: 500;
}

.banner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed #DFC898;
}

.banner-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3A0F0F;
}

.btn-upload-direct {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  background: #5C1A1A;
  color: #FFF;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-upload-direct:hover {
  background: #7B2828;
}

.btn-upload-direct.gold {
  background: #C9902A;
  color: #1A0A00;
}

.btn-upload-direct.gold:hover {
  background: #E4B84A;
}

/* ── Content View Sections ── */
.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ── Product Upload Card & Form ── */
.form-card {
  background: #FFFDF7;
  border: 1px solid #E8D5A8;
  border-radius: 18px;
  padding: 2.25rem;
  box-shadow: 0 6px 30px rgba(26, 10, 0, 0.06);
  margin-bottom: 2.5rem;
}

.form-header {
  border-bottom: 1px solid #EDE0C4;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-header-title h2 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 2rem;
  font-weight: 700;
  color: #3A0F0F;
}

.form-header-title p {
  font-size: 0.86rem;
  color: #6B3820;
  margin-top: 0.2rem;
}

/* Outlet Radio Cards in Form */
.outlet-selection-wrap {
  margin-bottom: 2rem;
}

.section-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #3A0F0F;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label .required-star {
  color: #D9534F;
}

.outlet-radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .outlet-radios {
    grid-template-columns: 1fr;
  }
}

.outlet-radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid #E8D5A8;
  border-radius: 14px;
  background: #FAF7F0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.outlet-radio-card:hover {
  border-color: var(--gold, #C9902A);
  background: #FFFDF7;
}

.outlet-radio-card input[type="radio"] {
  accent-color: #5C1A1A;
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
}

.outlet-radio-card.selected {
  border-color: #5C1A1A;
  background: #FFF5EE;
  box-shadow: 0 4px 16px rgba(92, 26, 26, 0.12);
}

.outlet-radio-card.selected.sarees-card {
  border-color: #C9902A;
  background: #FFFBF0;
  box-shadow: 0 4px 16px rgba(201, 144, 42, 0.15);
}

.outlet-radio-content h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3A0F0F;
  margin-bottom: 0.25rem;
}

.outlet-radio-content p {
  font-size: 0.8rem;
  color: #6B3820;
  line-height: 1.4;
}

/* Image Upload Section — Minimum 2 Images */
.image-upload-section {
  background: #FAF7EE;
  border: 2px dashed #DFC898;
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  transition: all 0.25s ease;
  position: relative;
}

.image-upload-section.dragover {
  background: #FFF2DC;
  border-color: #C9902A;
  box-shadow: 0 0 0 4px rgba(201, 144, 42, 0.2);
}

.image-upload-section.has-error {
  border-color: #D9534F;
  background: #FFF5F5;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.image-upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.image-count-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.image-count-indicator.warning {
  background: #FEE8E7;
  color: #C92A2A;
  border: 1px solid #F5C6CB;
}

.image-count-indicator.success {
  background: #E6F4EA;
  color: #137333;
  border: 1px solid #CEEAD6;
}

.dropzone-inner {
  text-align: center;
  padding: 2rem 1rem;
  cursor: pointer;
  border: 1px dashed #C9A96E;
  border-radius: 12px;
  background: #FFFDF7;
  transition: all 0.2s ease;
}

.dropzone-inner:hover {
  background: #FAF3E3;
  border-color: #5C1A1A;
}

.dropzone-icon {
  font-size: 2.8rem;
  margin-bottom: 0.65rem;
}

.dropzone-text-primary {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3A0F0F;
  margin-bottom: 0.3rem;
}

.dropzone-text-sub {
  font-size: 0.82rem;
  color: #7B3E18;
}

.url-add-row {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.url-add-row .url-input {
  min-width: 0;
}

.url-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid #DFC898;
  border-radius: 8px;
  font-size: 0.85rem;
  background: #FFFDF7;
}

.btn-add-url {
  padding: 0.65rem 1.25rem;
  background: #5C1A1A;
  color: #FFF;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-add-url:hover {
  background: #7B2828;
}

/* Uploaded Images Preview Strip */
.images-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.image-preview-item {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #DFC898;
  background: #EDE0C4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.image-preview-item.is-cover {
  border-color: #C9902A;
  box-shadow: 0 0 0 3px rgba(201, 144, 42, 0.35);
}

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

.cover-badge-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #C9902A;
  color: #1A0A00;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.preview-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 10, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.35rem 0.2rem;
  backdrop-filter: blur(2px);
}

.preview-btn {
  background: none;
  border: none;
  color: #FFF;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.preview-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #FFE699;
}

.preview-btn.delete-btn:hover {
  background: rgba(217, 83, 79, 0.85);
  color: #FFF;
}

/* Preset Images Drawer */
.preset-sample-btn {
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  background: #EDE0C4;
  border: 1px solid #DFC898;
  border-radius: 6px;
  color: #3D1C00;
  cursor: pointer;
  font-weight: 600;
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.preset-sample-btn:hover {
  background: #DFC898;
}

/* Form Fields Grid */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #3A0F0F;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid #DFC898;
  border-radius: 9px;
  font-size: 0.9rem;
  background: #FFFDF7;
  color: #1A0A00;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #5C1A1A;
  box-shadow: 0 0 0 3px rgba(92, 26, 26, 0.12);
  background: #FFF;
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

/* Category Selection with Quick Add */
.cat-select-wrap {
  display: flex;
  gap: 0.5rem;
}

.cat-select-wrap select {
  flex: 1;
}

.btn-inline-add {
  padding: 0.65rem 0.9rem;
  background: #F0E6D2;
  border: 1px solid #DFC898;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #3A0F0F;
  cursor: pointer;
  white-space: nowrap;
}

.btn-inline-add:hover {
  background: #DFC898;
}

/* Price & Discount Calc */
.price-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.price-currency {
  position: absolute;
  left: 0.9rem;
  font-weight: 700;
  color: #6B3820;
}

.price-input-wrap .form-control {
  padding-left: 2rem;
}

.discount-preview-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: #E8F5E9;
  color: #2E7D32;
  margin-top: 0.35rem;
  display: inline-block;
}

/* Size Chips Picker */
.size-chips-wrap, .occasion-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.size-chip-lbl, .occasion-chip-lbl {
  cursor: pointer;
}

.size-chip-lbl input, .occasion-chip-lbl input {
  display: none;
}

.size-chip-span, .occasion-chip-span {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid #DFC898;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5C2B14;
  background: #FAF7F0;
  transition: all 0.15s ease;
}

.size-chip-lbl input:checked + .size-chip-span,
.occasion-chip-lbl input:checked + .occasion-chip-span {
  background: #5C1A1A;
  color: #FFFDF7;
  border-color: #5C1A1A;
}

/* Color Variant Row */
.color-variants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.color-variant-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  background: #FFFDF7;
  border: 1px solid #DFC898;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.color-dot-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-remove-color {
  background: none;
  border: none;
  color: #9C6840;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0 0.15rem;
}

.btn-remove-color:hover {
  color: #D9534F;
}

.add-color-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.color-picker-input {
  width: 44px;
  height: 38px;
  border: 1px solid #DFC898;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
}

/* Form Footer Actions */
.form-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #EDE0C4;
  padding-top: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-reset-form {
  padding: 0.75rem 1.4rem;
  background: #F0E6D2;
  color: #5C2B14;
  border: 1px solid #DFC898;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-form:hover {
  background: #DFC898;
}

.btn-submit-publish {
  padding: 0.85rem 2.2rem;
  background: linear-gradient(135deg, #5C1A1A 0%, #7B2828 100%);
  color: #FFFDF7;
  border: 1px solid #4A1212;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(92, 26, 26, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-submit-publish:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 26, 26, 0.45);
}

/* ── Products Inventory Table View ── */
.table-card {
  background: #FFFDF7;
  border: 1px solid #E8D5A8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 10, 0, 0.05);
}

.table-toolbar {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #EDE0C4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #FAF7F0;
}

.table-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #FFFDF7;
  border: 1px solid #DFC898;
  border-radius: 9px;
  padding: 0.5rem 0.85rem;
  width: 320px;
  max-width: 100%;
}

.table-search-input {
  border: none;
  background: transparent;
  font-size: 0.86rem;
  color: #1A0A00;
  width: 100%;
  outline: none;
}

.table-filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.table-select {
  padding: 0.5rem 0.85rem;
  border: 1px solid #DFC898;
  border-radius: 8px;
  font-size: 0.82rem;
  background: #FFFDF7;
  color: #3A0F0F;
  font-weight: 500;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.products-data-table th {
  background: #F5EDDA;
  color: #3A0F0F;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #DFC898;
}

.products-data-table td {
  padding: 1rem;
  border-bottom: 1px solid #EDE0C4;
  vertical-align: middle;
}

.products-data-table tbody tr:hover {
  background: #FFF8E7;
}

.table-img-cell {
  position: relative;
  width: 58px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #DFC898;
  background: #EDE0C4;
  flex-shrink: 0;
}

.table-img-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-count-tag {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.75);
  color: #FFF;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.product-row-name {
  font-weight: 700;
  color: #3A0F0F;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.product-row-sku {
  font-size: 0.72rem;
  color: #8C5E00;
  font-weight: 600;
  font-family: monospace;
}

.outlet-badge-table {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
}

.outlet-badge-table.exclusive {
  background: #FEECEB;
  color: #7B2828;
  border: 1px solid #F5C6CB;
}

.outlet-badge-table.sarees {
  background: #FFF3D6;
  color: #8C5E00;
  border: 1px solid #E8C87A;
}

.status-toggle-btn {
  border: 1px solid #DFC898;
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  background: #FFF;
  transition: all 0.2s ease;
}

.status-toggle-btn.in-stock {
  background: #E6F4EA;
  color: #137333;
  border-color: #CEEAD6;
}

.status-toggle-btn.low-stock {
  background: #FEF7E0;
  color: #B06000;
  border-color: #FEEFC3;
}

.status-toggle-btn.out-of-stock {
  background: #FCE8E6;
  color: #C5221F;
  border-color: #FAD2CF;
}

.table-actions-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-tbl-action {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #DFC898;
  background: #FFFDF7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tbl-action:hover {
  background: #5C1A1A;
  color: #FFF;
  border-color: #5C1A1A;
}

.btn-tbl-action.delete-action:hover {
  background: #D9534F;
  border-color: #D9534F;
  color: #FFF;
}

/* ── Live Quick View / Modal ── */
.admin-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 10, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-modal-overlay.open {
  display: flex;
}

.admin-modal-box {
  background: #FFFDF7;
  border-radius: 16px;
  border: 1px solid #E8D5A8;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 64px rgba(26, 10, 0, 0.25);
  animation: modalPop 0.25s ease;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.admin-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #EDE0C4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-title {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #3A0F0F;
}

.admin-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #7B3E18;
}

.admin-modal-body {
  padding: 1.5rem;
}

/* ── Export & Backup Box ── */
.export-card {
  background: #FFFDF7;
  border: 1px solid #E8D5A8;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.export-code-box {
  background: #231B15;
  color: #E8D5A8;
  padding: 1rem;
  border-radius: 10px;
  font-family: monospace;
  font-size: 0.8rem;
  max-height: 350px;
  overflow-y: auto;
  margin: 1rem 0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ── Toast Notifications ── */
.toast-box {
  position: fixed;
  bottom: 1.5rem;
  right: 1rem;
  left: 1rem;
  max-width: 420px;
  margin: 0 auto;
  background: #3A0F0F;
  color: #FFFDF7;
  border-left: 4px solid var(--gold, #C9902A);
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-box.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-box.toast-error {
  border-left-color: #D9534F;
  background: #501313;
}

.toast-box.toast-success {
  border-left-color: #2E7D32;
}

/* ════════════════════════════════════════════
   MOBILE RESPONSIVE OVERRIDES
   ════════════════════════════════════════════ */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .admin-main {
    padding: 1.5rem 1rem 3rem;
  }

  .form-card {
    padding: 1.5rem;
  }

  .export-card {
    padding: 1.5rem;
  }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {
  /* Navbar */
  .admin-navbar {
    padding: 0.6rem 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .admin-logo {
    height: 32px;
  }

  .admin-title {
    font-size: 1.1rem;
  }

  .admin-badge-portal {
    font-size: 0.6rem;
  }

  .admin-nav-right {
    gap: 0.5rem;
  }

  .btn-store-link span {
    display: none; /* hide label, keep icon */
  }

  .btn-store-link {
    padding: 0.45rem 0.65rem;
  }

  .btn-primary-action span {
    display: none;
  }

  .btn-primary-action {
    padding: 0.5rem 0.7rem;
  }

  /* Main padding */
  .admin-main {
    padding: 1rem 0.75rem 3rem;
  }

  /* Metrics grid — 2 columns on small phones */
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .metric-card {
    padding: 0.9rem 1rem;
  }

  .metric-info .metric-num {
    font-size: 1.75rem;
  }

  .metric-icon-wrap {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  /* Tabs */
  .admin-tab-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    gap: 0.3rem;
  }

  /* Form */
  .form-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .form-header-title h2 {
    font-size: 1.5rem;
  }

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  /* Shop banners */
  .shop-outlet-banner {
    padding: 1rem;
  }

  .banner-name {
    font-size: 1.3rem;
  }

  .banner-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .btn-upload-direct {
    width: 100%;
    text-align: center;
  }

  /* Table toolbar */
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
  }

  .table-search-wrap {
    width: 100%;
  }

  .table-filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .table-select {
    width: 100%;
  }

  /* Export panel buttons */
  #panel-export .export-card > div {
    flex-direction: column;
  }

  .export-card .btn-primary-action,
  .export-card .btn-store-link,
  .export-card .btn-reset-form {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Toast — full width on mobile */
  .toast-box {
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
    bottom: 1rem;
  }

  /* Image upload */
  .dropzone-inner {
    padding: 1.25rem 0.75rem;
  }

  .dropzone-text-primary {
    font-size: 0.9rem;
  }

  /* Color add row */
  .add-color-row {
    flex-wrap: wrap;
  }

  .add-color-row .form-control {
    min-width: 0;
    flex: 1;
  }

  /* Form footer */
  .form-footer-actions {
    flex-direction: column-reverse;
  }

  .btn-submit-publish,
  .btn-reset-form {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Modal */
  .admin-modal-overlay {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .admin-modal-box {
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
  }
}
