/**
 * WooCommerce Styles - Petland Largo Florida 2025
 * ONLY loaded on WooCommerce pages to maintain homepage performance
 *
 * Sections:
 * 1. Shop/Category Archive Pages
 * 2. Product Card Component
 * 3. Sidebar Filters (Desktop + Mobile)
 * 4. Single Product Pages
 * 5. Product Gallery
 * 6. Mobile Sidebar Toggle
 * 7. Pagination
 * 8. Related Products
 */

/* ========================================
   1. SHOP/CATEGORY ARCHIVE PAGES
   ======================================== */

.shop-archive {
  background: var(--muted);
  min-height: calc(100vh - 200px);
  padding: 40px 0 80px;
}

.shop-archive__header {
  padding: 0px 0 20px;
  margin-bottom: 32px;
}

.shop-archive__header-content {
  text-align: left;
}

.shop-archive__title {
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.shop-archive__subtitle {
  color: var(--dark-gray);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 12px;
}

.subtitle-content-wrapper {
  position: relative;
}

.subtitle-toggle-wrapper {
  text-align: right;
  margin-top: 8px;
}

.shop-archive__subtitle-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s ease;
  display: inline-block;
}

.shop-archive__subtitle-toggle:hover {
  color: var(--primary-dark);
}

.shop-archive__breadcrumbs {
  font-size: 0.875rem;
  color: var(--medium-gray);
}

.shop-archive__breadcrumbs .woocommerce-breadcrumb {
  color: var(--medium-gray);
}

.shop-archive__breadcrumbs .woocommerce-breadcrumb a {
  color: var(--medium-gray);
  text-decoration: none;
}

.shop-archive__breadcrumbs .woocommerce-breadcrumb a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.shop-archive__layout {
  display: grid !important;
  grid-template-columns: 280px 1fr !important;
  gap: 40px;
  align-items: start;
}

.shop-archive__sidebar {
  width: 280px;
}

.shop-archive__main {
  min-height: 500px;
  width: 100%;
}

.shop-archive__results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--dark-gray);
}

.shop-archive__results-count {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 600;
}

.shop-archive__sorting {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-archive__sorting-label {
  font-size: 0.875rem;
  color: var(--dark-gray);
  font-weight: 600;
}

.shop-archive__sorting-select {
  padding: 8px 32px 8px 12px;
  border: 2px solid var(--dark-gray);
  border-radius: 6px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-archive__sorting-select:hover {
  border-color: var(--primary);
}

.shop-archive__sorting-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28, 133, 52, 0.1);
}

/* ========================================
   2. PRODUCT CARD COMPONENT
   ======================================== */

.products,
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

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

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.product-card__badge--available {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.product-card__badge--sold {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.product-card__badge--coming-soon {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #000;
}

.product-card__badge--sale {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.product-card__badge--sale .badge-percent {
  font-size: 1.125rem;
  font-weight: 900;
}

.product-card__badge--sale .badge-label {
  font-size: 0.625rem;
  font-weight: 700;
  opacity: 0.95;
}

.product-card__location {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product-card__location i {
  color: var(--primary);
  font-size: 0.875rem;
}

.product-card__image-link {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--muted);
}

.product-card__image {
  position: relative;
  padding-top: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
}

.product-card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.08);
}

.product-card__image--placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image--placeholder i {
  font-size: 4rem;
  opacity: 0.3;
  color: var(--dark-gray);
}

.product-card__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__breed {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.product-card__title {
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.2;
  padding-bottom: 0px;
  margin-bottom: 0px;
}

.product-card__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card__title-link:hover {
  color: var(--primary);
}

.product-card__info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.product-card__info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  background: var(--muted);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.product-card__info-item span {
  white-space: nowrap;
}

.product-card__info-item i {
  color: var(--primary);
  font-size: 1.25rem;
}

.product-card__price {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  margin: auto 0 8px;
}

.product-card__actions {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.product-card__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.product-card__action-btn--call {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
  width: 44px;
  padding: 10px;
}

.product-card__action-btn--call:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 133, 52, 0.25);
}

.product-card__action-btn--email {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
  width: 44px;
  padding: 10px;
}

.product-card__action-btn--email:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 133, 52, 0.25);
}

