/* Google Fonts preloaded via index.html <link> for optimal performance */


:root {
  --font-family: 'Outfit', sans-serif;
  
  /* Corporate Colors */
  --corporate-yellow: #fccf17;
  --corporate-dark: #1e1e1e;
  --corporate-black: #111111;
  --corporate-yellow-hover: #e5bd12;

  /* Theme Defaults (Light/Admin Panel) */
  --bg-primary: #f4f6f9;
  --bg-secondary: #ffffff;
  --bg-sidebar: #ffffff;
  --text-main: #333333;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --accent-color: #4f46e5;
  --accent-hover: #4338ca;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-sidebar: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
}

/* --- Customer UI Specifics --- */
.customer-header-top {
  background-color: var(--corporate-dark);
  color: #ffffff;
  font-size: 14px;
  padding: 8px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.customer-nav {
  background-color: var(--corporate-dark);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 5%;
  border-top: 1px solid #2e2e2e;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 90px;
}

.customer-logo-container {
  background-color: var(--corporate-yellow);
  padding: 10px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  color: #000000;
  line-height: 1.1;
  text-align: center;
}

.customer-logo-text {
  font-size: 24px;
  letter-spacing: 0.5px;
}

.customer-logo-subtext {
  font-size: 22px;
  letter-spacing: 1px;
}

.customer-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.customer-menu-link {
  color: #ffffff;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  cursor: pointer;
}

.customer-menu-link:hover {
  color: var(--corporate-yellow);
}

.customer-contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  color: #ffffff;
  font-size: 14px;
}

.customer-phone-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.customer-phone-nums {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Floating Actions */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: #25d366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform 0.2s;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

.floating-call {
  position: fixed;
  bottom: 92px;
  left: 24px;
  background-color: #0f172a;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform 0.2s;
}

.floating-call:hover {
  transform: scale(1.1);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background-color: #000;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.slide-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.slide-item.active {
  opacity: 1;
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 650px;
}

.slide-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.slide-subtitle {
  font-size: 20px;
  color: var(--corporate-yellow);
  margin-bottom: 24px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(8px);
  color: white;
  padding: 16px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  border-top: 2px solid var(--corporate-yellow);
}

.cookie-btn {
  background-color: white;
  color: #000;
  padding: 8px 24px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s;
}

.cookie-btn:hover {
  opacity: 0.9;
}

/* --- Admin Panel Specifics --- */
.admin-container {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-primary);
}

.admin-sidebar {
  width: 280px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.admin-sidebar-header {
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-sidebar-logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--text-main);
}

.admin-user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  margin: 0 16px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  text-align: center;
}

.admin-user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--corporate-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  color: #000;
  margin-bottom: 8px;
  border: 3px solid var(--border-color);
}

.admin-user-name {
  font-weight: 600;
  font-size: 15px;
}

.admin-user-badge {
  font-size: 11px;
  color: var(--success-color);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
  font-weight: 500;
}

.admin-nav-section-title {
  padding: 12px 24px 6px 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  color: var(--text-main);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background-color: rgba(79, 70, 229, 0.08);
  color: var(--accent-color);
  border-left: 4px solid var(--accent-color);
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-navbar {
  height: 70px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.admin-content-area {
  padding: 32px;
  flex: 1;
  overflow-y: auto;
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.stat-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.stat-title {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  margin-top: 8px;
}

.stat-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  cursor: pointer;
}

.stat-sparkline {
  height: 50px;
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.spark-bar {
  flex: 1;
  background-color: rgba(79, 70, 229, 0.2);
  border-radius: 2px 2px 0 0;
  min-height: 5px;
}

/* Dashboard Quick Links & System State */
.dashboard-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.dashboard-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.dashboard-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.quick-link-btn {
  padding: 16px;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.quick-link-btn:hover {
  opacity: 0.9;
}

/* Data Table Styles */
.data-table-container {
  overflow-x: auto;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.data-table th {
  background-color: var(--bg-primary);
  padding: 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

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

.data-table tr:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-family);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

/* ── Admin Module Form ── */
.module-form {
  background-color: var(--bg-primary);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.module-form.editing {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.module-form h4 {
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 16px;
}

.module-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}

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

.module-form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.module-form-field.full-width {
  grid-column: 1 / -1;
}

.module-form-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding-top: 8px;
}

/* ── Image Upload Zone ── */
.image-upload-zone {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-upload-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-family);
  transition: all 0.25s ease;
}

.image-upload-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background-color: rgba(79, 70, 229, 0.04);
}

.image-upload-btn.has-image {
  border-color: var(--success-color);
  color: var(--success-color);
  border-style: solid;
}

.image-upload-btn input[type="file"] {
  display: none;
}

.image-upload-preview {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.image-upload-preview img {
  height: 56px;
  width: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.image-upload-preview .badge-ok {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--success-color);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.image-upload-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Data Table Action Buttons ── */
.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s;
  font-family: var(--font-family);
}

.action-btn.edit {
  color: var(--accent-color);
}
.action-btn.edit:hover {
  background: rgba(79, 70, 229, 0.08);
}

.action-btn.delete {
  color: var(--danger-color);
}
.action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.08);
}

.data-table tr.row-editing {
  background-color: rgba(79, 70, 229, 0.04) !important;
}

/* Spreadsheet Editor */
.sheet-editor-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;
}

.sheet-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.sheet-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
}

