body {
    margin: 0;
    background: #000;
    color: #00ffcc;
    font-family: 'Press Start 2P', monospace;
    line-height: 1.8;
    text-align: center;
    background-size: cover;
    position: relative;
    z-index: 1;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.3);
}

header {
    background: rgba(34, 34, 34, 0.8);
    padding: 20px 10px;
    border-bottom: 2px solid #00ffcc;
    text-shadow: 0 0 5px #00ffcc;
}

h1 {
    font-size: 22px;
    margin-bottom: 5px;
}

nav a {
    color: #ff00cc;
    text-decoration: none;
    margin: 0 15px;
    font-size: 12px;
}

nav a:hover {
    color: #ffff00;
}

.container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.6);
}

.section {
    margin-bottom: 50px;
}

.section img {
    max-width: 200px;
    margin: 20px auto;
    display: block;
}

/* ===== GRID fallback pentru categorii ===== */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== Card categorie ===== */
.cat-card {
    background: rgba(17, 17, 17, 0.8);
    border: 2px solid #00ffcc;
    padding: 24px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 340px; /* înălțime minimă egală pentru toate cardurile */
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px #00ffcc, 0 0 25px #ff00cc;
}

.cat-card h3 {
    font-size: 16px;
    margin: 12px 0 8px;
    color: #ffff00;
    min-height: 40px; /* aliniere titluri */
}

.cat-card p {
    font-size: 11px;
    margin: 0 0 16px;
    color: #ccc;
    min-height: 48px; /* aliniere descrieri */
    text-align: center;
}

/* ===== Imagini categorie ===== */
.cat-art {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin: 10px 0 18px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0,255,204,0.25));
}

/* ===== Buton cumpără ===== */
.btn {
    display: inline-block;
    background: #ff00cc;
    color: #000;
    padding: 12px 18px;
    font-size: 11px;
    text-decoration: none;
    border: 2px solid #ffff00;
    box-shadow: 0 0 8px #ff00cc, 0 0 20px #ffff00;
    animation: pulse 1.2s infinite;
    border-radius: 6px;
    margin-top: auto;
    align-self: center;
}

.btn:hover {
    background: #ffff00;
    color: #000;
    border-color: #ff00cc;
    box-shadow: 0 0 10px #ffff00, 0 0 25px #ff00cc;
}

/* ===== Animație puls ===== */
@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== Beneficii ===== */
.benefits {
    list-style: none;
    padding: 0;
    font-size: 10px;
}

.benefits li {
    margin: 5px 0;
    color: #fff;
}

footer {
    border-top: 2px solid #00ffcc;
    padding: 20px;
    background: rgba(17, 17, 17, 0.8);
    font-size: 10px;
    color: #888;
}

/* scanline overlay retro */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0px, transparent 2px, transparent 4px);
    pointer-events: none;
    z-index: 2;
}

header, .container, footer {
    position: relative;
    z-index: 3;
}

/* ===== Carousel categorii ===== */
.carousel {
  position: relative;
  margin-top: 24px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 48px;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 56px;
}

.carousel-track::-webkit-scrollbar { height: 0; }
.carousel-track { -ms-overflow-style: none; scrollbar-width: none; }

.slide {
  scroll-snap-align: center;
  flex: 0 0 88%;
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .slide { flex-basis: 46%; }
}

@media (min-width: 992px) {
  .slide { flex-basis: 30%; }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #ffff00;
  background: #ff00cc;
  color: #000;
  font-size: 24px;
  line-height: 44px;
  cursor: pointer;
  box-shadow: 0 0 10px #ff00cc, 0 0 20px #ffff00;
  z-index: 5;
}

.carousel-btn:hover {
  background: #ffff00;
  border-color: #ff00cc;
}

.carousel-btn.prev { left: 4px; }
.carousel-btn.next { right: 4px; }

.cat-card:hover .cat-art {
    filter: drop-shadow(0 0 10px rgba(0,255,204,.4));
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
  .btn { animation: none; }
}
