/* ========================================
   WAF - WooCommerce Advanced Filters
   Complete Shop Page Styles
   ======================================== */

/* Reset & Base */
.waf-complete-shop,
.waf-sidebar-filters,
.waf-product-grid-wrapper,
.waf-category-pills-section {
  box-sizing: border-box;
}

.waf-complete-shop *,
.waf-sidebar-filters *,
.waf-product-grid-wrapper *,
.waf-category-pills-section * {
  box-sizing: border-box;
}

/* ========================================
   Category Pills Section
   ======================================== */

.waf-category-pills-section {
  background-color: #f5f5f5;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 4px;
}

.waf-pills-title {
  font-size: 14px;
  font-weight: 600;
  color: #4a7c59;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.waf-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.waf-category-pill {
  padding: 8px 16px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.waf-category-pill:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
}

.waf-category-pill.waf-active {
  background-color: #333;
  border-color: #333;
  color: #fff;
}

/* ========================================
   Shop Container Layout
   ======================================== */

.waf-shop-container {
  display: flex;
  gap: 30px;
}

.waf-shop-container.waf-layout-sidebar-left {
  flex-direction: row;
}

.waf-shop-container.waf-layout-sidebar-right {
  flex-direction: row-reverse;
}

.waf-shop-container.waf-layout-no-sidebar {
  flex-direction: column;
}

.waf-shop-sidebar {
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
}

.waf-shop-main {
  flex: 1;
  min-width: 0;
}

/* ========================================
   Sidebar Filters
   ======================================== */

.waf-sidebar-filters {
  width: 100%;
}

/* Search Box */
.waf-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background-color: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 20px;
}

.waf-search-box svg {
  flex-shrink: 0;
  stroke: #666;
}

.waf-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #333;
  font-family: inherit;
}

.waf-search-box input::placeholder {
  color: #999;
}

/* Filter Groups */
.waf-filter-group {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.waf-filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.waf-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 5px 0;
  user-select: none;
}

.waf-filter-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.waf-collapse-toggle {
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.waf-collapse-toggle svg {
  stroke: #666;
  transition: transform 0.3s ease;
}

.waf-collapsed .waf-collapse-toggle svg {
  transform: rotate(180deg);
}

.waf-filter-content {
  padding-top: 10px;
  max-height: 1000px;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  overflow: hidden;
}

.waf-collapsed .waf-filter-content {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
}

/* Checkbox List */
.waf-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.waf-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: color 0.2s ease;
  position: relative;
}

.waf-checkbox-item:hover {
  color: #000;
}

.waf-checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.waf-checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: #fff;
}

.waf-checkbox-input:checked+.waf-checkbox-custom {
  background-color: #4a7c59;
  border-color: #4a7c59;
}

.waf-checkbox-input:checked+.waf-checkbox-custom::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.waf-checkbox-label {
  flex: 1;
  line-height: 1.3;
}

.waf-filter-count {
  color: #999;
  font-size: 13px;
  flex-shrink: 0;
}

.waf-hidden-item {
  display: none !important;
}

.waf-show-more {
  background: none;
  border: none;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  padding: 5px 0;
  margin-top: 5px;
  text-decoration: underline;
  transition: color 0.2s ease;
  font-family: inherit;
}

.waf-show-more:hover {
  color: #333;
}

.waf-no-items {
  color: #999;
  font-size: 13px;
  font-style: italic;
}

/* Range Slider */
.waf-range-filter {
  padding: 10px 0;
}

.waf-range-values {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.waf-range-slider {
  margin: 0 8px;
}

/* noUiSlider Customization */
.waf-range-filter .noUi-target {
  background: #e0e0e0;
  border: none;
  border-radius: 4px;
  box-shadow: none;
  height: 6px;
}

.waf-range-filter .noUi-connect {
  background: #4a7c59;
}

.waf-range-filter .noUi-handle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4a7c59;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  top: -6px;
  right: -9px;
}

.waf-range-filter .noUi-handle::before,
.waf-range-filter .noUi-handle::after {
  display: none;
}

.waf-range-filter .noUi-handle:focus {
  outline: none;
}

/* ========================================
   Product Grid
   ======================================== */

.waf-product-grid-wrapper {
  position: relative;
}

.waf-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 15px;
}

.waf-result-count {
  font-size: 14px;
  color: #666;
}

.waf-sorting {
  display: flex;
  align-items: center;
  gap: 10px;
}

