/* AutoXama Price Request - Exact Reference Design v5.1 */

/* ================================================
   CSS VARIABLES
   ================================================ */
:root {
  --axpr-primary: #1e3a5f;
  --axpr-primary-hover: #2d4a6f;
  --axpr-price: #dc2626;
  --axpr-badge-stock: #1e3a5f;
  --axpr-badge-top-vente: #f59e0b;
  --axpr-badge-livraison: #10b981;
  --axpr-badge-demande: #ef4444;
  --axpr-whatsapp: #25d366;
  --axpr-filter-toggle: #2FA096;
}

/* ================================================
   RESET - HIDE ALL WOOCOMMERCE DEFAULTS
   ================================================ */
.axpr-active .woocommerce ul.products li.product .button,
.axpr-active .woocommerce ul.products li.product a.button,
.axpr-active .woocommerce ul.products li.product a.add_to_cart_button,
.axpr-active .woocommerce ul.products li.product .add_to_cart_button,
.axpr-active .woocommerce ul.products li.product .price,
.axpr-active .woocommerce ul.products li.product .woocommerce-loop-product__title,
.axpr-active .woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.axpr-active .woocommerce span.onsale,
.axpr-active form.cart,
.axpr-active .woocommerce div.product form.cart,
.axpr-active .woocommerce div.product p.price,
.axpr-active .woocommerce div.product span.price,
.axpr-active .single_add_to_cart_button,
.axpr-active .quantity,
.axpr-active .woocommerce-result-count,
.axpr-active .woocommerce-ordering {
  display: none !important;
}

/* ================================================
   PAGE HEADER
   ================================================ */
.axpr-page-header {
  margin-bottom: 24px;
}

.axpr-page-title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.axpr-page-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
}

/* ================================================
   MOBILE FILTER TOGGLE BUTTON
   ================================================ */
