/* ============================================================
   NovaShop-inspired Design – Match generated mockup exactly
   ============================================================ */

@font-face {
  font-family: 'abrama';
  src: url(../../fonts/abrama.ttf);
  font-display: swap;
}

html {
  scrollbar-width: thin; 
  scrollbar-color: #324A3A #f1f1f1; 
}

::-webkit-scrollbar {
  width: 10px; 
  height: 10px; 
}

::-webkit-scrollbar-track {
  background: #f1f1f1; 
}

::-webkit-scrollbar-thumb {
  background: #324A3A; 
  border-radius: 5px; 
}

::-webkit-scrollbar-thumb:hover {
  background: #233327; 
}

:root {
  --primary: #306C42;
  --primary-dark: #245233;
  --primary-soft: rgba(48, 108, 66, 0.12);
  --primary-glow: rgba(48, 108, 66, 0.18);
  --accent: #3d8a55;
  --bg: #F4F1E8;
  --surface: #F9F6EE;
  --text: #1a2e22;
  --text-soft: #4a5c52;
  --muted: #7a8a80;
  --border: #D9D2C4;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 10px;
  --shadow: none;
  --shadow-md: none;
  --shadow-lg: none;
  --success: #306C42;
  --error: #c45c4a;
  --warning: #c4923a;
  --info: #4a7c6f;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 68px;
  --font: 'abrama', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 5px;
  border: 1.5px solid transparent;
  font-weight: 650;
  font-size: 0.925rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: none;
}
.btn-outline {
  background: rgb(255 0 0);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--surface);
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.825rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--error); color: #fff; border-radius: var(--radius-xs); }
.btn-text { background: none; border: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.btn-text:hover { color: var(--error); }

/* ========== Header – full-width bar ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  background: var(--surface);
  border-bottom: 1px solid #7f7f7f;
  box-shadow: none;
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  pointer-events: none;
  z-index: 1;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo img {
    width: 150px;
    padding: 0px 10px;
}
.logo-text {
  background: linear-gradient(135deg, #306C42, #245233);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.main-nav {
  display: none;
  gap: 2px;
  align-items: center;
}
.main-nav a {
  color: var(--text-soft);
  font-weight: 550;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 5px;
  position: relative;
  transition: all 0.2s;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a.active {
  color: var(--primary);
  font-weight: 650;
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0px 10px;
}
.icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #d9d9d9;
  border-radius: 5px;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 1.05rem;
  position: relative;
  transition: all 0.2s;
}
.icon-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.user-initial-btn {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0;
}
.user-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  text-transform: uppercase;
}
.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-badge.hidden { display: none; }

/* Language */
.lang-dropdown { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: none;
  border-radius: 999px;
  background: var(--bg);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
}
.lang-btn:hover { background: var(--primary-soft); }
.lang-chevron { font-size: 0.55rem; color: var(--muted); transition: transform 0.2s; }
.lang-dropdown.open .lang-chevron { transform: rotate(180deg); }
.flag-img { border-radius: 2px; display: block; }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s;
  z-index: 1100;
}
.lang-menu.open,
.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
}
.lang-menu a:hover,
.lang-menu a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Search */
.search-bar {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1180px;
  background: var(--surface);
  border-radius: 5px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 1100;
}
.search-bar.open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
}
.search-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.search-form button {
  padding: 12px 18px;
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
}
.search-close { background: var(--muted) !important; }

