/**
 * Addons Web Concept - Custom Styles
 * Child theme of Hummingbird for PrestaShop 8.x / 9.x
 */

/* ==========================================================================
   REASSURANCE - Horizontal Layout
   ========================================================================== */

.reassurance-horizontal {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
}

.reassurance-horizontal .block-reassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
}

.reassurance-horizontal .block-reassurance-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  flex: 1 1 auto;
  min-width: 200px;
  max-width: 300px;
}

.reassurance-horizontal .block-reassurance-item img,
.reassurance-horizontal .block-reassurance-item svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.reassurance-horizontal .block-reassurance-item span {
  font-size: 0.875rem;
  color: #495057;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .reassurance-horizontal {
    padding: 1rem;
  }

  .reassurance-horizontal .block-reassurance {
    flex-direction: column;
    align-items: flex-start;
  }

  .reassurance-horizontal .block-reassurance-item {
    width: 100%;
    max-width: none;
  }
}

/* ==========================================================================
   PRODUCT DESCRIPTION - Full Width Enhancement
   ========================================================================== */

.product__infos {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.product__infos .accordion-item {
  border: none;
  border-bottom: 1px solid #e9ecef;
}

.product__infos .accordion-item:last-child {
  border-bottom: none;
}

.product__infos .accordion-button {
  font-weight: 600;
  font-size: 1.1rem;
  color: #212529;
  padding: 1.25rem 1.5rem;
  background: transparent;
}

.product__infos .accordion-button:not(.collapsed) {
  background: #f8f9fa;
  color: #0d6efd;
}

.product__infos .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.product__infos .accordion-body {
  padding: 1.5rem;
  line-height: 1.7;
  color: #495057;
}

/* Rich text content styling */
.product__description.rich-text h2,
.product__description.rich-text h3,
.product__description.rich-text h4 {
  color: #212529;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.product__description.rich-text h2:first-child,
.product__description.rich-text h3:first-child,
.product__description.rich-text h4:first-child {
  margin-top: 0;
}

.product__description.rich-text ul,
.product__description.rich-text ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.product__description.rich-text li {
  margin-bottom: 0.5rem;
}

.product__description.rich-text img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.product__description.rich-text table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}

.product__description.rich-text table th,
.product__description.rich-text table td {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  text-align: left;
}

.product__description.rich-text table th {
  background: #f8f9fa;
  font-weight: 600;
}

/* Code blocks for module documentation */
.product__description.rich-text pre,
.product__description.rich-text code {
  background: #f4f4f4;
  border-radius: 4px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.875rem;
}

.product__description.rich-text code {
  padding: 0.2rem 0.4rem;
  color: #d63384;
}

.product__description.rich-text pre {
  padding: 1rem;
  overflow-x: auto;
}

.product__description.rich-text pre code {
  padding: 0;
  background: none;
  color: inherit;
}

/* ==========================================================================
   PRODUCT PAGE - General Improvements
   ========================================================================== */

.product__name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1rem;
}

.product__description-short {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Price styling */
.product-prices .current-price-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #198754;
}

/* Add to cart button */
.product__actions .btn-primary {
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.product__actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}

/* ==========================================================================
   CATEGORY PAGE - Premium Header Style (like homepage)
   ========================================================================== */

/* Block category with gradient background */
.block-category {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.block-category::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.block-category::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

/* Category title */
.block-category h1,
.block-category .h1,
.block-category .h2,
.block-category .page-title-section {
  color: #fff !important;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* Category description */
.block-category #category-description,
.block-category .category-description,
.block-category .rich-text,
.block-category p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.block-category #category-description p,
.block-category .rich-text p {
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 0;
}

/* Category cover image */
.block-category .category-cover {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* Hide "New" badge - digital products only */
.product-flag.new,
.product-flags .new,
.badge.new,
.product-miniature .product-flag.new {
  display: none !important;
}

/* Breadcrumb styling */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: #667eea;
}

.breadcrumb a:hover {
  color: #764ba2;
}

/* Category bottom description (SEO text) */
.category-bottom-content,
.category-additional-description {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  color: #495057;
  line-height: 1.7;
}

.category-bottom-content h2,
.category-bottom-content h3,
.category-additional-description h2,
.category-additional-description h3 {
  color: #212529;
  margin-bottom: 1rem;
}

/* ==========================================================================
   FOOTER CUSTOM TEXT BLOCK
   ========================================================================== */

#custom-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

#custom-text h2,
#custom-text h3,
#custom-text h4 {
  color: #fff;
}

#custom-text a {
  color: #ffd700;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 991px) {
  .product__name {
    font-size: 1.5rem;
  }

  .product-prices .current-price-value {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .product__infos .accordion-button {
    padding: 1rem;
    font-size: 1rem;
  }

  .product__infos .accordion-body {
    padding: 1rem;
  }
}