.axpr-mobile-filter-toggle {
  display: none;
  width: 100%;
  padding: 14px 20px;
  background-color: var(--axpr-filter-toggle);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-radius 0.3s ease;
  margin-bottom: 24px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.axpr-mobile-filter-toggle:hover {
  background-color: #268a81;
}

.axpr-mobile-filter-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.axpr-mobile-filter-toggle .axpr-chevron-icon {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.axpr-mobile-filter-toggle.active .axpr-chevron-icon {
  transform: rotate(180deg);
}

.axpr-mobile-filter-toggle.active {
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
}

/* ================================================
   FILTER BAR - Exact Match
   ================================================ */
.axpr-filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 24px;
  margin-bottom: 24px;
  align-items: end;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.axpr-filter-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.axpr-filter-col-search {
  grid-column: span 1;
}

.axpr-filter-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin: 0;
}

.axpr-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.axpr-search-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.axpr-search-input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

input.axpr-search-input-shortcode {
  padding-left: 40px !important;
}

.axpr-search-input:focus {
  border-color: var(--axpr-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.axpr-search-input::placeholder {
  color: #9ca3af;
}

/* ================================================
   SELECT FILTER - UPDATED VERSION
   ================================================ */
.axpr-select-filter {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  background-color: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 20px;
  padding-right: 40px;
  cursor: pointer;
}

.axpr-select-filter:focus {
  border-color: #1B988D;
  box-shadow: 0 0 0 3px rgba(27, 152, 141, 0.1);
}

/* Option styling - LIMITED BROWSER SUPPORT */
.axpr-select-filter option {
  padding: 10px;
  margin: 5px;
  background-color: #ffffff;
  color: #1f2937;
  border-radius: 8px;
}

.axpr-select-filter option:checked {
  background: linear-gradient(#1B988D, #1B988D);
  background-color: #1B988D !important;
  color: #ffffff !important;
  font-weight: 600;
}

.axpr-select-filter option:hover {
  background-color: #1B988D;
  color: #ffffff;
}

/* Firefox specific */
@-moz-document url-prefix() {
  .axpr-select-filter option:checked {
    background: #1B988D !important;
    background-color: #1B988D !important;
    color: #ffffff !important;
  }
}

/* ================================================
   PRODUCT GRID - 4 Columns
   ================================================ */
.axpr-active .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.axpr-active .woocommerce ul.products::before,
.axpr-active .woocommerce ul.products::after {
  display: none !important;
}

/* Override nth-child rules from themes */
.axpr-active .woocommerce ul.products li.product:nth-child(n) {
  grid-column: span 1 !important;
}

/* ================================================
   PRODUCT CARD
   ================================================ */
.axpr-active .woocommerce ul.products li.product {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.axpr-product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.axpr-product-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Product Image */
.axpr-product-image-link {
  width: 100%;
  overflow: hidden;
  background: #f3f4f6;
}

a.ast-on-card-button.ast-select-options-trigger.product_type_simple {
  display: none;
}

input#axpr-search {
  padding-left: 35px;
}

p.price {
  display: none;
}

.astra-shop-summary-wrap {
  display: none;
}

.axpr-active .woocommerce ul.products li.product img,
.axpr-active .woocommerce ul.products li.product a > img {
  display: block !important;
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* ================================================
   BADGES - Exact Colors
   ================================================ */
.axpr-badges-container {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}

.axpr-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.axpr-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* En stock - Dark Navy */
.axpr-badge-stock {
  background-color: var(--axpr-badge-stock);
  color: #ffffff;
}

/* Top vente - Orange/Yellow */
.axpr-badge-top-vente {
  background-color: var(--axpr-badge-top-vente);
  color: #ffffff;
}

/* Livraison rapide - Green */
.axpr-badge-livraison {
  background-color: var(--axpr-badge-livraison);
  color: #ffffff;
}

/* Très demandé - Red */
.axpr-badge-demande {
  background-color: var(--axpr-badge-demande);
  color: #ffffff;
}

/* ================================================
   CARD CONTENT
   ================================================ */
.axpr-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.axpr-product-title {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1f2937 !important;
  line-height: 1.4 !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  min-height: 18px;
}

.axpr-product-title a {
  color: #1f2937 !important;
  text-decoration: none !important;
  transition: color 0.15s;
}

.axpr-product-title a:hover {
  color: var(--axpr-primary) !important;
}

.axpr-price-text {
  display: block;
  color: var(--axpr-price) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  margin-bottom: 12px;
}

/* Request Button */
.axpr-request-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background-color: var(--axpr-primary);
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s;
  text-align: center;
  text-decoration: none !important;
  margin-top: auto;
  line-height: 1.4;
}

.axpr-request-btn:hover {
  background-color: var(--axpr-primary-hover);
  color: #ffffff !important;
}

/* ================================================
   SINGLE PRODUCT PAGE
   ================================================ */
.axpr-single-price {
  color: var(--axpr-price) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  margin: 0 0 4px 0 !important;
}

.axpr-price-note {
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 20px 0;
}

.axpr-single-product-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.axpr-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.axpr-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
}

.axpr-feature-item svg {
  color: #6b7280;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.axpr-buttons-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.axpr-btn-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background-color: var(--axpr-primary);
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
  text-decoration: none !important;
}

.axpr-btn-primary:hover {
  background-color: var(--axpr-primary-hover);
  color: #ffffff !important;
}

.axpr-btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background-color: #ffffff;
  color: var(--axpr-primary) !important;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.15s;
}

.axpr-btn-whatsapp:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  color: var(--axpr-primary) !important;
}

.axpr-btn-whatsapp svg {
  width: 16px;
  height: 16px;
  color: var(--axpr-primary);
}

.axpr-btn-whatsapp-arabic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background-color: var(--axpr-whatsapp);
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.15s;
  direction: rtl;
}

.axpr-btn-whatsapp-arabic:hover {
  background-color: #22c55e;
  color: #ffffff !important;
}

.axpr-btn-whatsapp-arabic svg {
  width: 16px;
  height: 16px;
}

/* ================================================
   POPUP / MODAL
   ================================================ */
