/**
 * WooCommerce Store Page Styling
 * 
 * Provides layout grids, modern aesthetics, responsive behavior, 
 * animations, hover transitions, and skeleton loader frames.
 * 
 * @package HelloElementor
 */

/* Scope styles to the store wrapper to avoid contaminating other parts of the site */
.store-template-wrapper {
  --store-primary: #10b981;
  --store-primary-hover: #059669;
  --store-primary-light: #ecfdf5;
  --store-primary-dark: #065f46;
  --store-bg: #ffffff;
  --store-bg-alt: #f9fafb;
  --store-text-main: #1f2937;
  --store-text-muted: #6b7280;
  --store-border: #e5e7eb;
  --store-border-focus: #10b981;
  --store-rating-color: #fbbf24;
  --store-sale-color: #ef4444;

  --store-radius-lg: 12px;
  --store-radius-md: 8px;
  --store-radius-sm: 4px;

  --store-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --store-shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --store-shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --store-shadow-hover:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: var(--store-text-main);
  background-color: var(--store-bg-alt);
  padding: 40px 0;
  min-height: 100vh;
}

.store-template-wrapper .store-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.store-sidebar .store-reset-btn:hover {
  color: var(--store-sale-color);
}

/* ==========================================================================
   Header & Banner
   ========================================================================== */


.store-header-banner {
  /* background: linear-gradient(135deg, #111827 0%, #065f46 100%); */
  /* padding: 50px 40px;
  border-radius: var(--store-radius-lg);
  color: #ffffff; */
  margin-bottom: 40px;
  /* box-shadow: var(--store-shadow-md); */
  position: relative;
  overflow: hidden;
  color: #182d27;
}

.store-header-banner::before {
  /* content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  filter: blur(50px);
  pointer-events: none; */
}

.store-header-content {
  position: relative;
  z-index: 2;
  max-width: 796px;
}

.store-header-content .store-title,
.font-big-bold {
  font-size: 50px;
  font-weight: 500;
  margin: 24px 0 12px 0;
  letter-spacing: -0.025em;
  color: #182d27;
  line-height: 116%;
  font-family: "Playfair Display", Sans-serif;
  font-style: italic;
  display: flex;
}

.store-header-content .store-subtitle {
  font-size: 1.125rem;
  color: #182d27;
  line-height: 1.5;
  margin: 0;
  font-family: "Figtree", Sans-serif;
}

.store-header-content .font-sm {
  font-size: 1.0625rem;
  line-height: 117.647%;
  letter-spacing: 0.5px;
  font-style: normal;
  font-family: "Figtree", Sans-serif;
  font-weight: 500;
}

.store-header-content .store-subtitle strong {
  font-weight: 500;
}

.store-header-content .store-subtitle p {
  margin: 0;
}

/* ==========================================================================
   Two-Column Grid Layout
   ========================================================================== */
.store-layout-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

/* Sidebar sticky wrapper */
.store-sidebar-sticky {
  position: sticky;
  top: 30px;
}

/* ==========================================================================
   Sidebar: Filters
   ========================================================================== */
.store-filters-container {
  background-color: var(--store-bg);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-lg);
  padding: 16px;
  margin-bottom: 20px;
  /* box-shadow: var(--store-shadow-sm); */
}

.store-filter-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--store-border);
}

.store-filter-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.store-filter-title {
  font-size: 16px;
  font-weight: 500;
  /* text-transform: uppercase; */
  /* letter-spacing: 0.05em; */
  color: #1E1E1E;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Figtree", Sans-serif;
  line-height: 150%;
  letter-spacing: 0.15px;
}

.store-filter-title .filter-icon {
  color: var(--store-primary);
}

/* --- Section 1: Store Names (Top) --- */
.store-name-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-name-grid button {
  color: #182d27;
  border-radius: 10px;
  border: 1px solid #d8d8d8;
  background: #f8f8f9;
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-name-grid button span.tab-store-name {
  display: none;
}

.store-name-grid button span.tab-store-name-all {
  display: inline-block;
  font-family: "Figtree", Sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #182d27;
}

.store-filters-container .store-name-grid button.active {
  background-color: #EFEFE5;
  border-color: #000;
  /* box-shadow: 0 0 0 1px var(--store-primary); */
}

.store-name-grid button.active span.tab-store-name-all {
  color: #1E1E1E;
  font-weight: 500;
}

.store-name-grid button:hover {
  background-color: #efefe5;
}

.store-name-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--store-bg-alt);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-md);
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.store-name-card:hover {
  transform: translateY(-2px);
  border-color: var(--store-primary);
  box-shadow: var(--store-shadow-md);
}

