body {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
}

.order-card {
  border-radius: 1rem;
  overflow: hidden;
}

.product-image {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #f6f6f6;
}

/* Desktop redesign: horizontal split on large screens (mobile layout untouched) */
@media (min-width: 992px) {
  .order-card { box-shadow: 0 12px 40px rgba(0,0,0,0.10); }
  .order-img-col { position: relative; display: flex; align-items: center; justify-content: center; background: #f6f6f6; min-height: 460px; }
  .order-img-col .product-image {
    position: static;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .order-form-body {
    padding: 2.25rem;
    border-inline-start: 1px solid #e9ecef;
    padding-inline-start: 2.5rem;
  }
  .order-form-body .product-title { font-size: 1.55rem; }
}

.quantity-btn {
  min-width: 3rem;
}

@media (max-width: 576px) {
  .card {
    border-radius: 0.75rem;
  }

  .btn-lg {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    font-size: 1rem;
  }
}

/* Honeypot field - hide from users but readable by bots */
input[name="hp_field"],
input#hp_field,
.hp-field-wrapper {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---- Public store navigation (pill-style) ---- */
.pill-nav {
  background: #f5f5f7;
  position: sticky;
  top: 0;
  z-index: 1020;
  padding: 8px 16px;
}
.pill-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  padding: 8px 16px;
  direction: rtl;
}

/* Brand (left in RTL) */
.pill-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.pill-nav-logo-icon {
  width: 26px;
  height: 26px;
  color: #1e3a5f;
}
.pill-nav-brand-text {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e3a5f;
  white-space: nowrap;
}

/* Search (center) */
.pill-nav-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 100%;
  margin: 0 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pill-nav-search:focus-within {
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}
.pill-nav-search-icon {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  flex-shrink: 0;
}
.pill-nav-search input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  color: #1e293b;
  direction: rtl;
  min-width: 0;
}
.pill-nav-search input[type="search"]::placeholder {
  color: #94a3b8;
}
.pill-nav-search input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

/* Icon buttons (right in RTL) */
.pill-nav-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.pill-nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #334155;
  text-decoration: none;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.pill-nav-icon-btn:hover {
  background: #f1f5f9;
  color: #1e3a5f;
}
.pill-nav-cart {
  position: relative;
}
.pill-nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  line-height: 1;
}
.pill-nav-hamburger {
  display: none;
}

