:root {
  --bg-page: #0a0a0a;
  --bg-card: #111;
  --border-card: #2a2a2a;
  --text-main: #fff;
  --text-dim: #9ca3af;
  --accent: #fde047; /* galben cald pentru accente */
  --radius-lg: 16px;
  --radius-md: 10px;
  --maxw: 1200px;
  --gap: 16px;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Inter", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-stack);
  line-height: 1.4;
}

header.shop-header {
  border-bottom: 1px solid var(--border-card);
  padding: 16px;
  background: #0f0f0f;
}
header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.brand-block h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
}
.brand-block small {
  font-size: 12px;
  color: var(--text-dim);
}
.cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-bar a {
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-size: 12px;
  padding: 6px 10px;
  line-height: 1.2;
  border-radius: var(--radius-md);
  font-weight: 500;
}
.cat-bar a.active {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.wrapper {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media (max-width: 1000px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 24px 64px -20px rgba(0,0,0,.9);
}
.product-card .thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: #1a1a1a;
  display: block;
  position: relative;
  overflow: hidden;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card .info {
  padding: 14px 16px 16px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.3;
}
.product-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.product-price s {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 400;
}

footer.shop-footer {
  border-top: 1px solid var(--border-card);
  background: #0f0f0f;
  color: var(--text-dim);
  font-size: 12px;
  padding: 24px 16px;
  text-align: center;
}

.badge-cat {
  background: #1e1e1e;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  color: var(--text-dim);
  line-height: 1.2;
  display: inline-block;
}

/* Pagină produs */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .product-page {
    grid-template-columns: 1fr;
  }
}

.gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  background: #1a1a1a;
  box-shadow: 0 24px 64px -20px rgba(0,0,0,.9);
  margin-bottom: 16px;
  display: block;
  object-fit: cover;
}

.product-details h1 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}
.product-stock {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.product-desc {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.4;
  white-space: pre-line;
  margin-bottom: 16px;
}

.big-price {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
}
.big-price s {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 400;
}

.addtocart-btn {
  appearance: none;
  background: var(--accent);
  border: 0;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  cursor: pointer;
  min-width: 160px;
  box-shadow: 0 20px 40px -10px rgba(253,224,71,.4);
}
.addtocart-btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none;
}
.note-coming {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.4;
}
.back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 16px;
}
.back-link:hover {
  color: var(--accent);
}
/* --- Gallery rework --- */

.gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

.main-image-box {
  position: relative;
  background: #1a1a1a;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px -20px rgba(0,0,0,.9);

  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.thumbs-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.thumb-item {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-item.active {
  border-color: var(--accent);
  box-shadow: 0 16px 32px -10px rgba(253,224,71,.3);
}
.thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 2px);
}

/* swipe hint arrows for mobile */
.main-image-box .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  user-select: none;
}
.nav-arrow.left {
  left: 8px;
}
.nav-arrow.right {
  right: 8px;
}

@media (min-width: 900px) {
  .gallery-wrapper {
    max-width: 400px;
  }
}