.product-card__action-btn--book {
  background: #24A6D4;
  color: #fff;
}

.product-card__action-btn--book:hover {
  background: #1a8bb8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(36, 166, 212, 0.25);
}

.product-card__action-btn i {
  font-size: 1rem;
}

.product-card__button {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-card__button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 133, 52, 0.3);
  color: #fff;
}

.product-card__button i {
  font-size: 1.1rem;
}

/* No Products State */
.shop-archive__no-products {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 12px;
  margin: 40px 0;
}

.shop-archive__no-products-icon {
  font-size: 5rem;
  margin-bottom: 24px;
  opacity: 0.3;
}

.shop-archive__no-products-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.shop-archive__no-products-text {
  font-size: 1.125rem;
  color: var(--dark-gray);
  margin-bottom: 32px;
}

/* ========================================
   3. SIDEBAR FILTERS (Desktop)
   ======================================== */

.shop-sidebar {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 10px;
}

.shop-widget {
  margin-bottom: 32px;
}

.shop-widget:last-child {
  margin-bottom: 0;
}

.shop-widget__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.shop-widget__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop-widget__list-item {
  margin-bottom: 12px;
}

.shop-widget__list-item:last-child {
  margin-bottom: 0;
}

.shop-widget__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  color: var(--dark-gray);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.shop-widget__link:hover {
  background: var(--muted);
  color: var(--primary);
  padding-left: 16px;
}

.shop-widget__link--active {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.shop-widget__link--active:hover {
  background: var(--primary-dark);
  color: #fff;
}

.shop-widget__count {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Filter Checkboxes */
.shop-widget__checkbox-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.shop-widget__checkbox {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: var(--primary);
}

.shop-widget__checkbox-label {
  cursor: pointer;
  color: var(--dark-gray);
  font-weight: 500;
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Price Range Filter */
.shop-widget__price-range {
  padding: 12px 0;
}

.shop-widget__price-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.shop-widget__price-input {
  padding: 10px;
  border: 2px solid var(--dark-gray);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.shop-widget__price-input:focus {
  outline: none;
  border-color: var(--primary);
}

.shop-widget__price-separator {
  color: var(--dark-gray);
  font-weight: 600;
}

.shop-widget__price-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--muted);
  outline: none;
  margin-bottom: 16px;
  accent-color: var(--primary);
}

.shop-widget__apply-button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-widget__apply-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ========================================
   4. MOBILE SIDEBAR TOGGLE
   ======================================== */

.shop-sidebar-toggle {
  display: none; /* Hidden on desktop */
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  padding: 16px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(28, 133, 52, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
  align-items: center;
  gap: 8px;
}

.shop-sidebar-toggle:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28, 133, 52, 0.5);
}

.shop-sidebar-toggle i {
  font-size: 1.25rem;
}

/* Mobile Sidebar Overlay */
.shop-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shop-sidebar-overlay.active {
  opacity: 1;
}

/* Mobile Sidebar */
.shop-sidebar--mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 90%;
  max-width: 380px;
  height: 100vh;
  background: #fff;
  z-index: 1002;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.2);
}

.shop-sidebar--mobile.active {
  right: 0;
}

.shop-sidebar__mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid var(--muted);
  background: var(--primary);
  color: #fff;
}

.shop-sidebar__mobile-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.shop-sidebar__close-button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.shop-sidebar__close-button:hover {
  transform: rotate(90deg);
}

.shop-sidebar__mobile-content {
  padding: 24px;
}

/* ========================================
   5. SINGLE PRODUCT PAGE
   ======================================== */

.single-product {
  background: var(--muted);
  /* padding: 40px 0 80px; */
}

