/* Základní cena bez slevy */
.rw-product-price {
    font-size: 24px;
    font-weight: 600;
    color: #e83e8c;
}


.rw-product-price-box {
    margin-top: 16px;
}



.rw-price-original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

/* Dostupnost */
.rw-product-availability {
    font-size: 14px;
    color: #666;
}


.rw-product-category-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    padding: 0;
}

.rw-product-title {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
}

/* Odstranění gapu mezi těmito dvěma nadpisy */
.rw-product-category-title + .rw-product-title {
    margin-top: 0;
}

/* Nebo můžete přepsat gap pro .rw-product-info pouze pro tyto nadpisy */
.rw-product-info {
    display: flex;
    flex-direction: column;
    gap: 18px; /* zachováme původní gap */
}

.rw-product-info .rw-product-category-title {
    margin-bottom: -18px; /* kompenzace gapu */
}

/* ===== SHOWCASE KATEGORIÍ ===== */
.rw-showcase-category {
  max-width: 1200px;
  margin: 40px auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.rw-showcase-header {
  padding: 40px 25px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-bottom: 1px solid #e1e5eb;
  position: relative;
  text-align: center;
}

.rw-showcase-header h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
  color: #2c3e50;
  font-weight: 500;
}

.rw-showcase-header p {
  margin: 0 0 15px 0;
  color: #5a6a7e;
  font-size: 14px;
  font-weight: 400;
}

.rw-showcase-button {
  background-color: #4386fc;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.rw-showcase-button:hover {
  background-color: #2c6beb;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(67, 134, 252, 0.3);
}

.rw-showcase-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.9px;
  background-color: #e9ecef52;
}

