  .product {
      background: white;
      border-radius: 12px;
      padding: 20px;
      max-width: 350px;
      border:1px solid rgb(244, 243, 243);
   }

   .price-block {
      margin-bottom: 16px;
   }

   .price {
      font-size: 28px;
      color: #132e45;
      line-height: 1.1;
   }

   .price-original {
      font-size: 16px;
      color: #9ca3af;
      text-decoration: line-through;
      margin-bottom: 2px;
   }

   .price-badge {
      display: inline-block;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      border-radius: 6px;
      padding: 4px 8px 0 8px;
      margin: 5px;
      vertical-align: middle;
      position: relative;

   }

   .badge-sale {
      background: #fee2e2;
      color: #dc2626;
      padding: 6px 9px 3px 9px;
   }

   .badge-wholesale {
      background: #dbeafe;
      color: #1d4ed8;
   }

   .price-wholesale-row {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 6px;
      flex-wrap: wrap;
   }

   .price-wholesale-value {
      font-size: 18px;
   }

   .price-wholesale-note {
      font-size: 12px;
      color: #6b7280;
   }

   .quantity-control {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #f8fafc;
      border-radius: 60px;
      padding: 4px;
      gap: 8px;
      margin-bottom: 10px;
   }

   .quantity-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      background: white;
      font-size: 20px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      color: #132e45;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
   }

   .quantity-btn:hover {
      background: #132e45;
      color: white;
   }

   .quantity-input {
      flex: 1;
      text-align: center;
      font-size: 18px;
      font-weight: 600;
      color: #132e45;
      background: transparent;
      border: none;
      padding: 8px 0;
      min-width: 0;
   }

   .quantity-input:focus {
      outline: none;
   }

   .quantity-input::-webkit-inner-spin-button,
   .quantity-input::-webkit-outer-spin-button {
      -webkit-appearance: none;
      margin: 0;
   }

   .quantity-input[type=number] {
      -moz-appearance: textfield;
   }

   .add-to-cart-btn {
      width: 100%;
      background: #1a1a1a;
      border: none;
      border-radius: 10px;
      padding: 14px 20px;
      font-size: 16px;
      font-weight: 600;
      color: white;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.15s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
   }

   .add-to-cart-btn:hover:not(:disabled) {
      background: #333;
      transform: translateY(-2px);
   }

   .add-to-cart-btn:active:not(:disabled) {
      transform: translateY(0);
   }

   .add-to-cart-btn.in-cart {
      background: #9ca3af;
      cursor: not-allowed;
   }

   .product-card {
      margin: 0 auto;
      padding: 10px;
   }

   .top-row {
      display: flex;
      gap: 10px;
      margin-bottom: 30px;
   }

   .photo-block {
      flex: 1;
      min-height: 350px;
      padding: 10px;
   }

   .price-block {
      flex: 1;
      padding: 0 5px;
   }

   .price-block h1 {
      font-size: 1.7em;
   }

   .bottom-row {
      display: flex;
      gap: 10px;
   }

   .desc-block {
      flex: 1;
      ;
   }

   .comments-block {
      flex: 1;
      padding: 5px;
   }

   .cur {
      font-size: 0.7em;
   }
   .prod-ser{
      padding: 10px 0 15px 0;
   }
.color-grid {
    margin: 8px 0 4px;
}

.color-grid-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.color-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 56px;
}

.color-grid-item:hover {
    transform: translateY(-2px);
}

.color-grid-item .color-grid-img {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    background: #f8fafd;
}

.color-grid-item .color-grid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.color-grid-item:hover .color-grid-img {
    border-color: #94a3b8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.color-grid-item.active .color-grid-img {
    border-color: #147238;
    box-shadow: 0 0 0 1px #147238, 0 1px 1px rgba(20, 114, 56, 0.2);
}