.single-product__breadcrumb {
  background: #fff;
  padding: 16px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--muted);
}

.single-product__breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--dark-gray);
}

.single-product__breadcrumb-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.single-product__breadcrumb-nav a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.single-product__breadcrumb-separator {
  color: var(--dark-gray);
  opacity: 0.5;
}

.single-product__breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.single-product__layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: start;
  background: #fff;
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 48px;
}

/* ========================================
   6. PRODUCT GALLERY
   ======================================== */

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery__main {
  position: relative;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--muted);
}

.product-gallery__main-image {
  position: relative;
  padding-top: 100%; /* 1:1 aspect ratio */
  cursor: zoom-in;
}

.product-gallery__main-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--secondary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.product-gallery__thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.product-gallery__thumbnail {
  position: relative;
  padding-top: 100%;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s ease;
}

.product-gallery__thumbnail:hover {
  border-color: var(--primary);
}

.product-gallery__thumbnail--active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28, 133, 52, 0.2);
}

.product-gallery__thumbnail-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   7. PRODUCT INFO SIDEBAR
   ======================================== */

.product-info {
  display: flex;
  flex-direction: column;
}

.product-info__header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--muted);
}

.product-info__category {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.product-info__title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.2;
}

.product-info__price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0;
}

.product-info__attributes {
  margin-bottom: 32px;
}

.product-info__attribute {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--muted);
}

.product-info__attribute-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--dark-gray);
  font-size: 1rem;
}

.product-info__attribute-label i {
  color: var(--primary);
  font-size: 1.125rem;
}

.product-info__attribute-value {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.125rem;
}

.product-info__description {
  margin-bottom: 32px;
}

.product-info__description-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
}

.product-info__description-text {
  line-height: 1.7;
  color: var(--dark-gray);
  font-size: 1rem;
}

.product-info__actions {
  margin-top: auto;
}

.product-info__button {
  width: 100%;
  padding: 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.product-info__button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 133, 52, 0.3);
}

.product-info__button--secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.product-info__button--secondary:hover {
  background: var(--primary);
  color: #fff;
}

.product-info__button i {
  font-size: 1.25rem;
}

/* ========================================
   8. PRODUCT DETAILS SECTION
   ======================================== */

.product-details {
  background: #fff;
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 48px;
}

.product-details__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--primary);
}

.product-details__content {
  line-height: 1.8;
  color: var(--dark-gray);
  font-size: 1.0625rem;
}

.product-details__content h3 {
  color: var(--ink);
  font-weight: 700;
  margin: 32px 0 16px;
}

.product-details__content ul {
  padding-left: 24px;
  margin: 16px 0;
}

.product-details__content li {
  margin-bottom: 8px;
}

/* ========================================
   9. RELATED PRODUCTS
   ======================================== */

.related-products {
  background: #fff;
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.related-products__header {
  text-align: center;
  margin-bottom: 40px;
}

.related-products__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}

.related-products__subtitle {
  font-size: 1.125rem;
  color: var(--dark-gray);
  margin: 0;
}

.related-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ========================================
   10. INFINITE SCROLL LOADING
   ======================================== */

.infinite-scroll-loader {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.infinite-scroll-loader.loading {
  display: block;
}

.infinite-scroll-loader__spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--muted);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.infinite-scroll-loader__text {
  font-size: 1rem;
  color: var(--dark-gray);
  font-weight: 600;
}

.infinite-scroll-end {
  display: none;
  text-align: center;
  padding: 40px 0;
  color: var(--dark-gray);
  font-weight: 600;
  font-size: 1rem;
}

.infinite-scroll-end.visible {
  display: block;
}

/* ========================================
   11. PAGINATION
   ======================================== */

.woocommerce-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
}

.woocommerce-pagination li {
  margin: 0;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--dark-gray);
  transition: all 0.2s ease;
}

