* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #05070b;
    color: #f5f5f5;
  }
  
  .header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(5, 7, 11, 0.9);
    border-bottom: 1px solid #222;
    backdrop-filter: blur(10px);
  }
  
  .logo {
    font-weight: 700;
    font-size: 20px;
  }
  .logo span {
    color: #4ade80;
  }
  
  .nav a {
    margin-left: 20px;
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
  }
  .nav a:hover {
    color: #fff;
  }
  
  .hero {
    padding: 60px 40px 40px;
    background: radial-gradient(circle at top, #111827 0, #020617 60%);
  }
  .hero-text {
    max-width: 520px;
  }
  .hero h1 {
    font-size: 32px;
    margin-bottom: 16px;
  }
  .hero p {
    color: #9ca3af;
    margin-bottom: 24px;
  }
  
  .btn-primary {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #020617;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
  }
  .btn-primary:hover {
    filter: brightness(1.05);
  }
  
  .products-section,
  .order-section {
    padding: 40px;
  }
  
  .products-section h2,
  .order-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .product-card {
    background: #020617;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #111827;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .product-card img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 8px;
  }
  
  .product-name {
    font-weight: 600;
  }
  
  .product-price {
    color: #4ade80;
    font-weight: 600;
  }
  
  .product-desc {
    font-size: 14px;
    color: #9ca3af;
  }
  
  .product-card button {
    margin-top: 8px;
    width: 100%;
  }
  
  .order-form {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .order-form label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    gap: 4px;
  }
  
  .order-form input,
  .order-form textarea {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #111827;
    background: #020617;
    color: #e5e7eb;
  }
  
  .order-form textarea {
    min-height: 80px;
    resize: vertical;
  }
  
  .status {
    min-height: 18px;
    font-size: 14px;
    margin-top: 4px;
  }
  
  .status.ok {
    color: #4ade80;
  }
  .status.err {
    color: #f97373;
  }
  
  .footer {
    padding: 20px 40px;
    font-size: 13px;
    color: #6b7280;
    border-top: 1px solid #111827;
    margin-top: 40px;
  }
  
  .btn-add-cart {
    width: 200px;
    height: 40px;
  }
  
  /* ======= Гладкая “маркировка” (right→left) для продуктов ======= */
.marquee-track{
  display: flex;
  gap: 16px;
  padding: 16px;
  /* две копии контента внутри трека для бесшовности */
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover{ animation-play-state: paused; }

@keyframes marquee{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* уедем ровно на ширину первой копии */
}

/* карточка в карусели */
.card-pill{
  width: 260px;
  flex: 0 0 auto;
  border-radius: 22px;
  border: 1px solid rgb(226 232 240); /* slate-200 */
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  overflow: hidden;
}

.card-pill .head{
  background: #f8fafc; /* slate-50 */
  text-align: center;
  padding: 14px 12px 4px 12px;
  border-bottom: 1px solid rgb(241 245 249);
}

.card-pill .imgbox{
  height: 200px;
  display: flex; align-items:center; justify-content:center;
  overflow: hidden;
}
.card-pill img{
  width: 100%; height: 100%; object-fit: cover;
}

/* Смягчить жирность в каталоге */
[data-page="catalog"] .prod-name { font-weight: 500; }  /* medium */
[data-page="catalog"] .prod-price { font-weight: 500; }

[data-product-description] h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

[data-product-description] ul {
  padding-left: 18px;
  margin-bottom: 12px;
}

[data-product-description] li {
  margin-bottom: 4px;
}

[data-product-description] p {
  margin-bottom: 12px;
}

/* ================== АДАПТИВ ПОД МОБИЛКУ ================== */

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .header {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav a {
    margin-left: 0;
    margin-right: 16px;
    font-size: 13px;
  }

  .hero {
    padding: 24px 16px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero p {
    font-size: 14px;
  }

  .products-section,
  .order-section {
    padding: 24px 16px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    padding: 12px;
  }

  .order-form {
    max-width: 100%;
  }

  .footer {
    padding: 16px;
    font-size: 12px;
    text-align: center;
  }

  .btn-primary,
  .btn-add-cart {
    width: 100%; /* кнопки на всю ширину — удобно пальцем */
  }
}

/* Узкие телефоны 390px и меньше — твой конкретный кейс */
@media (max-width: 400px) {
  .products-grid {
    grid-template-columns: 1fr; /* по 1 карточке в ряд */
  }

  .hero,
  .products-section,
  .order-section {
    padding-inline: 12px;
  }

  .header {
    padding-inline: 12px;
  }
}

/* Общий стиль «таблетки» */
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;            /* белая плашка */
  border: 1px solid #e5e7eb;      /* slate-200 */
  white-space: nowrap;
}

.feature-pill .dot,
.dot {
  height: 8px;
  width: 8px;
  border-radius: 999px;
  background: #2563eb;            /* blue-600 */
}

/* Мобилка: авто-маркировка */
@media (max-width: 767px) {
  .feature-marquee {
    display: inline-flex;
    gap: 12px;
    padding: 4px 0 8px;
    width: max-content;
    animation: marquee 20s linear infinite;
  }
}

/* Планшет/десктоп: отключаем анимацию (на всякий случай) */
@media (min-width: 768px) {
  .feature-marquee {
    animation: none;
  }
}

/* ============================
   BRAND COLOR OVERRIDE
   Designer blue: #017EFF
   ============================ */
   :root{
    --brand: #017EFF;
    --brand-hover: #0066D8;     /* темніший для hover */
    --brand-50: #EAF3FF;        /* дуже світлий фон */
    --brand-200: #B3D5FF;       /* світла рамка */
    --brand-ring-100: rgba(1,126,255,.18);
    --brand-ring-300: rgba(1,126,255,.30);
  }
  
  /* backgrounds */
  .bg-blue-600{ background-color: var(--brand) !important; }
  .bg-blue-700{ background-color: var(--brand-hover) !important; }
  .hover\:bg-blue-700:hover{ background-color: var(--brand-hover) !important; }
  .bg-blue-50{ background-color: var(--brand-50) !important; }
  
  /* text */
  .text-blue-600{ color: var(--brand) !important; }
  .hover\:text-blue-600:hover{ color: var(--brand) !important; }
  .text-blue-700{ color: var(--brand-hover) !important; }
  .hover\:text-blue-700:hover{ color: var(--brand-hover) !important; }
  
  /* у тебе в топбарі було text-blue-400 / fill-blue-400 */
  .text-blue-400{ color: var(--brand) !important; }
  .hover\:text-blue-300:hover{ color: var(--brand) !important; }
  
  /* borders */
  .border-blue-600{ border-color: var(--brand) !important; }
  .border-blue-200{ border-color: var(--brand-200) !important; }
  
  /* icons (svg fill) */
  .fill-blue-400{ fill: var(--brand) !important; }
  
  /* ring (focus) */
  .ring-blue-300{ --tw-ring-color: var(--brand-ring-300) !important; }
  .focus\:ring-blue-100:focus{ --tw-ring-color: var(--brand-ring-100) !important; }
  .focus\:ring-blue-300:focus{ --tw-ring-color: var(--brand-ring-300) !important; }

  /* ===== Home "Наші продукти" – bigger cards ===== */
.card-pill{
  min-width: 340px;          /* было меньше -> карточка шире */
  height: 420px;             /* выше */
}

.card-pill .imgbox{
  height: 260px;             /* больше места под банку */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 18px 18px;
}

.card-pill .imgbox img{
  width: 100%;
  max-width: 280px;          /* банка крупнее */
  height: auto;
  transform: scale(1.06);    /* чуть увеличить без замены картинки */
}

/* На телефоне — чуть компактнее */
@media (max-width: 640px){
  .card-pill{
    min-width: 300px;
    height: 390px;
  }
  .card-pill .imgbox{
    height: 230px;
  }
  .card-pill .imgbox img{
    max-width: 250px;
    transform: scale(1.05);
  }
}

/* ===== Topbar marquee (only mobile) ===== */
#topbar .topbar-marquee{
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  will-change: transform;
}

/* На ПК — не двигаем */
@media (min-width: 768px){
  #topbar .topbar-marquee{
    transform: none !important;
    animation: none !important;
  }
}

/* На телефоне — едет */
@media (max-width: 767px){
  #topbar .topbar-marquee{
    animation: topbar-marquee 14s linear infinite;
  }
}

@keyframes topbar-marquee{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Topbar marquee (mobile only) ===== */
#topbar .topbar-marquee{
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  will-change: transform;
}

/* Desktop: не едет и НЕ дублируется */
@media (min-width: 768px){
  #topbar .topbar-marquee{
    display: block;
    animation: none !important;
    transform: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;  /* красиво, если не влазит */
  }
  #topbar .topbar-marquee__item:nth-child(2){
    display: none !important; /* убираем дубль */
  }
}

/* Mobile: едет */
@media (max-width: 767px){
  #topbar .topbar-marquee{
    animation: topbar-marquee 14s linear infinite;
  }
}

@keyframes topbar-marquee{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}