/* SuLuLabs webshop */
.webshop-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 217, 255, 0.12), transparent),
        var(--bg-primary);
}

.webshop-main {
    flex: 1;
    padding: 120px 0 64px;
}

.webshop-footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.webshop-footer a {
    color: var(--accent);
    text-decoration: none;
}

.nav-menu a.is-active {
    color: var(--accent);
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--accent);
    color: #041018;
    font-size: 12px;
    font-weight: 700;
}

.shop-hero {
    margin-bottom: 40px;
}

.shop-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.shop-hero p {
    color: var(--text-secondary);
    max-width: 36rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: rgba(0, 217, 255, 0.35);
    transform: translateY(-2px);
}

.product-card a.product-media {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
}

.product-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-body h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.product-body h2 a {
    color: var(--text-primary);
    text-decoration: none;
}

.product-body h2 a:hover {
    color: var(--accent);
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.product-price {
    font-weight: 600;
    color: var(--accent);
    font-size: 1.05rem;
}

.btn-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-shop-primary {
    background: var(--accent);
    color: #041018;
}

.btn-shop-primary:hover {
    background: var(--accent-hover);
}

.btn-shop-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-shop-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-shop-danger {
    background: transparent;
    color: #ff6b7a;
    border: 1px solid rgba(255, 107, 122, 0.35);
}

.empty-state {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-secondary);
    border: 1px dashed var(--border);
    background: var(--bg-secondary);
}

.flash {
    padding: 12px 16px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.flash-ok { border-color: rgba(0, 217, 255, 0.4); color: var(--accent); }
.flash-err { border-color: rgba(255, 107, 122, 0.4); color: #ff6b7a; }

.product-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 800px) {
    .product-detail { grid-template-columns: 1fr; }
}

.product-detail-media {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    aspect-ratio: 1;
    overflow: hidden;
}

.product-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 12px;
}

.product-detail-info .product-price {
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: block;
}

.product-detail-info .long-desc {
    color: var(--text-secondary);
    white-space: pre-wrap;
    margin-bottom: 28px;
}

.qty-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.qty-row input[type="number"],
.shop-form input,
.shop-form textarea,
.shop-form select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 12px;
    font: inherit;
    width: 100%;
}

.qty-row input[type="number"] {
    width: 88px;
}

.shop-form {
    display: grid;
    gap: 16px;
    max-width: 520px;
}

.shop-form label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
}

.cart-table th,
.cart-table td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.cart-table th {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
}

.cart-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.cart-total span {
    color: var(--accent);
}

.admin-wrap {
    max-width: 960px;
}

.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}

.admin-table img {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.badge-on {
    border-color: rgba(0, 217, 255, 0.4);
    color: var(--accent);
}

.login-box {
    max-width: 380px;
    margin: 40px auto;
    padding: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.login-box h1 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

@media (max-width: 860px) {
    .checkout-grid { grid-template-columns: 1fr; }
}

.order-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 20px;
}

.order-summary h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.order-summary ul {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.order-summary li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

.status-box {
    max-width: 480px;
    margin: 40px auto;
    padding: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    text-align: center;
}

.status-box.ok { border-color: rgba(0, 217, 255, 0.45); }
.status-box.bad { border-color: rgba(255, 107, 122, 0.45); }

/* Multi-image gallery */
.product-gallery {
  display: grid;
  gap: 12px;
}

.gallery-main {
  position: relative;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.65);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.gallery-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-primary);
  background: rgba(10, 10, 10, 0.65);
  border: 1px solid var(--border);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.gallery-thumb {
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
  border-color: var(--accent);
}

.admin-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.admin-image-item {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.admin-image-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
}

.admin-image-item span {
  display: flex;
  align-items: center;
  gap: 6px;
}