/* 
 * Design System - Warung Senja Sore
 * Based on desain-rules.md
 */

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

:root {
  /* === PRIMARY — Chocolate Aesthetic === */
  --color-primary: #4a3728;
  --color-primary-light: #8b5a2b;
  --color-primary-hover: #5c4533;
  --color-primary-rgb: 74, 55, 40;

  /* === BACKGROUND — Krem Cerah === */
  --color-bg-main: #fdfbf7;
  --color-bg-warm: #fffdd0;
  --color-bg-card: #ffffff;
  --color-bg-section: #fff8f0;

  /* === ACCENT — Sunset Cheerful === */
  --color-accent: #ff7f50;
  --color-accent-deep: #e97451;
  --color-accent-hover: #ff6b3d;
  --color-accent-light: #ffe0d0;
  --color-accent-rgb: 255, 127, 80;

  /* === TEXT === */
  --color-text-primary: #3e2723;
  --color-text-secondary: #8d6e63;
  --color-text-muted: #bcaaa4;
  --color-text-inverse: #ffffff;

  /* === SEMANTIC === */
  --color-success: #6b8e23;
  --color-success-light: #e8f5e9;
  --color-danger: #c0392b;
  --color-danger-light: #ffebee;
  --color-warning: #f39c12;
  --color-warning-light: #fff8e1;
  --color-info: #2980b9;
  --color-info-light: #e3f2fd;

  /* === BORDER === */
  --color-border: #e0d5c8;
  --color-border-light: #f0eae0;

  /* === SHADOW === */
  --shadow-sm: 0 1px 3px rgba(74, 55, 40, 0.08);
  --shadow-md: 0 4px 12px rgba(74, 55, 40, 0.1);
  --shadow-lg: 0 8px 24px rgba(74, 55, 40, 0.12);
  --shadow-xl: 0 12px 36px rgba(74, 55, 40, 0.15);
  --shadow-glow: 0 0 20px rgba(255, 127, 80, 0.25);

  /* === FONT SIZES & TYPOGRAPHY === */
  --font-heading: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* === SPACING === */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* === LAYOUT === */
  --container-max: 1200px;
  --container-pad: var(--space-4);
  --grid-gap: var(--space-6);

  /* === BORDER RADIUS === */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* === RESET & BASE === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
  line-height: 1.6;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
}
a {
  text-decoration: none;
  color: var(--color-primary-light);
  transition: color 0.3s ease;
}
a:hover {
  color: var(--color-accent);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === TYPOGRAPHY CLASSES === */
.text-xs {
  font-size: var(--text-xs);
}
.text-sm {
  font-size: var(--text-sm);
}
.text-base {
  font-size: var(--text-base);
}
.text-lg {
  font-size: var(--text-lg);
}
.text-xl {
  font-size: var(--text-xl);
}
.text-2xl {
  font-size: var(--text-2xl);
}
.text-3xl {
  font-size: var(--text-3xl);
}
.text-4xl {
  font-size: var(--text-4xl);
}

.font-medium {
  font-weight: var(--font-medium);
}
.font-semibold {
  font-weight: var(--font-semibold);
}
.font-bold {
  font-weight: var(--font-bold);
}

.text-center {
  text-align: center;
}
.text-muted {
  color: var(--color-text-muted);
}

/* === LAYOUT UTILITIES === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.section {
  padding: var(--space-12) 0;
}
.section-bg {
  background-color: var(--color-bg-section);
}
.d-flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.align-items-center {
  align-items: center;
}
.justify-content-between {
  justify-content: space-between;
}
.justify-content-center {
  justify-content: center;
}
.gap-2 {
  gap: var(--space-2);
}
.gap-4 {
  gap: var(--space-4);
}

.grid {
  display: grid;
  gap: var(--grid-gap);
}
.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-cols-1-2 {
  grid-template-columns: 1fr 2fr;
}
.grid-cols-2-1 {
  grid-template-columns: 2fr 1fr;
}

/* === ICONS (Lucide) === */
.lucide {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}
.icon-sm {
  width: 16px;
  height: 16px;
}
.icon-md {
  width: 20px;
  height: 20px;
}
.icon-lg {
  width: 24px;
  height: 24px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}
.btn-lg {
  padding: 16px 32px;
  font-size: var(--text-base);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}
.btn-accent:hover {
  background: var(--color-accent-deep);
  color: var(--color-text-inverse);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-danger {
  background: var(--color-danger);
  color: var(--color-text-inverse);
}
.btn-danger:hover {
  background: #a93226;
  color: var(--color-text-inverse);
}
.btn-disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* === FORM INPUTS === */
.form-group {
  margin-bottom: var(--space-4);
}
.form-label {
  display: block;
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}
.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--color-bg-card);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.15);
}
.form-input::placeholder {
  color: var(--color-text-muted);
}
textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

