/**
 * Fresh Seafood (Hải Sản Tươi Sống) Design System
 * Cool ocean / ice / speed / freshness feel
 */

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --fresh-primary:   #0B5E8E;
  --fresh-secondary: #0EA5C8;
  --fresh-accent:    #00C4D8;
  --fresh-ice:       #E0F7FA;
  --fresh-deep:      #063B5B;
  --fresh-light:     #F0F9FF;
  --fresh-card:      #FFFFFF;
  --fresh-border:    #BAE6FD;
  --fresh-text:      #0C3B5E;
  --fresh-muted:     #4A7FA0;
  --fresh-live:      #16A34A;
  --fresh-live-bg:   #F0FDF4;
  --fresh-urgent:    #DC2626;
  --fresh-radius:    14px;
  --fresh-shadow:    0 2px 16px rgba(11,94,142,.10);
  --fresh-shadow-hover: 0 8px 32px rgba(11,94,142,.20);
}

/* ─── Page background ────────────────────────────────── */
.page-fresh-seafood {
  background: var(--fresh-light);
}

/* ─── Wave Animation ─────────────────────────────────── */
@keyframes wave {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .7; transform: scale(1.15); }
}

/* ─── Hero ───────────────────────────────────────────── */
.fresh-hero {
  position: relative;
  overflow: hidden;
  background-color: #063B5B;
  background-size: cover;
  background-position: center top;
  padding: 60px 0 56px;
}
.fresh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 90%, rgba(0,196,216,.18) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(14,165,200,.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
}
/* Wave at bottom */
.fresh-hero__wave {
  position: absolute;
  bottom: -2px; left: 0;
  width: 200%;
  height: 60px;
  display: flex;
}
.fresh-hero__wave svg {
  width: 50%;
  flex-shrink: 0;
  animation: wave 8s linear infinite;
  fill: var(--fresh-light);
}
.fresh-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  z-index: 1;
}
.fresh-hero h1 {
  color: #fff;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.fresh-hero__sub {
  color: rgba(255,255,255,.85);
  font-size: 16px;
  margin: 0 0 20px;
  line-height: 1.6;
}
.fresh-hero__breadcrumb {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  margin-bottom: 12px;
}
.fresh-hero__breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.fresh-hero__breadcrumb a:hover { color: #fff; }

/* Live indicator */
.fresh-hero__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fresh-live-bg);
  border: 1.5px solid var(--fresh-live);
  color: var(--fresh-live);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.fresh-hero__live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fresh-live);
  animation: pulse-live 1.4s ease-in-out infinite;
}
.fresh-hero__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.fresh-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Stats */
.fresh-hero__stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fresh-stat {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  backdrop-filter: blur(8px);
  min-width: 130px;
}
.fresh-stat__num {
  font-size: 26px;
  font-weight: 800;
  color: var(--fresh-accent);
  line-height: 1;
}
.fresh-stat__label { color: rgba(255,255,255,.75); font-size: 11px; margin-top: 4px; }

