/* === product.css === */

/* === Produkt: główny blok === */
.product .product_title.entry-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

/* === Autor === */
.product-author {
  font-size: 14px;
  color: #007BFF;
  margin-bottom: 10px;
}

.product-author a {
  text-decoration: none;
  color: #007BFF;
}

.product-author a:hover {
  text-decoration: underline;
}

/* === Cena i cena w abonamencie === */
.woocommerce-Price-amount,
.subscription-price {
  color: #007BFF;
  font-weight: bold;
}

/* === BOX z zakupem === */
.product-purchase-box {
  background: #fcfcfc;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 25px;
}

/* === Przycisk "Dodaj do koszyka" z ikoną koszyka === */
.product-purchase-box .single_add_to_cart_button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to right, #007BFF, #0056b3);
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  gap: 8px;
}

.product-purchase-box .single_add_to_cart_button:hover {
  background: linear-gradient(to right, #0056b3, #003f88);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === Ikonka koszyka (minimalistyczna SVG) === */
.product-purchase-box .single_add_to_cart_button::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61l1.38-7.39H6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* === ABONAMENT pod przyciskiem === */
.product-purchase-box .subscription-box {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}

.product-purchase-box .subscription-divider {
  font-size: 12px;
  color: #888;
  margin: 10px 0 5px;
}

.subscription-info {
  font-size: 13px;
  margin-bottom: 10px;
}

.product-purchase-box .subscription-button {
  background: #fff;
  border: 1px solid #ccc;
  color: #007BFF;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease-in-out;
}

.product-purchase-box .subscription-button:hover {
  border-color: #007BFF;
  background: #f1f8ff;
  color: #0056b3;
}

/* === Badges === */
.product-badges {
  margin-bottom: 10px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 4px 8px;
  font-weight: 600;
  margin-right: 8px;
}

.badge-news {
  background: #FFD700;
  color: #000;
}

.badge-empik {
  background: #333;
  color: #fff;
}

/* === Pobierz fragment === */
.sample-download-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  font-size: 15px;
  font-weight: 600;
}

.sample-download-box i {
  color: #007BFF;
  font-size: 18px;
}

.sample-download-box a {
  color: #007BFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sample-download-box a:hover {
  text-decoration: underline;
  color: #0056b3;
}


/* === WooCommerce Tabs & Reviews === */
.woocommerce div.product .woocommerce-tabs {
  margin-top: 40px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: none;
  background: transparent !important;
  box-shadow: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent !important;
  box-shadow: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 10px 20px;
  border-radius: 999px;
  background: #f5f5f5;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  background: #e2e8f0;
  color: #111;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  background: #007BFF;
  color: #fff !important;
  box-shadow: none !important;
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes {
  width: 100%;
  border-collapse: collapse;
  background: #fdfdfd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes th,
.woocommerce-Tabs-panel--additional_information table.shop_attributes td {
  padding: 14px 18px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes th {
  background: #f7f9fc;
  font-weight: 600;
  color: #333;
  width: 200px;
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes td {
  color: #555;
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes tr:last-child td,
.woocommerce-Tabs-panel--additional_information table.shop_attributes tr:last-child th {
  border-bottom: none;
}

.ebook-description {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.ebook-description h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #111;
}

.check-list, .star-list {
  list-style: none;
  padding-left: 0;
}

.check-list li::before {
  content: "✔";
  color: #007BFF;
  margin-right: 8px;
}

.star-list li::before {
  content: "★";
  color: #FFD700;
  margin-right: 8px;
}

.description-toggle-box {
  margin-top: 20px;
}

.toggle-description-btn {
  margin-top: 10px;
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-description-btn:hover {
  background: linear-gradient(135deg, #0056b3, #003f88);
}

.faq-section details {
  margin-bottom: 12px;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 18px;
  background: #fcfcfc;
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-section details[open] {
  background: #f0f8ff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.05);
}

.faq-section summary {
  list-style: none;
  outline: none;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  padding-right: 22px;
  color: #007BFF;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid #007BFF;
  border-bottom: 2px solid #007BFF;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease;
}

.faq-section details[open] summary::after {
  transform: translateY(-50%) rotate(-135deg);
}

.newsletter-box {
  margin-top: 40px;
  padding: 20px;
  border: 1px dashed #ccc;
  text-align: center;
  border-radius: 12px;
  background: #f9f9f9;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.newsletter-box input[type="email"] {
  padding: 12px;
  width: 60%;
  max-width: 320px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 10px;
}

.newsletter-box button {
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-box button:hover {
  background: linear-gradient(135deg, #0056b3, #003f88);
}

.newsletter-box .consent {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

.highlight-box {
  border-left: 4px solid #007BFF;
  background: #fdfdfd;
  padding: 24px 28px;
  margin: 30px 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.light-box {
  border: 1px solid #eee;
  background: #ffffff;
  padding: 24px 28px;
  margin: 30px 0;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.02);
}

.highlight-box h3,
.light-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111;
}

.highlight-box ul,
.light-box ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.highlight-box ul li,
.light-box ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.highlight-box ul li::before,
.light-box ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #007BFF;
  font-weight: bold;
}

.single-product-premium {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.product-wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 40px;
}

.product-left {
  flex: 0 0 45%;
  max-width: 500px;
}

.product-right {
  flex: 1 1 50%;
  max-width: 600px;
}

.woocommerce-product-gallery {
  float: none !important;
  width: 100% !important;
  max-width: 500px;
  margin: 0 auto 20px;
}

.tab-titles {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.tab-titles li {
  flex: 1 1 auto;
  text-align: center;
  padding: 10px 20px;
  background: #eee;
  border-radius: 999px;
  cursor: pointer;
}

.tab-titles li.active {
  background: #007BFF;
  color: #fff;
}

@media (max-width: 768px) {
  .tab-titles li {
    flex: 1 1 48%;
  }

  .product-wrapper {
    flex-direction: column;
  }

  .product-left, .product-right {
    max-width: 100%;
  }
}

.description-full {
  display: none;
}
.excerpt.expanded .description-full {
  display: block;
}
.excerpt .dots {
  display: inline;
}
.excerpt.expanded .dots {
  display: none;
}

.woocommerce-product-attributes {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
  border: 1px solid #eee;
  padding: 12px 16px;
  text-align: left;
}

.woocommerce-product-attributes th {
  background: #f8f8f8;
  font-weight: bold;
}

/* === Bundla === */
.facetmowi-bundle { ... } /* już obecna - skracamy */

/* === product.css === */

/* === GŁÓWNE STYLY DLA STRONY PRODUKTU === */
.ebook-description {
  max-width: 1000px;  /* Adjust the max width */
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* === OKŁADKA === */
.product-visual {
  width: 100%;
  text-align: center;
  position: relative;
  max-width: 400px;  /* Reduce max width for better fitting */
  margin-right: 20px;
}

.product-visual img {
  width: 100%;
  max-width: 350px;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* === UKŁAD PRODUKTU === */
.product-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}

.product-left {
  flex: 0 0 45%;  /* Adjust width */
}

.product-right {
  flex: 0 0 50%;  /* Adjust width */
}

/* === TABY PRODUKTU === */
.tab-titles {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}

.tab-titles li {
  padding: 10px 20px;
  background: #eee;
  border-radius: 999px;
  cursor: pointer;
}