.axpr-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.axpr-overlay.active {
  display: flex;
}

.axpr-modal {
  background-color: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.axpr-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s;
  line-height: 1;
  padding: 0;
}

.axpr-close-btn:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

.axpr-modal-body {
  padding: 32px;
}

.axpr-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 24px 0;
}

/* ================================================
   FORM STYLES
   ================================================ */
.axpr-field {
  margin-bottom: 16px;
}

.axpr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.axpr-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.axpr-field input,
.axpr-field select,
.axpr-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  background-color: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  box-sizing: border-box;
}

.axpr-field input:focus,
.axpr-field select:focus,
.axpr-field textarea:focus {
  border-color: var(--axpr-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.axpr-field input[readonly] {
  background-color: #f9fafb;
}

.axpr-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 20px;
  padding-right: 40px;
  cursor: pointer;
}

.axpr-field textarea {
  resize: vertical;
  min-height: 80px;
}

.axpr-hint {
  display: none;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.axpr-submit {
  width: 100%;
  padding: 14px 20px;
  background-color: var(--axpr-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.axpr-submit:hover {
  background-color: var(--axpr-primary-hover);
}

.axpr-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.axpr-spin {
  animation: axpr-spin-anim 1s linear infinite;
}

@keyframes axpr-spin-anim {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ================================================
   SUCCESS VIEW
   ================================================ */
.axpr-success-icon {
  text-align: center;
  margin-bottom: 20px;
}

.axpr-success-title {
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
  margin: 0 0 8px 0;
}

.axpr-success-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
  margin: 0 0 8px 0;
}

.axpr-success-text {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.axpr-continue-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background-color: var(--axpr-whatsapp);
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.15s;
}

.axpr-continue-whatsapp:hover {
  background-color: #22c55e;
  color: #ffffff !important;
}

/* ================================================
   RESPONSIVE - TABLET & MOBILE
   ================================================ */
@media (max-width: 1200px) {
  .axpr-active .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .axpr-active .woocommerce ul.products li.product:nth-child(n) {
    grid-column: span 1 !important;
  }
}

@media (max-width: 992px) {
  /* Show mobile filter toggle button */
  .axpr-mobile-filter-toggle {
    display: flex;
  }
  
  /* Hide filter bar by default on mobile/tablet with smooth animation */
  .axpr-filter-bar {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 0;
    margin-bottom: 24px;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e5e7eb;
    
    /* Animation properties */
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease;
  }
  
  /* Show filter bar when active with smooth animation */
  .axpr-filter-bar.axpr-filter-open {
    max-height: 500px;
    padding-top: 20px;
    padding-bottom: 20px;
    opacity: 1;
  }

  .axpr-active .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .axpr-active .woocommerce ul.products li.product:nth-child(n) {
    grid-column: span 1 !important;
  }

  .axpr-page-title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .axpr-active .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  
  .axpr-active .woocommerce ul.products li.product:nth-child(n) {
    grid-column: span 1 !important;
  }
}

/* MOBILE - 1 COLUMN - MAIN SHOP PAGE */
@media only screen and (max-width: 767px) {
  body .axpr-active .woocommerce ul.products,
  body .axpr-active ul.products,
  html body .axpr-active .woocommerce ul.products,
  .axpr-active .woocommerce ul.products,
  .axpr-active ul.products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  body .axpr-active ul.products li.product,
  .axpr-active ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .axpr-active .axpr-product-image-link {
height: auto !important;
  }

  .axpr-active .axpr-product-image-link img {
height: auto !important;
  }
  
  .axpr-field label {
    font-size: 12px !important;
    font-weight: 600;
  }
  
  .axpr-hint {
    font-size: 11px !important;
	display: none;
  }
}

/* ================================================
   ADMIN
   ================================================ */
.axpr-meta-box p {
  margin: 8px 0;
}

.axpr-meta-box p strong {
  color: var(--axpr-primary);
}

/* ================================================
   SHORTCODE COMPLETE STYLES
   ================================================ */

/* Shortcode Wrapper Override */
.axpr-shortcode-wrapper * {
  box-sizing: border-box;
}

.axpr-shortcode-wrapper ul.products,
.axpr-shortcode-wrapper .woocommerce ul.products,
.axpr-shortcode-wrapper.axpr-active ul.products,
.axpr-shortcode-wrapper.axpr-active .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 24px 0 !important;
  clear: both !important;
}

.axpr-shortcode-wrapper ul.products::before,
.axpr-shortcode-wrapper ul.products::after,
.axpr-shortcode-wrapper .woocommerce ul.products::before,
.axpr-shortcode-wrapper .woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

.axpr-shortcode-wrapper ul.products li.product,
.axpr-shortcode-wrapper .woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: block !important;
  clear: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Shortcode Product Card */
.axpr-shortcode-wrapper .axpr-product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.axpr-shortcode-wrapper .axpr-product-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Shortcode Product Image */
.axpr-shortcode-wrapper .axpr-product-image-link {
  width: 100%;
  overflow: hidden;
  background: #f3f4f6;
  position: relative;
}

.axpr-shortcode-wrapper .axpr-product-image-link img {
  width: 100% !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Shortcode Badges */
.axpr-shortcode-wrapper .axpr-badges-container {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}

.axpr-shortcode-wrapper .axpr-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.axpr-shortcode-wrapper .axpr-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.axpr-shortcode-wrapper .axpr-badge-stock {
  background-color: var(--axpr-badge-stock);
  color: #ffffff;
}

.axpr-shortcode-wrapper .axpr-badge-top-vente {
  background-color: var(--axpr-badge-top-vente);
  color: #ffffff;
}

.axpr-shortcode-wrapper .axpr-badge-livraison {
  background-color: var(--axpr-badge-livraison);
  color: #ffffff;
}

.axpr-shortcode-wrapper .axpr-badge-demande {
  background-color: var(--axpr-badge-demande);
  color: #ffffff;
}

/* Shortcode Card Content */
.axpr-shortcode-wrapper .axpr-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.axpr-shortcode-wrapper .axpr-product-title {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1f2937 !important;
  line-height: 1.4 !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  min-height: 18px;
}

.axpr-shortcode-wrapper .axpr-product-title a {
  color: #1f2937 !important;
  text-decoration: none !important;
  transition: color 0.15s;
}

.axpr-shortcode-wrapper .axpr-product-title a:hover {
  color: var(--axpr-primary) !important;
}

.axpr-shortcode-wrapper .axpr-price-text {
  display: block;
  color: var(--axpr-price) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  margin-bottom: 12px;
}

.axpr-shortcode-wrapper .axpr-request-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background-color: var(--axpr-primary);
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s;
  text-align: center;
  text-decoration: none !important;
  margin-top: auto;
  line-height: 1.4;
}

.axpr-shortcode-wrapper .axpr-request-btn:hover {
  background-color: var(--axpr-primary-hover);
  color: #ffffff !important;
}

/* ================================================
   SHORTCODE RESPONSIVE
   ================================================ */

/* Tablet landscape - 3 columns */
@media (max-width: 1200px) {
  .axpr-shortcode-wrapper ul.products,
  .axpr-shortcode-wrapper .woocommerce ul.products,
  .axpr-shortcode-wrapper.axpr-active ul.products,
  .axpr-shortcode-wrapper.axpr-active .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Tablet portrait - 2 columns */
@media (max-width: 768px) {
  .axpr-shortcode-wrapper ul.products,
  .axpr-shortcode-wrapper .woocommerce ul.products,
  .axpr-shortcode-wrapper.axpr-active ul.products,
  .axpr-shortcode-wrapper.axpr-active .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  
  .axpr-shortcode-wrapper .axpr-product-image-link {
    height: auto !important;
  }
  
  .axpr-shortcode-wrapper .axpr-product-image-link img {
    height: auto !important;
  }
}

/* SHORTCODE Mobile - 1 column - MAXIMUM STRENGTH */
@media only screen and (max-width: 767px) {
  body .axpr-shortcode-wrapper ul.products,
  body .axpr-shortcode-wrapper .woocommerce ul.products,
  body .site .axpr-shortcode-wrapper ul.products,
  html body .axpr-shortcode-wrapper ul.products,
  .axpr-shortcode-wrapper ul.products,
  .axpr-shortcode-wrapper .woocommerce ul.products,
  .axpr-shortcode-wrapper.axpr-active ul.products,
  .axpr-shortcode-wrapper.axpr-active .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    -ms-grid-columns: 1fr !important;
    gap: 16px !important;
  }
  
  body .axpr-shortcode-wrapper ul.products li.product,
  .axpr-shortcode-wrapper ul.products li.product,
  .axpr-shortcode-wrapper .woocommerce ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .axpr-shortcode-wrapper .axpr-product-image-link {
    height: auto !important;
  }

  .axpr-shortcode-wrapper .axpr-product-image-link img {
    height: auto !important;
  }
}
/* ================================================
   NEW v5.2: SELECTED FILTERS DISPLAY (Custom Design)
   ================================================ */
.axpr-selected-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  margin-bottom: 24px;
  background: #f9fafb;
  border-radius: 12px;
  border-left: 3px solid #e5e7eb;
  border-right: 3px solid #e5e7eb;
  border-bottom: 3px solid #e5e7eb;
  border-top: none;
  flex-wrap: wrap;
}

.axpr-active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.axpr-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: #1B988D;
  color: #ffffff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  animation: axpr-filter-tag-appear 0.2s ease;
}

@keyframes axpr-filter-tag-appear {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.axpr-filter-tag svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.axpr-filter-tag button {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}

.axpr-filter-tag button:hover {
  opacity: 0.7;
}

/* Loading State for AJAX */
.axpr-products-loading {
  position: relative;
  opacity: 0.5;
  pointer-events: none;
  min-height: 400px;
}

.axpr-products-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--axpr-primary);
  border-radius: 50%;
  animation: axpr-spinner 0.8s linear infinite;
}

