/* WooCommerce Archive Product Page Styles */

/* Archive Page Background */
body.woocommerce-shop,
body.woocommerce.archive,
body.tax-product_cat,
body.tax-product_tag {
  background-color: #f8f9fa;
}

body.woocommerce-shop .site-main,
body.woocommerce.archive .site-main,
body.tax-product_cat .site-main,
body.tax-product_tag .site-main {
  background-color: #f8f9fa;
}

body.woocommerce-shop .woocommerce-page-wrapper,
body.woocommerce.archive .woocommerce-page-wrapper,
body.tax-product_cat .woocommerce-page-wrapper,
body.tax-product_tag .woocommerce-page-wrapper {
  background-color: #f8f9fa;
  min-height: 100vh;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'IRANYekan', sans-serif;
}

:root {
  --primary: #13369D;
  --primary-dark: #0D256D;
  --dark: #0f172a;
  --bg-color: #f8f9fa;
  --text-slate-800: #1e293b;
  --text-slate-900: #0f172a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --red-400: #f87171;
  --red-500: #ef4444;
  --rose-100: #ffe4e6;
  --rose-700: #be123c;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Range Slider */
.range-track {
  background: linear-gradient(to left, #e2e8f0 0%, #13369D 20%, #13369D 80%, #e2e8f0 100%);
  height: 4px;
  width: 100%;
  border-radius: 2px;
  position: relative;
  overflow: visible;
}

.range-thumb {
  width: 16px;
  height: 16px;
  background: white;
  border: 2px solid #13369D;
  border-radius: 50%;
  position: absolute;
  top: -6px;
  cursor: grab;
  z-index: 10;
  user-select: none;
  touch-action: none;
  transform: translateX(-50%);
}

.range-thumb:active {
  cursor: grabbing;
}

/* Container */
.container {
  max-width: 1450px;
  margin-left: auto;
  margin-right: auto;
}




/* Layout */
.main-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  .main-wrapper {
    flex-direction: row;
  }
}

/* Sidebar Filters */
.filters-sidebar {
  width: 100%;
  flex-shrink: 0;
  display: none;
  flex-direction: column;
  gap: 1rem;
}

/* Mobile Off-Canvas Overlay */
.filters-overlay {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filters-overlay.active {
  display: block !important;
  opacity: 1;
}

/* Show sidebar in mobile when not hidden - Off-Canvas Style */
@media (max-width: 1023px) {
  .filters-sidebar {
    position: fixed;
    top: 0;
    right: -100% !important;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    overflow-y: auto;
    padding: 1rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
  }

  .filters-sidebar:not(.hidden) {
    right: 0 !important;
  }

  .filters-sidebar.hidden {
    right: -100% !important;
  }

  /* Close button for mobile */
  .close-filters-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border: 1px solid var(--gray-300);
    background: #ffffff;
    border-radius: 0.5rem;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
    flex-shrink: 0;
    z-index: 999 !important;
    position: relative;
    overflow: visible;
    visibility: visible;
    opacity: 1;
  }

  .close-filters-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
  }

  .close-filters-btn:active {
    background: var(--gray-100);
    transform: scale(0.95);
  }

  .close-filters-btn svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    display: block !important;
    flex-shrink: 0;
    stroke: #374151 !important;
    fill: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Override any utility classes that might hide the SVG */
  .close-filters-btn .w-6,
  .close-filters-btn .h-6 {
    width: 20px !important;
    height: 20px !important;
  }

  /* Ensure header is visible and sticky in mobile */
  .filters-sidebar > .flex.items-center.justify-between {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    z-index: 10001;
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .filters-overlay {
    display: none !important;
  }

  .close-filters-btn {
    display: none;
  }

  .filters-sidebar {
    width: 25%;
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    display: flex !important;
    right: auto;
    height: auto;
    overflow: visible;
    padding: 0;
    box-shadow: none;
  }

  /* In desktop, always show sidebar even if it has hidden class */
  .filters-sidebar.hidden {
    display: flex !important;
  }
}


/* Filter Box/Card */
/* Filter Box/Card - Each filter section is a box */
.filters-sidebar > div[data-purpose] {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 14px 14px;
  transition: all 0.2s;
}


/* Header section outside boxes */
.filters-sidebar > .flex.items-center.justify-between {
  margin-bottom: 1rem;
  padding: 0;
}

.filter-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}