.rw-showcase-item {
  background-color: #fff;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.rw-showcase-item:hover {
  z-index: 1;
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.rw-showcase-item-image {
  text-align: center;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.rw-showcase-item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.rw-showcase-item:hover .rw-showcase-item-image img {
  transform: scale(1.08);
}

.rw-showcase-item-info {
  text-align: center;
}

.rw-showcase-item-info h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #333;
  line-height: 1.4;
  font-weight: 500;
}

.rw-showcase-item-spec {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 400;
}

.rw-showcase-item-price {
  display: block;
  font-weight: 600;
  color: #e83e8c;
  font-size: 18px;
  margin-top: 5px;
}

.rw-showcase-item-price.has-discount {
  color: #e83e8c;
}

/* ===== ROZŠÍŘENÉ ZOBRAZENÍ PRODUKTU ===== */
.rw-expanded-product-view {
  margin: 0 auto 40px;
  position: relative;
  padding: 0 60px;
margin-top: 90px;
}

.rw-expanded-container {
  overflow: hidden;
  touch-action: pan-y;
  padding-left: 10px;
  padding-right: 10px;
}

.rw-expanded-product {
  background-color: #fff;
  border-radius: 12px;
  margin-bottom: 30px;
  overflow: hidden;
  display: none;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.rw-expanded-product.active {
  display: block;
  animation: slideInProduct 0.5s ease;
}

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

/* ===== HLAVIČKA PRODUKTU ===== */
.rw-product-header {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 30px;
  padding: 35px;
  background: linear-gradient(135deg, #f9fafb, #f5f7f9);
  align-items: start;
  border-bottom: 2px solid #e9ecef;
    padding-top: 80px;
    padding-bottom: 80px;
}

.rw-product-left-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rw-product-image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.rw-product-image-container:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.rw-product-image {
  width: 100%;
  height: auto;
  display: block;
}

.rw-product-image-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background-color 0.3s ease;
}

.rw-product-image-content:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

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

.rw-youtube-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rw-youtube-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-color: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rw-youtube-play-button svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.rw-product-image-content:hover .rw-youtube-play-button {
  transform: translate(-50%, -50%) scale(1.15);
  background-color: rgba(255, 0, 0, 1);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* ===== BOXÍK S CENOU (POD VIDEEM V LEVÉ ČÁSTI) ===== */
.rw-product-price-box {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 10px;
  padding: 20px;
  border-left: 5px solid #5fbb2e;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.rw-product-price-container {
  display: flex;
  flex-direction: column;
}

.rw-product-price-discount {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.rw-price-action {
  font-size: 24px;
  font-weight: 600;
  color: #e83e8c;
}

.rw-price-original {
  text-decoration: line-through;
  color: #999;
  font-size: 20px;
  font-weight: 400;
}

.rw-product-availability {
  font-size: 14px;
  color: #28a745;
  display: flex;
  align-items: center;
  font-weight: 400;
}

.rw-product-availability::before {
  content: "?";
  color: #28a745;
  margin-right: 8px;
  font-weight: bold;
  font-size: 18px;
}

/* ===== INFORMACE O PRODUKTU (PRAVÁ ČÁST) ===== */
.rw-product-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rw-product-title {
  font-size: 28px;
  margin: 0;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
}

.rw-product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rw-stars {
  color: #FFD700;
  font-size: 22px;
  letter-spacing: 2px;
  font-weight: 400;
}

.rw-reviews {
  color: #666;
  font-size: 15px;
  font-weight: 500;
}

.rw-product-key-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rw-key-spec {
  background-color: #f0f3f7;
  padding: 8px 14px;
  border-radius: 15px;
  font-size: 14px;
  color: #444;
  white-space: nowrap;
  font-weight: 400;
  border: 1px solid #e1e5eb;
  transition: all 0.2s ease;
}

.rw-key-spec:hover {
  background-color: #e7ebf1;
  border-color: #4386fc;
  color: #4386fc;
}

.rw-buy-button {
  align-self: flex-start;
  background-color: #4386fc;
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
  display: inline-block;
  margin-top: 10px;
  box-shadow: 0 3px 8px rgba(67, 134, 252, 0.25);
}

.rw-buy-button:hover {
  background-color: #2c6beb;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 134, 252, 0.4);
}

/* ===== TĚLO PRODUKTU ===== */
.rw-product-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  padding: 35px;
  background-color: #fff;
}

.rw-product-description {
  padding-right: 25px;
}

.rw-product-description h4 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 22px;
  margin-bottom: 18px;
  font-weight: 500;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
}

.rw-product-description p {
  line-height: 1.8;
  margin-bottom: 18px;
  color: #444;
  font-size: 15px;
  font-weight: 400;
}

.rw-product-features {
  margin-top: 30px;
  background: linear-gradient(135deg, #f8f9fa, #f0f3f7);
  padding: 25px;
  border-radius: 10px;
  border-left: 4px solid #4386fc;
}

.rw-product-features h5 {
  margin: 0 0 18px 0;
  color: #2c3e50;
  font-size: 19px;
  font-weight: 500;
}

.rw-product-features ul {
  padding-left: 22px;
  margin: 0;
}

.rw-product-features li {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #444;
  font-size: 15px;
  font-weight: 400;
}

.rw-product-features li::marker {
  color: #4386fc;
}

/* ===== RECENZE PRODUKTU ===== */
.rw-product-reviews {
  background: linear-gradient(135deg, #f9fafb, #f5f7f9);
  padding: 25px;
  border-radius: 10px;
  align-self: start;
  border: 1px solid #e9ecef;
}

.rw-product-reviews h5 {
  margin: 0 0 22px 0;
  font-size: 19px;
  color: #2c3e50;
  font-weight: 500;
  border-bottom: 2px solid #e1e5eb;
  padding-bottom: 10px;
}

.rw-review {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 22px;
  margin-bottom: 22px;
  background-color: #fff;
  padding: 18px;
  border-radius: 8px;
}

.rw-review:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.rw-review-rating {
  color: #FFD700;
  font-size: 17px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}

.rw-review-score {
  color: #333;
  font-weight: 500;
  font-size: 15px;
}

.rw-review-text {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 14px;
  font-weight: 400;
}

.rw-review-pros-cons {
  margin-top: 14px;
}

.rw-review-pros h6,
.rw-review-cons h6 {
  font-size: 13px;
  margin: 10px 0 6px 0;
  color: #333;
  font-weight: 500;
}

.rw-review-pros ul,
.rw-review-cons ul {
  margin: 0;
  padding-left: 22px;
  font-size: 13px;
}

.rw-review-pros li {
  color: #28a745;
  margin-bottom: 5px;
  font-weight: 400;
}

.rw-review-cons li {
  color: #dc3545;
  margin-bottom: 5px;
  font-weight: 400;
}

.tip-box {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 18px;
  margin: 22px 0;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.15);
}

.tip-box p {
  margin: 0;
  color: #856404;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
}

/* ===== TLAČÍTKO PRO ZOBRAZENÍ DETAILŮ NA MOBILU ===== */
.rw-show-details-button {
  display: none;
  width: 100%;
  background-color: #f8f9fa;
  color: #4386fc;
  border: 2px solid #4386fc;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 15px;
  text-align: center;
}

.rw-show-details-button:hover {
  background-color: #4386fc;
  color: white;
}

.rw-show-details-button::after {
  content: " ˇ";
  font-size: 12px;
  margin-left: 5px;
}

.rw-product-body.show-mobile .rw-show-details-button::after {
  content: " ^";
}

/* ===== NAVIGAČNÍ TLAČÍTKA ===== */
.rw-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.98);
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 300;
  color: #333;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  line-height: 1;
  padding: 0;
}

.rw-slider-nav:hover {
  background-color: #fff;
  border-color: #4386fc;
  color: #4386fc;
  box-shadow: 0 5px 15px rgba(67, 134, 252, 0.25);
  transform: translateY(-50%) scale(1.05);
}

.rw-slider-nav:active {
  transform: translateY(-50%) scale(0.98);
}

.rw-slider-prev {
  left: 10px;
}

.rw-slider-next {
  right: 10px;
}

/* ===== PAGINACE ===== */
.rw-pagination {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 25px;
  font-size: 16px;
  color: #666;
  font-weight: 400;
}

/* ===== SPINNER ===== */
.rw-product-loading-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top: 2px solid #4386fc;
  border-radius: 50%;
  animation: rwSpin 1s linear infinite;
}

