/* Accordions & Click Hint Indicators */
.woocro-accordion-container {
  margin: 2em 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.woocro-accordion-item {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.woocro-accordion-title {
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f9fafb;
  margin: 0;
  color: #111827;
  transition: background 0.2s ease;
}
.woocro-accordion-title:hover {
  background: #f3f4f6;
}
.woocro-accordion-title::-webkit-details-marker {
  display: none;
}
.woocro-accordion-title::after {
  content: '+';
  font-size: 1.4em;
  color: #6b7280;
  line-height: 1;
  font-weight: 400;
}
.woocro-accordion-item[open] .woocro-accordion-title::after {
  content: '−';
}
.woocro-accordion-item[open] .woocro-accordion-title {
  border-bottom: 1px solid #e5e7eb;
}
.woocro-accordion-content {
  padding: 15px;
  color: #4b5563;
  font-size: 0.95em;
  line-height: 1.6;
}
.woocro-accordion-content p:last-child {
  margin-bottom: 0;
}

/* Boxed Tabs (Desktop) */
@media (min-width: 768px) {
  body.woocro-boxed-tabs-desktop .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 10px;
    padding: 0;
    border: none;
    margin-bottom: 20px;
  }
  body.woocro-boxed-tabs-desktop .woocommerce-tabs ul.tabs li {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin: 0;
    padding: 0;
  }
  body.woocro-boxed-tabs-desktop .woocommerce-tabs ul.tabs li a {
    padding: 12px 20px;
    display: block;
    color: #4b5563;
    font-weight: 600;
  }
  body.woocro-boxed-tabs-desktop .woocommerce-tabs ul.tabs li.active {
    background: #fff;
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  body.woocro-boxed-tabs-desktop .woocommerce-tabs ul.tabs li.active a {
    color: #111827;
  }
  body.woocro-boxed-tabs-desktop .woocommerce-tabs ul.tabs li::before,
  body.woocro-boxed-tabs-desktop .woocommerce-tabs ul.tabs li::after {
    display: none !important;
  }
}

/* Category Links Accordion Widget (Styled strictly for mobile layout placement) */
@media (min-width: 768px) {
  .woocro-cat-accordion-widget {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .woocro-cat-accordion-widget {
    margin: 10px 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
  }
  .woocro-cat-accordion-widget .woocro-accordion-item {
    border-bottom: none;
    padding: 10px 14px;
  }
  .woocro-cat-accordion-widget .woocro-accordion-title {
    font-size: 0.95em;
    color: #1e293b;
  }
  /* Hide the original Categories meta outputs in default WC block */
  .product_meta .posted_in {
    display: none !important;
  }
}

/* Custom Zoom Overlay Style */
.woocro-zoom-click-enabled .woocommerce-product-gallery__image {
  cursor: zoom-in;
}
.woocro-zoom-active-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
.woocro-zoom-active-overlay img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 4px;
}

/* Mobile Thumbnails Carousel Layout override */
@media (max-width: 767px) {
  .woocro-mobile-slider-active .flex-control-nav {
    display: flex !important;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding: 10px 0;
  }
  .woocro-mobile-slider-active .flex-control-nav li {
    display: inline-block;
    width: 60px;
    flex: 0 0 auto;
  }
}

/* Sticky CTA Bar Styles */
.woocro-sticky-bar {
  position: fixed;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 99999;
  padding: 10px 0;
  transition: transform 0.3s ease;
}
.woocro-sticky-bar.position-bottom {
  bottom: 0;
  top: auto;
  transform: translateY(100%);
  box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
}
.woocro-sticky-bar.position-bottom.sticky-visible {
  transform: translateY(0);
}
.woocro-sticky-bar.position-top {
  top: 0;
  bottom: auto;
  transform: translateY(-100%);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.woocro-sticky-bar.position-top.sticky-visible {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .woocro-sticky-bar {
    padding: 6px 0;
  }
  .woocro-sticky-container {
    padding: 0 10px;
  }
  .sticky-thumb {
    width: 32px !important;
    height: 32px !important;
    margin-right: 8px !important;
  }
  .woocro-sticky-product-details .sticky-title {
    font-size: 0.85em;
    line-height: 1.2;
  }
  .woocro-sticky-product-details .sticky-price {
    font-size: 0.9em;
    line-height: 1.2;
  }
  .woocro-sticky-actions .button {
    padding: 6px 12px !important;
    font-size: 0.85em !important;
    min-height: 0;
  }
}
.woocro-sticky-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}
.woocro-sticky-product-details {
  display: flex;
  align-items: center;
}
.sticky-thumb {
  width: 45px;
  height: 45px;
  object-fit: cover;
  margin-right: 12px;
}
.sticky-meta {
  display: flex;
  flex-direction: column;
}
.sticky-title {
  font-weight: 600;
}

/* Urgency Elements */
.woocro-conversion-banner {
  background: #fdf6f6;
  border: 1px solid #f9e2e2;
  border-radius: 6px;
  padding: 12px;
  margin: 15px 0;
}
.woocro-urgency-badge {
  color: #df2020;
  font-weight: 700;
  margin-bottom: 5px;
}
.woocro-countdown-timer {
  font-size: 0.95em;
  color: #222;
  font-weight: 600;
}

/* Attributes Pills/Swatches */
.woocro-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.woocro-pill-btn {
  background: #f7f7f7;
  border: 1px solid #ccc;
  color: #333;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.2s ease;
}
.woocro-pill-btn:hover {
  background: #eaeaea;
}
.woocro-pill-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Read More / Description Truncation */
.woocro-truncated-desc {
  margin-bottom: 20px;
}
.woocro-read-more-btn {
  display: inline-block;
  background: transparent;
  border: none;
  color: #0071a1;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  margin-left: 5px;
}