﻿
/* Shopping board */
:root {
  --wc-shop-bg: #0f1427;
  --wc-shop-card-bg: #151b2f;
  --wc-shop-card-border: rgba(255, 255, 255, 0.08);
  --wc-shop-text: #f4f6fb;
  --wc-shop-muted: #8b94bd;
  --wc-shop-accent: #6a9bff;
  --wc-shop-success: #2fe39b;
  --wc-shop-warning: #ffbe5c;
}

.wc-shop-board {
  background: var(--wc-shop-bg);
  border-radius: 28px;
  padding: 25px;
  color: var(--wc-shop-text);
  box-shadow: 0 30px 60px rgba(4, 6, 15, 0.6);
}

/*.wc-shop-section + .wc-shop-section {
  margin-top: 10px;
}*/

.wc-shop-section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.wc-shop-section-heading {
  max-width: 640px;
}

.wc-shop-section-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
}

.wc-shop-section-subtitle {
  margin: 6px 0 0;
  color: var(--wc-shop-muted);
  font-size: 0.95rem;
}

.wc-shop-nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--wc-shop-card-border);
  border-radius: 50%;
  background: transparent;
  color: var(--wc-shop-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.wc-shop-nav-btn:not(.is-disabled):hover {
  border-color: rgba(106, 155, 255, 0.4);
  color: var(--wc-shop-accent);
  background: rgba(106, 155, 255, 0.1);
}

.wc-shop-nav-btn.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.wc-shop-section-body {
  position: relative;
  margin-top: 20px;
  padding: 0 46px;
}

.wc-shop-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 24px;
  max-width: 520px;
}

.wc-shop-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid var(--wc-shop-card-border);
  background: #11162a;
  color: var(--wc-shop-text);
  padding: 10px 18px;
}

.wc-shop-search-input::placeholder {
  color: var(--wc-shop-muted);
}

.wc-shop-search-btn {
  min-width: 80px;
  border-radius: 12px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: nowrap;
}

.wc-shop-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.wc-shop-nav-btn-left {
  left: 0;
}

.wc-shop-nav-btn-right {
  right: 0;
}

.wc-shop-card {
  background: var(--wc-shop-card-bg);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  border: 1px solid var(--wc-shop-card-border);
  transition: none;
}

.wc-shop-card:hover {
  transform: none;
  border-color: var(--wc-shop-card-border);
  box-shadow: none;
}

.wc-shop-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wc-shop-card-top-left,
.wc-shop-card-top-right {
  display: flex;
  align-items: center;
}

.wc-shop-card-top-left {
  min-height: 25px;
}

.wc-shop-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(47, 227, 155, 0.15);
  color: var(--wc-shop-success);
  font-size: 0.75rem;
  font-weight: 600;
}

.wc-shop-favorite {
  color: var(--wc-shop-muted);
  width: 38px;
  height: 38px;
}