/* Mobile menu */
.mobile-menu-toggle { display: flex; }
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 46, 34, 0.5);
  z-index: 200;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-sidebar {
  position: fixed; top: 0; left: 0;
  width: 300px; max-width: 88vw; height: 100%;
  background: var(--surface);
  z-index: 210;
  transform: translateX(-100%);
  transition: transform var(--transition);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  border-radius: 0 24px 24px 0;
}
.mobile-sidebar.open { transform: translateX(0); }
.mobile-sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid var(--border);
}
.mobile-close {
  background: var(--bg); border: none;
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav { padding: 12px 0; overflow-y: auto; flex: 1; }
.mobile-nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; color: var(--text); font-weight: 550; font-size: 0.95rem;
}
.mobile-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.mobile-nav a i { width: 22px; text-align: center; color: var(--muted); }
.mobile-nav hr { border: none; border-top: 1px solid var(--border); margin: 10px 16px; }
.mobile-lang { display: flex; gap: 8px; padding: 12px 20px; }
.mobile-lang a {
  padding: 10px 16px; border-radius: 999px; background: var(--bg);
  color: var(--muted); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.mobile-lang a.active { background: var(--primary); color: #fff; }
.mobile-lang a img { border-radius: 2px; }

/* ========== Hero (rounded blue card like mock) ========== */
.hero {
  position: relative;
  margin: 20px auto 0;
  max-width: 1180px;
  width: calc(100% - 40px);
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(125deg, #1a3d28 0%, #245233 40%, #306C42 100%);
  box-shadow: var(--shadow-lg);
}
.hero-has-bg {
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
    background: linear-gradient(115deg, rgb(0 0 0 / 0%) 0%, rgb(40 40 40 / 50%) 100%);
  border-radius: inherit;
  z-index: 1;
}
/* Soft ambient animated mist across full hero */
.hero-mist {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-mist::before,
.hero-mist::after {
  content: '';
  position: absolute;
  inset: -40%;
  width: 180%;
  height: 180%;
  background:
    radial-gradient(ellipse 55% 45% at 15% 35%, rgba(255,255,255,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 75% 55%, rgba(255,255,255,0.11) 0%, transparent 50%),
    radial-gradient(ellipse 45% 50% at 45% 15%, rgba(210,230,220,0.1) 0%, transparent 48%),
    radial-gradient(ellipse 60% 35% at 55% 85%, rgba(255,255,255,0.09) 0%, transparent 52%),
    radial-gradient(ellipse 40% 40% at 90% 20%, rgba(180,210,195,0.08) 0%, transparent 45%);
  animation: mistFloatA 26s ease-in-out infinite;
  will-change: transform;
}
.hero-mist::after {
  background:
    radial-gradient(ellipse 50% 45% at 85% 40%, rgba(255,255,255,0.12) 0%, transparent 52%),
    radial-gradient(ellipse 55% 40% at 20% 70%, rgba(200,225,210,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 45% 50% at 50% 50%, rgba(255,255,255,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 15%, rgba(255,255,255,0.09) 0%, transparent 48%);
  animation: mistFloatB 32s ease-in-out infinite;
  animation-delay: -10s;
  opacity: 0.9;
}
@keyframes mistFloatA {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(3%, -4%) scale(1.06) rotate(1deg); }
  66% { transform: translate(-4%, 3%) scale(1.03) rotate(-1deg); }
}
@keyframes mistFloatB {
  0%, 100% { transform: translate(0, 0) scale(1.02) rotate(0deg); }
  40% { transform: translate(-3%, 4%) scale(1.07) rotate(-1.5deg); }
  70% { transform: translate(4%, -2%) scale(1.04) rotate(1deg); }
}
.hero-content {
  position: relative; z-index: 2;
  color: #fff;
  padding: 48px 40px;
  max-width: 560px;
}
.hero-title {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.hero-desc {
  font-size: 1rem;
  opacity: 0.88;
  margin-bottom: 28px;
  line-height: 1.65;
  max-width: 420px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.hero .btn-outline:hover {
  background: var(--surface);
  color: var(--primary-dark);
}

/* ========== Auction imitation animation (hero) ========== */
.hero-content.hero-auction-sim {
  max-width: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
}
.hero-auction-layout {
  display: flex;
  align-items: center;

  gap: 28px;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}
/* Left: live bid feed */
.auction-live-feed {
  flex: 0 0 220px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 14px 14px 16px;
  color: #fff;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.live-feed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.9;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  animation: livePulse 1.6s ease infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.live-feed-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  position: relative;
}
.live-feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(12px);
  animation: feedItemIn 4.5s ease-in-out infinite;
}
.live-feed-item .lf-user {
  opacity: 0.85;
  font-weight: 500;
}
.live-feed-item .lf-bid {
  font-weight: 800;
  color: #b8e6c4;
  letter-spacing: -0.02em;
}
.live-feed-item.i1 { animation-delay: 0s; }
.live-feed-item.i2 { animation-delay: 0.9s; }
.live-feed-item.i3 { animation-delay: 1.8s; }
.live-feed-item.i4 { animation-delay: 2.7s; }
.live-feed-item.i5 { animation-delay: 3.6s; }
@keyframes feedItemIn {
  0% { opacity: 0; transform: translateY(14px); }
  12% { opacity: 1; transform: translateY(0); }
  78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.35; transform: translateY(-4px); }
}
.live-feed-bar {
  margin-top: 12px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.live-feed-bar-fill {
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #306C42, #7dcea0);
  animation: feedBar 2.8s ease-in-out infinite;
}
@keyframes feedBar {
  0% { width: 18%; }
  50% { width: 72%; }
  100% { width: 35%; }
}
.auction-sim {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 380px;
  margin: 0;
}
@media (max-width: 720px) {
  .hero-auction-layout {
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
  }
  .auction-live-feed {
    flex: none;
    width: 100%;
    max-width: 320px;
    min-height: auto;
    padding: 12px;
  }
  .live-feed-list {
    max-height: 120px;
  }
  .live-feed-item.i5 { display: none; }
  .auction-sim {
    max-width: 100%;
  }
  .auction-sim-stage {
    height: 180px;
  }
}
@media (max-width: 480px) {
  .hero-content.hero-auction-sim {
    padding: 20px 12px;
  }
  .auction-live-feed {
    max-width: 100%;
  }
  .live-feed-item.i4,
  .live-feed-item.i5 { display: none; }
  .auction-sim-stage {
    height: 160px;
  }
  .auction-sim-gavel {
    width: 60px;
    height: 60px;
    font-size: 1.45rem;
  }
  .auction-sim-ring { width: 100px; height: 100px; }
  .auction-sim-ring.r2 { width: 130px; height: 130px; }
}
.auction-sim-stage {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auction-sim-gavel {
  position: relative;
  z-index: 3;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  animation: gavelStrike 2.8s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.auction-sim-gavel i {
  transform-origin: 30% 70%;
  animation: gavelSwing 2.8s ease-in-out infinite;
}
@keyframes gavelSwing {
  0%, 100% { transform: rotate(-18deg); }
  40% { transform: rotate(12deg); }
  55% { transform: rotate(-8deg); }
  70% { transform: rotate(4deg); }
}
@keyframes gavelStrike {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
  55% { transform: scale(0.98); }
}
.auction-sim-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  z-index: 1;
  animation: ringPulse 2.8s ease-out infinite;
}
.auction-sim-ring.r2 {
  width: 160px;
  height: 160px;
  animation-delay: 0.4s;
  border-color: rgba(255, 255, 255, 0.1);
}
@keyframes ringPulse {
  0% { transform: scale(0.7); opacity: 0.7; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.auction-sim-price {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: pricePop 2.8s ease-in-out infinite;
}
.sim-bid-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  opacity: 0.7;
  font-weight: 600;
}
.sim-bid-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #b8e6c4;
}
@keyframes pricePop {
  0%, 100% { transform: translateX(-50%) scale(1); }
  45% { transform: translateX(-50%) scale(1); }
  52% { transform: translateX(-50%) scale(1.08); }
  60% { transform: translateX(-50%) scale(1); }
}
.auction-sim-chips {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.sim-chip {
  position: absolute;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(48, 108, 66, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  animation: chipFloat 2.8s ease-out infinite;
}
.sim-chip.c1 { left: 12%; top: 42%; animation-delay: 0.15s; }
.sim-chip.c2 { right: 14%; top: 36%; animation-delay: 0.55s; }
.sim-chip.c3 { left: 28%; bottom: 28%; animation-delay: 0.95s; }
@keyframes chipFloat {
  0% { opacity: 0; transform: translateY(8px) scale(0.85); }
  20% { opacity: 1; transform: translateY(0) scale(1); }
  70% { opacity: 0.85; transform: translateY(-28px) scale(1); }
  100% { opacity: 0; transform: translateY(-48px) scale(0.9); }
}
.auction-sim-timer {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.auction-sim-timer i {
  opacity: 0.8;
  animation: timerPulse 1.4s ease-in-out infinite;
}
@keyframes timerPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Hero floaters – soft glass icons, many gentle motions */
.hero-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
}
.floater {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.25rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  animation: floatSoftA 11s ease-in-out infinite;
  will-change: transform, opacity;
}
.floater:nth-child(even) { animation-name: floatSoftB; }
.floater:nth-child(3n) { animation-name: floatSoftC; }
.f1  { top: 12%; right: 22%; animation-duration: 12s; }
.f2  { top: 18%; right: 8%;  animation-duration: 10s; animation-delay: -2s; }
.f3  { top: 42%; right: 26%; animation-duration: 14s; animation-delay: -4s; }
.f4  { top: 55%; right: 10%; animation-duration: 11s; animation-delay: -1s; }
.f5  { top: 28%; right: 38%; animation-duration: 13s; animation-delay: -3s; width: 48px; height: 48px; font-size: 1.05rem; opacity: 0.85; }
.f6  { top: 68%; right: 32%; animation-duration: 15s; animation-delay: -5s; width: 46px; height: 46px; font-size: 1rem; opacity: 0.8; }
.f7  { top: 8%;  right: 48%; animation-duration: 16s; animation-delay: -6s; width: 44px; height: 44px; font-size: 0.95rem; opacity: 0.75; }
.f8  { top: 72%; right: 6%;  animation-duration: 12s; animation-delay: -2.5s; width: 50px; height: 50px; font-size: 1.1rem; opacity: 0.82; }
.f9  { top: 38%; right: 16%; animation-duration: 14s; animation-delay: -7s; width: 42px; height: 42px; font-size: 0.9rem; opacity: 0.7; }
.f10 { top: 62%; right: 44%; animation-duration: 13s; animation-delay: -4.5s; width: 48px; height: 48px; font-size: 1rem; opacity: 0.78; }

@keyframes floatSoftA {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  25% { transform: translate(6px, -14px) scale(1.06); opacity: 1; }
  50% { transform: translate(-4px, -22px) scale(1.02); opacity: 0.85; }
  75% { transform: translate(8px, -10px) scale(1.05); opacity: 0.95; }
}
@keyframes floatSoftB {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.88; }
  30% { transform: translate(-10px, -12px) scale(1.07) rotate(-4deg); opacity: 1; }
  60% { transform: translate(6px, -20px) scale(1.03) rotate(3deg); opacity: 0.82; }
  85% { transform: translate(-4px, -8px) scale(1.04) rotate(-2deg); opacity: 0.92; }
}
@keyframes floatSoftC {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  40% { transform: translate(10px, -16px) scale(1.08); opacity: 1; }
  70% { transform: translate(-8px, -6px) scale(0.98); opacity: 0.75; }
}

/* ========== Sections ========== */
.section { padding: 20px 10px; }
.section-alt { background: transparent; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.link-more {
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
}
.page-title, .page-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px; font-size: 0.85rem; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ========== Categories (centered text, shorter image) ========== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.category-card {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.category-card-image {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: var(--bg);
}
.category-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.category-card:hover .category-card-image img { transform: scale(1.06); }
.category-card-overlay {
  position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgb(0 0 0 / 55%) 45%, rgb(0 0 0 / 65%) 100%);
}
.category-card-body {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  padding: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.category-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

/* Categories section soft bg */
.section-categories {
  position: relative;
  overflow: hidden;
  background: transparent;
}
.section-categories .cat-section-bg,
.section-categories .cat-section-lines {
  display: none;
}
.cat-section-bg,
.cat-section-lines { display: none; }

/* ========== Product cards (match mock) ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.product-card {
  background: var(--surface);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: none;
  box-shadow: var(--shadow);
}
.product-card-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: inherit;
  min-height: 0;
}
.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg);
  padding: 12px;
  border-bottom: 1px solid #cecdcd;
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-card-body {
  padding: 4px 14px 0;
  flex: 1;
}
.product-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}
.product-card-footer {
  padding: 8px 14px 14px;
  margin-top: auto;
}
.product-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.product-card-row .product-card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.price-current {
  font-weight: 750;
  color: var(--text);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.price-old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.72rem;
}
.currency-toggle {
  display: inline-flex;
  gap: 3px;
  margin: 0;
}
.cur-btn {
  width: 35px; height: 35px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.cur-btn:hover { border-color: var(--primary); color: var(--primary); }
.cur-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-cart-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 !important;
  background: var(--primary) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(48, 108, 66, 0.3);
}
.btn-cart-icon:hover {
  background: var(--primary-dark) !important;
  transform: scale(1.05);
}
.btn-cart-icon i { font-size: 0.9rem !important; }
.btn-add-cart { margin: 0; }

.badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}
.badge-discount { background: var(--error); }
.badge-featured {
  background: var(--warning);
  left: auto; right: 10px;
}
.badge-out {
  background: var(--muted);
  top: auto; bottom: 10px; left: 10px;
}

/* ========== Product detail ========== */
.product-detail {
  display: grid;
  gap: 32px;
  margin-bottom: 48px;
  align-items: start;
}
.product-gallery { max-width: 440px; width: 100%; }
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 1;
  max-height: 440px;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
}
.gallery-main:hover img { transform: scale(1.15); }
.gallery-thumbs {
  display: flex; gap: 8px; margin-top: 12px; overflow-x: auto;
}
.gallery-thumbs .thumb {
  width: 68px; height: 68px;
  border-radius: 12px; overflow: hidden;
  border: 2px solid #8f88884f;
  cursor: pointer; flex-shrink: 0;
  padding: 0; background: var(--surface);
}
.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover { border-color: var(--primary); }
.gallery-thumbs .thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-info h1 {
  font-size: 1.65rem;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.product-price-block {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.product-price-block .price-current { font-size: 1.45rem; color: var(--primary); }
.product-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 20px; font-size: 0.9rem; color: var(--muted);
}
.in-stock { color: var(--success); font-weight: 600; }
.out-of-stock { color: var(--error); font-weight: 600; }
.product-desc { margin-bottom: 24px; color: var(--text-soft); line-height: 1.7; }
.product-actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.product-actions .btn {
  flex: 1 1 auto; min-width: 140px; border-radius: var(--radius-sm);
}
.qty-control {
  display: flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden; background: var(--surface);
}
.qty-btn {
  width: 40px; height: 44px; border: none;
  background: var(--bg); cursor: pointer; font-size: 1.15rem;
  color: var(--text); transition: background 0.2s;
}
.qty-btn:hover { background: var(--primary-soft); color: var(--primary); }
.qty-control input {
  width: 52px; text-align: center; border: none;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  height: 44px; background: var(--surface);
}
.related-section { margin-top: 48px; }
.related-section h2 { margin-bottom: 24px; font-weight: 800; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.lightbox.open { opacity: 1; visibility: visible;  }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 100px; right: 20px;
  background: rgba(255, 255, 255, 0.15); border: none;
  color: #fff; font-size: 1.4rem; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ========== Filters ========== */
.products-page-header {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}
.products-page-header h1 { margin-bottom: 4px; }
.products-count { font-size: 0.875rem; }
.products-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ========== Products filter button + modal ========== */
.filter-open-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px !important;
  font-weight: 600;
  border-radius: 5px !important;
  background: var(--primary) !important;
  border: 1.5px solid var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(48, 108, 66, 0.25);
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.filter-open-btn:hover {
  background: var(--primary-dark, #245233) !important;
  border-color: var(--primary-dark, #245233) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(48, 108, 66, 0.3);
}
.filter-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--primary);
  margin-left: 2px;
}
.filter-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 14px;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.825rem;
  font-weight: 600;
}
.filter-active-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(48, 108, 66, 0.15);
  color: var(--primary);
  transition: background 0.15s;
}
.filter-active-clear:hover { background: var(--primary); color: #fff; }

/* Modal */
.filter-modal {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.filter-modal[hidden] { display: none !important; }
.filter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 18, 0.45);
  backdrop-filter: blur(4px);
  animation: filterFadeIn 0.22s ease;
}
.filter-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(88vh, 640px);
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  animation: filterSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
@media (min-width: 640px) {
  .filter-modal {
    align-items: center;
    padding: 24px;
  }
  .filter-modal-panel {
    border-radius: 20px;
    max-height: min(80vh, 620px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  }
}
@keyframes filterFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes filterSlideUp {
  from { transform: translateY(24px); opacity: 0.85; }
  to { transform: translateY(0); opacity: 1; }
}
body.filter-modal-open { overflow: hidden; }

.filter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.filter-modal-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}
.filter-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.filter-modal-close:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.filter-modal-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.filter-modal-section { }
.filter-modal-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 10px;
}
.filter-modal-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-modal-cat {
  display: inline-flex;
  cursor: pointer;
  position: relative;
}
.filter-modal-cat input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.filter-modal-cat span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg);
  border: 1.5px solid transparent;
  transition: all 0.18s;
  white-space: nowrap;
}
.filter-modal-cat:hover span {
  color: var(--primary);
  background: var(--primary-soft);
}
.filter-modal-cat.active span,
.filter-modal-cat input:checked + span {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(48, 108, 66, 0.22);
}
.filter-modal-cat-sub span {
  font-size: 0.78rem;
  padding: 6px 12px;
  opacity: 0.95;
  margin-left: 4px;
  background: transparent;
  border: 1.5px solid var(--border);
}
.filter-modal-cat-sub.active span,
.filter-modal-cat-sub input:checked + span {
  border-color: var(--primary);
}
.filter-modal-price {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.filter-modal-price .filter-group-inline {
  flex: 1 1 120px;
  margin-bottom: 0;
}
.filter-modal-price .filter-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 5px;
}
.filter-modal-price .form-control {
  padding: 10px 12px;
  font-size: 0.9rem;
  border-radius: 12px;
  width: 100%;
  max-width: none;
}
.filter-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.filter-modal-footer .btn { min-width: 100px; }

.filter-group-inline { margin-bottom: 0; min-width: 120px; }
.products-main-full { width: 100%; }
.products-layout { display: block; }
.products-toolbar { margin-bottom: 20px; }
.sort-form .form-select {
  max-width: 220px; border-radius: 999px;
}

/* Subcategories on category page */
.subcategories-block {
  margin-bottom: 28px;
}
.subcategories-block > h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .subcategories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 992px) {
  .subcategories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}
.subcat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}
.subcat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(48, 108, 66, 0.12);
  transform: translateY(-2px);
  color: inherit;
}
.subcat-card-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.1rem;
}
.subcat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.subcat-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Mobile: block layout, icon + text centered */
@media (max-width: 767px) {
  .subcat-card {
    display: block;
    text-align: center;
    padding: 16px 12px;
  }
  .subcat-card-img {
    margin: 0 auto 10px;
  }
  .subcat-card-name {
    display: block;
    text-align: center;
  }
}

.filters-form {
  background: var(--surface); padding: 20px;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.filter-group { margin-bottom: 20px; }
.filter-group h4 {
  font-size: 0.75rem; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); font-weight: 700;
}
.filter-list { display: flex; flex-direction: column; gap: 6px; }
.filter-item {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 0.95rem;
}
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input {
  width: 100%; padding: 8px;
  border: 1px solid var(--border); border-radius: 10px;
}

/* ========== Forms ========== */
.form-select, .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--text);
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; margin-bottom: 6px;
  font-weight: 550; font-size: 0.875rem;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* ========== Cart ========== */
.cart-layout { display: grid; gap: 28px; }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px; align-items: center;
  background: var(--surface);
  padding: 16px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: 14px; overflow: hidden;
  background: var(--bg);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h3 { font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-info h3 a { color: var(--text); }
.cart-item-qty { display: flex; align-items: center; gap: 4px; }
.cart-item-qty input {
  width: 44px; text-align: center; padding: 6px;
  border: 1px solid var(--border); border-radius: 10px;
}
.cart-item-total { font-weight: 700; color: var(--primary); }
.cart-item-remove {
  background: var(--bg); border: none; color: var(--muted);
  cursor: pointer; padding: 8px; border-radius: 10px;
  transition: all 0.2s;
}
.cart-item-remove:hover { color: var(--error); background: #f0d8d4; }
.cart-summary {
  background: var(--surface);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 28px);
  border: 1px solid var(--border);
}
.cart-summary h3 { margin-bottom: 16px; font-weight: 700; }
.summary-row {
  display: flex; justify-content: space-between; margin-bottom: 12px;
}
.summary-total {
  font-size: 1.15rem; font-weight: 700;
  border-top: 1px solid var(--border);
  padding-top: 12px; margin-top: 8px;
}
.summary-item {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; margin-bottom: 8px; color: var(--muted);
}
.cart-summary .btn { margin-top: 10px; border-radius: var(--radius-sm); }
.cart-summary .btn + .btn { margin-top: 8px; }

/* ========== Auth ========== */
.auth-section {
  min-height: calc(100vh - var(--header-h) - 180px);
  display: flex; align-items: center; padding: 40px 0;
}
.auth-card {
  max-width: 420px; margin: 0 auto;
  background: var(--surface);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.auth-card h1 {
  text-align: center; margin-bottom: 28px;
  font-size: 1.45rem; font-weight: 800;
}
.auth-form .btn { margin-top: 8px; }
.auth-footer {
  text-align: center; margin-top: 20px;
  color: var(--muted); font-size: 0.9rem;
}

/* ========== Profile ========== */

/* ========== Profile page ========== */
.profile-section { padding-top: 24px; padding-bottom: 32px; }
.profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--surface) 0%, #f3f7f2 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(26, 46, 34, 0.05);
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(145deg, #306C42, #1a3d28);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(48,108,66,0.32);
  letter-spacing: 0;
  border: 3px solid rgba(255,255,255,0.35);
}
.profile-hero-text { min-width: 0; flex: 1; }
.profile-name {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.profile-meta {
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.88rem;
  color: var(--muted);
}
.profile-meta i { color: var(--primary); margin-right: 5px; }
.profile-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.phs-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(48,108,66,0.1);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
}
.phs-item strong { font-weight: 800; font-size: 0.9rem; }

.profile-nav-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.profile-nav-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.15s;
  font-family: inherit;
  color: inherit;
  width: 100%;
}
.profile-nav-card:hover {
  border-color: rgba(48,108,66,0.35);
  box-shadow: 0 6px 20px rgba(48,108,66,0.1);
  transform: translateY(-1px);
}
.profile-nav-card.is-open {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(48,108,66,0.08), rgba(48,108,66,0.02));
  box-shadow: 0 4px 16px rgba(48,108,66,0.12);
}
.profile-nav-card.is-open .pnc-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}
.pnc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #306C42, #245233);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(48,108,66,0.25);
}
.pnc-icon-win {
  background: linear-gradient(135deg, #c9a227, #8b6914);
  box-shadow: 0 4px 12px rgba(201,162,39,0.3);
}
.pnc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pnc-body strong {
  font-size: 0.95rem;
  font-weight: 750;
  display: block;
}
.pnc-body small {
  font-size: 0.78rem;
  color: var(--muted);
}
.pnc-arrow {
  color: var(--muted);
  font-size: 0.8rem;
  transition: transform 0.25s ease, color 0.2s;
  flex-shrink: 0;
}

.profile-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(26,46,34,0.04);
  animation: profilePanelIn 0.28s ease;
}
@keyframes profilePanelIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.profile-block-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.profile-block-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-block-head h2 i { color: var(--primary); font-size: 1rem; }

