/* 
=============================================
  SHOP ARCHIVE PAGE STYLING
=============================================
*/

/* Category Featured Header */
.category-featured-header {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, var(--ul-blue-100) 0%, var(--ul-blue-200) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  border-radius: 16px;
  overflow: hidden;
}

.category-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-header-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
}

/* Breadcrumb styles consolidated to header.css */

.category-featured-header .current-page {
  color: white;
  font-weight: 600;
}

.category-featured-header .category-title {
  font-family: 'Stolzl', sans-serif;
  font-size: 4rem; /* Increased from 3.5rem for better impact */
  font-weight: 700;
  margin-bottom: 1.5rem; /* Increased from 1rem */
  color: white;
  text-transform: uppercase;
  letter-spacing: 3px; /* Increased from 2px */
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4); /* Enhanced shadow */
  line-height: 1.1;
}

.category-featured-header .category-description {
  font-family: 'Stolzl', sans-serif;
  font-size: 1.3rem; /* Increased from 1.2rem */
  font-weight: 400;
  line-height: 1.7; /* Increased from 1.6 for better readability */
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); /* Enhanced shadow */
  max-width: 900px; /* Added max-width for better reading length */
  margin: 0 auto;
}

/* Subcategory Slider */
.subcategory-slider-wrapper {
  margin: 3rem 0;
  padding: 2rem 0;
}

.subcategory-slider-header {
  text-align: center;
  margin-bottom: 2rem;
}

.subcategory-slider-header h3 {
  font-family: 'Stolzl', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--neutral-1000);
  margin: 0;
}

.subcategory-slider {
  position: relative;
  overflow: hidden;
  padding: 0 3rem;
}

.subcategory-slider-container {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s ease;
  will-change: transform;
}

.subcategory-slide {
  flex: 0 0 280px;
  min-width: 280px;
}

.subcategory-item {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background: white;
  position: relative;
}

.subcategory-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.subcategory-item.current-subcat {
  border: 2px solid var(--ul-red-200);
  box-shadow: 0 4px 20px rgba(220, 38, 127, 0.2);
}

.subcategory-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.subcategory-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.subcategory-image.placeholder-image {
  background: linear-gradient(135deg, var(--ul-blue-100) 0%, var(--ul-blue-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  font-size: 3rem;
  opacity: 0.7;
}

.subcategory-item:hover .subcategory-image {
  transform: scale(1.05);
}

.subcategory-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
}

.subcategory-title {
  display: block;
  font-family: 'Stolzl', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.subcategory-count {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  color: var(--neutral-600);
  z-index: 2;
}

.slider-nav:hover {
  background: var(--ul-red-200);
  color: white;
  border-color: var(--ul-red-200);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
  background: var(--neutral-100);
}

.slider-nav.prev {
  left: 0;
}

.slider-nav.next {
  right: 0;
}

/* Category Page Header */
.category-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
  background: linear-gradient(135deg, var(--ul-blue-100) 0%, var(--ul-blue-200) 100%);
  color: white;
  border-radius: 16px;
}

.category-title {
  font-family: 'Stolzl', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-description {
  font-family: 'Stolzl', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Product Category Selector */
.product-category-selector {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  margin-bottom: 40px;
}

.product-category-selector .category-item {
  font-family: 'Stolzl', sans-serif;
  font-weight: 500;
  color: var(--neutral-800);
  text-decoration: none;
  padding-bottom: 5px;
  position: relative;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.product-category-selector .category-item:hover,
.product-category-selector .category-item.current-cat {
  color: var(--ul-red-300);
}

.product-category-selector .category-item.current-cat::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ul-red-300);
}

/* Subcategory Selector */
.product-subcategory-selector {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 15px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--neutral-200);
}

.product-subcategory-selector .subcategory-item {
  font-family: 'Stolzl', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--neutral-600);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--neutral-300);
  border-radius: 20px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.product-subcategory-selector .subcategory-item:hover,
