/*
Theme Name:     aqc-theme
Theme URI:      https://themeisle.com/themes/neve/
Template: neve
Author:         ThemeIsle
Author URI:     https://themeisle.com
Description:    Neve is a super fast, easily customizable, multi-purpose theme.
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    neve
Tags: blog, custom-logo, e-commerce, rtl-language-support, post-formats, grid-layout, one-column, two-columns, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, flexible-header, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, accessibility-ready, wide-blocks, block-styles
*/

/* Fix: Force Playfair Display since Neve isn't loading Google Fonts properly */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* Apply Playfair Display to body text */
body, p, .wp-block-paragraph, .entry-content p {
    font-family: "Playfair Display", Georgia, serif !important;
}

/* Apply to headings as well */
h1, h2, h3, h4, h5, h6, .wp-block-heading h1, .wp-block-heading h2, .wp-block-heading h3, .wp-block-heading h4, .wp-block-heading h5, .wp-block-heading h6 {
    font-family: "Playfair Display", Georgia, serif !important;
}

/* Fixed header with white background and 80% opacity */
.header-main {
  position: fixed !important;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s ease;
}

.header-scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Add padding to the body to prevent content from hiding under the fixed header */
body {
  padding-top: 80px; /* Adjust this value to match your header height */
}

/* Shop container layout */
.aqc-products-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Main products area */
.aqc-products-main {
  width: 100%;
}

/* WooCommerce products grid */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  clear: both !important;
}

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

.woocommerce ul.products li.product {
  float: none !important;
  margin: 0 !important;
  width: 100% !important;
  padding: 0 !important;
  position: relative !important;
  clear: none !important;
}

/* Product image styling */
.woocommerce ul.products li.product a img {
  margin: 0;
  box-shadow: none;
  border: none;
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s;
}

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

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  margin: 12px 0 5px;
  padding: 0;
}

/* Product price */
.woocommerce ul.products li.product .price {
  color: #666;
  font-size: 14px;
  font-weight: normal;
  margin: 0;
}

/* Remove add to cart button from grid view */
.woocommerce ul.products li.product .button {
  display: none;
}

/* Responsive design */
@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Expanded button styling for all WooCommerce buttons */
.add_to_cart_button, 
.product_type_simple,
.button.alt,
.checkout-button,
.wc-forward,
.button.wc-forward,
.woocommerce-Button,
.button.button-primary,
.woocommerce button.button,
.woocommerce .button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce #respond input#submit,
.button.checkout-button,
.single_add_to_cart_button,
.single_add_to_cart_button * ,
.single_add_to_cart_button span,
.single_add_to_cart_button .aqc-price-wrap,
.single_add_to_cart_button .aqc-stock,
.single_add_to_cart_button .aqc-separator,
.single_add_to_cart_button .aqc-add-text,
.single_add_to_cart_button .price,
.single_add_to_cart_button .amount,
.single_add_to_cart_button .woocommerce-Price-amount 
{
    color: #FFFFFF !important; /* White text */
    background-color: #0D47A1 !important; /* Dark blue background */
    border: 1px solid #0D47A1 !important;
    text-indent: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 12px !important;
    font-weight: 400 !important; /* Normal weight instead of bold */
    display: inline-block !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Optional hover effect */
.single_add_to_cart_button:hover, 
.add_to_cart_button:hover, 
.product_type_simple:hover,
button.alt:hover,
.checkout-button:hover,
.wc-forward:hover,
.button.wc-forward:hover,
.woocommerce-Button:hover,
.button.button-primary:hover,
.woocommerce button.button:hover,
.woocommerce .button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.woocommerce #respond input#submit:hover,
.button.checkout-button:hover {
    background-color: #1565C0 !important; /* Slightly lighter blue on hover */
}

/* Highly specific selector for the separator */
.single_add_to_cart_button .aqc-separator,
button.single_add_to_cart_button .aqc-separator,
.button.alt .aqc-separator,
#content .single_add_to_cart_button .aqc-separator {
    display: inline-block !important;
    width: 1px !important; /* Very thin */
    height: 1.6em !important; /* Match text */
    background-color: white !important; /* Ensure it is white */
    vertical-align: middle !important;
    margin: 0 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* In case it's a pseudo-element */
.single_add_to_cart_button .aqc-separator::before,
.single_add_to_cart_button .aqc-separator::after {
    background-color: white !important;
}


@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* Independent shop sidebar */
.shop-text-sidebar {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.shop-text-sidebar h3 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 500;
  color: #333;
}

.shop-text-sidebar p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #666;
}