.store-name-card.active {
  background-color: var(--store-primary-light);
  border-color: var(--store-primary);
  box-shadow: 0 0 0 1px var(--store-primary);
}

.store-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--store-primary-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.store-name-card.active .store-card-logo {
  background-color: var(--store-primary);
}

.store-card-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.store-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--store-text-main);
  line-height: 1.2;
}

.store-card-sub {
  font-size: 0.75rem;
  color: var(--store-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Section 2: Categories (Bottom) --- */
.store-category-list-wrapper {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom Scrollbar for Category Box */
.store-category-list-wrapper::-webkit-scrollbar {
  width: 6px;
}

.store-category-list-wrapper::-webkit-scrollbar-track {
  background: var(--store-bg-alt);
  border-radius: 10px;
}

.store-category-list-wrapper::-webkit-scrollbar-thumb {
  background: var(--store-border);
  border-radius: 10px;
}

.store-category-list-wrapper::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

.store-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.store-category-item {
  margin-bottom: 10px;
  position: relative;
}

.store-category-item:last-child {
  margin-bottom: 0;
}

.store-category-header {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.store-category-arrow,
.store-category-spacer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.store-category-arrow {
  cursor: pointer;
  color: var(--store-text-muted);
}

.store-category-arrow svg {
  transition: transform 0.2s ease;
}

.store-category-item.expanded>.store-category-header>.store-category-arrow svg {
  transform: rotate(90deg);
}

.store-category-children {
  list-style: none;
  padding-left: 20px;
  margin-top: 8px;
  display: none;
}

/* Custom Styled Checkboxes */
.store-checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.store-category-checkbox {
  position: absolute;
  top: 1px;
  left: 0;
  width: 18px;
  height: 18px;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
  margin: 0;
}

.store-checkbox-custom {
  position: relative;
  height: 18px;
  width: 18px;
  background-color: var(--store-bg);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-sm);
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
}

.store-checkbox-label:hover .store-checkbox-custom {
  border-color: var(--store-primary);
}

.store-category-checkbox:checked~.store-checkbox-custom {
  background-color: var(--store-primary);
  border-color: var(--store-primary);
}

.store-checkbox-custom::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.store-category-checkbox:checked~.store-checkbox-custom::after {
  display: block;
}

.store-checkbox-text {
  font-size: 0.875rem;
  color: #2E2E33;
  line-height: 1.4;
  font-weight: 500;
  transition: color 0.2s ease;
  font-family: "Figtree", Sans-serif;
}

.store-category-checkbox:checked~.store-checkbox-text {
  color: var(--store-primary-dark);
  font-weight: 600;
}

.store-category-count {
  font-size: 0.75rem;
  color: var(--store-text-muted);
  font-weight: 400;
  margin-left: 4px;
}

/* Reset Button */
.store-reset-btn {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 10px 14px;
  background-color: transparent;
  border: 1px dashed var(--store-sale-color);
  color: var(--store-sale-color);
  border-radius: var(--store-radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.store-reset-btn:hover {
  background-color: #fef2f2;
  border-style: solid;
}

.partner-info-mainwrapper {
  display: flex;
  padding: 10px;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid #C4C4B0;
  margin-top: 24px;
  max-width: 40%;
}

.partner-info-mainwrapper .text-title {
  color: #1E1E1E;
  text-align: center;
  font-family: "Figtree", Sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 133.333%;
}

.partner-info-mainwrapper .partners-wrapper {
  display: flex;
  align-items: center;
  gap: 13px;
  align-self: stretch;
}

.partner-info-mainwrapper .partner-item {
  border-radius: 6px;
  border: 1px solid #E2E2CC;
  background: #F3F3E6;
  display: flex;
  padding: 0 6px;
  align-items: center;
  gap: 4px;
}

.partner-info-mainwrapper .partner-item img {
  width: 16px;
  height: 16px;
}

.partner-info-mainwrapper .partner-item span {
  color: #1E1E1E;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 166.667%;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Toolbar: Search & Meta Info
   ========================================================================== */
.store-toolbar-search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.store-toolbar-search {
  flex-grow: 1;
}

.store-sidebar-toggle-btn {
  display: none;
}

.store-sidebar-mobile-header {
  display: none;
}

.store-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(24, 45, 39, 0.45);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  visibility: hidden;
  pointer-events: none;
}

.store-sidebar-overlay.open {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.store-sidebar-open {
  overflow: hidden !important;
}

.store-toolbar {
  /* background-color: var(--store-bg); */
  /* border: 1px solid var(--store-border); */
  border-radius: var(--store-radius-lg);
  /* padding: 20px 24px; */
  margin-bottom: 30px;
  /* box-shadow: var(--store-shadow-sm); */
  display: flex;
  flex-direction: column;
}

/* Search input style */
.store-search-input-wrapper {
  position: relative;
  width: 100%;
}

.store-search-icon-wrap {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--store-text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.store-search-icon {
  width: 23px;
  height: 23px;
}

.store-search-field {
  width: 100% !important;
  background-color: #f3f3e6;
  border: 1px solid #ccccc1 !important;
  border-radius: 8px !important;
  height: 56px;
  padding: 12px 48px 12px 44px !important;
  font-size: 18px;
  color: #1e1e1e;
  outline: none;
  transition: all 0.25s ease;
  /* box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02); */
}

.store-search-field::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.store-search-field:focus {
  /* background-color: #ffffff;
  border-color: var(--store-border-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); */
}

/* Clear Search Button */
.store-search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #1e1e1e;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.store-search-clear-btn:hover {
  background-color: var(--store-border);
  color: var(--store-text-main);
}

/* Autocomplete Suggestion Dropdown */
.store-search-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #ccccc1;
  border-radius: 8px;
  margin-top: 6px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.store-autocomplete-item {
  padding: 14px 18px;
  cursor: pointer;
  font-family: "Figtree", Sans-serif;
  font-size: 16px;
  color: #1e1e1e;
  transition: all 0.2s ease;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
  font-weight: 500;
}

.store-autocomplete-item:last-child {
  border-bottom: none;
}

.store-autocomplete-item:hover,
.store-autocomplete-item.focused {
  background-color: #f3f3e6;
  color: #182d27;
}

.store-search-clear-btn svg {
  width: 20px;
  height: 20px;
}

/* Meta Count & Active Filters indicators */
.store-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}

.store-count-text {
  font-size: 16px;
  font-weight: 400;
  color: #4a5565;
  letter-spacing: -0.312px;
  line-height: 150%;
}

.store-active-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--store-primary-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--store-primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  animation: fadeIn 0.2s ease;
}

.indicator-remove {
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--store-text-muted);
  display: inline-block;
  transition: color 0.15s ease;
}

.indicator-remove:hover {
  color: var(--store-sale-color);
}

/* ==========================================================================
   Product Grid (3x3 Grid Layout)
   ========================================================================== */
.store-products-wrapper {
  position: relative;
  min-height: 300px;
}

.store-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Product Card */
.store-product-card {
  background-color: #efefe5;
  /* border: 1px solid var(--store-border); */
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* box-shadow: var(--store-shadow-sm); */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 15px;
}

.store-product-card:hover {
  /* transform: translateY(-6px);
  box-shadow: var(--store-shadow-lg);
  border-color: rgba(16, 185, 129, 0.15); */
}

/* Card Image Wrapper */
.store-product-card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  /* 1:1 aspect ratio */
  background-color: #fff;
  overflow: hidden;
  border-radius: 15px;
}

.store-product-image-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-product-card img.store-product-img {
  width: 80%;
  height: 80%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-product-card:hover img.store-product-img {
  transform: scale(1.06);
}

/* Badges */
.store-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  box-shadow: var(--store-shadow-sm);
}

.sale-badge {
  background-color: var(--store-sale-color);
  color: #ffffff;
}

.out-of-stock-badge {
  background-color: #374151;
  color: #ffffff;
  right: 12px;
  /* Stretch across if preferred, or sit next to */
}

/* Card Content Area */
.store-product-card-content {
  margin-top: 10px;
  /* padding: 18px; */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.store-product-categories {
  font-size: 16px;
  font-weight: 500;
  /* color: #1e1e1e; */
  color: #6C7573;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  line-height: 1;
  font-family: "Figtree", Sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-product-title {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 10px 0;
  line-height: 125%;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* height: 2.8em;  */
  font-family: "Figtree", Sans-serif;
  letter-spacing: 0.5px;
}

.store-product-title a {
  /* color: var(--store-text-main); */
  color: #1E1E1E;
  text-decoration: none;
  transition: color 0.15s ease;
}

.store-product-title a:hover {
  /* color: var(--store-primary); */
  color: #1E1E1E;
}

/* Star Rating */
.store-product-rating {
  margin-bottom: 14px;
  font-size: 0.75rem;
  line-height: 1;
}

.store-product-rating .star-rating {
  float: none;
  display: inline-block;
  margin: 0;
  /* color: var(--store-rating-color); 
  font-family: star;*/
  color: #b96754;
  font-weight: 700;
  font-size: 14px;
  font-family: "Figtree", Sans-serif;
}

.store-product-rating .star-rating::before {
  color: #e5e7eb;
}

/* Card Footer: Price & Cart */
.store-product-card-footer {
  margin-top: auto;
  display: flex;
  /* align-items: center; */
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  flex-direction: column;
  /* border-top: 1px solid var(--store-bg-alt); */
}

div.store-product-action .button {
  border-radius: 280px;
  background: #182d27;
  width: 100%;
  padding: 11px;
  font-size: 16px;
  font-weight: 500;
  font-family: "Bricolage Grotesque", Sans-serif;
  gap: 10px;
}

div.store-product-action .button:hover {
  background: #182d27;
}

.store-product-action {
  position: relative;
}

.store-product-price span.woocommerce-Price-amount {
  max-width: 70%;
}

div.store-product-action .added_to_cart.wc-forward {
  font-size: 16px;
  font-weight: 500;
  font-family: "Bricolage Grotesque", Sans-serif;
  color: #b96754;
  display: flex;
  margin-top: 10px;
  text-align: center;
  justify-content: center;
  position: absolute;
  top: -45px;
  right: 0px;
  text-decoration: underline;
}

.store-product-price {
  font-size: 1rem;
  font-weight: 700;
  color: #1E1E1E;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.5px;
  line-height: 125%;
}

.store-product-price ins {
  text-decoration: none;
  color: var(--store-primary-dark);
}

.store-product-price del {
  font-size: 0.8rem;
  color: var(--store-text-muted);
  font-weight: 400;
}

/* Add to cart / action button */
.store-product-action .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--store-primary);
  color: #ffffff !important;
  border: none;
  border-radius: var(--store-radius-md);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--store-shadow-sm);
}

.store-product-action .button:hover {
  background-color: var(--store-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--store-shadow-md);
}

/* Out of Stock Card Overlay */
.store-product-card.out-of-stock .store-product-card-image-wrap {
  opacity: 0.65;
}

.store-product-card.out-of-stock .store-product-action .button {
  background-color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
}

/* Empty store query response */
.store-no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 40px;
  background-color: var(--store-bg);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-lg);
  box-shadow: var(--store-shadow-sm);
}