.filter-title {
    color: #212121;
  font-weight: 500;
  font-size: 14px;
  margin: 0;
}

.filter-icon {
  width: 1rem;
  height: 1rem;
  color: #bfbfbf  ;
  transition: transform 0.3s;
}

.filter-icon.rotate-180 {
  transform: rotate(180deg);
}

.filter-content {
  display: block;
  margin-top: 0.5rem;
  max-height: 130px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-left: 6px;
}

.filter-content.hidden {
  display: none;
}

/* Fixed filters (categories and brand) - 200px height */
[data-purpose="categories-filter"] .filter-content,
[data-purpose="brand-filter"] .filter-content {
  max-height: 145px;
}

/* Custom scrollbar for filter content */
.filter-content::-webkit-scrollbar {
  width: 6px;
}

.filter-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.filter-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.filter-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Categories Filter */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 24px;
}

.categories-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 0.5rem;
}

.categories-item > a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: visible;
  text-decoration: none;
  color: inherit;
  font-size: 13px;
}

.categories-item > a > svg {
  flex-shrink: 0;
}

.categories-item > a {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.categories-item:hover {
  color: var(--primary);
}

.categories-item:hover > a {
  color: var(--primary);
}

.categories-item span:last-child {
  font-weight: 500;
  font-size: 13px;
  color: var(--gray-400);
  flex-shrink: 0;
  white-space: nowrap;
}

.categories-item:hover span:last-child {
  color: var(--primary);
}

.categories-item.active {
  color: var(--primary);
}

.categories-item.active > a {
  color: var(--primary);
}

.categories-item.active span:last-child {
  color: var(--primary);
}

/* Brand Filter */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  font-size: 0.875rem;
}

.brand-button {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
  text-decoration: none;
  color: inherit;
}

.brand-button:hover {
  border-color: var(--gray-300);
}

.brand-button.active {
  border-color: var(--primary);
  background: rgba(19, 54, 157, 0.1);
  color: var(--primary);
}

.brand-indicator {
  width: 0.75rem;
  height: 0.75rem;
  background: var(--gray-200);
  border-radius: 50%;
}

.brand-button.active .brand-indicator {
  border: 2px solid var(--primary);
  background: transparent;
}

/* Price Filter */
.price-inputs {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.price-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.price-input-wrapper > div {
  position: relative;
  width: 100%;
}

.price-label {
  font-size: 10px !important;
  color: var(--gray-400);
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: block;
  text-align: right;
}

.price-input {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 13px;
  border: 1px solid var(--gray-200);
  border-radius: 0.25rem;
  text-align: center;
  direction: ltr;
  font-family: 'IRANYekan', sans-serif;
}

.price-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.price-currency {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--gray-500);
  pointer-events: none;
  white-space: nowrap;
}

/* Main Content */
.main-content {
  width: 100%;
}

@media (min-width: 1024px) {
  .main-content {
    width: 75%;
  }
}

.page-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .page-header {
    flex-direction: row;
    align-items: center;
  }
}

.page-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-slate-900);
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--gray-500);
  font-size: 12px;
}

.results-count {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .results-count {
    margin-top: 0;
  }
}

.results-text {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Sort Section */
.sort-section {
  display: none;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .sort-section {
    display: flex;
  }
}

.sort-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.sort-buttons > span {
  margin-left: 0.5rem;
  color: var(--gray-600);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
}

.sort-button {
  font-weight: 500;
  color: var(--gray-600);
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.375rem 0.875rem;
  font-size: 12px;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.sort-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(19, 54, 157, 0.05);
}

.sort-button.active {
  font-weight: 600;
  color: var(--primary);
  background: rgba(19, 54, 157, 0.1);
  border-color: var(--primary);
}

.sort-button.active:hover {
  color: var(--primary);
  background: rgba(19, 54, 157, 0.1);
  border-color: var(--primary);
}

/* Mobile Filters */
.mobile-filters {
  display: flex;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: 1rem;
  background: var(--bg-color);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1024px) {
  .mobile-filters {
    display: none;
  }
}

.mobile-filter-button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-300);
  background: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.1s;
}

.mobile-filter-button:active {
  transform: scale(0.95);
}