/* ---- Old nav kept for side panel only ---- */
.store-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e3a5f;
  text-decoration: none;
  white-space: nowrap;
}
/* ---- Store hero + search ---- */
.store-hero {
  text-align: center;
  padding: 28px 16px 8px;
}
.store-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.store-sub { color: #6c757d; margin-bottom: 18px; }
.store-search {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto 8px;
}
.store-search input[type="search"] { flex: 1; }

/* ---- Product grid ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  padding: 18px 0 40px;
}
.product-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.08); }
.product-card-media { position: relative; display: block; }
.product-card-media img,
.product-card-noimg {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
}
.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
}
.stock-badge.ok { background: #198754; }
.stock-badge.out { background: #dc3545; }
.stock-badge.info { background: #0d6efd; }
.favorite-form {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  margin: 0;
}
.product-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.product-card-title {
  font-weight: 500;
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
  line-height: 1.4;
}
.product-card-title:hover { color: #197fe6; }
.product-card-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #197fe6;
}
.product-card-price small { font-size: 0.75rem; font-weight: 600; }
.product-card-actions { display: flex; gap: 6px; margin-top: 4px; }
.qty-input { max-width: 70px; text-align: center; }
.btn-add-cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(325deg, #0058e6, #33a3ff 55%, #0058e6 90%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.15s;
}
.btn-add-cart:hover {
  box-shadow: 0 0 18px rgba(0, 88, 230, 0.45), 0 0 40px rgba(51, 163, 255, 0.2);
  transform: translateY(-1px);
}
.btn-add-cart:active { transform: translateY(0); }
.btn-view {
  text-align: center;
  font-size: 0.9rem;
  color: #0d6efd;
  text-decoration: none;
  padding: 4px;
}
.btn-view:hover { text-decoration: underline; }

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}
.empty-state-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}
.empty-state-icon--heart { color: #f87171; background: #fef2f2; }
.empty-state-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 8px;
}
.empty-state-text {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0 0 24px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.empty-state-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(325deg, #0058e6, #33a3ff 55%, #0058e6 90%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.15s;
}
.empty-state-btn:hover {
  box-shadow: 0 0 18px rgba(0, 88, 230, 0.45), 0 0 40px rgba(51, 163, 255, 0.2);
  transform: translateY(-1px);
  color: #fff;
}

/* ---- Cart page ---- */
.cart-wrap { max-width: 1000px; margin: 0 auto; padding: 24px 16px 60px; }
.cart-heading { font-size: 1.6rem; font-weight: 800; margin-bottom: 18px; text-align: center; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item-row {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 12px;
  align-items: flex-start;
}
.cart-item-row .cart-item-media img,
.cart-item-row .cart-item-noimg {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  background: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  flex-shrink: 0;
}
.cart-item-row .cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cart-item-row .cart-item-title { font-weight: 700; color: #212529; text-decoration: none; }
.cart-item-row .cart-item-title:hover { color: #198754; }
.cart-item-details { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cart-item-price { color: #6c757d; font-size: 0.9rem; }
.cart-item-subtotal { font-size: 0.95rem; }
.cart-item-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cart-item-end .cart-qty-input { width: 70px; }
.btn-remove-item {
  background: none; border: none; color: #dc3545; cursor: pointer; padding: 4px;
  border-radius: 6px; display: inline-flex; align-items: center; transition: background 0.15s;
}
.btn-remove-item:hover { background: #fee2e2; }
.cart-summary { position: sticky; top: 80px; }
.summary-box {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 18px;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eee;
}
.summary-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.btn-confirm {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(325deg, #0058e6, #33a3ff 55%, #0058e6 90%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: box-shadow 0.25s, transform 0.15s;
}
.btn-confirm:hover {
  box-shadow: 0 0 18px rgba(0, 88, 230, 0.45), 0 0 40px rgba(51, 163, 255, 0.2);
  transform: translateY(-1px);
}

/* ---- Add to cart button on product page ---- */
.btn-add-cart-lg {
  width: 100%;
  background: #ffffff;
  color: #198754;
  border: 2px solid #198754;
  border-radius: 8px;
  padding: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-add-cart-lg:hover { background: #198754; color: #fff; }
.btn-add-cart-lg:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Mobile side panel nav ---- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-overlay.open { display: block; opacity: 1; }
.nav-side-panel {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 1101;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.nav-side-panel.open { right: 0; }
.side-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e9ecef;
}
.side-panel-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #64748B;
  line-height: 1;
  padding: 0;
}
.side-panel-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.side-panel-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #212529;
  text-decoration: none;
  transition: background 0.15s;
}
.side-panel-link:hover { background: #f1f3f5; }
.side-panel-link .cart-badge { margin-right: auto; }
.side-panel-bottom {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid #e9ecef;
}
.side-panel-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.side-panel-logout:hover {
  background: #fee2e2;
}
body.no-scroll { overflow: hidden; }

@media (max-width: 768px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item-row { flex-wrap: wrap; }
  .cart-item-row .cart-item-media img,
  .cart-item-row .cart-item-noimg { width: 80px; height: 80px; }
  .cart-item-row .cart-item-info { min-width: 0; }
  .cart-item-end { width: 100%; justify-content: space-between; margin-top: 8px; }
  .pill-nav-search { flex: 1; min-width: 0; margin: 0 6px; }
  .pill-nav-hamburger { display: inline-flex; }
  .pill-nav-icons .pill-nav-icon-btn:not(.pill-nav-hamburger) { display: none; }
  .pill-nav-brand { gap: 6px; }
  .pill-nav-brand-text { font-size: 0.95rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px 0 30px; }
}

/* ---- Announcement marquee (pure CSS, seamless infinite loop) ---- */
.ribbon {
  overflow: hidden;
  direction: ltr;
  background: midnightblue;
  color: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.ribbon-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: ribbon-scroll 45s linear infinite;
}
.ribbon:hover .ribbon-track {
  animation-play-state: paused;
}
.ribbon-copy {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.ribbon-item,
.ribbon-sep {
  flex-shrink: 0;
  white-space: nowrap;
}
.ribbon-item {
  padding: 8px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  direction: rtl;
}
.ribbon-sep {
  align-self: center;
  opacity: 0.6;
}
@keyframes ribbon-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
/* ---- Store feature band ---- */
.store-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 28px 0 36px;
  max-width: 1140px;
  margin: 0 auto;
}
.feature {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.08); }
.feature-icon { font-size: 2rem; line-height: 1; }
.feature-text { font-weight: 700; color: #212529; }
.feature-desc { font-size: 0.82rem; color: #6c757d; line-height: 1.5; margin-top: 2px; }
@media (max-width: 768px) {
  .store-features { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Footer ---- */
html, body { overflow-x: hidden; }
.store-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 40px;
  width: 100%;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 16px;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; }
.footer-logo { width: 40px; height: 40px; border-radius: 8px; }
.footer-name { font-size: 1.5rem; font-weight: 800; color: #fff; }
.footer-tagline { margin: 8px 0 16px; color: #94a3b8; }
.footer-social { display: flex; gap: 14px; justify-content: center; margin-bottom: 14px; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 6px;
  color: #e2e8f0; text-decoration: none;
  background: rgba(255,255,255,0.06);
  padding: 8px 14px; border-radius: 999px;
  transition: background 0.2s;
}
.footer-social a:hover { background: #198754; color: #fff; }
.footer-copy { font-size: 0.85rem; color: #64748b; margin: 0; }

/* ---- Cart table ---- */

@media (max-width: 640px) {
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { border-bottom: 8px solid #f1f3f5; }
  .cart-table td { border-bottom: none; display: flex; justify-content: space-between; align-items: center; }
  .cart-td-product { justify-content: flex-start; }
}

/* ===== Product form page (desktop two-column) ===== */
.product-page {
  --pp-primary: #1e3a5f;
  --pp-accent: #f5a623;
  --pp-bg: #f6f4ef;
  --pp-card: #ffffff;
  --pp-text: #1f2937;
  --pp-muted: #6b7280;
  --pp-radius: 12px;
  --pp-border: #e9ecef;
  padding: 28px 0 40px;
  font-family: 'Tajawal', system-ui, sans-serif;
}
.pp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  direction: ltr;
}
@media (min-width: 992px) {
  .pp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
}
.pp-gallery, .pp-info { direction: rtl; }

.pp-image-wrap {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.pp-main-image { width: 100%; height: 100%; object-fit: cover; }
.pp-noimg { color: #9ca3af; font-weight: 600; }
.pp-wishlist {
  position: absolute; top: 14px; right: 14px;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.9); color: #ef4444;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.15s, background 0.15s;
}
.pp-wishlist:hover { transform: scale(1.08); }
.pp-wishlist.active { background: #ef4444; color: #fff; }

.pp-category {
  font-size: 0.85rem; font-weight: 600; color: var(--pp-muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px;
}
.pp-title { font-size: 2rem; font-weight: 700; color: var(--pp-text); margin: 0 0 14px; line-height: 1.25; }
.pp-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.pp-price { font-size: 1.9rem; font-weight: 800; color: var(--pp-primary); }
.pp-pill {
  font-size: 0.8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  background: #eef2f7; color: var(--pp-muted); border: 1px solid var(--pp-border);
}
.pp-pill-stock { background: #dbeafe; color: #1e3a5f; border-color: #bfdbfe; }

.pp-form-card {
  text-align: center;
  background: var(--pp-card); border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius); overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}
.pp-form-header { background: var(--pp-primary); color: #fff; font-weight: 700; font-size: 1.05rem; padding: 14px 18px; }
.pp-form-card form { padding: 20px 18px 22px; }
.pp-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--pp-text); margin-bottom: 6px; }
.pp-input, .pp-select {
  width: 100%; padding: 11px 14px; border: 1.5px solid #d6dae0; border-radius: 10px;
  font-size: 0.98rem; background: #fff; color: var(--pp-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pp-input:focus, .pp-select:focus { outline: none; border-color: var(--pp-primary); box-shadow: 0 0 0 0.18rem rgba(30,58,95,0.18); }
.pp-error { color: #dc2626; font-size: 0.82rem; margin-top: 4px; }

.delivery-toggle { display: flex; gap: 10px; }
.toggle-btn {
  flex: 1; padding: 11px 10px; border: 1.5px solid var(--pp-primary); border-radius: 10px;
  background: #fff; color: var(--pp-primary); font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.toggle-btn.active { background: var(--pp-primary); color: #fff; }

.pp-stepper { display: flex; align-items: stretch; gap: 8px; }
.step-btn {
  width: 46px; border: 1.5px solid #d6dae0; background: #f3f4f6; border-radius: 10px;
  font-size: 1.3rem; font-weight: 700; color: var(--pp-text); cursor: pointer;
}
.step-btn:hover { background: #e5e7eb; }
.pp-qty {
  flex: 1; text-align: center; border: 1.5px solid #d6dae0; border-radius: 10px;
  font-size: 1.05rem; font-weight: 600;
}

.pp-btn-primary {
  width: 100%; border: none; border-radius: 10px;
  background: linear-gradient(325deg, #0058e6, #33a3ff 55%, #0058e6 90%);
  color: #fff; font-weight: 700; font-size: 1.05rem; padding: 13px; cursor: pointer;
  margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: box-shadow 0.25s, transform 0.15s;
}
.pp-btn-primary:hover {
  box-shadow: 0 0 18px rgba(0, 88, 230, 0.45), 0 0 40px rgba(51, 163, 255, 0.2);
  transform: translateY(-1px);
}
.pp-total-line { text-align: center; font-weight: 700; color: var(--pp-text); margin-top: 10px; }
.pp-helper { text-align: center; font-size: 0.82rem; color: var(--pp-muted); margin-top: 4px; }
.pp-btn-secondary {
  margin-bottom: 30px;
  width: 100%; border: 1.5px solid #d6dae0; border-radius: 10px; background: #fff;
  color: var(--pp-text); font-weight: 700; font-size: 1.02rem; padding: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pp-btn-secondary:hover {
  background: #dbeafe; border-color: #93c5fd; color: #1e3a5f;
}
.hidden { display: none; }


.pp-similar {
  margin-top: 40px;
}
.pp-similar-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pp-text, #1f2937);
  margin: 0 0 18px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin: 30px 0 10px;
}
.pagination .page-num,
.pagination .page-nav,
.pagination .page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.95rem;
  text-decoration: none;
}
.pagination .page-num.active {
  background: #198754;
  border-color: #198754;
  color: #ffffff;
  font-weight: 700;
}
.pagination .page-nav.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.pagination a:hover {
  border-color: #198754;
}

.cat-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 16px;
}
.cat-modal-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.cat-modal-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}
.cat-modal-box label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #374151;
}
.cat-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.cat-modal-actions .btn { flex: 1; }

.cat-modal.open {
  display: flex !important;
}

.heart-icon.active {
  stroke: #e53935;
}

.heart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dee2e6;
  border-radius: 999px;
  background: #fff;
  color: #6c757d;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}

.heart-icon:hover {
  transform: translateY(-1px);
}

.heart-icon.active {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #e53935;
}

.heart-pop {
  animation: heart-pop 260ms ease-out;
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.28); }
  75% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* ---- Hero Carousel ---- */
.hero-carousel {
  --hero-slide-width: 65%;
  position: relative; width: 100%; margin: 0 auto 28px;
  overflow: hidden;
}
.hero-stage {
  display: flex; align-items: center; width: 100%;
  height: 280px; gap: 10px;
}
.hero-stage-single {
  justify-content: center;
}
.hero-slide {
  flex: 0 0 var(--hero-slide-width); max-width: 600px; height: 100%;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  cursor: pointer; position: relative;
}
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  padding: 18px 16px 14px; pointer-events: none;
}
.hero-caption span { color: #fff; font-size: 17px; font-weight: 700; }

/* Arrows */
.hero-arrow {
  position: absolute; top: 50%; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.9); color: #1E293B;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-50%); transition: background 0.2s;
}
.hero-arrow:hover { background: #fff; }
.hero-arrow svg { width: 18px; height: 18px; pointer-events: none; }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }

/* Dots */
.hero-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  padding: 0; transition: all 0.3s;
}
.hero-dot.active {
  background: #2563EB; width: 22px; border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-carousel { --hero-slide-width: 72%; }
  .hero-stage { height: 200px; }
  .hero-arrow { width: 34px; height: 34px; }
  .hero-arrow svg { width: 16px; height: 16px; }
}
@media (max-width: 480px) {
  .hero-carousel { --hero-slide-width: 80%; }
  .hero-stage { height: 170px; }
  .hero-caption span { font-size: 14px; }
}