@keyframes axpr-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Dropdown Checkmark Styles */
.axpr-select-filter option:checked {
  background: linear-gradient(#1B988D, #1B988D);
  background-color: #1B988D !important;
  color: #ffffff !important;
  font-weight: 600;
}

.axpr-select-filter option:checked::before {
  content: "✓ ";
  font-weight: 700;
}

/* Mobile Responsive for Selected Filters */
@media (max-width: 992px) {
  .axpr-selected-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .axpr-active-filters {
    width: 100%;
  }
}

/* ================================================
   FIX: Products alignment after AJAX filter
   ================================================ */
.woocommerce ul.products {
  justify-content: flex-start !important;
  justify-items: start !important;
}

.woocommerce ul.products li.product {
  justify-self: start !important;
}


/* ================================================
   Aditional Css
   ================================================ */

.ast-archive-description {
    margin-bottom: 1px !important;
  padding-bottom: 0 important;
    border-bottom: 0px solid var(--ast-border-color) important;
}
#primary {
    margin: 2em 0;
}
/* Remove clearfix pseudo-elements that break grid */
.woocommerce .woocommerce::after,
.woocommerce .woocommerce::before,
.woocommerce-account .woocommerce::after,
.woocommerce-account .woocommerce::before {
    content: none !important;
    display: none !important;
}
.woocommerce .woocommerce-pagination ul.page-numbers li, .woocommerce-page .woocommerce-pagination ul.page-numbers li {
    display: inline-block;
    border-radius: 100px;
}
.axpr-hint {
    display: none !important;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}
/* Force hide notes field with higher specificity */
#axpr-popup-overlay textarea#axpr-notes,
#axpr-popup-overlay label[for="axpr-notes"],
.axpr-modal textarea#axpr-notes,
.axpr-modal label[for="axpr-notes"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide the wrapper div */
#axpr-popup-overlay .axpr-field:has(textarea#axpr-notes) {
    display: none !important;
}