.waf-sorting label {
  font-size: 14px;
  color: #666;
}

.waf-sort-select {
  padding: 8px 35px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  font-family: inherit;
  min-width: 150px;
}

.waf-sort-select:focus {
  outline: none;
  border-color: #4a7c59;
}

.waf-grid-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
}

.waf-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Product Card */
.waf-product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid #eee;
}

.waf-product-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #d7e3dc;
  background: #fbfcfb;
}

.waf-product-image-wrap {
  position: relative;
  overflow: hidden;
  background: #f9f9f9;
  aspect-ratio: 1;
}

.waf-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.waf-product-card:hover .waf-product-image {
  transform: scale(1.05);
}

/* Badges */
.waf-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  z-index: 1;
}

.waf-badge-featured {
  background-color: #4a7c59;
  color: #fff;
}

.waf-badge-sale {
  background-color: #c9302c;
  color: #fff;
}

/* Product Content */
.waf-product-content {
  padding: 15px;
}

.waf-product-brand {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.waf-product-title {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.waf-product-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.waf-product-title a:hover {
  color: #4a7c59;
}

.waf-product-price {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.waf-product-price del {
  color: #999;
  font-weight: 400;
  margin-right: 5px;
}

.waf-product-price ins {
  text-decoration: none;
  color: #c9302c;
}

/* Custom Meta Tags */
.waf-product-metas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.waf-meta-item {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  font-weight: 500;
}

/* Low Stock */
.waf-low-stock {
  display: block;
  font-size: 12px;
  color: #c9302c;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Add to Cart Button */
.waf-add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 15px;
  background-color: #4a7c59;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.waf-add-to-cart:hover {
  background-color: #3d6a4a;
  color: #fff !important;
}

.waf-add-to-cart svg {
  stroke: currentColor;
  flex-shrink: 0;
}

.waf-add-to-cart.added::after {
  content: none !important;
}

.waf-add-to-cart.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* No Products */
.waf-no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 16px;
  background: #f9f9f9;
  border-radius: 8px;
}

/* ========================================
   Pagination
   ======================================== */

.waf-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.waf-page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #fff;
  cursor: pointer;
}

.waf-page-link:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
  color: #333;
}

.waf-page-active {
  background-color: #4a7c59 !important;
  border-color: #4a7c59 !important;
  color: #fff !important;
}

.waf-page-active:hover {
  background-color: #3d6a4a !important;
  border-color: #3d6a4a !important;
  color: #fff !important;
}

.waf-page-dots {
  padding: 0 5px;
  color: #999;
}

/* ========================================
   Active Filters
   ======================================== */

.waf-active-filters-wrapper {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
}

.waf-active-filters-wrapper.waf-has-filters {
  display: flex;
}

.waf-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.waf-active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: #4a7c59;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
}

.waf-active-filter-tag button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.waf-active-filter-tag button:hover {
  opacity: 1;
}

.waf-clear-all {
  background: none;
  border: none;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
  font-family: inherit;
  margin-left: auto;
}

.waf-clear-all:hover {
  color: #333;
}

/* ========================================
   Loading Overlay
   ======================================== */

.waf-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  min-height: 200px;
}

.waf-loading-overlay.waf-active {
  display: flex;
}

.waf-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4a7c59;
  border-radius: 50%;
  animation: waf-spin 1s linear infinite;
}

@keyframes waf-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ========================================
   Variant Selector Styles
   ======================================== */

.waf-variant-selector {
  position: relative;
  margin-bottom: 8px;
}

.waf-variant-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  padding: 4px 0;
}

.waf-variant-trigger svg {
  transition: transform 0.2s ease;
}

.waf-variant-selector.waf-open .waf-variant-trigger svg {
  transform: rotate(180deg);
}

.waf-selected-variant-price {
  font-weight: 700;
}

.waf-selected-variant-name {
  font-weight: 400;
}

.waf-variant-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  max-height: 200px;
  overflow-y: auto;
}

.waf-variant-selector.waf-open .waf-variant-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.waf-variant-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f0f0f0;
}

.waf-variant-option:last-child {
  border-bottom: none;
}

.waf-variant-option:hover {
  background-color: #f5f5f5;
}

.waf-variant-option.waf-selected {
  background-color: #4a7c59;
  color: #fff;
}