.profile-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.profile-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  opacity: 0.75;
}
.profile-empty p { margin: 0; font-weight: 550; }

.profile-orders-list { display: flex; flex-direction: column; gap: 10px; }
.profile-order-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.profile-order-card:hover {
  border-color: var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.poc-id { font-weight: 800; display: block; letter-spacing: -0.01em; }
.poc-date { font-size: 0.78rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; }
.poc-total { color: var(--primary-dark); font-size: 1.05rem; white-space: nowrap; font-weight: 800; }

/* Won auctions cards */
.profile-wins-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-win-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.profile-win-card:hover {
  border-color: rgba(201,162,39,0.45);
  box-shadow: 0 6px 20px rgba(201,162,39,0.12);
  transform: translateY(-1px);
  color: inherit;
}
.pwc-img {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8e4d8;
  flex-shrink: 0;
}
.pwc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pwc-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a227, #8b6914);
  color: #fff;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.pwc-body { min-width: 0; }
.pwc-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 750;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pwc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.75rem;
  color: var(--muted);
}
.pwc-meta i { margin-right: 3px; color: var(--primary); }
.pwc-price {
  text-align: right;
  flex-shrink: 0;
}
.pwc-price-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pwc-price strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  white-space: nowrap;
}

.profile-forms-grid {
  display: grid;
  gap: 20px;
}
.profile-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.profile-logout-wrap {
  text-align: center;
  margin-top: 12px;
  margin-bottom: 8px;
}
.profile-logout-btn {
  min-width: 180px;
  border-radius: 14px;
}