.store-no-products h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--store-text-main);
}

.store-no-products p {
  font-size: 0.95rem;
  color: var(--store-text-muted);
  margin: 0;
}

.wc-block-components-main.wc-block-cart__main.wp-block-woocommerce-cart-items-block table {
  border: 1px solid #d4d4cd;
  background: #fff !important;
}

/* ==========================================================================
   Skeleton Shimmering Loaders
   ========================================================================== */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-card {
  pointer-events: none;
  border-color: var(--store-border);
}

.skeleton-line {
  height: 12px;
  border-radius: var(--store-radius-sm);
  margin-bottom: 12px;
}

.category-skeleton {
  width: 40%;
  height: 10px;
}

.title-skeleton {
  width: 90%;
  height: 16px;
}

.rating-skeleton {
  width: 30%;
  height: 10px;
  margin-bottom: 20px;
}

.price-skeleton {
  width: 50px;
  height: 16px;
  margin-bottom: 0;
}

.button-skeleton {
  width: 80px;
  height: 32px;
  margin-bottom: 0;
  border-radius: var(--store-radius-md);
}

/* ==========================================================================
   Pagination (Load More Button)
   ========================================================================== */
.store-pagination-container {
  margin-top: 91px;
  display: flex;
  justify-content: center;
}

.store-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #ECECE6;
  color: #000;
  background-color: #ECECE6;
  border-radius: 280px;
  padding: 14px 30px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--store-shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-load-more-btn:hover,