.waf-variant-price {
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.waf-variant-name {
  font-weight: 500;
  font-size: 13px;
}

.waf-options-count {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

/* ========================================
   Pre-Cart Meta Tags (Hybrid, THC: 0.72%)
   ======================================== */

.waf-pre-cart-metas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.waf-pre-cart-tag {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #e0e0e0;
}

/* ========================================
   Quick View Modal
   ======================================== */

.waf-quick-view-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.waf-quick-view-modal.waf-modal-open {
  display: flex;
  opacity: 1;
}

.waf-quick-view-modal-content {
  background: #fff;
  max-width: 1400px;
  width: 95%;
  max-height: 95vh;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.waf-quick-view-modal.waf-modal-open .waf-quick-view-modal-content {
  transform: scale(1);
}

.waf-modal-header {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.waf-modal-link,
.waf-modal-share,
.waf-modal-close {
  width: 40px;
  height: 40px;
  border: none;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.waf-modal-link:hover,
.waf-modal-share:hover,
.waf-modal-close:hover {
  background: #f5f5f5;
}

.waf-modal-link svg,
.waf-modal-share svg,
.waf-modal-close svg {
  stroke: #333;
}

.waf-modal-body {
  display: flex;
  min-height: 400px;
  overflow-y: auto;
  max-height: 95vh;
}

.waf-modal-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.waf-modal-loading.waf-hidden {
  display: none;
}

.waf-modal-product-content {
  display: flex;
  width: 100%;
  overflow-y: auto;
  max-height: 95vh;
}

/* Full product page styles in modal */
.waf-modal-full-product {
  width: 100%;
  padding: 30px;
  overflow-y: auto;
}

.waf-modal-full-product .product {
  max-width: 100%;
}

/* Ensure Elementor content displays properly in modal */
.waf-modal-full-product .elementor-section {
  margin: 0;
}

.waf-modal-full-product .elementor-widget-wrap {
  padding: 0;
}

/* View full product details button in modal */
.waf-modal-view-full-link {
  text-align: center;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.waf-view-full-product-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #4a7c59;
  color: #fff !important;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.waf-view-full-product-btn:hover {
  background: #3d6a4a;
  color: #fff !important;
}

.waf-view-full-product-btn svg {
  stroke: currentColor;
  flex-shrink: 0;
}

/* Legacy simplified modal styles (kept for fallback) */
.waf-modal-gallery {
  width: 45%;
  padding: 30px;
  background: #f9f9f9;
}

.waf-modal-main-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 15px;
}

.waf-modal-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.waf-modal-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.waf-modal-thumbnail:hover,
.waf-modal-thumbnail.waf-active {
  border-color: #4a7c59;
}

.waf-modal-details {
  width: 55%;
  padding: 40px 30px;
}

.waf-modal-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #333;
  padding-right: 80px;
}

.waf-modal-brand {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.waf-modal-brand-label {
  color: #888;
}

.waf-modal-brand-name {
  color: #4a7c59;
}

.waf-modal-info-box {
  display: flex;
  gap: 30px;
  padding: 15px 20px;
  background: #f9f9f9;
  border-radius: 6px;
  margin-bottom: 20px;
}

.waf-modal-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.waf-modal-info-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.waf-modal-info-value {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.waf-modal-variants {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.waf-modal-variant {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 18px;
  background: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 130px;
}

.waf-modal-variant:hover {
  border-color: #4a7c59;
  background: #f0f5f2;
}

.waf-modal-variant.waf-selected {
  background: #4a7c59;
  color: #fff;
  border-color: #4a7c59;
}

.waf-modal-variant-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: inherit;
}

.waf-modal-variant-price {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: inherit;
  margin-top: 2px;
}

.waf-modal-actions {
  display: flex;
  gap: 15px;
  align-items: stretch;
}

.waf-modal-quantity {
  width: 80px;
}

.waf-modal-quantity select {
  width: 100%;
  height: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

.waf-modal-add-to-cart {
  flex: 1;
  padding: 14px 24px;
  background: #4a7c59;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.waf-modal-add-to-cart:hover {
  background: #3d6a4a;
}

/* ========================================
   Single Product Layout Widget
   ======================================== */

.waf-single-product {
  max-width: 1200px;
  margin: 0 auto 60px;
  font-family: inherit;
}

.waf-single-product-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 50px;
}

.waf-single-gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.waf-single-main-image-wrap {
  background: #f5f5f5;
  border-radius: 16px;
  padding: 24px;
}

.waf-single-main-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.waf-single-thumbnails {
  display: flex;
  gap: 10px;
}

.waf-single-thumbnail {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.waf-single-thumbnail:hover,
.waf-single-thumbnail.waf-active {
  border-color: #4a7c59;
  transform: translateY(-1px);
}

.waf-single-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.waf-single-title {
  font-size: 26px;
  line-height: 1.2;
  margin: 0;
  color: #222;
}

.waf-single-brand {
  font-size: 14px;
  color: #777;
}

.waf-single-info-bar {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #f7f7f7;
}

.waf-single-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.waf-single-info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}

.waf-single-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.waf-single-price-row {
  margin-top: 6px;
}

.waf-single-selected {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.waf-single-selected-price-text {
  font-size: 22px;
  font-weight: 700;
  color: #222;
}

.waf-single-selected-label {
  font-size: 13px;
  color: #555;
}

.waf-single-variants {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.waf-single-variant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #d2d7d5;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.waf-single-variant:hover {
  border-color: #4a7c59;
}

.waf-single-variant.waf-selected {
  background-color: #0f3b32;
  border-color: #0f3b32;
  color: #fff;
}

.waf-single-variant-label {
  font-weight: 500;
}

.waf-single-variant-price {
  font-weight: 600;
}

.waf-single-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.waf-single-quantity {
  min-width: 90px;
}

.waf-single-quantity-select {
  width: 100%;
  height: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #ccd0cf;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

.waf-single-add-to-cart {
  max-width: 260px;
}

.waf-single-related-section {
  margin-top: 40px;
}

.waf-single-related-section .waf-single-related-slider {
  position: relative;
  margin-top: 18px;
}

.waf-single-related-section .waf-related-track {
  display: flex;
  gap: 16px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.waf-single-related-section .waf-related-slide {
  flex: 0 0 auto;
  width: 260px;
}

.waf-single-related-section .waf-related-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #d2d7d5;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  color: #0f3b32;
  padding: 0;
}

.waf-single-related-section .waf-related-prev {
  left: -16px;
}

.waf-single-related-section .waf-related-next {
  right: -16px;
}

.waf-single-related-section .waf-related-nav svg {
  stroke: currentColor;
}

.waf-single-related-section .waf-related-nav:hover {
  background-color: #f3f5f4;
  border-color: #0f3b32;
}

.waf-single-details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
}

.waf-single-details-heading {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.waf-single-short-description {
  font-size: 14px;
  color: #444;
  margin-bottom: 14px;
}

.waf-single-detail-rows {
  display: grid;
  gap: 10px;
}

.waf-single-detail-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
}

.waf-single-detail-label {
  font-weight: 600;
  color: #333;
}

.waf-single-detail-value {
  color: #555;
}

.waf-single-about-heading {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}

.waf-single-about-text {
  font-size: 14px;
  color: #444;
  margin-bottom: 16px;
}

.waf-single-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.waf-single-share-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
}

.waf-single-share-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #d2d7d5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.waf-single-share-button svg {
  stroke: #0f3b32;
}

.waf-single-share-button:hover {
  background-color: #f3f5f4;
  border-color: #0f3b32;
}


@media (max-width: 1024px) {
  .waf-single-product-inner {
    grid-template-columns: 1fr;
  }

  .waf-single-details-layout {
    grid-template-columns: 1fr;
  }

  /* Modal responsive adjustments for tablets */
  .waf-quick-view-modal-content {
    max-width: 95%;
    width: 95%;
  }

  .waf-modal-full-product {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .waf-single-info-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .waf-single-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .waf-single-add-to-cart {
    max-width: none;
  }

  /* Modal responsive adjustments for mobile */
  .waf-quick-view-modal {
    padding: 10px;
  }

  .waf-quick-view-modal-content {
    max-width: 100%;
    width: 100%;
    max-height: 98vh;
    border-radius: 4px;
  }

  .waf-modal-body {
    max-height: 98vh;
  }

  .waf-modal-product-content {
    max-height: 98vh;
  }

  .waf-modal-full-product {
    padding: 15px;
  }

  .waf-modal-header {
    top: 10px;
    right: 10px;
  }

  .waf-modal-share,
  .waf-modal-close {
    width: 36px;
    height: 36px;
  }

  /* Legacy modal styles for mobile */
  .waf-modal-gallery {
    width: 100%;
    padding: 20px;
  }

  .waf-modal-details {
    width: 100%;
    padding: 20px;
  }

  .waf-modal-title {
    font-size: 18px;
    padding-right: 60px;
  }
}