/* Profile responsive */
@media (max-width: 720px) {
  .profile-nav-cards {
    grid-template-columns: 1fr;
  }
  .profile-hero {
    padding: 18px 16px;
    gap: 14px;
  }
  .profile-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
  }
  .profile-name { font-size: 1.25rem; }
}
@media (max-width: 560px) {
  .profile-order-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "left total"
      "status status";
    gap: 8px;
  }
  .poc-left { grid-area: left; }
  .poc-total { grid-area: total; }
  .profile-order-card .status-badge { grid-area: status; justify-self: start; }
  .profile-win-card {
    grid-template-columns: 60px 1fr;
    grid-template-areas:
      "img body"
      "img price";
    gap: 10px 12px;
  }
  .pwc-img { width: 60px; height: 60px; grid-area: img; }
  .pwc-body { grid-area: body; }
  .pwc-price { grid-area: price; text-align: left; }
  .profile-form .form-row {
    grid-template-columns: 1fr;
  }
  .profile-block { padding: 16px; }
}
.profile-layout { display: grid; gap: 24px; margin-bottom: 40px; }
.profile-card {
  background: var(--surface); padding: 24px;
  border-radius: 20px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.profile-card h3 { margin-bottom: 16px; font-weight: 700; }
.profile-orders h2 { margin-bottom: 16px; font-weight: 800; }
.orders-table-wrap { overflow-x: auto; border-radius: 16px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 13px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.table th {
  font-weight: 650; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); background: var(--bg);
}
.status-badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 999px; font-size: 0.75rem; font-weight: 650;
}
.status-pending { background: #f0e6c8; color: #7a5c20; }
.status-confirmed, .status-processing { background: #d4e8dc; color: #1a4a30; }
.status-shipped { background: #d8e5de; color: #245233; }
.status-completed, .status-active { background: #c8e6d4; color: #1a4a30; }
.status-cancelled, .status-inactive { background: #f0d8d4; color: #8a3a30; }

.checkout-layout { display: grid; gap: 28px; }
.checkout-form .btn, .checkout-summary .btn {
  margin-top: 12px; border-radius: var(--radius-sm);
}
.contact-layout { display: grid; gap: 28px; }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-item i {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1rem;
}
.contact-item a {
  color: var(--text);
  font-weight: 600;
}
.contact-item a:hover {
  color: var(--primary);
}
.contact-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(48, 108, 66, 0.08);
}

/* ========== Footer ========== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #14261c 0%, #1a2e22 40%, #1f3a2a 100%);
  color: #a3b5a8;
  padding: 52px 0 0;
  margin-top: 48px;
  border-radius: 32px 32px 0 0;
}
/* Soft ambient mist – same feel as hero */
.footer-mist {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.footer-mist::before,
.footer-mist::after {
  content: '';
  position: absolute;
  inset: -40%;
  width: 180%;
  height: 180%;
  background:
    radial-gradient(ellipse 55% 45% at 15% 35%, rgba(255,255,255,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 75% 55%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 45% 50% at 45% 15%, rgba(210,230,220,0.06) 0%, transparent 48%),
    radial-gradient(ellipse 60% 35% at 55% 85%, rgba(255,255,255,0.04) 0%, transparent 52%),
    radial-gradient(ellipse 40% 40% at 90% 20%, rgba(180,210,195,0.05) 0%, transparent 45%);
  animation: mistFloatA 28s ease-in-out infinite;
  will-change: transform;
}
.footer-mist::after {
  background:
    radial-gradient(ellipse 50% 45% at 85% 40%, rgba(255,255,255,0.06) 0%, transparent 52%),
    radial-gradient(ellipse 55% 40% at 20% 70%, rgba(200,225,210,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 45% 50% at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 15%, rgba(255,255,255,0.05) 0%, transparent 48%);
  animation: mistFloatB 34s ease-in-out infinite;
  animation-delay: -12s;
  opacity: 0.9;
}
/* Soft glass floaters – store icons */
.footer-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}
.footer-floater {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  animation: floatSoftA 14s ease-in-out infinite;
  will-change: transform, opacity;
  opacity: 0.7;
}
.footer-floater:nth-child(even) { animation-name: floatSoftB; }
.footer-floater:nth-child(3n) { animation-name: floatSoftC; }
.ff1 { top: 18%; left: 8%;  animation-duration: 15s; }
.ff2 { top: 55%; left: 18%; animation-duration: 12s; animation-delay: -3s; width: 36px; height: 36px; font-size: 0.85rem; }
.ff3 { top: 28%; right: 12%; animation-duration: 16s; animation-delay: -5s; }
.ff4 { top: 68%; right: 22%; animation-duration: 13s; animation-delay: -2s; width: 38px; height: 38px; font-size: 0.9rem; }
.ff5 { top: 12%; right: 35%; animation-duration: 17s; animation-delay: -7s; width: 34px; height: 34px; font-size: 0.8rem; opacity: 0.55; }
.ff6 { top: 72%; left: 42%; animation-duration: 14s; animation-delay: -4s; width: 40px; height: 40px; }

.footer-content {
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px;
}
.footer-title {
  color: #fff; font-size: 1.2rem; font-weight: 800; margin-bottom: 14px;
}
.footer-col h4 {
  color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 14px;
}
.footer-col p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: #a3b5a8; font-size: 0.875rem; transition: color 0.2s;
}
.footer-col ul a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #c5d4c9; transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--primary); color: #fff; transform: translateY(-2px);
}
.contact-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; margin-bottom: 12px;
}
.contact-list i { margin-top: 3px; color: var(--primary); width: 16px; }
.contact-list a { color: #a3b5a8; }
.contact-list a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0; text-align: center; font-size: 0.8rem;
}

/* ========== Slider ========== */
.section-header-slider {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.slider-controls { display: flex; align-items: center; gap: 8px; }
.slider-btn {
  width: 40px; height: 40px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s; box-shadow: none;
}
.slider-btn:hover {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.product-slider {
  overflow: hidden;
  margin: 0;
}
.product-slider-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 0 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-slider-track::-webkit-scrollbar { display: none; }
.product-slider-item {
  flex: 0 0 calc(50% - 7px);
  max-width: calc(50% - 7px);
  scroll-snap-align: start;
  min-width: 0;
}
.product-slider-item .product-card { height: 100%; }
.product-slider-item .category-card { height: 100%; }

/* ========== Pagination ========== */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 32px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 600; font-size: 0.875rem;
  color: var(--text-soft); background: var(--surface);
  border: 1px solid var(--border); transition: all 0.2s;
}
.pagination a:hover {
  border-color: var(--primary); color: var(--primary); background: var(--primary-soft);
}
.pagination .active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ========== Empty / Toast ========== */
.empty-state {
  text-align: center; padding: 64px 20px; color: var(--muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.35; }
.empty-state p { font-size: 1rem; }

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 20px;
  left: auto;
  top: auto;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 14px 22px;
  border-radius: 14px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  animation: toastUp 0.4s cubic-bezier(0.22, 1.15, 0.36, 1) both;
  min-width: 240px;
  max-width: min(380px, calc(100vw - 40px));
  letter-spacing: 0.01em;
}
.toast-success {
  background: linear-gradient(135deg, #2d8a4e, #1f6b3a);
  border: 1px solid rgba(255,255,255,0.12);
}
.toast-error { background: linear-gradient(135deg, #c45c4a, #a33d2e); }
.toast-warning { background: linear-gradient(135deg, #d4a017, #b8860b); color: #1a1a1a; }
.toast-info { background: linear-gradient(135deg, #3c64a0, #2c4a78); }
@keyframes toastUp {
  from { transform: translateY(28px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes toastDown {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(20px); opacity: 0; }
}

/* ========== Utilities ========== */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.hidden { display: none !important; }
.text-warning { color: var(--warning); }
.main-content { min-height: 50vh; padding-top: 8px; }

/* ========== Product detail – polished ========== */
.product-detail {
  display: grid;
  gap: 36px;
  margin-bottom: 48px;
  align-items: start;
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
 
  box-shadow: var(--shadow);
}
.product-gallery {
  max-width: 100%;
  width: 100%;
}
.gallery-main {
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 1;
  max-height: 480px;
  cursor: zoom-in;
  border: 1px solid var(--border);
  box-shadow: none;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.4s ease;
}
.gallery-main:hover img { transform: scale(1.12); }
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumbs .thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #8f88884f;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover {
  border-color: var(--primary);
 
}
.gallery-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.product-info-cat {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
  text-decoration: none;
}
.product-info-cat:hover { background: #bfdbfe; color: var(--primary-dark); }
.product-info-title,
.product-info h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}
.product-price-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.product-price-block .price-current {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary);
}
.product-price-block .price-old {
  font-size: 1rem;
}
.product-discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fef2f2;
  color: var(--error);
  font-size: 0.8rem;
  font-weight: 700;
}
.product-currency {
  margin-bottom: 18px;
}
.product-currency .cur-btn {
  width: 36px;
  height: 32px;
  border-radius: 10px;
  font-size: 0.9rem;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-soft);
}
.product-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-desc {
  margin-bottom: 24px;
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* Actions: qty + button only as wide as needed */
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.product-actions .btn {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  width: auto !important;
}
.btn-add-cart-detail {
  padding: 12px 22px !important;
  font-size: 0.95rem !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(48, 108, 66, 0.3);
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  height: 46px;
}
.qty-btn {
  width: 42px;
  height: 46px;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--text);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.qty-control input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  height: 46px;
  background: var(--surface);
  font-weight: 600;
  -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.related-section {
  margin-top: 40px;
}
.related-section h2 {
  margin-bottom: 20px;
  font-weight: 800;
  font-size: 1.3rem;
}

/* Header: sticky full-width */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: none !important;
  background: var(--surface) !important;
  padding: 0 !important;
  border-bottom: 1px solid #7f7f7f !important;
}
.header-inner {
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  position: relative;
  z-index: 2;
}

/* Mobile sidebar ABOVE header so logo in sidebar is visible */
.mobile-overlay {
  z-index: 1200 !important;
}
.mobile-sidebar {
  z-index: 1210 !important;
}

/* ========== Fixes: product overflow, search, body pattern, no zoom ========== */

/* Body – warm cream background */
body {
  background-color: var(--bg) !important;
  background-image: none;
}
body::before {
  content: none;
  display: none;
}
.main-content,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Search bar – under header, not full-bleed, high z-index */
.search-bar {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  width: calc(100% - 40px) !important;
  max-width: 1180px !important;
  z-index: 1100 !important;
}
.search-form {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100%;
}
.search-form input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}
.search-form button[type="submit"] {
  flex: 0 0 auto !important;
  width: 48px !important;
  min-width: 48px !important;
  padding: 0 !important;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px !important;
}
.search-close {
  flex: 0 0 auto !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #64748b !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer;
}

/* Product detail – no overflow on mobile */
.product-detail {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.product-gallery {
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0;
  overflow: hidden;
}
.gallery-main {
  max-width: 100% !important;
  width: 100% !important;
  max-height: min(420px, 70vw) !important;
  aspect-ratio: 1;
  overflow: hidden;
}
.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.product-info {
  min-width: 0;
  max-width: 100%;
}

/* Prevent accidental zoom feel */
input, select, textarea, button {
  font-size: 16px;
}

/* ========== Page content white panels ========== */
.section .container > .page-header,
.section .container > .breadcrumb,
.section .container > .products-toolbar,
.section .container > .filters-toolbar,
.section .container > .products-main,
.section .container > .products-grid,
.section .container > .product-detail,
.section .container > .related-section,
.section .container > .cart-layout,
.section .container > .checkout-layout,
.section .container > .profile-layout,
.section .container > .contact-layout,
.section .container > .auth-card,
.section .container > .empty-state {
  /* individual blocks already styled */
}

/* Full page sections: surface behind content */
.section {
  background: transparent;
}
.page-content-card,
.section.section-page .container,
.main-content > .section > .container {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
/* Home product/category sections – surface panel like new products */
.section-categories .container,
.section-alt .container {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
/* Force surface card for typical inner pages via main-content sections that are not home blocks */
.main-content > .section:not(.section-categories):not(.section-alt) > .container {
  background: var(--surface);
  border-radius: 5px;
  padding: 28px 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}
/* Home product sections under section-alt */
.section-alt > .container,
.section-categories > .container {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
  border-radius: 5px !important;
  padding: 28px 12px !important;
}

/* Icon buttons in header – no heavy bg needed on full white bar */

.site-header .icon-btn:hover {
  background: rgba(37, 99, 235, 0.08);
}
.site-header .lang-btn {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.1);
}

/* ========== Auctions ========== */
.auctions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.auction-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.auction-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 46, 34, 0.08);
}
.auction-card-link { display: block; color: inherit; text-decoration: none; }
.auction-card-image {
  position: relative;
  height: 160px;
  background: var(--bg);
  overflow: hidden;
}
.auction-card-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.auction-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.auction-badge-active { background: rgba(48, 108, 66, 0.92); }
.auction-badge-scheduled { background: rgba(60, 100, 160, 0.9); }
.auction-badge-ended { background: rgba(100, 100, 100, 0.85); }
.auction-badge-cancelled { background: rgba(180, 70, 60, 0.9); }
.auction-card-body { padding: 14px; }
.auction-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.auction-card-price { margin-bottom: 6px; }
.auction-price-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.auction-price-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}
.auction-buy-now-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(48,108,66,0.14), rgba(48,108,66,0.06));
  border: 1px solid rgba(48,108,66,0.22);
  color: var(--primary-dark, #245233);
  font-size: 0.78rem;
  font-weight: 650;
}
.auction-buy-now-hint i { color: var(--primary); font-size: 0.75rem; }
.auction-buy-now-hint strong { font-weight: 800; color: var(--primary); }
.auction-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  flex-wrap: wrap;
  margin-top: 4px;
}
.auction-bids-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.auction-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.auction-timer-starts {
  background: rgba(60, 100, 160, 0.12);
  color: #2c5282;
  border: 1px solid rgba(60, 100, 160, 0.25);
}
.auction-timer-ends {
  background: rgba(48, 108, 66, 0.12);
  color: var(--primary-dark, #245233);
  border: 1px solid rgba(48, 108, 66, 0.28);
}
.auction-timer i { font-size: 0.72rem; opacity: 0.9; }

.auction-detail {
  display: grid;
  gap: 28px;
  margin-bottom: 36px;
}

.auction-detail-gallery {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.auction-detail-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.auction-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.auction-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.auction-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.auction-stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}
.auction-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--primary-soft);
  border-radius: 14px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 16px;
}
.auction-countdown strong {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

/* Bid form highlighted */
.bid-form {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(48,108,66,0.08), rgba(48,108,66,0.02));
  border: 1px solid rgba(48,108,66,0.2);
}
.bid-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.bid-form-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bid-form-title i { color: var(--primary); }
.bid-form-min {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.bid-form-min strong { font-weight: 800; }
.bid-amount-group { flex: 1; margin: 0 !important; min-width: 140px; }
.bid-amount-input {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  border: 2px solid rgba(48,108,66,0.25) !important;
}
.bid-amount-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(48,108,66,0.15);
}

.bid-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.bid-msg {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
.bid-msg.ok { background: rgba(48,108,66,0.12); color: var(--primary-dark); }
.bid-msg.err { background: rgba(196,92,74,0.12); color: var(--error); }
/* auction-bids-section head styles in bid history block */

.product-slider-item .auction-card { height: 100%; }

/* Soft-close + bid FX */
.soft-close-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(48,108,66,0.12), rgba(48,108,66,0.04));
  border: 2px solid var(--primary);
}
.soft-close-timer.phase-5 {
  background: linear-gradient(135deg, rgba(196,92,74,0.15), rgba(196,92,74,0.05));
  border-color: var(--error);
  animation: softPulse 0.8s ease-in-out infinite;
}
.soft-close-ring {
  --progress: 1;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  background:
    radial-gradient(closest-side, var(--surface) 72%, transparent 73% 100%),
    conic-gradient(var(--primary) calc(var(--progress) * 1turn), rgba(48,108,66,0.15) 0);
  border: none;
  box-shadow: 0 6px 20px rgba(48,108,66,0.18);
  font-variant-numeric: tabular-nums;
  transition: background 0.35s linear;
}
.soft-close-timer.phase-5 .soft-close-ring {
  color: var(--error);
  background:
    radial-gradient(closest-side, var(--surface) 72%, transparent 73% 100%),
    conic-gradient(var(--error) calc(var(--progress) * 1turn), rgba(196,92,74,0.18) 0);
  box-shadow: 0 6px 20px rgba(196,92,74,0.25);
}
.soft-close-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
@keyframes softPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.bidder-pop {
  position: fixed;
  left: 50%;
  top: 28%;
  transform: translateX(-50%);
  z-index: 9000;
  margin: 0;
  min-height: 0;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.bidder-pop[hidden] { display: none !important; }
.bidder-pop-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #306C42, #245233);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 14px 40px rgba(48,108,66,0.45);
}
.bidder-pop-inner i { font-size: 1.15rem; opacity: 0.95; }
.bidder-pop.pop-anim .bidder-pop-inner {
  animation: bidderJump 0.9s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
@keyframes bidderJump {
  0% { transform: translateY(40px) scale(0.55); opacity: 0; }
  35% { transform: translateY(-14px) scale(1.12); opacity: 1; }
  65% { transform: translateY(4px) scale(0.98); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Leave auction modal */
.leave-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.leave-modal[hidden] { display: none !important; }
.leave-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 22, 0.55);
  backdrop-filter: blur(3px);
}
.leave-modal-card {
  position: relative;
  background: var(--surface, #fff);
  border-radius: 18px;
  padding: 28px 24px 22px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: leaveIn 0.3s ease both;
}
@keyframes leaveIn {
  from { transform: translateY(16px) scale(0.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.leave-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(196,92,74,0.12);
  color: var(--error, #c45c4a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.leave-modal-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
}
.leave-modal-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.leave-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.leave-modal-actions .btn { min-width: 100px; }

/* About page blocks */
.about-blocks { display: flex; flex-direction: column; gap: 20px; }

/* About accordion (frontend) */
.about-accordion { display: flex; flex-direction: column; gap: 12px; }
.about-acc-item {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.about-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark, #245233);
}
.about-acc-title { flex: 1; }
.about-acc-chevron {
  color: var(--muted);
  transition: transform 0.25s ease;
  font-size: 0.9rem;
}
.about-acc-head.is-open .about-acc-chevron,
.about-acc-head[aria-expanded="true"] .about-acc-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.about-acc-body {
  padding: 0 18px 18px;
  border-top: 1px solid transparent;
}
.about-acc-body:not([hidden]) {
  border-top-color: var(--border);
  padding-top: 14px;
  animation: aboutAccIn 0.25s ease both;
}
@keyframes aboutAccIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.about-block {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.about-block h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark, #245233);
}
.about-block-body {
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
}
.about-block-body p { margin: 0 0 0.75em; }
.about-block-body p:last-child { margin-bottom: 0; }

.sold-banner {
  margin: 16px 0;
}
.sold-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1a3d28, #306C42);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(26,61,40,0.3);
}
.sold-banner.show .sold-banner-inner {
  animation: soldIn 0.55s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}
@keyframes soldIn {
  0% { transform: scale(0.7) rotate(-4deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Buy Now highlighted */
.btn-buy-now {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  margin-top: 14px;
  padding: 16px 22px !important;
  border: none !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #e8a317 0%, #f0c14b 45%, #d4920f 100%) !important;
  color: #1a2e22 !important;
  box-shadow: 0 8px 24px rgba(232, 163, 23, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 163, 23, 0.5);
  color: #1a2e22 !important;
}
.btn-buy-now-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.btn-buy-now-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.btn-buy-now-text strong {
  font-size: 1.1rem;
  font-weight: 800;
}
.btn-buy-now-text small {
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0.9;
}

/* Nav auctions highlight */
.main-nav a.nav-auctions,
.mobile-nav a.nav-auctions {
  color: #fff !important;
  background: linear-gradient(135deg, #306C42, #245233) !important;
  font-weight: 750;
  border-radius: 5px;
      width: max-content;
  padding: 8px 16px;
  box-shadow: 0 4px 14px rgba(48, 108, 66, 0.28);
}
.main-nav a.nav-auctions:hover,
.mobile-nav a.nav-auctions:hover {
  color: #fff !important;
  filter: brightness(1.08);
}
.main-nav a.nav-auctions.active::after {
  display: none;
}
.main-nav a.nav-auctions i {
  margin-right: 4px;
  font-size: 0.85em;
}
.mobile-nav a.nav-auctions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 12px;
  justify-content: flex-start;
}

/* Bid history – professional leaderboard */
.auction-bids-section {
  margin-top: 20px;
}
.bids-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.bids-section-head h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.bids-section-head h2 i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(48, 108, 66, 0.28);
}
.bids-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft, rgba(48,108,66,0.12));
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
}
.bids-history-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26, 46, 34, 0.04);
}
.bids-history-list {
  display: flex;
  flex-direction: column;
  padding: 6px;
  gap: 4px;
}
.bid-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  gap: 12px 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}
.bid-row:hover {
  background: rgba(48, 108, 66, 0.05);
}
.bid-row-top {
  background: linear-gradient(105deg, rgba(48,108,66,0.12) 0%, rgba(48,108,66,0.03) 100%);
  border-color: rgba(48, 108, 66, 0.14);
  box-shadow: 0 2px 12px rgba(48, 108, 66, 0.08);
}
.bid-row-2 {
  background: linear-gradient(105deg, rgba(148,163,184,0.12) 0%, transparent 100%);
}
.bid-row-3 {
  background: linear-gradient(105deg, rgba(180,140,90,0.1) 0%, transparent 100%);
}
.bid-rank {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text-soft);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.bid-rank-num { line-height: 1; }
.bid-crown {
  position: absolute;
  top: -7px;
  right: -6px;
  font-size: 0.65rem;
  color: #e8b84a;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
.bid-row-top .bid-rank {
  background: linear-gradient(135deg, #306C42, #1f4a2e);
  color: #fff;
  box-shadow: 0 3px 10px rgba(48, 108, 66, 0.35);
}
.bid-row-2 .bid-rank {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #fff;
}
.bid-row-3 .bid-rank {
  background: linear-gradient(135deg, #c4a574, #8b6914);
  color: #fff;
}
.bid-user {
  font-weight: 650;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bid-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, #306C42, #245233);
  box-shadow: 0 2px 8px rgba(48, 108, 66, 0.2);
}
.bid-avatar[data-i="1"] { background: linear-gradient(135deg, #3d7a9a, #2a5a72); }
.bid-avatar[data-i="2"] { background: linear-gradient(135deg, #7a5c9a, #5a3d72); }
.bid-avatar[data-i="3"] { background: linear-gradient(135deg, #9a6b3d, #72502a); }
.bid-avatar[data-i="4"] { background: linear-gradient(135deg, #3d9a6b, #2a7250); }
.bid-avatar[data-i="5"] { background: linear-gradient(135deg, #9a3d5c, #722a42); }
.bid-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bid-amount {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.02rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(48, 108, 66, 0.08);
}
.bid-row-top .bid-amount {
  background: rgba(48, 108, 66, 0.14);
  color: var(--primary-dark);
}
.bid-time {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}
.bid-time i {
  font-size: 0.72rem;
  opacity: 0.75;
}
.bids-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-weight: 550;
}
.bids-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary);
  opacity: 0.7;
}

/* Responsive bid history */
@media (max-width: 640px) {
  .bid-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank user amount"
      "rank time amount";
    gap: 4px 10px;
    padding: 12px;
  }
  .bid-rank { grid-area: rank; width: 34px; height: 34px; border-radius: 10px; font-size: 0.8rem; }
  .bid-user { grid-area: user; }
  .bid-amount { grid-area: amount; align-self: center; font-size: 0.95rem; padding: 5px 10px; }
  .bid-time {
    grid-area: time;
    font-size: 0.72rem;
    padding-left: 0;
  }
  .bid-avatar { width: 30px; height: 30px; font-size: 0.75rem; }
  .bids-section-head h2 { font-size: 1.05rem; }
  .bids-section-head h2 i { width: 30px; height: 30px; font-size: 0.75rem; border-radius: 8px; }
  .bids-history-list { padding: 4px; gap: 3px; }
}
@media (max-width: 380px) {
  .bid-row {
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-areas:
      "rank user"
      "rank amount"
      "rank time";
  }
  .bid-amount { justify-self: start; }
}

/* Auctions carousel: mobile 1 card (desktop overridden in responsive) */
#slider-auctions .product-slider-item,
#slider-sold-auctions .product-slider-item {
  flex: 0 0 100%;
  max-width: 100%;
}

.auction-detail-gallery .btn-buy-now {
  margin-top: 12px;
  border-radius: 14px !important;
}

/* Auction card start/end times */
.auction-card-times {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border);
}
.auction-time-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
}
.auction-time-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.auction-time-label i {
  width: 14px;
  color: var(--primary);
  font-size: 0.7rem;
  text-align: center;
}
.auction-time-value {
  font-weight: 750;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.auction-time-start .auction-time-value { color: #2c5282; }
.auction-time-end .auction-time-value { color: var(--primary-dark, #245233); }

/* Winner row – pleasant green highlight */
.bid-row-winner {
  background: linear-gradient(105deg, rgba(34, 160, 90, 0.2), rgba(34, 160, 90, 0.05)) !important;
  border: 1px solid rgba(34, 160, 90, 0.32) !important;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(34, 160, 90, 0.14);
}
.bid-row-winner .bid-rank {
  background: linear-gradient(135deg, #22a05a, #1a7a45) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(34, 160, 90, 0.4);
}
.bid-row-winner .bid-user-name,
.bid-row-winner .bid-amount {
  color: #1a7a45 !important;
  font-weight: 800;
}
.bid-row-winner .bid-amount {
  background: rgba(34, 160, 90, 0.14) !important;
}
.bid-row-winner .bid-crown {
  color: #f0c14b;
}

/* Winner highlight block on detail page */
.winner-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(34, 160, 90, 0.15), rgba(34, 160, 90, 0.05));
  border: 1px solid rgba(34, 160, 90, 0.35);
  border-radius: 12px;
  color: #1a7a45;
  font-size: 1.05rem;
}
.winner-highlight i {
  color: #22a05a;
  font-size: 1.3rem;
}
.winner-highlight strong {
  font-weight: 800;
}
.winner-alert {
  border-color: rgba(34, 160, 90, 0.4) !important;
  background: rgba(34, 160, 90, 0.1) !important;
}
.winner-name-text {
  color: #1a7a45;
  font-size: 1.1rem;
}
.sold-winner-name {
  display: block;
  margin-top: 6px;
  font-weight: 800;
  font-size: 1.15rem;
  color: #e8fff0;
}

.auction-times-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 10px 0 14px;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.auction-times-row i {
  color: var(--primary);
  margin-right: 4px;
}
.auction-times-row strong {
  color: var(--text);
}

/* Scheduled / locked auction view */
.auction-locked-wrap {
  display: grid;
  gap: 24px;
  align-items: start;
}
.auction-locked-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: none;
}
.auction-locked-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(60, 100, 160, 0.12);
  color: #3c64a0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.auction-locked-msg {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin: 8px 0 4px;
}
.auction-locked-time {
  font-size: 1.45rem;
  color: var(--primary);
  margin: 12px 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auction-countdown-locked {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
  padding: 14px 22px;
  gap: 10px;
  white-space: nowrap;
  box-sizing: border-box;
}
.auction-countdown-locked #auction-timer {
  min-width: 0;
}
.auction-locked-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.auction-locked-preview {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.auction-locked-preview img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 360px;
}

/* Auction card live bidders overlay */
.auction-card-image { position: relative; }
.auction-card-bidders {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
  z-index: 2;
  max-height: 70%;
  overflow: hidden;
}
.auction-bidder-chip {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(26, 61, 40, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.auction-bidder-chip.show {
  opacity: 1;
  transform: translateY(0);
}
.auction-bidder-chip.hide {
  opacity: 0;
  transform: translateY(-6px);
}

/* Sold auction carousel cards */
.sold-auction-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sold-auction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}
.sold-auction-image {
  position: relative;
  height: 160px;
  background: #f3f4f0;
}
.sold-auction-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sold-auction-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(34, 160, 90, 0.95);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.sold-auction-body { padding: 14px 16px 16px; }
.sold-auction-title {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sold-auction-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sold-auction-price span {
  font-size: 0.78rem;
  color: var(--muted);
}
.sold-auction-price strong {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 800;
}
.sold-auction-buyer {
  font-size: 0.82rem;
  color: var(--text-soft, #555);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sold-auction-buyer i { color: var(--primary); font-size: 0.75rem; }

/* ========== Utility classes (replacing inline styles) ========== */
.u-mt-8 { margin-top: 8px; }
.u-mt-10 { margin-top: 10px; }
.u-mt-14 { margin-top: 14px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-18 { margin-top: 18px; }
.u-mb-10 { margin-bottom: 10px; }
.u-mb-16 { margin-bottom: 16px; }
.u-mb-20 { margin-bottom: 20px; }
.u-m-0 { margin: 0; }
.u-m-0-mt4 { margin: 4px 0 0; }
.u-m-20-12 { margin: 20px 0 12px; }
.u-m-0-14 { margin: 0 0 14px; }
.u-m-0-12 { margin: 0 0 12px; }
.u-fs-08 { font-size: 0.8rem; }
.u-fs-085 { font-size: 0.85rem; }
.u-fs-09 { font-size: 0.9rem; }
.u-fs-1 { font-size: 1rem; }
.u-flex { display: flex; }
.u-inline { display: inline; }
.u-inline-flex { display: inline-flex; }
.u-flex-wrap { flex-wrap: wrap; }
.u-items-center { align-items: center; }
.u-self-center { align-self: center; }
.u-justify-between { justify-content: space-between; }
.u-gap-6 { gap: 6px; }
.u-gap-8 { gap: 8px; }
.u-gap-10 { gap: 10px; }
.u-gap-12 { gap: 12px; }
.u-cursor-pointer { cursor: pointer; }
.u-color-primary { color: var(--primary); }
.u-color-error { color: var(--error, #c45c4a); }
.u-color-muted { color: var(--muted); }
.u-relative-z1 { position: relative; z-index: 1; }
.u-block { display: block; }
.u-mt-4 { margin-top: 4px; }
.u-fs-075 { font-size: 0.75rem; }
.u-mb-6 { margin-bottom: 6px; }

.img-logo-preview { max-height: 60px; }
.img-hero-preview {
  max-height: 100px;
  border-radius: 8px;
  display: block;
}
.checkbox-label-inline {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.checkbox-label-inline .delete-hint {
  color: var(--error, #c45c4a);
  font-size: 0.875rem;
}
.admin-page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-page-header-row .subtitle {
  margin: 4px 0 0;
}
.admin-filters-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.form-inline {
  display: inline;
}
.meta-line {
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.meta-line-block {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}
.order-items-title {
  margin: 20px 0 12px;
}
.order-item-meta {
  font-size: 0.8rem;
}
.product-extra-label {
  font-size: 0.75rem;
  display: block;
  margin-top: 6px;
}
.flex-gap-8-mt {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.section-title-sm {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title-plain {
  margin: 0 0 14px;
}
.hint-text {
  margin: 0 0 12px;
  font-size: 0.9rem;
}
.hint-text-lg {
  margin: 0 0 12px;
  font-size: 1rem;
}
.btn-save-mt {
  margin-top: 8px;
}
.form-group-mt14 {
  margin-top: 14px;
}
.current-img-mb {
  margin-bottom: 10px;
}
.admin-card-mb {
  margin-bottom: 16px;
}
.admin-card-mb20 {
  margin-bottom: 20px;
}
.page-title-mt10 {
  margin-top: 10px;
}
.btn-mt18 {
  margin-top: 18px;
}
.alert-mt16 {
  margin-top: 16px;
}