.woocommerce-pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.woocommerce-pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.woocommerce-pagination .prev,
.woocommerce-pagination .next {
  font-size: 0.875rem;
  gap: 8px;
}

/* ========================================
   11. RESPONSIVE DESIGN
   ======================================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .shop-archive__layout {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .shop-archive__sidebar {
    display: none; /* Hide desktop sidebar */
  }

  .shop-sidebar-toggle {
    display: flex; /* Show filter button */
  }

  .products,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .single-product__layout {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 40px;
  }

  .product-gallery {
    position: static;
  }

  .related-products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .shop-archive__header {
    padding: 24px 0 16px;
  }

  .shop-archive__title {
    font-size: 1.75rem;
  }

  .shop-archive__subtitle {
    font-size: 1rem;
  }

  .shop-archive__breadcrumbs {
    font-size: 0.8125rem;
  }

  .shop-archive__results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .products,
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card__content {
    padding: 20px;
  }

  .product-card__title {
    font-size: 1.125rem;
  }

  .product-card__price {
    font-size: 1.5rem;
  }

  .single-product__layout {
    padding: 24px;
  }

  .product-info__title {
    font-size: 1.75rem;
  }

  .product-info__price {
    font-size: 2rem;
  }

  .product-details {
    padding: 24px;
  }

  .product-details__title {
    font-size: 1.5rem;
  }

  .related-products {
    padding: 32px 20px;
  }

  .related-products__grid {
    grid-template-columns: 1fr;
  }

  .woocommerce-pagination {
    flex-wrap: wrap;
  }

  .woocommerce-pagination a,
  .woocommerce-pagination span {
    min-width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .shop-sidebar--mobile {
    width: 100%;
    max-width: 100%;
  }

  .single-product__layout {
    padding: 16px;
  }

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

  .product-info__button {
    font-size: 1rem;
    padding: 16px;
  }
}

/* ========================================
   AJAX LOADING STATE
   ======================================== */

.shop-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  min-height: 300px;
}

.shop-loading .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
  border-color: var(--primary);
  border-right-color: transparent;
}

/* Visually hidden class for accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   PET ENQUIRY FORM STYLES (for modal)
   ======================================== */

.pet-form .form-group {
  margin-bottom: 1.25rem;
}

.pet-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
  .pet-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pet-form .form-row .form-group {
    margin-bottom: 1.25rem;
  }
}

.pet-form .form-label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pet-form .form-label .required {
  color: var(--primary);
}

.pet-form .form-input,
.pet-form .form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.pet-form .form-input:focus,
.pet-form .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212,82,36,0.1);
}

.pet-form .form-input.error,
.pet-form .form-textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}

.pet-form .form-textarea {
  resize: vertical;
  min-height: 100px;
}

.pet-form .form-checkbox-group {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--muted);
  border-radius: 6px;
  border-left: 4px solid var(--primary);
}

.pet-form .form-checkbox-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.pet-form .form-checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: var(--primary);
  cursor: pointer;
  margin-top: 0.125rem;
}

.pet-form .form-checkbox-label {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--dark-gray);
  cursor: pointer;
}

.pet-form .form-checkbox-label .consent-text-short {
  display: inline;
}

.pet-form .form-checkbox-label .consent-text-full {
  display: none;
}

.pet-form .form-checkbox-label.expanded .consent-text-short {
  display: none;
}

.pet-form .form-checkbox-label.expanded .consent-text-full {
  display: inline;
}

.pet-form .consent-read-more {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
  margin-left: 0.25rem;
}

.pet-form .form-checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.pet-form .form-checkbox-label a:hover {
  color: var(--btn-hover);
}

.pet-form .btn-submit-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--primary);
  color: white;
  padding: 1rem 3rem;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(212,82,36,0.2);
  width: 100%;
  margin-top: 1rem;
}

.pet-form .btn-submit-form:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212,82,36,0.3);
}

.pet-form .btn-submit-form:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pet-form .btn-submit-form i {
  font-size: 1.25rem;
}