@keyframes rwSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== VIDEO MODAL ===== */
.rw-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rw-modal-content {
  position: relative;
  margin: 10% auto;
  padding: 0;
  width: 90%;
  max-width: 900px;
  animation: slideIn 0.4s;
}

@keyframes slideIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.rw-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: white;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.rw-modal-close:hover {
  color: #ccc;
  background-color: rgba(255, 255, 255, 0.1);
}

#rw-video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 8px;
}

#rw-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== RESPONSIVNÍ DESIGN ===== */
@media (max-width: 1024px) {
  .rw-product-header {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .rw-product-body {
    grid-template-columns: 1fr;
  }

  .rw-product-description {
    padding-right: 0;
  }

  .rw-product-reviews {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .rw-showcase-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .rw-expanded-product-view {
    padding: 0 15px;
  }

  .rw-slider-nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .rw-slider-prev {
    left: 5px;
  }

  .rw-slider-next {
    right: 5px;
  }

  .rw-product-header {
    padding: 25px 20px;
  }

  .rw-product-body {
    padding: 25px 20px;
  }

  .rw-product-title {
    font-size: 24px;
  }

  .rw-price-action {
    font-size: 28px;
  }

  .rw-show-details-button {
    display: block;
  }

  .rw-product-body:not(.show-mobile) .rw-product-description,
  .rw-product-body:not(.show-mobile) .rw-product-reviews {
    display: none;
  }
}

@media (max-width: 480px) {
  .rw-showcase-items {
    grid-template-columns: 1fr;
  }

  .rw-showcase-item-image {
    height: 120px;
  }

  .rw-product-title {
    font-size: 20px;
  }

  .rw-price-action {
    font-size: 24px;
  }

  .rw-price-original {
    font-size: 16px;
  }
}