.sheet-table th, .sheet-table td {
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  font-size: 13px;
}

.sheet-table th {
  background: var(--bg-primary);
  font-weight: 600;
}

.sheet-input {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  padding: 4px;
  font-size: 13px;
  color: var(--text-main);
}

.sheet-input:focus {
  background: var(--bg-primary);
  border-color: var(--accent-color);
  border-radius: var(--radius-sm);
}

.btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: var(--bg-primary);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--border-color);
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}
.btn-danger:hover {
  opacity: 0.9;
}

.badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.badge-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success-color);
}
.badge-danger {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--danger-color);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent-color);
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* ==========================================================================
   RESPONSIVE — TABLET (≤1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Customer Nav */
  .customer-header-top span:first-child {
    display: none;
  }
  .customer-nav {
    padding: 0 3%;
  }
  .customer-menu {
    gap: 16px;
  }
  .customer-menu-link {
    font-size: 13px;
  }
  .customer-contact-info {
    display: none;
  }

  /* Hero */
  .hero-slider {
    height: 460px;
  }
  .slide-title {
    font-size: 36px;
  }

  /* Admin */
  .admin-sidebar {
    width: 240px;
  }
  .admin-content-area {
    padding: 24px;
  }
  .dashboard-row {
    grid-template-columns: 1fr;
  }

  /* Products */
  .products-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   GLOBAL LAYOUT OVERFLOW PROTECTION
   ========================================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* ==========================================================================
   RESPONSIVE — MOBILE (≤768px)
   ========================================================================== */
@media (max-width: 768px) {

  /* ── Customer: Top Header ── */
  .customer-header-top {
    display: none !important;
  }

  /* ── Customer: Navigation Bar ── */
  .customer-nav {
    height: 60px !important;
    padding: 0 16px !important;
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .customer-logo-container {
    padding: 6px 14px !important;
    border-radius: var(--radius-sm);
    height: auto !important;
    align-self: center !important;
  }

  .customer-logo-text {
    font-size: 15px !important;
    line-height: 1.1;
  }

  .customer-logo-subtext {
    font-size: 13px !important;
    line-height: 1.1;
  }

  /* Desktop menu hidden on mobile */
  .customer-menu {
    display: none !important;
  }

  /* Hide contact info & language selector on mobile navbar */
  .customer-contact-info,
  .customer-lang-selector {
    display: none !important;
  }

  /* Mobile Hamburger Button */
  .mobile-menu-btn {
    display: flex !important;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
  }
  .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* ── Mobile Nav Overlay & Drawer ── */
  .mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 10000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .mobile-nav-overlay.open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .mobile-nav-drawer {
    width: 290px;
    max-width: 82vw;
    background: var(--corporate-dark, #1e1e1e);
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
    border-right: 2px solid var(--corporate-yellow, #fccf17);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .mobile-nav-overlay.open .mobile-nav-drawer {
    transform: translateX(0) !important;
  }

  .mobile-nav-header {
    padding: 0 16px 16px;
    border-bottom: 1px solid #2e2e2e;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-nav-item {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item.active {
    background: rgba(252, 207, 23, 0.12);
    color: var(--corporate-yellow);
  }

  .mobile-nav-contact {
    padding: 16px 20px;
    margin-top: auto;
    border-top: 1px solid #2e2e2e;
    color: #94a3b8;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* ── Global Container Padding Reduction (Eliminates Horizontal Overflow) ── */
  div[style*="padding: 80px 10%"],
  div[style*="padding: 60px 10%"],
  section[style*="padding: 80px 10%"],
  section[style*="padding: 60px 10%"] {
    padding: 32px 16px !important;
  }

  /* Inner Card Padding Reduction */
  div[style*="padding: 50px"],
  div[style*="padding: 40px"] {
    padding: 20px 16px !important;
  }

  /* Responsive Grids on Mobile: collapse rigid minmax templates */
  div[style*="minmax(350px"],
  div[style*="minmax(320px"],
  div[style*="minmax(300px"],
  div[style*="minmax(280px"],
  div[style*="minmax(250px"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Specific Layout Overrides */
  .service-detail-layout,
  .product-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .product-detail-visual {
    height: 280px !important;
  }

  .product-detail-cta {
    flex-direction: column !important;
  }

  .product-detail-cta a {
    width: 100% !important;
    justify-content: center !important;
  }

  .product-detail-table td {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }

  /* ── Hero Slider ── */
  .hero-slider {
    height: 280px !important;
  }
  .slide-title {
    font-size: 20px !important;
    margin-bottom: 8px !important;
  }
  .slide-subtitle {
    font-size: 13px !important;
    margin-bottom: 14px !important;
    max-width: 100% !important;
  }
  .slide-item {
    padding: 0 16px !important;
  }
  .slide-content {
    max-width: 100% !important;
  }

  /* ── Products Catalog Page ── */
  .products-sidebar {
    display: none !important;
  }
  .products-cat-chips {
    display: flex !important;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    scrollbar-width: none;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .products-cat-chips::-webkit-scrollbar {
    display: none;
  }
  .cat-chip {
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
  }
  .cat-chip.active {
    background: var(--corporate-yellow);
    border-color: var(--corporate-yellow);
    color: #000;
  }

  .products-filter-form {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px 14px !important;
    gap: 12px !important;
  }
  .products-filter-form > div {
    min-width: 0 !important;
    width: 100% !important;
  }
  .products-filter-sort {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .products-filter-sort select {
    flex: 1 !important;
  }

  /* ── Admin Panel ── */
  .admin-container {
    position: relative;
  }
  .admin-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 300;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .admin-sidebar.mobile-open {
    left: 0;
  }
  .admin-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 299;
    backdrop-filter: blur(2px);
  }
  .admin-sidebar-backdrop.visible {
    display: block;
  }
  .admin-main {
    width: 100%;
  }
  .admin-navbar {
    padding: 0 16px;
  }
  .admin-content-area {
    padding: 16px;
  }

  /* Stats Grid: 1 column on mobile */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat-value {
    font-size: 24px;
  }

  /* Dashboard row: single column */
  .dashboard-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Quick links: 2 columns */
  .quick-links-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Data Table: horizontal scroll wrapper */
  .data-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Form stacking on mobile */
  .admin-form-row {
    flex-direction: column !important;
  }

  /* Footer */
  footer {
    padding: 36px 16px 24px 16px !important;
  }
  footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* Cookie banner */
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px 5%;
  }
  .cookie-banner p {
    max-width: 100% !important;
  }

  /* Floating buttons */
  .floating-whatsapp {
    bottom: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    z-index: 99;
  }
  .floating-call {
    bottom: 74px;
    left: 16px;
    width: 48px;
    height: 48px;
    z-index: 99;
  }
}

/* ==========================================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
  .hero-slider {
    height: 240px !important;
  }
  .slide-title {
    font-size: 18px !important;
  }
  .slide-subtitle {
    font-size: 12px !important;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
  .admin-navbar-username {
    display: none;
  }
  h1 {
    font-size: 24px !important;
  }
  h2 {
    font-size: 20px !important;
  }
}

/* ==========================================================================
   IMAGE OPTIMIZATION — SEO & Performance
   ========================================================================== */
img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .customer-nav, .admin-sidebar, .admin-navbar,
  .floating-whatsapp, .floating-call, .cookie-banner {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}

/* Utility: hide hamburger btn & overlay on desktop */
.mobile-menu-btn {
  display: none;
}
.mobile-nav-overlay {
  display: none;
}
.products-cat-chips {
  display: none;
}
