*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #c2185b;
  --color-primary-dark: #880e4f;
  --color-primary-light: #f48fb1;
  --color-accent: #ff6f00;
  --color-bg: #fff8f0;
  --color-surface: #ffffff;
  --color-text: #2d2d2d;
  --color-text-muted: #666;
  --color-border: #f0e0d6;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-body: 'Poppins', sans-serif;
  --font-display: 'Playfair Display', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--color-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
}

.navbar__logo-icon {
  font-size: 1.75rem;
}

.navbar__logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar__logo-text small {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.navbar__links {
  display: flex;
  gap: 1.5rem;
}

.navbar__links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.navbar__links a:hover {
  color: var(--color-primary);
}

.navbar__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* ── Hero Slider ── */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.hero__slides {
  position: relative;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero__slide--active {
  opacity: 1;
}

.hero__overlay {
  height: 100%;
  background: linear-gradient(135deg, rgba(136, 14, 79, 0.75), rgba(194, 24, 91, 0.45));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__content {
  text-align: center;
  color: #fff;
  padding: 1rem;
}

.hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.hero__content p {
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  opacity: 0.95;
}

.hero__dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}

.hero__dot--active {
  background: #fff;
}

/* ── Filter Bar ── */
.filter-bar {
  padding: 1.25rem 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 64px;
  z-index: 90;
}

.filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-bar__option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  user-select: none;
  padding: 0.5rem 0.75rem;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
}

.filter-bar__option input {
  display: none;
}

.filter-bar__radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.filter-bar__option--active .filter-bar__radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--color-primary);
  border-radius: 50%;
}

.filter-bar__option--active {
  background: rgba(194, 24, 91, 0.08);
  color: var(--color-primary);
}

.filter-bar__search {
  flex: 1;
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.filter-bar__search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.filter-bar__search input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  border: 2px solid var(--color-border);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--color-bg);
}

.filter-bar__search input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.12);
}

.filter-bar__search input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Product Grid ── */
.product-section {
  padding: 2rem 1rem 3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card--clickable {
  cursor: pointer;
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-card__image-wrap img {
  transform: scale(1.05);
}

.product-card__category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.product-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.product-card__btn {
  margin-top: auto;
  padding: 0.5rem;
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.product-card__btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Skeleton loading */
.product-card--skeleton {
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(90deg, #f0e0d6 25%, #faf0ea 50%, #f0e0d6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.skeleton--image {
  aspect-ratio: 4 / 3;
}

.skeleton--text {
  height: 16px;
  margin: 0.75rem 1rem 0.5rem;
}

.skeleton--text.short {
  width: 60%;
  margin-bottom: 1rem;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Load More */
.load-more {
  text-align: center;
  margin-top: 2rem;
}

.load-more__btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 2rem;
  transition: color 0.2s;
}

.load-more__btn:hover:not(:disabled) {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.load-more__btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Messages */
.message {
  text-align: center;
  padding: 2rem;
  font-size: 1rem;
}

.message--error {
  color: #c62828;
}

.message--success {
  color: #2e7d32;
  background: #e8f5e9;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.message--empty {
  color: var(--color-text-muted);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  animation: fadeIn 0.2s;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  position: relative;
  animation: slideUp 0.3s;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.modal__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.modal__body {
  padding: 1.5rem;
}

.modal__category {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.modal__body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.modal__price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.modal__desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Custom Form ── */
.custom-form-section {
  padding: 2rem 1rem 3rem;
}

.custom-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.custom-form__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-primary);
  text-align: center;
}

.custom-form__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.custom-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.85rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--color-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
}

.custom-form__submit {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.custom-form__submit:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.custom-form__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ── Footer ── */
.footer {
  background: #1a1a2e;
  color: #ccc;
  margin-top: auto;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 1rem 2rem;
}

.footer__brand h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.footer__brand p {
  font-size: 0.85rem;
}

.footer__links h4,
.footer__contact h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--color-primary-light);
}

.footer__contact p {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
}

.hero__overlay--delivery {
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.85), rgba(194, 24, 91, 0.7));
}

.hero__overlay--delivery h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
}

.product-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.modal__meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.file-input {
  padding: 0.5rem 0;
}

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.image-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--color-border);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.footer__delivery {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-primary-light);
}

.footer__contact a {
  color: #ccc;
  text-decoration: none;
}