/* === CARD PRODUK === */
.product-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(74, 55, 40, 0.12);
  border-color: var(--color-accent-light);
}
.product-card .card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card .card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(
    --space-4
  ); /* Beri jarak agar tidak menempel di tepi jika contain */
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.product-card:hover .card-image {
  transform: scale(1.1);
}
.product-card .placeholder-icon {
  color: var(--color-border);
  width: 48px;
  height: 48px;
}
.product-card .card-body {
  padding: var(--space-4);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-card .card-category {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-card .card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  margin: var(--space-2) 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .card-price {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  margin-top: auto;
  margin-bottom: var(--space-3);
}

/* === BADGE & TAGS === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  white-space: nowrap;
}
.badge-discount {
  background: var(--color-accent-light);
  color: var(--color-accent-deep);
}
.badge-success {
  background: var(--color-success-light);
  color: var(--color-success);
}
.badge-warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}
.badge-danger {
  background: var(--color-danger-light);
  color: var(--color-danger);
}
.badge-info {
  background: var(--color-info-light);
  color: var(--color-info);
}

/* Status indicator dot */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-dot-open {
  background: var(--color-success);
}
.status-dot-closed {
  background: var(--color-danger);
}

/* === TOAST / FLASH MESSAGES === */
.toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.toast {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 250px;
  animation:
    slideInRight 0.4s ease,
    fadeOut 0.4s ease 3.6s forwards;
}
.toast-success {
  background: var(--color-success);
  color: white;
}
.toast-error {
  background: var(--color-danger);
  color: white;
}
.toast-warning {
  background: var(--color-warning);
  color: white;
}
.toast-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.8;
}
.toast-close:hover {
  opacity: 1;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    display: none;
  }
}
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Scroll Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

