/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #e8192c;
  --red-dark: #c0111f;
  --red-light: #fdf0f1;
  --gold: #f5a623;
  --text: #222;
  --text-muted: #666;
  --border: #e5e5e5;
  --bg: #fff;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 6px 28px rgba(0,0,0,0.14);
  --radius: 12px;
}

html {
  overflow-y: scroll;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f8f6f3;
  color: var(--text);
  min-height: 100vh;
  padding-top: 68px;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== HEADER ===== */
.header {
  background: var(--red);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  font-style: italic;
}

.location-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}
.location-btn:hover { background: rgba(255,255,255,0.15); }

.header-center { flex: 1; max-width: 560px; }

.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 8px;
  padding: 0 14px;
  height: 42px;
  gap: 10px;
}
.search-bar input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
}
.search-bar input::placeholder { color: #aaa; }

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: white;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}
.header-icon-btn:hover { background: rgba(255,255,255,0.15); }

.cart-icon-wrap { position: relative; }
.cart-count {
  position: absolute;
  top: -6px; right: -8px;
  background: white;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 17px; height: 17px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== NAV ===== */
.nav {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 99;
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover { color: var(--red); }
.nav-link.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

/* ===== HERO ===== */
.hero-banner {
  background: linear-gradient(135deg, var(--red) 0%, #c0111f 60%, #8b0d16 100%);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 10%;
  overflow: hidden;
  position: relative;
}

.hero-content { color: white; max-width: 500px; position: relative; z-index: 1; }
.hero-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero-content h1 span { color: #ffd166; }
.hero-sub { font-size: 14.5px; opacity: 0.85; margin-bottom: 24px; }

.hero-cta {
  background: white;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 32px;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.hero-art { display: flex; align-items: center; justify-content: center; }

/* Placeholder banner (no photos uploaded) */
.hero-art--placeholder {
  background: rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-cookie-circle {
  font-size: 130px;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,0.35));
  animation: float 3s ease-in-out infinite;
  position: relative;
  z-index: 3;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Banner image — fills the right side of the hero section */
.hero-art--image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 8%, black 18%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 8%, black 18%);
}
.hero-fill-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.hero-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide-img {
  min-width: 100%;
}

/* Admin banner tab hint */
.admin-banner-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.55;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}

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

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--red);
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  background: white;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.sort-btn:hover { border-color: var(--red); box-shadow: 0 2px 8px rgba(0,0,0,0.07); }

.sort-dropdown {
  position: relative;
  z-index: 50;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  width: fit-content;
  margin-left: auto;
}

.sort-option {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.sort-option:hover, .sort-option.active { background: var(--red); color: white; }

.hidden { display: none !important; }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .product-grid { grid-template-columns: 1fr; } }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s, box-shadow 0.22s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }

.card-image-wrap {
  position: relative;
  background: #fef6ec;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-wrap .product-emoji {
  font-size: 90px;
  transition: transform 0.3s;
  user-select: none;
}
.product-card:hover .product-emoji { transform: scale(1.1) rotate(-4deg); }

.veg-badge {
  position: absolute;
  top: 10px; left: 10px;
  width: 20px; height: 20px;
  border: 2px solid #1a7a1a;
  border-radius: 3px;
  background: white;
  display: flex; align-items: center; justify-content: center;
}
.veg-dot { width: 10px; height: 10px; background: #1a7a1a; border-radius: 50%; }

.wishlist-btn {
  position: absolute;
  top: 8px; right: 10px;
  background: white;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 6px rgba(0,0,0,0.12);
  transition: transform 0.2s;
  font-size: 16px;
}
.wishlist-btn:hover { transform: scale(1.15); }
.wishlist-btn.active { color: var(--red); }

.image-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
}
.dot.active { background: var(--red); }

.card-body { padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }

