/*
Theme Name: Zignature Custom
Template:   hello-elementor
Description: Child theme for Zignature Webste
Author: Hutton Smith
Author URI: https://pets-global.com
Version: 1.0.0
 */
/* ======================================
   VARIABLES
====================================== */
:root {
  /* Color Palette - Customize these to match your brand */
  --primary: #3a6ea5;
  --primary-dark: #2a5080;
  --secondary: #ff6b6b;
  --accent: #6c63ff;
  --text: #333333;
  --text-light: #666666;
  --background: #ffffff;
  --background-alt: #f9f9f9;
  --border: #e0e0e0;
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* ======================================
     ELEMENTOR GLOBAL OVERRIDES
     (Only use these if you need to make site-wide changes)
  ====================================== */
/* Example: Change all Elementor headings to your preferred font */
.elementor-widget-heading .elementor-heading-title {
  /* Your styles here if needed */
}

.hero-video > .elementor-widget-container {
  height: 100% !important;
}

.hero-video > .elementor-widget-container > .e-hosted-video {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
}

.elementor .elementor-html5-video {
  object-fit: cover;
}

.object-cover {
  object-fit: cover !important;
}

video {
  object-fit: cover !important;
  object-position: center !important;
  width: 100% !important;
  height: 100% !important;
}

.full-cover {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
}

.full-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

.max-height-90 {
  max-height: 100vh !important;
}

.hidden {
  display: none;
}

.bg-cover-workaround {
  --container-widget-height: 100% !important;
  --container-widget-flex-grow: 1 !important;
  height: 100vh; /* or your desired height */
}

/* Add box-shadow to all Elementor sections if desired */
.elementor-section {
  /* Your styles here if needed */
}

/* ======================================
     WOOCOMMERCE SPECIFIC OVERRIDES
     (These target WooCommerce elements that might not be fully styled by Elementor widgets)
  ====================================== */
/* Product badges (sale, out of stock) */
.woocommerce span.onsale {
  background-color: var(--secondary);
  color: white;
  font-size: 14px;
  padding: 0.4em 0.8em;
  min-height: auto;
  min-width: auto;
  line-height: 1;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.h-full {
  height: 100% !important;
}

/* Product title in loops */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.1rem;
  padding-top: 0.5rem;
}

/* Product price styling */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--text);
  font-weight: 500;
}

.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins {
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
}

/* Add to cart buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 500;
  padding: 0.75em 1.5em;
  transition: all 0.3s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background-color: var(--primary-dark);
  color: white;
}

.woocommerce a.added_to_cart {
  padding-top: 0.5em;
  font-size: 0.9em;
  font-weight: 500;
  color: var(--primary);
}

/* Product image hover effect */
.woocommerce ul.products li.product a img {
  transition: all 0.3s ease;
}

.woocommerce ul.products li.product a:hover img {
  opacity: 0.9;
}

/* Quantity inputs */
.woocommerce .quantity .qty {
  padding: 0.5em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 0.5em 1.5em;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-weight: 500;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: var(--background);
}

/* Reviews */
.woocommerce #reviews #comments ol.commentlist li .comment-text {
  border-radius: var(--radius-md);
}

.woocommerce #review_form #respond textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Star ratings */
.woocommerce .star-rating span::before,
.woocommerce p.stars a::before {
  color: var(--warning);
}

/* Forms and notices */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  padding: 0.75em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--radius-sm);
  padding: 1em 2em 1em 3.5em;
  margin-bottom: 2em;
}

.woocommerce-message {
  border-left-color: var(--success);
}

.woocommerce-info {
  border-left-color: var(--primary);
}

.woocommerce-error {
  border-left-color: var(--error);
}

/* Cart page */
.woocommerce-cart table.cart td.actions .coupon .input-text {
  padding: 0.6em;
  width: 140px;
  border: 1px solid var(--border);
}

.woocommerce-cart table.cart img {
  width: 80px;
}

.woocommerce table.shop_table {
  border-radius: var(--radius-md);
}

/* Checkout */
.woocommerce-checkout #payment {
  background: var(--background-alt);
  border-radius: var(--radius-md);
}

.woocommerce-checkout #payment div.payment_box {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* ======================================
     MINI CART WIDGET
  ====================================== */
.woocommerce-mini-cart__buttons .button {
  display: block !important;
  margin-bottom: 0.5em !important;
  text-align: center;
}

.woocommerce-mini-cart__buttons .checkout {
  background-color: var(--success) !important;
}

.woocommerce-mini-cart__buttons .checkout:hover {
  background-color: var(--success) !important;
  opacity: 0.9;
}

/* ======================================
     ELEMENTOR WOOCOMMERCE WIDGETS TWEAKS
  ====================================== */
/* Products carousel tweaks */
.elementor-widget-woocommerce-products .swiper-slide {
  padding: 10px;
}

/* Product grid item spacing */
.elementor-products-grid ul.products {
  grid-gap: 20px;
}

/* Add to cart buttons in Elementor widgets */
.elementor-widget-woocommerce-products a.button,
.elementor-widget-wc-products a.button {
  /* Add any specific styles needed */
}

/* ======================================
     CUSTOM CLASSES FOR ELEMENTOR
     (Add these to elements via Elementor's Advanced tab → CSS Classes)
  ====================================== */
