/* =========================================
   WooCommerce Shop & Archive Layout Styles
   Font: Montserrat
   ========================================= */

.skinlab-shop-wrapper,
.skinlab-shop-wrapper * {
  box-sizing: border-box;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.skinlab-shop-wrapper {
  width: 100%;
  overflow-x: hidden;
  color: #1a1a1a;
  background-color: #ffffff;
}

/* =========================================
   1. Banner Hero Section (.zodaily-)
   ========================================= */
.zodaily-section {
  position: relative;
  width: 100%;
  min-height: 280px;
  background: url('../img/zo_daily_bg.png') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 85px 20px;
  overflow: hidden;
}

.zodaily-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.zodaily-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.zodaily-title {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0;
}

/* =========================================
   2. Shop Layout Container (Sidebar + Grid)
   ========================================= */
.skinlab-shop-container {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* Left Sidebar Styles */
.skinlab-shop-sidebar {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #edf0f2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}

.sidebar-title {
  font-size: 20px;
  font-weight: 800;
  color: #000000;
  margin: 0;
}

.clear-all-filters {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-decoration: underline;
}

.clear-all-filters:hover {
  color: #000000;
}

/* Accordion Widget */
.sidebar-widget {
  margin-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 20px;
}

.sidebar-widget:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 14px;
}

.widget-title {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  text-transform: capitalize;
}

.widget-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.sidebar-widget.active .widget-arrow {
  transform: rotate(-135deg);
}

.widget-content {
  display: none;
}

.sidebar-widget.active .widget-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Checkbox style */
.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.filter-checkbox-label input[type="checkbox"] {
  accent-color: #000000;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.show-more-link {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  text-decoration: underline;
  margin-top: 4px;
}

/* Price range slider widget */
.price-range-slider-wrapper {
  padding-top: 6px;
}

.price-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #cbd5e1;
  outline: none;
  margin-bottom: 18px;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #000000;
  cursor: pointer;
}

.price-inputs {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #000000;
  min-width: 60px;
  text-align: center;
}

/* Shop Main area & Loop Headers */
.shop-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.results-count {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
}

.shop-sorting select {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

/* Product Loop Grid Layout */
.products.columns-3,
.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 40px 0 !important;
}

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

/* Product Card Design & WooCommerce Float Resets */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce-page ul.products[class*="columns-"] li.product,
.products .product-card,
.products .product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

.product-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #edf0f2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.product-card-image-wrap {
  position: relative;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 260px;
}

.product-card-wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.product-card-img-link {
  width: 100%;
  height: 100%;
  display: block;
}

.product-card-img-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
	max-height: 220px;
}

.product-card-content {
  padding: 20px 20px 0;
}

.product-card-info-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 8px;
}

.product-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.2px;
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
}

.product-card-title a:hover {
  text-decoration: underline;
}

.product-card-price {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.product-card-stars {
  color: #f59e0b;
  /* Yellow stars */
  font-size: 13px;
  letter-spacing: 2px;
}

.product-card-count {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.product-card-btn-wrapper {
  padding: 0 20px 20px;
}

/* Override standard WooCommerce add to cart button */
.product-card-btn-wrapper .add_to_cart_button,
.product-card-btn-wrapper .button {
  background: #000000 !important;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 12px 10px !important;
  border-radius: 6px !important;
  border: none !important;
  cursor: pointer !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  transition: background-color 0.2s ease !important;
  text-transform: none !important;
  box-shadow: none !important;
}

.product-card-btn-wrapper .add_to_cart_button:hover,
.product-card-btn-wrapper .button:hover {
  background: #222222 !important;
}

/* Pagination styling */
.shop-pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.shop-pagination-wrap ul.page-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop-pagination-wrap ul.page-numbers li {
  margin: 0;
}

.shop-pagination-wrap ul.page-numbers a,
.shop-pagination-wrap ul.page-numbers span.current {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  transition: all 0.2s ease;
}

.shop-pagination-wrap ul.page-numbers a:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.shop-pagination-wrap ul.page-numbers span.current {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.mobile-filter-toggle-btn,
.mobile-sidebar-close-btn {
  display: none;
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 1024px) {
  .skinlab-shop-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sidebar-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .mobile-sidebar-close-btn {
    display: inline-flex;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    padding: 0;
    line-height: 1;
  }

  .mobile-sidebar-close-btn:hover {
    color: #000000;
  }

  .mobile-filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #000000;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    outline: none;
  }

  .mobile-filter-toggle-btn:hover {
    background: #f8fafc;
  }

  .skinlab-shop-sidebar {
    display: none;
    /* Hidden by default on mobile/tablets */
    width: 100% !important;
  }

  .skinlab-shop-sidebar.active {
    display: block;
    /* Shown when toggled */
  }

  .mobile-filter-toggle-btn,
  .shop-sorting select {
    height: 42px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
  }

  .shop-sorting select {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    line-height: 40px !important;
  }
}

@media (max-width: 900px) {
  .zodaily-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {

  .products.columns-3,
  .products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 640px) {
  .shop-list-header {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    align-items: stretch !important;
    margin-bottom: 24px !important;
  }

  .mobile-filter-toggle-btn {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .shop-sorting {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    display: flex !important;
  }

  .shop-sorting select {
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }

  .results-count {
    grid-column: 1 / span 2 !important;
    grid-row: 2 !important;
    text-align: center !important;
    margin: 4px 0 0 0 !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  /* Prevent flexbox overflow issues by forcing standard block layouts on mobile section wrappers */
  .zodaily-section {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .zodaily-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .zodaily-section {
    padding: 40px 16px;
    min-height: 140px;
  }

  .zodaily-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {

  .products.columns-3,
  .products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .product-card-image-wrap {
    height: 160px !important;
    padding: 8px !important;
  }

  .product-card-img {
    max-width: 100% !important;
    max-height: 140px !important;
    object-fit: contain !important;
  }

  .product-card-content {
    padding: 12px 12px 0 !important;
  }

  .product-card-info-row {
    flex-direction: column !important;
    gap: 4px !important;
    align-items: flex-start !important;
  }

  .product-card-title {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

  .product-card-price {
    font-size: 13px !important;
  }

  .product-card-rating {
    margin-bottom: 12px !important;
    gap: 4px !important;
  }

  .product-card-stars {
    font-size: 11px !important;
    letter-spacing: 1px !important;
  }

  .product-card-count {
    font-size: 10px !important;
  }

  .product-card-btn-wrapper {
    padding: 0 12px 12px !important;
  }

  .product-card-btn-wrapper .add_to_cart_button,
  .product-card-btn-wrapper .button {
    font-size: 12px !important;
    padding: 10px 8px !important;
  }
}

/* Category Hierarchy Styles */
.category-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-list-item {
  display: flex;
  flex-direction: column;
}

.category-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subcat-toggle-btn {
  background: none;
  border: 1px solid #cbd5e1;
  color: #000000;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.subcat-toggle-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.subcat-toggle-spacer {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.subcategory-filter-list {
  list-style: none;
  padding: 10px 0 0 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}