.card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.star-icon { color: #f5a623; }

.add-btn {
  width: 100%;
  background: var(--red);
  color: white;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}
.add-btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.add-btn:active { transform: translateY(0); }
.add-btn--disabled { background: #ccc !important; cursor: not-allowed !important; transform: none !important; }

/* quantity controls when in cart */
.qty-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 2px solid var(--red);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
  width: 100%;
}
.qty-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
  background: white;
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--red-light); }
.qty-value {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: white;
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 360px;
  max-width: 95vw;
  height: 100vh;
  background: white;
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  animation: slideIn 0.25s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 18px; font-weight: 700; }
.close-cart { font-size: 24px; color: var(--text-muted); line-height: 1; }
.close-cart:hover { color: var(--red); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty { color: var(--text-muted); font-size: 14px; text-align: center; margin-top: 40px; }
.cart-shop-now-btn {
  margin-top: auto;
  width: 100%;
  background: var(--red);
  color: white;
  font-size: 15px;
  font-weight: 700;
  padding: 13px;
  border-radius: 10px;
  font-family: inherit;
  transition: background 0.15s;
}
.cart-shop-now-btn:hover { background: var(--red-dark); }

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cart-item-emoji { font-size: 40px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.cart-item-price { font-size: 13px; color: var(--text-muted); }
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.cart-item-qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  color: var(--text);
  transition: border-color 0.15s, color 0.15s;
}
.cart-item-qty-btn:hover { border-color: var(--red); color: var(--red); }
.cart-item-qty { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }

.cart-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}
.checkout-btn {
  width: 100%;
  background: var(--red);
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 13px;
  border-radius: 10px;
  transition: background 0.2s;
  font-family: inherit;
}
.checkout-btn:hover { background: var(--red-dark); }

/* order status badge (customer side) */
.order-status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.order-status-badge--pending {
  background: #fff8e1;
  color: #b87000;
  border: 1px solid #f5a623;
}
.order-status-badge--paid {
  background: #f0faf0;
  color: #1a7a1a;
  border: 1px solid #1a7a1a;
}