.color-grid-item .color-grid-name {
    font-size: 0.8rem;
    color: #475569;
    text-align: center;
    line-height: 1.2;
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.color-grid-item:hover .color-grid-name {
    color: #0f172a;
}

.color-grid-item.active .color-grid-name {
    color: #147238;
    font-weight: 500;
    padding-top: 2px;
}

@media (max-width: 700px) {
    .color-grid-item {
        width: 48px;
    }
    
    .color-grid-item .color-grid-img {
        width: 40px;
        height: 40px;
    }
    
    .color-grid-item .color-grid-name {
        font-size: 0.55rem;
        max-width: 48px;
    }
}

@media (max-width: 480px) {
    .color-grid-item {
        width: 44px;
    }
    
    .color-grid-item .color-grid-img {
        width: 36px;
        height: 36px;
    }
    
    .color-grid-item .color-grid-name {
        font-size: 0.5rem;
        max-width: 44px;
    }
}
   @media (max-width: 768px) {
      .top-row {
         flex-direction: column;
      }

      .bottom-row {
         flex-direction: column;
      }

      .product-card {
         margin: 0 auto;
         padding: 0px;
      }
   }

   @media (max-width: 768px) {
      .price {
         font-size: 24px;
      }

      .add-to-cart-btn {
         padding: 12px 16px;
         font-size: 14px;
      }

      .quantity-btn {
         width: 36px;
         height: 36px;
         font-size: 18px;
      }

      .quantity-input {
         font-size: 16px;
      }
   }

   @media (max-width: 480px) {
      .price {
         font-size: 20px;
         margin-bottom: 12px;
      }

      .quantity-btn {
         width: 32px;
         height: 32px;
         font-size: 16px;
      }

      .quantity-input {
         font-size: 14px;
      }
   }


   .info-blocks {
      padding: 0;
      display: grid;
   }

   .info-card {
      padding: 0.5rem 1.25rem;
   }

   .info-card-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
   }

   .info-card-icon {
      width: 32px;
      height: 32px;
      border-radius: var(--border-radius-md, 8px);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 16px;
   }

   .info-card-icon--blue {
      background: var(--color-background-info, #eff6ff);
      color: var(--color-text-info, #1d4ed8);
   }

   .info-card-icon--green {
      background: var(--color-background-success, #f0fdf4);
      color: var(--color-text-success, #15803d);
   }

   .info-card-icon--amber {
      background: var(--color-background-warning, #fffbeb);
      color: var(--color-text-warning, #b45309);
   }

   .info-card-title {
      font-size: 15px;
      font-weight: 500;
      color: var(--color-text-primary, #111);
   }

   .info-card-list {
      margin: 0;
      padding: 0;
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
   }

   .info-card-list a {
      color: var(--color-text-success, #15803d);
      font-weight: 600;
   }

   .info-card-list li,
   .info-card-list p {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      font-size: 14px;
      color: var(--color-text-secondary, #6b7280);
      line-height: 1.5;
      margin: 0;
   }

   .info-card-list i {
      font-size: 15px;
      margin-top: 2px;
      flex-shrink: 0;
      color: var(--color-text-tertiary, #9ca3af);
   }

   .product-header {
    background: white;
    border-radius: 20px;
    padding: 20px;
}

.product-header h1 {
    font-size: 24px;
    margin-bottom: 12px;
}

.total-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.rating-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.avg-score {
    font-size: 36px;
    font-weight: 700;
    color: #f5a623;
    line-height: 1;
}

.stars-static {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 20px;
    color: #e4e5e9;
    transition: color 0.2s ease;
}

.star.filled {
    color: #f5a623;
}

.reviews-count {
    color: #6c757d;
    font-size: 14px;
}

.review-form {
    background: white;
    padding: 20px;
    margin-bottom: 20px;}

.review-form h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 16px;
}

input, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
    background: #fafbfc;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #f5a623;
    background: white;
    box-shadow: 0 0 0 3px rgba(245,166,35,0.08);
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rating-label {
    font-size: 14px;
    color: #4a5568;
}

.stars {
    display: flex;
    gap: 8px;
    cursor: pointer;
}

.stars .star {
    font-size: 28px;
    transition: transform 0.1s ease;
    cursor: pointer;
}

.stars .star:hover,
.stars .star.hover {
    color: #f5a623;
    transform: scale(1.05);
}

.btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    max-width: 250px;
}

.btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.admin-reply-block {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fac2;
    border-radius: 12px;
    border-left: 1px solid #b2b2b2;
}

.reply-label {
    font-size: 13px;
    margin-bottom: 6px;
}

.reply-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
}

.reply-date {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 6px;
}
.message {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
    animation: slideDown 0.3s ease;
}

.message.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.moderation-note {
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
    text-align: left;
    display: left;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.reviews-list h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    background: white;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.2s;
    animation: fadeInUp 0.4s ease;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.review-header strong {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

.stars-small {
    display: flex;
    gap: 3px;
}

.stars-small .star {
    font-size: 14px;
}

.date {
    font-size: 11px;
    color: #94a3b8;
}

.review-text {
    color: #4a5568;
    line-height: 1.5;
    font-size: 14px;
    word-break: break-word;
}

.empty-reviews {
    text-align: center;
    color: #94a3b8;
    padding: 40px 20px;
    background: white;
    border-radius: 16px;;
}
/* Скрытые отзывы */
.review-item.hidden-review {
    display: none;
}

/* Заголовок списка отзывов */
.reviews-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.reviews-header h3 {
    margin: 0;
}

.reviews-count-small {
    font-size: 14px;
    color: #94a3b8;
}

.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    padding: 11px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.load-more-btn:hover {
    border-color: #7b7a79;
    box-shadow: 0 4px 12px rgba(18, 17, 17, 0.15);
}

.load-more-btn:active {
    transform: translateY(1);
}

.load-more-btn svg {
    transition: transform 0.3s ease;
}


@media (max-width: 640px) {
    .load-more-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 12px;
        margin: 12px auto;
    }
    
    .product-header {
        padding: 16px;
    }
    
    .product-header h1 {
        font-size: 20px;
    }
    
    .avg-score {
        font-size: 28px;
    }
    
    .star {
        font-size: 18px;
    }
    
    .stars .star {
        font-size: 24px;
    }
    
    .review-form {
        padding: 16px;
    }
    
    .review-item {
        padding: 14px;
    }
    
    .review-header {
        gap: 8px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .total-rating {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating-input {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stars .star {
        font-size: 32px;
    }
}

  .product-card-img {
      max-width: 500px;
      width: 100%;
      background: white;
      overflow: hidden;
      margin: 0 auto;
      box-sizing: border-box;
   }
   .product-gallery {
      position: relative;
      width: 100%;
      overflow: hidden;
      background: #fff;
   }
   .main-swiper {
      width: 100%;
      height: auto;
      user-select: none;
   }

   .main-swiper .swiper-slide {
      display: flex;
      align-items: center;
      justify-content: center;
      background: #fff;
      height: auto;
   }

   .main-swiper .swiper-slide img {
      display: block;
      width: 100%;
      height: auto;
      object-fit: contain;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
   }
   .custom-pagination {
      display: none;
      position: absolute;
      bottom: 16px;
      left: 0;
      right: 0;
      z-index: 10;
      text-align: center;
      pointer-events: none;
   }

   .custom-pagination .dot {
      display: inline-block;
      width: 6px;
      height: 6px;
      background: #333333;
      opacity: 0.4;
      margin: 0 4px;
      border-radius: 10px;
      transition: all 0.2s ease;
      box-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
      pointer-events: auto;
      cursor: pointer;
   }

   .custom-pagination .dot.active {
      width: 6px;
      height: 6px;
      background: #000000;
      opacity: 1;
   }
   .thumbs-wrapper {
      position: relative;
      margin-top: 12px;
      padding: 0 30px;
   }

   .thumbs-swiper {
      width: 100%;
      height: auto;
      padding: 4px 0;
   }

   .thumbs-swiper .swiper-slide {
      width: 70px;
      height: 70px;
      border-radius: 12px;
      overflow: hidden;
      opacity: 0.6;
      transition: opacity 0.2s, transform 0.2s;
      cursor: pointer;
      border: 2px solid transparent;
   }

   .thumbs-swiper .swiper-slide-thumb-active {
      opacity: 1;
      border-color: green;
      transform: scale(1.02);
   }

   .thumbs-swiper .swiper-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      pointer-events: none;
   }

   .thumbs-next,
   .thumbs-prev {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 36px;
      height: 36px;
      border-radius: 30px;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: none;
      color: #1d1d1f;
      font-size: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 15;
      padding: 0;
      line-height: 1;
      transition: background 0.2s, opacity 0.2s;
      opacity: 0.9;
   }

   .thumbs-next.swiper-button-disabled,
   .thumbs-prev.swiper-button-disabled {
      opacity: 0.3;
      cursor: default;
      pointer-events: none;
   }

   .thumbs-next {
      right: -5px;
   }

   .thumbs-prev {
      left: -5px;
   }
   @media (max-width: 768px) {
      .thumbs-wrapper {
         display: none;
      }

      .custom-pagination {
         display: block;
      }
   }
   .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.95);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s;
   }

   .modal-overlay.active {
      opacity: 1;
      visibility: visible;
   }

   .modal-content {
      width: 100%;
      height: 100%;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
   }

   .modal-close {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 48px;
      height: 48px;
      border-radius: 30px;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: none;
      color: white;
      font-size: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 1010;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      padding: 0;
      line-height: 1;
      transition: background 0.2s;
   }

   .modal-close:active {
      background: rgba(255, 255, 255, 0.35);
   }

   .modal-next,
   .modal-prev {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 48px;
      height: 48px;
      border-radius: 30px;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: none;
      color: white;
      font-size: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 1010;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      padding: 0;
      line-height: 1;
      transition: background 0.2s, opacity 0.3s;
      opacity: 0.8;
   }

   .modal-next {
      right: 16px;
   }

   .modal-prev {
      left: 16px;
   }

   .modal-next:active,
   .modal-prev:active {
      background: rgba(255, 255, 255, 0.35);
      opacity: 1;
   }

   @media (max-width: 480px) {

      .modal-next,
      .modal-prev {
         width: 40px;
         height: 40px;
         font-size: 24px;
         opacity: 0.9;
      }

      .product-card-img {
         max-width: 300px;
      }
   }

   .modal-swiper {
      width: 100%;
      height: 100%;
   }

   .modal-swiper .swiper-slide {
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
   }

   .modal-swiper .swiper-slide img {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      user-select: none;
   }

   .modal-counter {
      position: absolute;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      color: white;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(5px);
      padding: 8px 18px;
      border-radius: 40px;
      font-size: 16px;
      font-weight: 500;
      z-index: 1010;
   }

   body.modal-open {
      overflow: hidden;
   }