/* Sort Dropdown */
.sort-dropdown {
  display: none;
  margin-bottom: 1rem;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
}

@media (min-width: 1024px) {
  .sort-dropdown {
    display: none !important;
  }
}

.sort-dropdown.hidden {
  display: none !important;
}

.sort-dropdown:not(.hidden) {
  display: block;
}

.sort-dropdown-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sort-dropdown-button {
  width: 100%;
  text-align: right;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  background: none;
  border: none;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.sort-dropdown-button:hover {
  background: var(--gray-50);
}

.sort-dropdown-button.active {
  font-weight: 700;
  color: var(--primary);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Product Card */
.product-card {
  background: white;
  border-radius: 0.75rem;
  padding: 0.75rem;
  border: 1px solid transparent;
  transition: all 0.3s;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--primary);
}

.product-card.disabled {
  background: var(--gray-100);
  opacity: 0.75;
  filter: grayscale(100%);
  border-color: var(--gray-200);
  box-shadow: none;
}

.product-badge {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  font-size: 10px;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .product-badge {
    display: inline-block;
  }
}

.product-badge.discount {
  background: var(--red-500);
  color: white;
}

.product-badge.out-of-stock {
  background: var(--gray-800);
  color: white;
}

.product-badge.limited {
  background: var(--rose-100);
  color: var(--rose-700);
}

.product-badge.new {
  background: rgba(19, 54, 157, 0.1);
  color: var(--primary);
}

.product-badge-mobile {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.375rem;
}

.product-badge-mobile .product-badge {
  display: inline-block;
  position: static;
  white-space: nowrap;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .product-badge-mobile {
    display: none;
  }
}

.product-content {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  height: 100%;
}

@media (min-width: 640px) {
  .product-content {
    flex-direction: column;
  }
}

.product-image-wrapper {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.product-image-container {
  aspect-ratio: 1;
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  background: var(--gray-50);
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .product-image-container {
    width: 100%;
    height: auto;
    margin-bottom: 0.75rem;
  }
}

.product-image {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  position: relative;
  z-index: 2;
}

.product-image.loaded {
  opacity: 1;
}

.product-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* Skeleton Loading */
.skeleton-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--gray-100) 0%,
    var(--gray-200) 50%,
    var(--gray-100) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 0.5rem;
  z-index: 1;
}

.skeleton-image.hidden {
  display: none;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.product-colors {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.375rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-100);
}

@media (min-width: 640px) {
  .product-colors {
    display: flex;
  }
}

.color-dot {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.2s;
}

.color-dot.active {
  border-color: var(--gray-300);
  box-shadow: 0 0 0 1px var(--primary);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-slate-900);
  line-height: 2em;
  min-height: 2.5rem;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title a {
  color: inherit;
  text-decoration: none;
}

@media (min-width: 640px) {
  .product-title {
    margin-bottom: 0.75rem;
  }
}

.product-card:hover .product-title {
  color: var(--primary);
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .product-specs {
    margin-bottom: 0.75rem;
  }
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--gray-50);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  border: 1px solid var(--gray-100);
}

.spec-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: rgba(19, 54, 157, 0.6);
  flex-shrink: 0;
}

.spec-text {
  font-weight: 500;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--gray-100);
  padding-top: 0.75rem;
}

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

.product-price-old {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-decoration: line-through;
  text-decoration-color: var(--red-400);
}

.product-price-old .toman-icon {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.6em;
}

.product-price-old .toman-icon svg {
  width: 14px !important;
  height: 14px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}

.product-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-slate-900);
}

.product-price .toman-icon {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.8em;
}

.product-price .toman-icon svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}

.product-price.disabled {
  color: var(--gray-400);
}