/* ===== PURCHASE HISTORY ===== */
.history-order {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.history-order-header {
  background: #f9f9f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.history-order-id   { font-size: 13px; font-weight: 700; color: var(--red); }
.history-order-date { font-size: 11.5px; color: var(--text-muted); }
.history-order-items { padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.history-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text);
}
.history-order-total {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 700;
  background: #fdf0f1;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== ADMIN ===== */
.user-avatar--admin { background: #ffd166; color: #8b0d16; }
.user-dropdown-admin { color: #8b0d16; font-weight: 700 !important; }
.user-dropdown-admin:hover { background: #fff8e1 !important; }

.admin-badge-lg {
  background: #ffd166;
  color: #8b0d16;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 5px;
}

.admin-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1060px;
  max-width: 98vw;
  max-height: 90vh;
  background: white;
  border-radius: 16px;
  z-index: 301;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: popIn 0.2s ease;
  overscroll-behavior: contain;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 0;
  flex-shrink: 0;
}
.admin-modal-title { display: flex; align-items: center; gap: 12px; }
.admin-modal-title h2 { font-size: 17px; font-weight: 700; }

.admin-tabs {
  display: flex;
  gap: 0;
  padding: 14px 24px 0;
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
}
.admin-tab {
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.admin-tab.active { color: var(--red); border-bottom-color: var(--red); }
.admin-tab:hover  { color: var(--text); }

.admin-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 24px;
}

.admin-empty { color: var(--text-muted); font-size: 14px; text-align: center; padding: 40px 0; }

/* orders tab */
.admin-orders-list { display: flex; flex-direction: column; gap: 14px; }
.admin-order-card  { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; position: relative; }
.admin-order-card--pending { border-color: #e8a020; border-left: 4px solid #f5a623; background: #fffdf4; }
.admin-order-card--paid    { border-color: #3aaa3a; border-left: 4px solid #2db82d; background: #f3fbf3; }
.admin-order-delete-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f3f3f3;
  color: #bbb;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
  z-index: 1;
}
.admin-order-delete-btn:hover { background: #fde8e8; color: var(--red); }
.admin-orders-section { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.admin-order-head  {
  display: flex; justify-content: space-between; align-items: flex-start;
  background: #f9f9f9; padding: 10px 14px; border-bottom: 1px solid var(--border);
  gap: 10px; flex-wrap: wrap;
}
.admin-order-user { font-size: 12.5px; color: var(--text-muted); }

/* admin order status badge */
.order-admin-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.order-admin-badge--paid {
  background: #f0faf0;
  color: #1a7a1a;
  border: 1px solid #1a7a1a;
}
.order-admin-badge--pending {
  background: #fff8e1;
  color: #b87000;
  border: 1px solid #f5a623;
}

/* order payment buttons */
.admin-order-comment-wrap {
  padding: 8px 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-order-comment-input {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 10px;
  resize: none;
  line-height: 1.5;
  min-height: 52px;
  overflow: hidden;
  background: #fafafa;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.admin-order-comment-input:focus {
  outline: none;
  border-color: #aaa;
  background: #fff;
}
.admin-comment-send-btn {
  align-self: flex-end;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.admin-comment-send-btn:hover { border-color: #2db82d; color: #2db82d; }

.cart-order-comment {
  display: block;
  margin: 6px 12px 12px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-height: none;
  height: auto;
  overflow: visible;
}

.admin-order-actions {
  display: flex;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border);
}

.admin-pay-btn {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 7px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.admin-pay-btn:hover { border-color: #aaa; color: var(--text); }

/* active = currently selected state (not clickable action) */
.admin-pay-btn--active-pending {
  background: #fff8e1;
  border-color: #f5a623;
  color: #b87000;
  font-weight: 700;
  cursor: default;
}
/* outline = clickable action to switch to that state */
.admin-pay-btn--outline-paid {
  border-color: #1a7a1a;
  color: #1a7a1a;
}
.admin-pay-btn--outline-paid:hover { background: #1a7a1a; color: white; border-color: #1a7a1a; }
.admin-pay-btn--outline-pending {
  border-color: #f5a623;
  color: #b87000;
}
.admin-pay-btn--outline-pending:hover { background: #f5a623; color: white; border-color: #f5a623; }
.admin-pay-btn--active-paid {
  background: #e6f4ec;
  border-color: #1a7a1a;
  color: #1a7a1a;
  font-weight: 700;
  cursor: default;
}
.admin-count-badge {
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}

/* pending order in cart sidebar */
.cart-pending-order {
  background: #fff8e1;
  border: 1.5px solid #f5a623;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.cart-pending-header {
  background: #f5a623;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cart-pending-badge {
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex: 1;
}
.cart-pending-id {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}
.cart-pending-date {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
}
.cart-pending-items {
  padding: 8px 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-pending-item {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text);
}
.cart-pending-total {
  padding: 6px 14px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #b87000;
}

/* new (unactioned) order in cart sidebar — blue tint instead of amber */
.cart-pending-order--new {
  background: #f0f4ff;
  border-color: #6b8be8;
}
.cart-pending-order--new .cart-pending-header {
  background: #6b8be8;
}

/* payment status badge in order history */
.history-pay-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.history-pay-badge--pending {
  background: #fff3cd;
  color: #b87000;
  border: 1px solid #f5a623;
}
.history-pay-badge--paid {
  background: #e6f4ec;
  color: #1a7a1a;
  border: 1px solid #1a7a1a;
}
.history-pay-badge--not-approved {
  background: #fde8e8;
  color: var(--red);
  border: 1px solid var(--red);
}

/* reviews tab */
.admin-reviews-list { display: flex; flex-direction: column; gap: 10px; }
.admin-review-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.admin-review-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  flex-shrink: 0;
}
.admin-review-product { font-size: 13px; font-weight: 700; color: var(--text); }

.admin-ratings-summary { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.admin-rating-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: #fdf8f4;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  flex-wrap: wrap;
}
.admin-stars-display { color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.admin-rating-avg    { font-size: 13px; font-weight: 700; color: var(--text); }

/* products tab */
.admin-products-list { display: flex; flex-direction: column; gap: 8px; }
.admin-product-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  flex-wrap: wrap;
}
.admin-product-emoji { font-size: 22px; flex-shrink: 0; }
.admin-product-name  { font-size: 13.5px; font-weight: 600; flex: 1; min-width: 140px; }
.admin-price-label   { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.admin-price-input {
  width: 72px;
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}
.admin-price-input:focus { border-color: var(--red); }
.admin-toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  margin-left: auto;
}
.admin-toggle-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--red); cursor: pointer; }

/* admin products redesign */
.admin-section-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.admin-categories-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.admin-cat-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--red-light);
  border: 1.5px solid #f5c2c7;
  color: var(--red-dark);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.admin-cat-chip button {
  font-size: 15px;
  line-height: 1;
  color: var(--red);
  font-weight: 700;
  padding: 0 0 0 2px;
}
.admin-cat-chip button:hover { opacity: 0.6; }

.admin-add-cat { display: flex; gap: 6px; align-items: center; }
.admin-cat-input {
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 170px;
}
.admin-cat-input:focus { border-color: var(--red); }
.admin-cat-add-btn {
  background: var(--red);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}
.admin-cat-add-btn:hover { background: var(--red-dark); }

.admin-product-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: white;
}
.admin-product-row-top {
  display: grid;
  grid-template-columns: 1fr 118px 88px 148px 112px 32px;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.admin-field label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.admin-emoji-input {
  width: 58px;
  padding: 7px 8px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 20px;
  text-align: center;
  font-family: inherit;
  outline: none;
}
.admin-emoji-input:focus { border-color: var(--red); }
.admin-text-input {
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 100%;
  min-width: 0;
}
.admin-text-input:focus { border-color: var(--red); }
.admin-select {
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: white;
  cursor: pointer;
  width: 100%;
  min-width: 0;
}
.admin-select:focus { border-color: var(--red); }

/* admin image upload & stock */
.admin-img-upload-area {
  width: 64px; height: 64px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.admin-img-upload-area:hover { border-color: var(--red); background: var(--red-light); }

.admin-img-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #bbb;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}
.admin-img-upload-area:hover .admin-img-empty { color: var(--red); }
.admin-img-upload-area:hover .admin-img-empty svg path,
.admin-img-upload-area:hover .admin-img-empty svg rect,
.admin-img-upload-area:hover .admin-img-empty svg circle { stroke: var(--red); }

.admin-img-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.admin-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.admin-img-upload-area:hover .admin-img-overlay { opacity: 1; }

.admin-remove-img-btn {
  font-size: 11.5px;
  color: var(--red);
  font-weight: 600;
  padding: 3px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: block;
  margin-top: 4px;
}

.admin-stock-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.admin-stock-btn {
  width: 28px; height: 32px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  background: white;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.admin-stock-btn:hover { border-color: var(--red); color: var(--red); }
.admin-stock-input {
  width: 58px;
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 13.5px;
  text-align: center;
  font-family: inherit;
  outline: none;
}
.admin-stock-input:focus { border-color: var(--red); }

.admin-card-hidden { opacity: 0.6; border-style: dashed !important; }

/* add cookie form */
.admin-add-cookie-form {
  background: #f9f9f9;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.admin-add-cookie-fields {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* delete product button */
.admin-delete-product-btn {
  font-size: 16px;
  color: #ccc;
  transition: color 0.15s;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-delete-product-btn:hover { color: var(--red); }
.admin-delete-review-btn {
  font-size: 16px;
  color: #ccc;
  transition: color 0.15s;
  padding: 2px 4px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.admin-delete-review-btn:hover { color: var(--red); }

/* ===== POLICY EDITOR (admin) ===== */
.admin-policy-subtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.admin-policy-subtab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: #f3f3f3;
  color: #666;
  border: 1.5px solid #e0e0e0;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
}
.admin-policy-subtab.active {
  background: var(--red-light);
  color: var(--red);
  border-color: #f5c2c7;
}
.admin-policy-subtab:hover:not(.active) { background: #eaeaea; }
.policy-editor-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 2px;
}
.policy-editor-section {
  display: flex;
  gap: 10px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  align-items: flex-start;
}
.policy-editor-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.policy-editor-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.policy-editor-field label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.policy-icon-input {
  width: 54px;
  text-align: center;
  font-size: 20px;
  padding: 6px 4px;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  font-family: inherit;
  background: white;
}
.policy-icon-input:focus { outline: none; border-color: var(--red); }
.policy-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  resize: vertical;
  min-height: 66px;
  box-sizing: border-box;
}
.policy-textarea:focus { outline: none; border-color: var(--red); }

/* ===== CARD IMAGE SLIDER (swipe) ===== */
.card-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}
.card-slider:active { cursor: grabbing; }
.card-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-slide-img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.slide-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
  pointer-events: none;
}
.slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 1.5px solid rgba(255,255,255,0.85);
  transition: background 0.3s, transform 0.3s;
}
.slide-dot.active {
  background: white;
  transform: scale(1.25);
}

/* ===== ADMIN PHOTOS STRIP ===== */
.admin-product-photos {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 9px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.admin-photos-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-width: 46px;
}
.admin-photos-strip {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-photo-thumb {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.admin-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-photo-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  border: none;
  transition: background 0.2s;
}
.admin-photo-remove:hover { background: var(--red); }
.admin-photo-add {
  width: 54px;
  height: 54px;
  border-radius: 7px;
  border: 2px dashed #ccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  color: #aaa;
  font-size: 11px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.admin-photo-add:hover { border-color: var(--red); color: var(--red); }

/* card image */
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* stock label */
.stock-label {
  font-size: 12px;
  font-weight: 600;
  color: #1a7a1a;
  margin-top: 6px;
}
.stock-label--out { color: var(--red); }

/* not visible badge (admin only) */
.not-visible-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.62);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}
.card-not-visible { outline: 2px dashed #ccc; }

/* card category label */
.card-category-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: -2px;
  margin-bottom: 2px;
}

/* out of stock card */
.card-unavailable { opacity: 0.65; }
.out-of-stock-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
}

/* ===== USER MENU ===== */
/* admin header badge (top left) */
.admin-header-badge {
  background: #ffd166;
  color: #7a0d18;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  padding: 4px 9px;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  align-self: center;
  flex-shrink: 0;
}

/* header username (full name) */
.header-username {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-wrap { position: relative; }

.user-menu-btn {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  padding: 6px 10px !important;
}

.user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: white;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
  min-width: 210px;
  z-index: 200;
  overflow: hidden;
  animation: dropDown 0.18s ease;
}
@keyframes dropDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.user-dropdown-info {
  padding: 14px 16px 10px;
}
.user-dropdown-name  { font-size: 14px; font-weight: 700; color: var(--text); }
.user-dropdown-email { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.user-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.user-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
  font-family: inherit;
}
.user-dropdown-item:hover { background: #f5f5f5; }
.user-dropdown-logout { color: var(--red); }
.user-dropdown-logout:hover { background: var(--red-light); }

/* ===== AUTH MODAL ===== */
.auth-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: 95vw;
  background: white;
  border-radius: 18px;
  z-index: 301;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  animation: popIn 0.2s ease;
  overflow: hidden;
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}

.auth-tabs {
  display: flex;
  background: #f1f1f1;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.auth-tab {
  padding: 7px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.auth-tab.active { background: white; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }

.auth-form {
  padding: 20px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-welcome {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.auth-field input {
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  color: var(--text);
}
.auth-field input:focus { border-color: var(--red); }

.auth-error   { font-size: 12.5px; color: var(--red); font-weight: 500; }
.auth-success { font-size: 12.5px; color: #1a7a1a; font-weight: 500; }

.auth-submit-btn {
  width: 100%;
  background: var(--red);
  color: white;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px;
  border-radius: 10px;
  font-family: inherit;
  transition: background 0.2s;
  margin-top: 2px;
}
.auth-submit-btn:hover { background: var(--red-dark); }

.auth-switch {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}
.auth-switch button {
  color: var(--red);
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-forgot {
  text-align: right;
  margin: -6px 0 10px;
}
.auth-forgot button {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-forgot button:hover { color: var(--red); }
.auth-verify-text {
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ===== ACCOUNT SETTINGS ===== */
.settings-section { display: flex; flex-direction: column; gap: 12px; }
.settings-section--divided { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.settings-heading { font-size: 14px; font-weight: 700; color: var(--text); }

/* ===== FAVORITES BUTTONS ===== */
.fav-add-btn {
  font-size: 12px;
  font-weight: 600;
  background: var(--red);
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: inherit;
  transition: background 0.2s;
}
.fav-add-btn:hover { background: var(--red-dark); }
.fav-remove-btn {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fav-remove-btn:hover { color: var(--red); }

/* ===== REVIEWS LINK ===== */
.reviews-link {
  background: none;
  border: none;
  color: var(--red);
  font-size: inherit;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.reviews-link:hover { opacity: 0.75; }

/* ===== USER RATING ===== */
.user-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.user-rating-label {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.user-stars {
  display: flex;
  gap: 2px;
}

.user-star {
  font-size: 20px;
  color: #ddd;
  transition: color 0.12s, transform 0.12s;
  line-height: 1;
  padding: 0 1px;
}
.user-star.filled  { color: var(--gold); }
.user-star.preview { color: var(--gold); opacity: 0.7; }
.user-star:hover   { transform: scale(1.2); }

/* ===== REVIEW MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
}

.review-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  max-width: 95vw;
  max-height: 85vh;
  background: white;
  border-radius: 16px;
  z-index: 301;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: popIn 0.2s ease;
}
@keyframes popIn {
  from { transform: translate(-50%, -48%); opacity: 0; }
  to   { transform: translate(-50%, -50%); opacity: 1; }
}

.review-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.review-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-modal-title h3 { font-size: 17px; font-weight: 700; }
.modal-rating-summary  { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.modal-close-btn {
  font-size: 26px;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px 6px;
}
.modal-close-btn:hover { color: var(--red); }

.review-modal-body {
  overflow-y: auto;
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.no-reviews-msg {
  color: var(--text-muted);
  font-size: 13.5px;
  text-align: center;
  padding: 10px 0;
}

.modal-review-item {
  background: #fdf8f4;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
}
.modal-review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.modal-review-author { font-size: 13px; font-weight: 700; color: var(--text); }
.modal-review-date   { font-size: 12px; color: var(--text-muted); }
.modal-review-text   { font-size: 13.5px; color: #444; line-height: 1.55; font-style: italic; }

.modal-add-review {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-add-review h4 { font-size: 15px; font-weight: 700; }

.modal-name-input,
.modal-text-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  color: var(--text);
  transition: border-color 0.2s;
}
.modal-name-input:focus,
.modal-text-input:focus { border-color: var(--red); }
.modal-text-input { min-height: 90px; resize: vertical; }

.modal-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.modal-char-hint { font-size: 11.5px; color: #bbb; }

.modal-submit-btn {
  background: var(--red);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: inherit;
  transition: background 0.2s;
}
.modal-submit-btn:hover { background: var(--red-dark); }

/* ===== CONTACT FLOAT ===== */
.contact-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.contact-float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(232,25,44,0.38);
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.contact-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(232,25,44,0.48);
}
.contact-bubble {
  background: white;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  width: 260px;
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.contact-bubble.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.contact-bubble-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.contact-bubble-msg {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.contact-bubble-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
}
.contact-bubble-email:hover { opacity: 0.75; }

/* ===== FOOTER ===== */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 48px 24px 0;
  margin-top: 20px;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-logo { font-size: 24px; font-weight: 800; font-style: italic; color: white; display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: #aaa; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4, .footer-contact h4 { font-size: 14px; font-weight: 600; color: #ddd; margin-bottom: 6px; }
.footer-links a { font-size: 13px; color: #aaa; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-contact p { font-size: 13px; color: #aaa; line-height: 2; }

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 0;
  font-size: 12.5px;
  color: #666;
  text-align: center;
}

.footer-niov { display: flex; flex-direction: column; gap: 8px; }
.niov-built-label { font-size: 12px; color: #666; font-weight: 400; }

.niov-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.niov-credit:hover { opacity: 0.75; }

.niov-built {
  font-size: 11px;
  color: #555;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.niov-logo {
  display: flex;
  align-items: center;
  gap: 7px;
}

.niov-n-box {
  width: 44px; height: 44px;
  background: #0d1f35;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #7ecfea;
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
}

.niov-text-stack {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}

.niov-wordmark {
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: 3px;
  font-family: 'Poppins', sans-serif;
}

.niov-sub {
  font-size: 10px;
  font-weight: 600;
  color: #7ecfea;
  letter-spacing: 3.5px;
  font-family: 'Poppins', sans-serif;
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 900px) {
  .location-btn span, .header-icon-btn span { display: none; }
  .header-icon-btn { flex-direction: row; padding: 8px; }
}
@media (max-width: 600px) {
  .header-inner { gap: 10px; }
  .logo { font-size: 22px; }
  .location-btn { display: none; }
  .hero-banner { padding: 30px 6%; }
  .hero-content h1 { font-size: 28px; }
  .hero-art { display: none; }
}