/* Box shadows */
.e-shadow-sm {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.e-shadow-md {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.e-shadow-lg {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Hover effects */
.e-scale-on-hover {
  transition: transform 0.3s ease;
}

.e-scale-on-hover:hover {
  transform: scale(1.03);
}

/* Border radius */
.e-radius-sm {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.e-radius-md {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.e-radius-lg {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Custom WooCommerce product card */
.e-product-card .elementor-widget-container {
  height: 100%;
  padding: var(--spacing-md);
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.e-product-card:hover .elementor-widget-container {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* ======================================
     RESPONSIVE FIXES
  ====================================== */
@media (max-width: 767px) {
  /* Mobile-specific WooCommerce fixes */
  .woocommerce ul.products[class*="columns-"] li.product,
  .woocommerce-page ul.products[class*="columns-"] li.product {
    width: 100%;
    margin: 0 0 2em;
  }

  .woocommerce-cart table.cart td.actions .coupon .input-text {
    width: 100%;
    margin-bottom: 0.5em;
  }

  .woocommerce-cart table.cart td.actions .coupon .button {
    width: 100%;
  }
}

/* ======================================
     SPECIFIC HELLO ELEMENTOR THEME COMPATIBILITY
  ====================================== */
/* Fix any Hello Elementor specific issues here */
.site-header {
  /* In case you have a non-Elementor header */
}

.site-footer {
  /* In case you have a non-Elementor footer */
}

/* ======================================
   SOLUTION FINDER STYLES
   ====================================== */

/* Solution Finder Container */
.solution-finder-container {
  margin: 2rem 0;
}

/* Results Grid */
.solution-results-grid {
  margin-top: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

.solution-results-grid .products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Individual Product Styling */
.solution-results-grid .product {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.solution-results-grid .product:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.solution-results-grid .product-inner {
  padding: 0;
}

.solution-results-grid .product-image {
  position: relative;
  overflow: hidden;
}

.solution-results-grid .product-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.solution-results-grid .product:hover .product-image img {
  transform: scale(1.05);
}

.solution-results-grid .product-content {
  padding: 1.5rem;
}

.solution-results-grid .woocommerce-loop-product__title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.solution-results-grid .woocommerce-loop-product__title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.solution-results-grid .woocommerce-loop-product__title a:hover {
  color: #667eea;
}

.solution-results-grid .price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #667eea;
  margin: 0.5rem 0;
}

.solution-results-grid .product-categories {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0;
}

.solution-results-grid .product-brands {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0;
}

.solution-results-grid .product-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin: 0.5rem 0;
}

.solution-results-grid .add-to-cart {
  margin-top: 1rem;
}

.solution-results-grid .add-to-cart .button {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.solution-results-grid .add-to-cart .button:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
}

.solution-results-grid .out-of-stock .button {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* Results Count Display */
.results-count-display {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  animation: slideInDown 0.5s ease-out;
}

.results-count-display strong {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 4rem 2rem;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 2rem 0;
  animation: fadeIn 0.3s ease-out;
}

.loading-spinner .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e3e3e3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.loading-spinner p {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
  font-weight: 500;
}

/* No Products Found */
.no-products-found {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  margin: 2rem 0;
  border: 2px dashed #dee2e6;
  animation: fadeIn 0.5s ease-out;
}

.no-products-content h3 {
  color: #495057;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.no-products-content p {
  color: #6c757d;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.no-products-content .button {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.no-products-content .button:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Error Messages */
.error-message {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #c53030;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: center;
  animation: shake 0.5s ease-in-out;
}

.error-message p {
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.error-message .retry-button {
  background: #e53e3e;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.error-message .retry-button:hover {
  background: #c53030;
}

/* Form Modification State */
.elementor-form.form-modified {
  position: relative;
}

.elementor-form.form-modified::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: #667eea;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Results Loaded Animation */
.results-loaded {
  animation: bounceIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .solution-results-grid .products {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .results-count-display {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
  }

  .results-count-display strong {
    font-size: 1rem;
  }

  .loading-spinner {
    padding: 3rem 1rem;
  }

  .no-products-found {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .solution-results-grid .products {
    gap: 1rem;
  }

  .loading-spinner .spinner {
    width: 30px;
    height: 30px;
  }

  .loading-spinner p {
    font-size: 1rem;
  }
}

/* Print Styles */
@media print {
  .solution-results-grid.print-friendly {
    display: block;
  }

  .solution-results-grid.print-friendly .products {
    display: block;
  }

  .solution-results-grid.print-friendly .product {
    page-break-inside: avoid;
    margin-bottom: 2rem;
  }

  .loading-spinner,
  .error-message {
    display: none;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard Navigation */
.product[tabindex]:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .solution-results-grid {
    border: 2px solid #000;
  }

  .loading-spinner .spinner {
    border-color: #000;
    border-top-color: #fff;
  }

  .no-products-found {
    border-color: #000;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .solution-results-grid,
  .results-count-display,
  .loading-spinner,
  .no-products-found,
  .error-message,
  .results-loaded {
    animation: none;
  }

  .loading-spinner .spinner {
    animation: none;
  }

  .elementor-form.form-modified::after {
    animation: none;
  }
}

/* Debug Styles */
.solution-finder-debug {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  font-family: monospace;
  font-size: 0.9rem;
}

.solution-finder-debug h3 {
  color: #495057;
  margin-bottom: 1rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.5rem;
}

.solution-finder-debug h4 {
  color: #6c757d;
  margin: 1rem 0 0.5rem 0;
}

.solution-finder-debug ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.solution-finder-debug li {
  margin: 0.25rem 0;
  line-height: 1.4;
}

.solution-finder-debug ul ul {
  margin: 0.25rem 0;
  padding-left: 1rem;
}

.solution-finder-debug strong {
  color: #495057;
}