.delay-100 {
  transition-delay: 100ms;
}
.delay-200 {
  transition-delay: 200ms;
}
.delay-300 {
  transition-delay: 300ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === NAVBAR CUSTOMER === */
.navbar {
  background: rgba(74, 55, 40, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--space-3) 0;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  text-decoration: none;
}
.navbar-brand:hover {
  color: var(--color-bg-warm);
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-link {
  color: var(--color-border-light);
  font-weight: var(--font-medium);
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-icon {
  color: var(--color-text-inverse);
  position: relative;
  cursor: pointer;
}
.nav-icon:hover {
  color: var(--color-accent);
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-accent);
  color: white;
  font-size: 10px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-toggle {
  display: none;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* === ANNOUNCEMENT BAR === */
.announcement-bar {
  background: var(--color-accent);
  color: white;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  overflow: hidden;
  white-space: nowrap;
}
.marquee {
  display: inline-block;
  animation: marquee 20s linear infinite;
}
.marquee:hover {
  animation-play-state: paused;
}

/* === FOOTER === */
.footer {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-12) 0 var(--space-4);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.footer-title {
  color: var(--color-bg-warm);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
}
.footer-desc {
  color: var(--color-border);
  margin-bottom: var(--space-4);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: var(--space-2);
}
.footer-links a {
  color: var(--color-border);
}
.footer-links a:hover {
  color: var(--color-accent);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-4);
  text-align: center;
  color: var(--color-border);
  font-size: var(--text-sm);
}

/* === ADMIN LAYOUT === */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--color-bg-section);
}
.admin-sidebar {
  width: 260px;
  background: var(--color-primary);
  color: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-brand {
  padding: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: white;
}
.admin-menu {
  padding: var(--space-4) 0;
  list-style: none;
  flex-grow: 1;
}
.admin-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  color: rgba(255, 255, 255, 0.8);
  font-weight: var(--font-medium);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.admin-link:hover,
.admin-link.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}
.admin-main {
  flex-grow: 1;
  padding: var(--space-6);
  overflow-x: hidden;
  min-width: 0; /* Prevents flex item from expanding beyond screen width when table is large */
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
  background: white;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.admin-title {
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin: 0;
}

/* === TABLES === */
.table-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  text-align: left;
}
.table th {
  background: var(--color-bg-section);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  white-space: nowrap;
}
.table tr:hover td {
  background: var(--color-bg-main);
}
.table-actions {
  display: flex;
  gap: var(--space-2);
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: white;
  color: var(--color-text-primary);
  font-weight: var(--font-medium);
  transition: all 0.2s ease;
}
.page-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.page-link.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* === FLOATING WHATSAPP === */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
}
.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: white;
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-cols-1-2,
  .grid-cols-2-1,
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  .navbar-menu {
    position: fixed;
    top: 60px; /* navbar height approx */
    left: -100%;
    width: 250px;
    height: calc(100vh - 60px);
    background: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6);
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .navbar-menu.show {
    left: 0;
  }
  .mobile-toggle {
    display: block;
  }

  .flex-col-sm {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: var(--space-4) !important;
  }

  .admin-sidebar {
    position: fixed;
    z-index: 1000;
    height: 100vh;
    left: -260px;
  }
  .admin-sidebar.show {
    left: 0;
  }
  .admin-mobile-toggle {
    display: block;
  }
}
@media (max-width: 576px) {
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  /* Wadah utama pembungkus gambar pratinjau */
  .image-preview-container {
    margin-top: var(--space-3);
    background-color: var(--color-bg-section);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%; /* Mengikuti lebar penuh kolom grid */
  }

  /* Kotak pratinjau khusus Logo Toko (Persegi / Sama Sisi) */
  .logo-box {
    max-width: 140px; /* Membatasi agar logo tidak melebar memenuhi kolom */
    height: 140px; /* Tinggi dikunci agar membentuk persegi sempurna */
    margin-inline: auto; /* Otomatis membuat posisi kotak berada di tengah */
  }

  /* Kotak pratinjau khusus Hero Banner (Mengikuti grid horizontal) */
  .banner-box {
    height: 180px; /* Tinggi proporsional standar admin desktop */
  }

  /* Pengaturan perilaku tag gambar di dalam kotak */
  .image-preview-container img {
    width: 100%;
    height: 100%;
    display: block;
  }

  /* Logo: Ditampilkan utuh tanpa terpotong (contain) & diberi jarak aman */
  .logo-box img {
    object-fit: contain;
    padding: var(--space-2);
  }

  /* Banner: Memenuhi area kotak secara padat (cover) layaknya background asli */
  .banner-box img {
    object-fit: cover;
  }

  /* Penyelarasan ikon Lucide ketika gambar kosong/belum diunggah */
  .image-preview-container .placeholder-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
  }

  /* Responsivitas: Saat layar ponsel, sesuaikan tinggi kotak banner agar tidak terlalu memakan ruang vertical */
  @media (max-width: 576px) {
    .banner-box {
      height: 130px;
    }
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Product Card adjustments for 2-column mobile */
  .product-card .card-body {
    padding: var(--space-3);
  }
  .product-card .card-title {
    font-size: var(--text-sm);
    margin-bottom: 4px;
  }
  .product-card .card-price {
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
  }
  .product-card .btn {
    padding: 6px 8px;
    font-size: 0.7rem;
    gap: 4px;
  }
  .product-card .btn i {
    width: 14px;
    height: 14px;
  }
  .product-card .card-image {
    padding: var(--space-2);
  }

  /* Typography scale-down for mobile */
  .text-5xl {
    font-size: var(--text-3xl) !important;
  }
  .text-4xl {
    font-size: var(--text-2xl) !important;
  }
  .text-3xl {
    font-size: var(--text-xl) !important;
  }

  /* Hero adjustments */
  .hero-section {
    padding: var(--space-10) 0 !important;
  }

  /* Utilities for mobile */
  .d-flex.flex-col-sm {
    flex-direction: column;
    align-items: flex-start !important;
    gap: var(--space-4);
  }

  /* Admin Mobile Polish */
  .admin-main {
    padding: var(--space-4);
  }
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
  }
  .admin-title {
    font-size: var(--text-xl);
  }
  .admin-stat-card,
  .admin-card-padded {
    padding: var(--space-4) !important;
  }
}