.store-load-more-btn:focus {
  background-color: #182D27;
  transform: translateY(-1px);
  box-shadow: var(--store-shadow-md);
}

.store-load-more-btn:active {
  transform: translateY(0);
}

.store-load-more-btn.loading {
  background-color: var(--store-bg-alt);
  color: var(--store-text-muted);
  cursor: not-allowed;
  border-color: var(--store-border);
}

/* Spinner details inside Load More button */
.btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner-svg {
  animation: spin 1s linear infinite;
  width: 18px;
  height: 18px;
}

.spinner-track {
  opacity: 0.25;
  stroke: currentColor;
}

.spinner-head {
  opacity: 0.75;
  fill: currentColor;
}

.store-pagination-container {
  position: relative;
}

.store-pagination-container:before {
  content: '';
  position: absolute;
  left: 0px;
  width: 100%;
  height: 1px;
  background: #ECECE6;
  top: 25px;
}

.store-pagination-container .store-load-more-btn {
  position: relative;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WooCommerce compatibility overrides to look premium */
.woocommerce-not-active-message {
  padding: 40px;
  text-align: center;
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  margin: 50px auto;
  max-width: 600px;
  border-radius: 8px;
  font-weight: 600;
}

.store-template-wrapper {
  padding-top: 140px;
  background: #fcfcf4;
  padding-bottom: 180px;
}

/* ==========================================================================
   Responsive Styling
   ========================================================================== */
@media (max-width: 1024px) {
  .store-layout-grid {
    gap: 30px;
  }

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

@media (max-width: 768px) {
  .store-template-wrapper {
    padding: 120px 0;
  }

  .store-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .store-header-banner {
    padding: 10px 5px;
    margin-bottom: 10px;
  }

  .store-header-content h1.store-title {
    font-size: 1.75rem;
  }

  /* Slide-out Drawer Style for Sidebar on Mobile */
  .store-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 50vw;
    min-width: 280px;
    max-width: 340px;
    height: 100vh;
    background-color: var(--store-bg);
    z-index: 10000;
    box-shadow: var(--store-shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0;
    border-right: 1px solid var(--store-border);
  }

  .store-sidebar.open {
    transform: translateX(0);
  }

  .store-sidebar-sticky {
    position: static;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* Drawer Mobile Header */
  .store-sidebar-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--store-border);
    background-color: var(--store-bg-alt);
  }

  .store-sidebar-mobile-header h3 {
    margin: 0;
    font-size: 20px;
    font-family: "Figtree", Sans-serif;
    font-weight: 600;
    color: #182d27;
  }

  .store-sidebar-close-btn {
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--store-text-muted);
    cursor: pointer;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
  }

  .store-sidebar-close-btn:hover {
    color: var(--store-sale-color);
  }

  /* Remove default wrapper box style inside drawer for premium seamless design */
  .store-sidebar .store-filters-container {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    padding: 20px;
  }

  /* Show the mobile trigger button */
  .store-sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f3f3e6;
    border: 1px solid #ccccc1;
    border-radius: 8px;
    height: 56px;
    padding: 0 20px;
    font-family: "Figtree", Sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #182d27;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
  }

  .store-sidebar-toggle-btn:hover {
    background-color: #efefe5;
    border-color: #182d27;
  }

  .store-sidebar-toggle-btn .toggle-btn-icon {
    stroke: #182d27;
  }

  .store-toolbar {
    padding: 6px 0px;
  }

  .store-name-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .store-name-card {
    flex: 1 1 calc(33.33% - 8px);
    min-width: 120px;
    padding: 10px;
  }

  .store-card-logo {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .store-card-name {
    font-size: 0.8rem;
  }

  .store-card-sub {
    display: none;
    /* Hide sub text on small screens */
  }

  .store-header-content .store-title,
  .font-big-bold {
    font-size: 34px;
    margin: 12px 0 12px 0;
  }

  .partner-info-mainwrapper {
    flex-direction: column;
    max-width: 100%;
  }

  .partner-info-mainwrapper .partners-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .partner-info-mainwrapper .partner-item {
    padding: 6px 12px;
    width: 60%;
  }

  .partner-info-mainwrapper .partner-item span {
    font-size: 12px;
  }

}

@media (max-width: 480px) {
  .store-products-grid {
    grid-template-columns: 1fr;
  }

  .store-name-card {
    flex: 1 1 100%;
  }

  .store-card-sub {
    display: block;
  }

  .store-toolbar-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}