.product-cart-button {
  background: var(--primary) !important;
  color: white !important;
  border-radius: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.product-cart-button:hover {
  background: var(--primary-dark) !important;
}

.product-cart-button:disabled {
  background: var(--gray-200) !important;
  color: var(--gray-500) !important;
  border: none !important;
  cursor: not-allowed;
  box-shadow: none;
}

.product-cart-button.added-success {
  background: #10b981 !important;
  color: white !important;
}

.product-cart-button.added-success:hover {
  background: #059669 !important;
}

.product-cart-button.added-success .product-cart-icon {
  color: white !important;
}

.product-cart-icon {
  width: 1rem;
  height: 1rem;
  display: block;
  flex-shrink: 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination-button {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  border: 1px solid var(--gray-200);
  background: white;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.pagination-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination-ellipsis {
  color: var(--gray-400);
  padding: 0 0.25rem;
}

/* Info Section - Category Description (styled like single product description) */
.info-section {
  line-height: 3.5em;
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.75rem 1.75rem 2rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.info-section img {
  border-radius: 40px;
}

.info-section p {
  font-size: 14px;
  font-weight: 400;
  line-height: 2.4em;
  color: var(--text-slate-900);
  margin-bottom: 1rem;
}

.info-section p:last-child {
  margin-bottom: 0;
}

.info-section h2 {
  font-size: 28px;
  font-weight: 900;
  line-height: 2em;
  color: var(--text-slate-900);
  margin-bottom: 1rem;
}

.info-section h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 2em;
  color: var(--text-slate-900);
  margin-bottom: 1rem;
}

.info-section strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-slate-900);
}

.info-section li {
  font-size: 16px;
  line-height: 2.5em;
  color: var(--text-slate-900);
}

.info-section a {
  color: #b79191;
  text-decoration: none;
}

.info-section a:hover {
  text-decoration: underline;
}

.info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-slate-900);
  margin-bottom: 1rem;
}

.info-text-wrapper {
  position: relative;
}

.info-text {
  color: var(--text-slate-900);
  font-size: 14px;
  line-height: 2.4em;
  margin-bottom: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

.info-text.collapsed {
  max-height: 120px;
  position: relative;
}

.info-text.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #ffffff);
  pointer-events: none;
}

.info-text.expanded {
  max-height: none;
}

.info-text.expanded::after {
  display: none;
}

.info-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.info-toggle-btn:hover {
  background: rgba(19, 54, 157, 0.05);
  border-color: var(--primary);
}

.info-toggle-btn .toggle-icon {
  transition: transform 0.3s ease;
}

.info-toggle-btn.expanded .toggle-icon {
  transform: rotate(180deg);
}

/* Responsive styles for info-section (mobile) */
@media (max-width: 768px) {
  .info-section {
    line-height: 3em;
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .info-section h2 {
    font-size: 18px;
    line-height: 2.2em;
  }

  .info-section h3 {
    font-size: 14px;
    line-height: 2.6em;
  }

  .info-section strong {
    font-size: 13px;
  }

  .info-section p {
    font-size: 13px;
    line-height: 3em;
  }

  .info-section ol {
    padding-left: 15px;
  }

  .info-section ul {
    padding-left: 15px;
  }

  .info-section li {
    font-size: 13px;
    line-height: 2em;
  }
}

.info-link {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}

.info-link:hover {
  text-decoration: underline;
}

.info-link-icon {
  width: 0.75rem;
  height: 0.75rem;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.text-primary {
  color: var(--primary);
}

.text-gray-400 {
  color: var(--gray-400);
}

.text-gray-500 {
  color: var(--gray-500);
}

.text-gray-600 {
  color: var(--gray-600);
}

.text-gray-700 {
  color: var(--gray-700);
}

.text-gray-300 {
  color: var(--gray-300);
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.cursor-pointer {
  cursor: pointer;
}

.transition-colors {
  transition: color 0.2s;
}

.transition-all {
  transition: all 0.3s;
}

.transition-transform {
  transition: transform 0.3s;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* Additional Utility Classes */
.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.hover\:text-primary:hover {
  color: var(--primary);
}

@media (min-width: 1200px) {
  .page-header .entry-title, .site-footer .footer-inner, .site-footer:not(.dynamic-footer), .site-header .header-inner, .site-header:not(.dynamic-header), body:not([class*=elementor-page-]) .site-main {
    max-width: 1450px;
  }
}

/* WooCommerce Price Override */
.woocommerce .products-grid .product-price-wrapper .woocommerce-Price-amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-slate-900);
}

.woocommerce .products-grid .product-price-old .woocommerce-Price-amount {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-decoration: line-through;
  text-decoration-color: var(--red-400);
}

/* Hide "View Cart" message after adding to cart */
.woocommerce .added_to_cart.wc-forward {
  display: none !important;
}