/* ─── Delivery urgency strip ─────────────────────────── */
.fresh-urgency-strip {
  background: linear-gradient(90deg, var(--fresh-primary), var(--fresh-secondary));
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.fresh-urgency-strip strong { color: var(--fresh-accent); }

/* ─── Sub-category chips ─────────────────────────────── */
.fresh-subcats {
  background: #fff;
  border-bottom: 1px solid var(--fresh-border);
  padding: 14px 0;
  margin-bottom: 28px;
  position: sticky;
  top: 64px;
  z-index: 10;
}
.fresh-subcats__inner {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.fresh-subcats__inner::-webkit-scrollbar { display: none; }
.fresh-subcat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  border: 2px solid transparent;
}
.fresh-subcat-chip--active,
.fresh-subcat-chip:hover {
  background: var(--fresh-secondary);
  color: #fff;
  border-color: var(--fresh-secondary);
}
.fresh-subcat-chip--inactive {
  background: var(--fresh-ice);
  color: var(--fresh-primary);
  border-color: var(--fresh-border);
}

/* ─── Layout ─────────────────────────────────────────── */
.fresh-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* ─── Filter Sidebar ─────────────────────────────────── */
.fresh-filter {
  background: #fff;
  border: 1.5px solid var(--fresh-border);
  border-radius: var(--fresh-radius);
  padding: 24px;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--fresh-border) transparent;
}
.fresh-filter__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--fresh-text);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--fresh-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fresh-filter__group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--fresh-border);
}
.fresh-filter__group:last-of-type { border-bottom: none; margin-bottom: 0; }
.fresh-filter__group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--fresh-muted);
  margin: 0 0 10px;
}
.fresh-filter__check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--fresh-text);
}
.fresh-filter__check input {
  width: 16px; height: 16px;
  accent-color: var(--fresh-secondary);
  flex-shrink: 0;
}
.fresh-status-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fresh-status-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid var(--fresh-border);
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  color: var(--fresh-text);
  cursor: pointer;
  transition: all .15s;
  text-align: left;
  width: 100%;
}
.fresh-status-btn.active,
.fresh-status-btn:hover {
  border-color: var(--fresh-secondary);
  background: var(--fresh-ice);
  color: var(--fresh-primary);
  font-weight: 600;
}
.fresh-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fresh-status-dot--live   { background: #16A34A; }
.fresh-status-dot--fresh  { background: #0EA5C8; }
.fresh-status-dot--frozen { background: #6366F1; }
.fresh-status-dot--preorder { background: #F59E0B; }

.fresh-price-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fresh-price-btn {
  padding: 7px 12px;
  border: 1.5px solid var(--fresh-border);
  border-radius: 8px;
  background: transparent;
  color: var(--fresh-text);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: all .15s;
}
.fresh-price-btn.active,
.fresh-price-btn:hover {
  border-color: var(--fresh-secondary);
  background: var(--fresh-ice);
  color: var(--fresh-primary);
  font-weight: 600;
}
.fresh-filter__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.fresh-btn-apply {
  background: linear-gradient(135deg, var(--fresh-primary), var(--fresh-secondary));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}
.fresh-btn-apply:hover { opacity: .9; }
.fresh-btn-reset {
  background: transparent;
  border: 1.5px solid var(--fresh-border);
  color: var(--fresh-muted);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.fresh-btn-reset:hover { border-color: var(--fresh-accent); color: var(--fresh-accent); }

/* ─── Products Area ──────────────────────────────────── */
.fresh-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.fresh-count {
  font-size: 14px;
  color: var(--fresh-muted);
  font-weight: 600;
}
.fresh-count strong { color: var(--fresh-text); }
.fresh-sort-select {
  border: 1.5px solid var(--fresh-border);
  border-radius: 8px;
  padding: 8px 32px 8px 12px;
  font-size: 13px;
  color: var(--fresh-text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%230EA5C8'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
}

/* ─── Product Grid ───────────────────────────────────── */
.fresh-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.fresh-no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--fresh-muted);
}
.fresh-no-results .emoji { font-size: 60px; display: block; margin-bottom: 12px; }

/* ─── Skeleton Loading ───────────────────────────────── */
.fresh-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.fresh-skeleton-card {
  border-radius: var(--fresh-radius);
  overflow: hidden;
  border: 1px solid var(--fresh-border);
}
.fresh-skeleton-img {
  height: 180px;
  background: linear-gradient(90deg, #bae6fd 25%, #e0f7fa 50%, #bae6fd 75%);
  background-size: 200% 100%;
  animation: fresh-shimmer 1.5s ease-in-out infinite;
}
.fresh-skeleton-body { padding: 14px; }
.fresh-skeleton-line {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #bae6fd 25%, #e0f7fa 50%, #bae6fd 75%);
  background-size: 200% 100%;
  animation: fresh-shimmer 1.5s ease-in-out infinite;
}
.fresh-skeleton-line--short { width: 60%; }
.fresh-skeleton-line--tall { height: 20px; }
@keyframes fresh-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Fresh Product Card ─────────────────────────────── */
.fresh-card {
  background: var(--fresh-card);
  border: 1.5px solid var(--fresh-border);
  border-radius: var(--fresh-radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.fresh-card:hover {
  box-shadow: var(--fresh-shadow-hover);
  transform: translateY(-3px);
}
.fresh-card__img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--fresh-ice);
  aspect-ratio: 4/3;
}
.fresh-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.fresh-card:hover .fresh-card__img { transform: scale(1.05); }
.fresh-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, var(--fresh-ice), #b3e5fc);
  animation: float 3s ease-in-out infinite;
}

/* Live status bar at top of card */
.fresh-card__status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: .02em;
}
.fresh-card__status-bar--live {
  background: rgba(22,163,74,.88);
  color: #fff;
}
.fresh-card__status-bar--fresh {
  background: rgba(14,165,200,.88);
  color: #fff;
}
.fresh-card__status-bar--frozen {
  background: rgba(99,102,241,.88);
  color: #fff;
}
.fresh-card__status-bar--preorder {
  background: rgba(245,158,11,.88);
  color: #fff;
}
.fresh-card__status-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-live 1.4s ease-in-out infinite;
}

/* Delivery badge */
.fresh-card__delivery-badge {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(11,94,142,.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.fresh-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.4;
  white-space: nowrap;
}
.fresh-badge--live      { background: #16A34A; color: #fff; }
.fresh-badge--giao-2h   { background: #DC2626; color: #fff; }
.fresh-badge--giu-oxy   { background: #0369a1; color: #fff; }
.fresh-badge--hang-tuyen{ background: #7C3AED; color: #fff; }
.fresh-badge--dong-lanh { background: #6366F1; color: #fff; }
.fresh-badge--top       { background: #F59E0B; color: #fff; }

.fresh-card__body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.fresh-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fresh-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fresh-card__name a { color: inherit; text-decoration: none; }
.fresh-card__name a:hover { color: var(--fresh-secondary); }

/* Status row */
.fresh-card__live-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}
.fresh-card__live-row--live   { color: var(--fresh-live); }
.fresh-card__live-row--fresh  { color: var(--fresh-secondary); }
.fresh-card__live-row--frozen { color: #6366F1; }
.fresh-card__live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fresh-card__live-dot--live   { background: var(--fresh-live); animation: pulse-live 1.4s ease-in-out infinite; }
.fresh-card__live-dot--fresh  { background: var(--fresh-secondary); }
.fresh-card__live-dot--frozen { background: #6366F1; }

.fresh-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--fresh-muted);
}
.fresh-card__meta-item { display: flex; align-items: center; gap: 3px; }

.fresh-card__delivery {
  background: var(--fresh-ice);
  border: 1px solid var(--fresh-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--fresh-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.fresh-card__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--fresh-muted);
}
.fresh-card__stars { color: #F59E0B; }

.fresh-card__price {
  margin-top: 4px;
}
.fresh-card__price-main {
  font-size: 18px;
  font-weight: 800;
  color: var(--fresh-primary);
}
.fresh-card__price-unit {
  font-size: 12px;
  color: var(--fresh-muted);
  font-weight: 400;
}
.fresh-card__price-note {
  font-size: 11px;
  color: var(--fresh-muted);
  margin-top: 2px;
  font-style: italic;
}

.fresh-card__shop {
  font-size: 12px;
  color: var(--fresh-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.fresh-card__shop a { color: var(--fresh-secondary); text-decoration: none; font-weight: 600; }

.fresh-card__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--fresh-border);
  background: var(--fresh-ice);
  display: flex;
  gap: 8px;
}
.fresh-card__btn {
  flex: 1;
  background: linear-gradient(135deg, var(--fresh-primary), var(--fresh-secondary));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: opacity .2s;
}
.fresh-card__btn:hover { opacity: .9; color: #fff; }
.fresh-card__btn--outline {
  flex: 0 0 auto;
  padding: 10px 12px;
  background: transparent;
  border: 1.5px solid var(--fresh-secondary);
  color: var(--fresh-secondary);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.fresh-card__btn--outline:hover {
  background: var(--fresh-secondary);
  color: #fff;
}

/* ─── Load More ──────────────────────────────────────── */
.fresh-load-more {
  width: 100%;
  margin-top: 28px;
  padding: 14px;
  background: #fff;
  border: 2px solid var(--fresh-secondary);
  color: var(--fresh-secondary);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.fresh-load-more:hover { background: var(--fresh-secondary); color: #fff; }
.fresh-load-more:disabled { opacity: .5; cursor: not-allowed; }

/* ─── SEO Block ──────────────────────────────────────── */
.fresh-seo-block {
  background: linear-gradient(135deg, var(--fresh-ice), #e0f2fe);
  border: 1px solid var(--fresh-border);
  border-radius: 20px;
  padding: 32px 40px;
  margin-top: 48px;
}
.fresh-seo-block h2 { color: var(--fresh-primary); font-size: 20px; font-weight: 800; margin: 0 0 16px; }
.fresh-seo-block p { color: var(--fresh-muted); line-height: 1.7; margin: 0 0 12px; font-size: 14px; }

/* ─── FAQ ────────────────────────────────────────────── */
.fresh-faq { max-width: 760px; margin: 40px auto 0; }
.fresh-faq__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--fresh-primary);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fresh-faq__item {
  border: 1.5px solid var(--fresh-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}
.fresh-faq__q {
  padding: 16px 20px;
  font-weight: 700;
  color: var(--fresh-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.fresh-faq__q::after { content: '+'; font-size: 20px; color: var(--fresh-secondary); }
.fresh-faq__item.open .fresh-faq__q::after { content: '−'; }
.fresh-faq__a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  color: var(--fresh-muted);
  font-size: 14px;
  line-height: 1.7;
}
.fresh-faq__item.open .fresh-faq__a { max-height: 400px; padding: 0 20px 16px; }

/* ─── Mobile ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .fresh-layout { grid-template-columns: 1fr; }
  .fresh-filter { position: static; max-height: none; display: none; }
  .fresh-filter.open { display: block; }
  .fresh-hero__inner { grid-template-columns: 1fr; }
  .fresh-hero__stats { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .fresh-hero { padding: 36px 0 40px; }
  .fresh-hero h1 { font-size: 22px; }
  .fresh-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 380px) {
  .fresh-products-grid { grid-template-columns: 1fr; }
}