@media (max-width: 768px) {
  .shop-text-sidebar {
    margin-bottom: 20px;
  }
}

/* Price filter styling */
.price-filter-widget {
  margin: 20px 0;
  padding: 15px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.price-filter-widget h3 {
  margin-top: 0;
  font-size: 16px;
  margin-bottom: 12px;
}

.price_slider_wrapper .ui-slider {
  position: relative;
  text-align: left;
  margin: 0 10px 1em;
  height: 4px;
  background: #e1e1e1;
  border-radius: 2px;
}

.price_slider_wrapper .ui-slider .ui-slider-range {
  position: absolute;
  z-index: 1;
  display: block;
  border: 0;
  background: #3498db;
  border-radius: 2px;
}

.price_slider_wrapper .ui-slider .ui-slider-handle {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  border: 1px solid #ddd;
  top: -6px;
  margin-left: -8px;
}

.price_slider_amount {
  text-align: right;
  line-height: 2.4;
  font-size: 13px;
}

.price_slider_amount .button {
  padding: 5px 12px;
  font-size: 13px;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  float: left;
}

.price_slider_amount .price_label {
  padding-top: 5px;
}

/* Improved mobile price slider */
@media (max-width: 768px) {
  /* Make slider interaction area more prominent */
  .price_slider_wrapper {
    padding: 15px 5px;
    margin-bottom: 20px;
  }
  
  /* Helper text styling */
  .slider-helper {
    background: #f5f5f5;
    padding: 8px;
    border-radius: 4px;
    margin-top: 10px;
    font-weight: 500;
  }
  
  /* Ensure handles stay above content */
  .ui-slider-handle {
    z-index: 10 !important;
  }
  
  /* Transition for tap feedback */
  .ui-slider-handle {
    transition: transform 0.1s ease;
  }
}

/* Gutenberg section styling */
.category-gutenberg-section {
  max-width: 1400px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.category-custom-blocks {
  width: 100%;
}

.category-default-header {
  padding: 20px 0;
}

.category-default-header h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

.category-description {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

/* Custom category content styling */
.category-custom-content-section {
  max-width: 1400px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.category-custom-content {
  width: 100%;
}

.category-custom-content img {
  max-width: 100%;
  height: auto;
}

.category-default-header {
  padding: 20px 0;
}

.category-default-header h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

.category-description {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

@media (max-width: 781px) {
  .reverse-on-mobile {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .reverse-on-mobile > .wp-block-column:first-child {
    order: 2 !important;
  }
  
  .reverse-on-mobile > .wp-block-column:last-child {
    order: 1 !important;
  }
}

/* Override Neve theme shadows */
img, .aqc-product img, ul.products li.product img, .woocommerce img {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    border-radius: 0 !important;
}

/**
 * AQC Exhibition Frontend Styles
 */

/* Exhibition single view */
.aqc-exhibition-single {
    overflow: hidden;
    width: 100%;
}

.exhibition-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    width: 100%;
}

.exhibition-image-column {
    flex: 0 0 100%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.exhibition-details-column {
    flex: 0 0 100%;
    padding: 0 15px;
}

.exhibition-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.exhibition-meta {
    margin-bottom: 30px;
}

.exhibition-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 32px;
    line-height: 1.2;
}

.exhibition-short-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

.exhibition-quote {
    font-style: italic;
    font-size: 20px;
    line-height: 1.5;
    color: #666;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 20px 0;
}

.exhibition-quote-attribution {
    display: block;
    text-align: right;
    font-size: 16px;
    margin-top: 10px;
}

.exhibition-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.exhibition-info-item {
    margin-bottom: 10px;
    display: flex;
}

.exhibition-info-item:last-child {
    margin-bottom: 0;
}

.exhibition-info-label {
    font-weight: bold;
    min-width: 100px;
}

.exhibition-content {
    clear: both;
    width: 100%;
    margin-top: 40px;
    padding: 0 15px;
}

.exhibition-products {
    clear: both;
    width: 100%;
    margin-top: 60px;
    padding: 0 15px;
}

.exhibition-products-title {
    margin-bottom: 30px;
    font-size: 24px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.exhibition-product {
    text-align: center;
}

.exhibition-product img {
    max-width: 100%;
    height: auto;
}

.exhibition-product h3 {
    margin: 10px 0;
    font-size: 16px;
}

.exhibition-product .price {
    color: #666;
}

.exhibition-product-size-large {
    grid-column: span 2;
    grid-row: span 2;
}

.exhibition-product-size-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.exhibition-product-size-small {
    grid-column: span 1;
    grid-row: span 1;
}

.exhibition-status-badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    margin-bottom: 15px;
    font-weight: bold;
}

.exhibition-status-upcoming {
    background-color: #e3f5eb;
    color: #157a3a;
}

.exhibition-status-current {
    background-color: #e6f5ff;
    color: #0073aa;
}

.exhibition-status-archived {
    background-color: #f1f1f1;
    color: #666;
}

/* Responsive */
@media (min-width: 768px) {
    .exhibition-image-column {
        flex: 0 0 50%;
    }
    
    .exhibition-details-column {
        flex: 0 0 50%;
    }
}

@media (min-width: 992px) {
    .exhibition-image-column {
        flex: 0 0 40%;
    }
    
    .exhibition-details-column {
        flex: 0 0 60%;
    }
}

/* Add these styles to your child theme's style.css */

/* Long Description Styles */
.exhibition-long-description {
    margin: 30px 0;
    line-height: 1.6;
    font-size: 16px;
}

.exhibition-long-description h2,
.exhibition-long-description h3 {
    margin-top: 25px;
    margin-bottom: 15px;
}

.exhibition-long-description ul,
.exhibition-long-description ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.exhibition-long-description img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.exhibition-long-description p {
    margin-bottom: 15px;
}

/* Quote Styles - Enhanced */
.exhibition-quote {
    font-style: italic;
    font-size: 20px;
    line-height: 1.5;
    color: #666;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 20px 0;
    position: relative;
}

.exhibition-quote:before {
    content: "";
    font-size: 60px;
    color: #eee;
    position: absolute;
    left: -10px;
    top: 10px;
    font-family: Georgia, serif;
}

.exhibition-quote-attribution {
    display: block;
    text-align: right;
    font-size: 16px;
    font-style: normal;
    margin-top: 10px;
    color: #888;
}

/* Compact exhibition image display */
.exhibition-image-compact {
    max-width: 600px;
    margin: 0 auto 30px;
}

.exhibition-image-compact .exhibition-featured-image img {
    max-height: 500px;
    width: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

/* Make sure it's still responsive */
@media (max-width: 767px) {
    .exhibition-image-compact {
        max-width: 100%;
    }
}

/* ===== AQC THEME INTEGRATION ===== */
/* Integrate AQC blocks with Neve theme - specific fixes only */

/* Reset any Neve theme interference with AQC blocks */
[class*="aqc-"] {
    box-sizing: border-box;
}

/* Ensure exhibition content integrates well with Neve theme spacing */
.exhibition-long-description,
.exhibition-short-description {
    margin-bottom: 1.5rem;
}

/* Make sure AQC blocks work well with your fixed header */
.aqc-featured-exhibitions-container,
.aqc-exhibition-list-container {
    scroll-margin-top: 100px;
}

/* Ensure AQC blocks don't inherit unwanted Neve theme styles */
[class*="aqc-"] * {
    box-shadow: none !important;
    border-radius: 0 !important;
}