.footer__contact a:hover {
  color: var(--color-primary-light);
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.footer__social a {
  color: var(--color-primary-light);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer__social a:hover {
  text-decoration: underline;
}

/* ── Admin Panel ── */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff8f0, #fce4ec);
  padding: 1rem;
}

.admin-login__form {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
}

.admin-login__form h1 {
  font-family: var(--font-display);
  color: var(--color-primary);
  text-align: center;
}

.admin-login__form > p {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.admin-login__back {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.admin {
  min-height: 100vh;
  background: #f5f5f5;
}

.admin__header {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin__header h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.admin__header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.admin__header-actions a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.admin__header-actions button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
}

.admin__tabs {
  display: flex;
  gap: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.admin__tabs button {
  flex: 1;
  padding: 1rem;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
}

.admin__tabs button.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.admin__content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.admin__msg {
  text-align: center;
  padding: 0.75rem;
  background: #e8f5e9;
  color: #2e7d32;
}

.admin__form {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.admin__form h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.admin__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin__form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.admin__cancel {
  padding: 0.85rem 1.5rem;
  background: #eee;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
}

.admin__table-wrap {
  overflow-x: auto;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.admin__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin__table th,
.admin__table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.admin__table th {
  background: #fafafa;
  font-weight: 600;
}

.admin__thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

.admin__table button {
  padding: 0.3rem 0.6rem;
  margin-right: 0.35rem;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.admin__table button.danger {
  color: #c62828;
  border-color: #ffcdd2;
}

.admin__orders {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin__order-card {
  background: var(--color-surface);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.admin__order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.status {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 600;
}

.status--pending { background: #fff3e0; color: #e65100; }
.status--confirmed { background: #e3f2fd; color: #1565c0; }
.status--completed { background: #e8f5e9; color: #2e7d32; }
.status--cancelled { background: #ffebee; color: #c62828; }

.admin__payment {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.admin__order-images {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}

.admin__order-images img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

.admin__order-actions select {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
}

.admin-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ── Cake Detail Page ── */
.cake-detail {
  padding: 1.5rem 1rem 3rem;
}

.cake-detail__back {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.cake-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.cake-detail__main-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.cake-detail__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.cake-detail__thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  width: 64px;
  height: 64px;
  background: none;
}

.cake-detail__thumbs button.active {
  border-color: var(--color-primary);
}

.cake-detail__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cake-detail__cat {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.cake-detail__info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.cake-detail__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.cake-detail__meta {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.cake-detail__desc {
  line-height: 1.7;
}

.cake-detail__order {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.cake-detail__order h2 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.cake-detail__order-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.detail-loading,
.detail-error {
  padding: 4rem 1rem;
  text-align: center;
}

.detail-error a {
  color: var(--color-primary);
}

.admin__tabs--scroll {
  overflow-x: auto;
  flex-wrap: nowrap;
}

.admin__layout {
  display: flex;
  flex-direction: row;
  min-height: calc(100vh - 60px);
}

.admin__main {
  flex: 1;
  overflow: auto;
  min-width: 0;
}

.admin__sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #1a1a2e;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  order: 2;
}

.admin__sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
}

.admin__sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: none;
  color: #bbb;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
  border-right: 3px solid transparent;
  text-decoration: none;
  border: none;
}

.admin__sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin__sidebar-link--active {
  background: rgba(194, 24, 91, 0.2);
  color: #fff;
  border-right-color: var(--color-primary);
}

.admin__sidebar-icon {
  font-size: 1.1rem;
}

.admin__sidebar-label {
  flex: 1;
}

.admin__sidebar-count {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin__sidebar-link--active .admin__sidebar-count {
  background: var(--color-primary);
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem;
  margin-top: 0.5rem;
}

.admin-pagination button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.admin-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.admin-pagination span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.filter-bar__inner {
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .admin__layout {
    flex-direction: column-reverse;
  }

  .admin__sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .admin__sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem;
    gap: 0.25rem;
  }

  .admin__sidebar-link {
    flex-direction: column;
    padding: 0.6rem 0.75rem;
    border-right: none;
    border-bottom: 3px solid transparent;
    min-width: 80px;
    text-align: center;
    font-size: 0.75rem;
  }

  .admin__sidebar-link--active {
    border-right-color: transparent;
    border-bottom-color: var(--color-primary);
  }

  .admin__sidebar-label {
    flex: none;
  }
}

.admin__tabs--scroll button {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}

.hero--loading {
  height: 420px;
  background: var(--color-border);
}

@media (max-width: 768px) {
  .admin__form-grid {
    grid-template-columns: 1fr;
  }

  .admin__header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--color-border);
    z-index: 10;
  }

  .navbar__links--open {
    display: flex;
  }

  .navbar__menu-btn {
    display: flex;
  }

  .navbar__menu-btn--open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar__menu-btn--open span:nth-child(2) {
    opacity: 0;
  }

  .navbar__menu-btn--open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .navbar__inner {
    position: relative;
  }

  .navbar__menu-btn span {
    transition: transform 0.2s, opacity 0.2s;
  }

  .hero {
    height: 300px;
  }

  .filter-bar__inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-bar__search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .custom-form__grid {
    grid-template-columns: 1fr;
  }

  .custom-form-wrapper {
    padding: 1.5rem;
  }

  .cake-detail__grid {
    grid-template-columns: 1fr;
  }

  .cake-detail__order {
    padding: 1.25rem;
  }
}

.pay-modal {
  max-width: 420px;
}

.pay-modal h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display, inherit);
}

.pay-modal__note {
  margin: 0 0 1.25rem;
  color: var(--color-muted, #666);
}

.pay-modal__options {
  display: grid;
  gap: 0.75rem;
}

.pay-modal__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--color-border, #e5d5d8);
  border-radius: var(--radius-md, 12px);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.pay-modal__option:hover {
  border-color: var(--color-primary, #7b2d3b);
  background: #fff5f6;
}

.pay-modal__option strong {
  font-size: 1.05rem;
  color: var(--color-primary, #7b2d3b);
}

.pay-modal__option span {
  color: #555;
}

.modal-overlay[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .hero {
    height: 240px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar__option {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }
}