.product-subcategory-selector .subcategory-item.current-subcat {
  background: var(--ul-red-200);
  color: white;
  border-color: var(--ul-red-200);
}



.shop-main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.product-search-form {
  display: flex;
  gap: 10px;
}

.product-search-form .search-field {
  padding: 10px;
  border: 1px solid var(--neutral-300);
  border-radius: 4px;
  font-family: 'Stolzl', sans-serif;
}

.product-search-form button {
  background: var(--ul-red-300);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Stolzl', sans-serif;
}

.shop-filter-header {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Products Header */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--neutral-200);
}

.results-count {
  font-family: 'Stolzl', sans-serif;
  font-size: 0.9rem;
  color: var(--neutral-600);
}

/* No Products Found */
.no-products-found {
  text-align: center;
  padding: 60px 20px;
  background: var(--neutral-100);
  border-radius: 12px;
  margin-top: 40px;
}

.no-products-found h2 {
  font-family: 'Stolzl', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 15px;
}

.no-products-found p {
  font-family: 'Stolzl', sans-serif;
  font-size: 1rem;
  color: var(--neutral-600);
  margin-bottom: 25px;
}

.no-products-found .btn-red {
  display: inline-block;
  background: var(--ul-red-200);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Stolzl', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.no-products-found .btn-red:hover {
  background: var(--ul-red-300);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .shop-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .category-header {
    padding: 30px 20px;
  }
  
  .category-title {
    font-size: 2rem;
  }
  
  .product-category-selector {
    padding: 15px 0;
    margin-bottom: 20px;
  }
  
  .product-subcategory-selector {
    padding: 10px 0;
    margin-bottom: 20px;
  }
  
  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Back Button Styling */
.product-back-button {
  margin-bottom: 24px;
}
.product-back-button button {
  background: var(--ul-blue-400);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: 'Stolzl', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
}
.product-back-button button:hover {
  background: var(--ul-blue-300);
}

/* Breadcrumb styling handled by header.css */

/* Gallery Container Styling */
.product-images-wrapper .woocommerce-product-gallery {
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 24px;
  position: relative;
}

.product-images-wrapper .woocommerce-product-gallery__wrapper {
  position: relative;
  width: 100%;
  padding-top: 0;
  height: auto;
  overflow: hidden;
  border-radius: 16px;
}

.product-images-wrapper .woocommerce-product-gallery__image {
  position: relative; /* Changed from static to allow overlay positioning */
  cursor: zoom-in;
}

.product-images-wrapper .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.product-images-wrapper .woocommerce-product-gallery__image:hover img {
  transform: scale(1.02);
}

/* Zoom Icon Overlay */
.product-image-zoom-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.product-images-wrapper .woocommerce-product-gallery__image:hover .product-image-zoom-indicator {
  opacity: 1;
}

/* Image Counter */
.product-image-counter {
  position: absolute;
  top: 1rem;
  bottom: auto;
  right: 4rem;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.product-images-wrapper .flex-control-nav {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-left: 0;
}

.product-images-wrapper .flex-control-nav li {
  width: 60px;
  height: 60px;
  border: 1px solid var(--neutral-300);
  border-radius: 12px;
  overflow: hidden;
}

.product-images-wrapper .flex-control-nav img,
.product-images-wrapper .flex-control-nav a {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thumbnail Active State */
.product-images-wrapper .flex-control-nav .flex-active {
  border: 2px solid var(--ul-blue-400);
}

/* Related Items Carousel Arrows */
.related.products {
  position: relative;
}

.related.products .slick-prev,
.related.products .slick-next {
  background: var(--ul-blue-400);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
}

.related.products .slick-prev {
  left: -20px;
}

.related.products .slick-next {
  right: -20px;
}

.related.products .slick-prev:before,
.related.products .slick-next:before {
  font-size: 1.2rem;
}

/* Hide default pagination dots if any */
.related.products .slick-dots {
  display: none;
}

/* Mega menu and header navigation styles are in header.css */

/* Responsive Design */
@media screen and (max-width: 768px) {
  /* Category Featured Header - Mobile */
  .category-featured-header {
    min-height: 300px;
    margin-bottom: 2rem;
    border-radius: 12px;
  }

  .category-header-content {
    padding: 0 1rem;
  }

  .category-featured-header .category-title {
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
  }

  .category-featured-header .category-description {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Subcategory Slider - Mobile */
  .subcategory-slider-wrapper {
    margin: 2rem 0;
    padding: 1rem 0;
  }

  .subcategory-slider-header {
    margin-bottom: 1.5rem;
  }

  .subcategory-slider-header h3 {
    font-size: 1.5rem;
  }

  .subcategory-slider {
    padding: 0 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .subcategory-slider::-webkit-scrollbar {
    display: none;
  }

  .subcategory-slider-container {
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .subcategory-slide {
    flex: 0 0 220px;
    min-width: 220px;
  }

  .subcategory-image-wrapper {
    height: 150px;
  }

  .subcategory-overlay {
    padding: 1.5rem 1rem 1rem 1rem;
  }

  .subcategory-title {
    font-size: 1rem;
  }

  .subcategory-count {
    font-size: 0.8rem;
  }

  /* Hide slider navigation on mobile - use swipe instead */
  .slider-nav {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  /* Category Featured Header - Small Mobile */
  .category-featured-header {
    min-height: 250px;
    border-radius: 8px;
  }

  .category-featured-header .category-title {
    font-size: 2rem;
    letter-spacing: 0.5px;
  }

  .category-featured-header .category-description {
    font-size: 0.9rem;
  }

  /* Subcategory Slider - Small Mobile */
  .subcategory-slider {
    padding: 0 1rem;
  }

  .subcategory-slide {
    flex: 0 0 180px;
    min-width: 180px;
  }

  .subcategory-image-wrapper {
    height: 120px;
  }

  .subcategory-title {
    font-size: 0.9rem;
  }

  .placeholder-icon {
    font-size: 2rem;
  }
}

/*
=============================================
  CUSTOMIZER INTEGRATION - SHOP ARCHIVE
=============================================
*/

/* Hide featured categories section on archive pages */
.archive.woocommerce-page .featured-categories-section {
    display: none !important;
}

/* Archive page hero title styling */
.archive.woocommerce-page .hero-title {
    font-weight: 600;
    font-size: 2.75rem; /* 44px */
    line-height: 3.375rem; /* 54px */
    margin-bottom: 0.5rem; /* 8px */
}

/* Archive contact section styles (commented out in template) */
.archive-contact .wpb_row {
	padding: 30px;
	border-radius: 10px;
}

.archive-contact .wpb_row .row-bg-wrap {
	border-radius: 20px;
}

/* Category breadcrumb styling */
.category-breadcrumb2,
.category-breadcrumb2 span,
.category-breadcrumb2 a {
	font-weight: 600 !important;
	font-size: 17px;
	color: var(--ul-red-200) !important;
	text-transform: uppercase;
}

/* Main content section */
.main-content-section {
	padding-top: 0;
}

.section-title {
	display: none;
}

.filter-toggle-btn {
	background: var(--ul-red-200);
}

.three-columns {
	grid-template-columns: repeat(3, 1fr);
}

/* Hero banner section */
.hero-banner-section {
	background: #ebebeb; /* faint light color */
	min-height: 150px; /* decrease height */
	display: flex;
	align-items: center; /* vertically center title */
	justify-content: center;
	padding: 45px 0 30px;
}

.hero-banner-section .hero-title {
	margin: 0;
	font-size: 28px;
	color: #181930; /* dark text for contrast */
}

/*
=================================================================
Style the WooCommerce Product Search Form
=================================================================
*/

/* Main form container - this creates the overall shape and background */
form.woocommerce-product-search {
	display: flex; /* Aligns input and button side-by-side */
	align-items: center; /* Vertically centers the items */
	position: relative; /* Needed for positioning the icon */
	background-color: #212336; /* The dark background color */
	border-radius: 50px; /* Creates the "pill" shape */
	padding: 0px 15px; /* Adds some inner spacing */
	border: 1px solid transparent; /* Ensures no default border */
	overflow: hidden; /* Keeps child elements within the rounded corners */
}

/* Style the search input field */
form.woocommerce-product-search input[type="search"] {
	flex-grow: 1; /* Allows the input to take up all available space */
	width: 100%; /* Fallback for width */
	background: transparent; /* Makes the input background invisible */
	border: none; /* Removes the default border */
	outline: none; /* Removes the blue/orange outline on focus */
	color: #ffffff; /* Sets the text color to white */
	font-size: 16px; /* Adjust font size as needed */
	padding: 10px 0; /* Vertical padding for the text */
}

/* Style the placeholder text (e.g., "Search product") */
form.woocommerce-product-search input[type="search"]::placeholder {
	color: #ffffff; /* Placeholder text color */
	opacity: 0.8; /* Makes the placeholder slightly transparent */
}

/* Style the search button */
form.woocommerce-product-search button[type="submit"] {
	/* We will replace the text with an icon */
	font-size: 0; /* Hides the button text (e.g., "Search") */
	text-indent: -9999px; /* Pushes the text off-screen */

	/* Remove button default styling */
	background-color: transparent !important;
	border: none;
	cursor: pointer;
	outline: none;

	/* Sizing and positioning for the icon */
	width: 24px; /* Width of the icon area */
	height: 24px; /* Height of the icon area */
	flex-shrink: 0; /* Prevents the button from shrinking */

	/* The SVG Icon - A white magnifying glass */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23ffffff'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px; /* Size of the icon itself */
	order: -1; /* Puts the icon button before the text input */
	margin-right: 10px; /* Space between the icon and the text */
}

/* Optional: Add a subtle glow on focus for better UX */
form.woocommerce-product-search:focus-within {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.results-count {
	font-size: 14px;
	color: #181930;
}

ul.product-categories {
	padding: 0px 20px !important;
}

ul.product-categories li {
	list-style: none;
	margin-bottom: 0 !important;
}

#pagination > span.page-numbers.current,
body nav.woocommerce-pagination span.page-numbers.current {
	padding: 10px;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 640px) {
	#header-outer {
		top: 0 !important;
	}

	.hero-banner-section {
		min-height: 230px;
	}

	.sidebar-filters.visible {
		z-index: 99999;
		margin-top: 0;
	}

	.product-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero-title, .category-breadcrumb2 {
		width: 350px;
	}

	.three-columns {
		grid-template-columns: repeat(2, 1fr);
	}
}

/*
=============================================
  PRODUCT SLIDER NAVIGATION & STYLING
=============================================
*/

/* WooCommerce Product Slider Pro - navigation button positioning */
#wpsp-slider-section-wrapper.wpsp-slider-section .wpsp-nav.swiper-button-prev,
#wpsp-slider-section-wrapper.wpsp-slider-section .wpsp-nav.swiper-button-next {
    top: 40% !important;
    right: 0 !important;
}

#wpsp-slider-section-wrapper.wpsp-slider-section .wpsp-nav.swiper-button-prev {
    left: 0 !important;
}

/* Product slider - product card styling */
.wpsp-slider-section.wpsp_custom #sp-woo-product-slider-pro1666.wpsp-product-section .wpsp-product .wpspro-product-data {
    background: var(--neutral-100);
    border-radius: 0.625rem; /* 10px */
}

/* Product slider - product image padding */
#wpsp-slider-section-wrapper.wpsp-slider-section .wpsp-product img.wpsp-product-img {
    padding: 0.625rem; /* 10px */
}

/*
=============================================
  CATEGORY SLIDER TEXT STYLING
=============================================
*/

/* Remove text shadow from category slider names */
.sp-wcsp-cat-name a {
    text-shadow: none !important;
}

/* Align category slider arrow to center - works better with absolute positioning */
.sp-wcsp-cat-name a::after {
    align-self: center !important;
}