.wc-shop-card-media {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.wc-shop-card-media img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

/* Shopping detail */
.shopping-detail {
  background: #0f1427;
  color: #f4f6fb;
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(5, 7, 17, 0.55);
  margin-bottom: 40px;
}

.shopping-detail__top {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.shopping-detail__gallery {
  display: flex;
  gap: 16px;
  flex: 1 1 420px;
  min-width: 320px;
}

.shopping-detail__thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shopping-detail__thumb {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.shopping-detail__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.shopping-detail__thumb.is-active {
  border-color: rgba(255, 189, 58, 0.95);
/*  box-shadow: 0 4px 18px rgba(255, 189, 58, 0.4), 0 0 0 3px rgba(255, 189, 58, 0.35);*/
  transform: translateY(-2px) scale(1.02);
}

.shopping-detail__thumbs-empty {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.shopping-detail__preview {
  flex: 1 1 auto;
  min-height: 320px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.shopping-detail__preview img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 3px;
}

.shopping-detail__preview-empty {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.shopping-detail__info {
  flex: 1 1 420px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shopping-detail__rating-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.shopping-detail__rating-stars {
  position: relative;
  font-size: 1.1rem;
  line-height: 1;
}

.shopping-detail__rating-stars::before,
.shopping-detail__rating-stars::after {
  content: "\2605\2605\2605\2605\2605";
  letter-spacing: 3px;
}

.shopping-detail__rating-stars::before {
  color: rgba(255, 255, 255, 0.2);
}

.shopping-detail__rating-stars::after {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--rating-value, 0) * 1%);
  overflow: hidden;
  color: #ffbe5c;
}

.shopping-detail__rating-score {
  font-weight: 600;
}

.shopping-detail__rating-count {
  font-size: 0.85rem;
}

.shopping-detail__title {
  font-size: 2rem;
  margin: 0;
}

.shopping-detail__subtitle {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0;
}

.shopping-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shopping-detail__promo-badge {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.shopping-detail__promo-badge--success {
  background: rgba(47, 227, 155, 0.15);
  color: #2fe39b;
}

.shopping-detail__promo-badge--warning {
  background: rgba(255, 190, 92, 0.15);
  color: #ffbe5c;
}

.shopping-detail__promo-badge--neutral {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f6fb;
}

.shopping-detail__pricing {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.shopping-detail__price-current {
  font-size: 2.3rem;
  font-weight: 600;
  color: #ffbe5c;
}

.shopping-detail__price-original {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 12px;
}

.shopping-detail__discount {
  font-weight: 700;
  color: #ff6f5c;
}

.shopping-detail__stock {
  color: #2fe39b;
  font-weight: 600;
}

.shopping-detail__summary {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
}

.shopping-detail__meta-list {
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.shopping-detail__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.shopping-detail__btn {
  border-radius: 999px;
  padding: 12px 28px;
  border: 1px solid transparent;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 180px;
}

.shopping-detail__btn--ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #f4f6fb;
  background: transparent;
}

.shopping-detail__btn--primary {
  background: linear-gradient(135deg, #ff8a14, #ffbd3a);
  color: #0f1427;
}

.shopping-detail__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shopping-detail__group-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.shopping-detail__variants {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shopping-detail__variant {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 90px;
  text-align: left;
}

.shopping-detail__variant small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
}

.shopping-detail__variant.is-active {
  border-color: rgba(255, 189, 58, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 189, 58, 0.4);
}

.shopping-detail__quantity {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.shopping-detail__quantity button,
.shopping-detail__quantity input {
  background: transparent;
  border: none;
  color: inherit;
  width: 44px;
  height: 42px;
  text-align: center;
}

.shopping-detail__quantity input {
  width: 60px;
}

.shopping-detail__content {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shopping-detail__content-title {
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.shopping-detail__richtext {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.shopping-detail__state {
  border-radius: 24px;
  background: #0f1427;
  color: #f4f6fb;
}

@media (max-width: 992px) {
  .shopping-detail__top {
    flex-direction: column;
  }
  .shopping-detail__gallery {
    flex-direction: column;
  }
  .shopping-detail__thumbs {
    flex-direction: row;
    order: 2;
  }
  .shopping-detail__thumb,
  .shopping-detail__thumbs-empty {
    width: 66px;
    height: 66px;
  }
}

.wc-shop-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.wc-shop-carousel {
  overflow: hidden;
}

.wc-shop-carousel-track {
  display: flex;
  transition: transform 0.35s ease;
}

.wc-shop-carousel-slide {
  flex: 0 0 100%;
}

.wc-shop-carousel .wc-shop-grid {
  margin-top: 0;
}

.wc-shop-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  max-height: calc(1.35em * 3);
  overflow-wrap: anywhere;
}

.wc-shop-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--wc-shop-warning);
  font-size: 0.85rem;
}

.wc-shop-star {
  font-size: 0.95rem;
}

.wc-shop-rating-score {
  color: var(--wc-shop-text);
  font-weight: 600;
  margin-left: 4px;
}

.wc-shop-rating-count {
  color: var(--wc-shop-muted);
}

.wc-shop-subtitle {
  color: var(--wc-shop-muted);
  font-size: 0.9rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: calc(1.4em * 2);
  overflow-wrap: anywhere;
}

.wc-shop-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.wc-shop-price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wc-shop-text);
}

.wc-shop-price-original {
  color: var(--wc-shop-muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}

.wc-shop-pill {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.wc-shop-pill-neutral {
  background: rgba(255, 255, 255, 0.05);
  color: var(--wc-shop-text);
}

.wc-shop-pill-success {
  background: rgba(47, 227, 155, 0.15);
  color: var(--wc-shop-success);
}

.wc-shop-pill-warning {
  background: rgba(255, 190, 92, 0.15);
  color: var(--wc-shop-warning);
}

.wc-shop-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--wc-shop-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .wc-shop-board {
    padding: 20px;
  }

  .wc-shop-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.shopping-cart-toggle {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.shopping-cart-toggle__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.shopping-variant-thumb {
    width: 120px;
    height: 90px;
}

    .shopping-variant-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }