/* ==========================================================================
   SHOE LANE - SHOP PAGE STYLESHEET (shop.css)
   (Includes Desktop Layout & Mobile Off-Canvas Sidebar)
   ========================================================================== */

/* Shop Banner Top Header */
.shop-banner {
  background-color: var(--topbar-bg, #0a0a0a);
  color: var(--text-light, #ffffff);
  padding: 40px 60px;
  text-align: center;
}

.shop-banner-title {
  font-size: 2.6rem;
  letter-spacing: 2px;
}

.shop-banner-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

/* ==========================================================================
   BREADCRUMB BAR STYLES
   ========================================================================== */
.breadcrumb-wrapper {
  background-color: #f8f9fa;
  border-bottom: 1px solid var(--border-light, #e5e5e5);
  padding: 12px 60px;
}

.breadcrumb-container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center; /* Centered alignment */
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #666666);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted, #666666);
  transition: color var(--transition-fast, 0.2s ease);
}

.breadcrumb-item:hover {
  color: var(--accent-cyan, #38b6ff);
}

.breadcrumb-item.active {
  color: var(--text-dark, #0a0a0a);
  font-weight: 700;
}

.breadcrumb-home-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
}

.breadcrumb-separator {
  font-size: 10px;
  color: #a0a0a0;
  display: flex;
  align-items: center;
}

/* Breadcrumb Responsive Rules */
@media screen and (max-width: 1024px) {
  .breadcrumb-wrapper {
    padding: 10px 20px;
  }
}

@media screen and (max-width: 768px) {
  .breadcrumb-wrapper {
    padding: 10px 15px;
  }
  
  .breadcrumb-container {
    font-size: 12px;
    gap: 8px;
  }

  .breadcrumb-home-icon {
    width: 13px;
    height: 13px;
  }
}

/* Shop Main Grid Layout Container */
.shop-page-container {
  display: flex;
  gap: 40px;
  padding: 50px 60px;
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
}

/* Mobile Filter Trigger Button (Hidden on Desktop) */
.mobile-filter-btn {
  display: none;
  width: 100%;
  padding: 12px;
  background-color: var(--text-dark, #0a0a0a);
  color: var(--text-light, #ffffff);
  border: none;
  font-family: var(--font-primary, serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  margin-bottom: 20px;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

/* Backdrop Overlay for Mobile Drawer */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Left Sidebar Filter Styling (Desktop / PC) */
.shop-sidebar {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid var(--border-light, #f0f0f0);
  
  /* Left padding prevents box-clipping */
  padding-left: 6px; 
  padding-right: 25px;

  /* Sticky & Scroll properties */
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;

  /* Hide Scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shop-sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Form element wrapper within sidebar */
.shop-sidebar form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--text-dark, #0a0a0a);
  padding-bottom: 10px;
}

.sidebar-header h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
}

.close-sidebar-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-dark, #0a0a0a);
  text-transform: uppercase;
}

/* Search Box Input & Dynamic Form Button */
.filter-search-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.filter-search-input {
  width: 100%;
  padding: 9px 36px 9px 12px;
  border: 1px solid var(--border-pill, #dcdcdc);
  font-size: 12px;
  outline: none;
}

.filter-search-input:focus {
  border-color: var(--accent-cyan, #38b6ff);
}

.filter-search-box button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Custom PNG Search Icon Styling */
.search-icon-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.filter-search-box button:hover .search-icon-img {
  opacity: 1;
}

/* Filter Checkbox List */
.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted, #666666);
  cursor: pointer;
  transition: color var(--transition-fast, 0.3s ease);
}

.filter-checkbox input[type="checkbox"] {
  accent-color: var(--accent-cyan, #38b6ff);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.filter-checkbox:hover {
  color: var(--text-dark, #0a0a0a);
}

.filter-count {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.6;
}

/* Price Range Filter Inputs */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-pill, #dcdcdc);
  font-size: 12px;
  outline: none;
}

.price-separator {
  color: var(--text-muted, #666666);
}

.apply-price-btn {
  width: 100%;
  padding: 9px;
  background-color: var(--text-dark, #0a0a0a);
  color: var(--text-light, #ffffff);
  border: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color var(--transition-fast, 0.3s ease);
}

.apply-price-btn:hover {
  background-color: var(--accent-cyan, #38b6ff);
  color: var(--text-dark, #0a0a0a);
}

/* Size Buttons Grid Filter */
/* Size Buttons Grid Filter */
.filter-size-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Changed from 3 to 2 columns for dual size room */
  gap: 8px 6px;
}

.filter-size-btn-wrapper {
  display: block;
  width: 100%;
  cursor: pointer;
}

.filter-size-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 4px;
  border: 1px solid var(--border-pill, #dcdcdc);
  background: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast, 0.3s ease);
  user-select: none;
}

.filter-size-btn-wrapper:hover .filter-size-btn,
.filter-size-btn.active {
  background-color: var(--text-dark, #0a0a0a);
  color: var(--text-light, #ffffff);
  border-color: var(--text-dark, #0a0a0a);
}
/* Color Filter Dots */
.filter-color-swatches {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-color-dot-wrapper {
  display: inline-flex;
  cursor: pointer;
}

.filter-color-swatches .color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--dot-color);
  border: 1px solid rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s ease, outline 0.2s ease;
  box-sizing: border-box;
}

.filter-color-dot-wrapper:hover .color-dot,
.filter-color-swatches .color-dot.active {
  transform: scale(1.25);
  outline: 2px solid var(--text-dark, #0a0a0a);
  outline-offset: 1px;
}

/* Clear All Filters Button */
.clear-filters-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-pill, #dcdcdc);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted, #666666);
  cursor: pointer;
  margin-top: 5px;
  transition: all 0.3s ease;
}

.clear-filters-btn:hover {
  color: #e53e3e;
  border-color: #e53e3e;
  background-color: #fff5f5;
}

/* Right Products Container */
.shop-products-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Top Action Sorting Bar */
.shop-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light, #f0f0f0);
}

.products-result-count {
  font-size: 13px;
  color: var(--text-muted, #666666);
}

.products-result-count strong {
  color: var(--text-dark, #0a0a0a);
}

.shop-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.shop-sort-select {
  padding: 6px 12px;
  border: 1px solid var(--border-pill, #dcdcdc);
  font-family: var(--font-primary, serif);
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  background-color: #ffffff;
}

/* Pagination Styling */
.shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 45px;
}

.page-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-pill, #dcdcdc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-dark, #0a0a0a);
  transition: all var(--transition-fast, 0.3s ease);
}

.page-link:hover, .page-link.active {
  background-color: var(--text-dark, #0a0a0a);
  color: var(--text-light, #ffffff);
  border-color: var(--text-dark, #0a0a0a);
}

/* ================= TABLET RESPONSIVE (<= 1024px) ================= */
@media screen and (max-width: 1024px) {
  .shop-banner {
    padding: 30px 20px;
  }

  .shop-banner-title {
    font-size: 2rem;
  }

  .shop-page-container {
    padding: 30px 20px;
    gap: 20px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* ================= MOBILE RESPONSIVE (<= 768px) ================= */
@media screen and (max-width: 768px) {

  /* Force Left Off-Canvas Drawer on Mobile */
  .shop-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 300px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: var(--primary-bg, #ffffff) !important;
    z-index: 1100 !important;
    padding: 24px 20px !important;
    border-right: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translateX(-100%) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    
    /* Resets desktop sticky behavior */
    max-height: none !important;
    flex: none !important;
  }

  .shop-sidebar.active {
    transform: translateX(0) !important;
  }

  /* Show close button on Mobile */
  .close-sidebar-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--text-dark, #0a0a0a);
    width: 32px;
    height: 32px;
    font-size: 26px;
    line-height: 1;
  }

  .shop-banner {
    padding: 24px 15px;
  }

  .shop-banner-title {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }

  .shop-banner-subtitle {
    font-size: 11px;
  }

  .shop-page-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 0;
  }
  
  /* Mobile Filter Icon Styling */
  .filter-btn-icon {
    width: 19px;
    height: 19px;
    object-fit: contain;
    filter: brightness(0) invert(1); 
  }
  
  /* Display Mobile Filter Button above Grid */
  .mobile-filter-btn {
    display: flex;
    width: 100%;
    padding: 12px;
    background-color: var(--text-dark, #0a0a0a);
    color: var(--text-light, #ffffff);
    border: none;
    font-family: var(--font-primary, serif);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    cursor: pointer;
    margin-bottom: 16px;
    gap: 10px;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
    transition: background-color var(--transition-fast, 0.3s ease);
  }

  .mobile-filter-btn:active {
    background-color: var(--accent-cyan, #38b6ff);
    color: var(--text-dark, #0a0a0a);
  }

  .shop-action-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .shop-sort-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .shop-sort-select {
    flex: 1;
    max-width: 200px;
  }

  /* Force 2-by-2 Grid Layout on Mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 12px !important;
  }

  /* Mobile Card Component Sizing */
  .product-brand {
    font-size: 9px;
  }

  .product-title {
    font-size: 13px;
    line-height: 1.2;
  }

  .product-price {
    font-size: 13px;
  }

  .product-actions {
    gap: 6px;
  }

  .action-btn {
    width: 32px;
    height: 32px;
  }

  .action-icon-img {
    width: 14px;
    height: 14px;
  }

  .payment-row {
    font-size: 9px;
    gap: 3px;
  }

  .payment-logo {
    height: 11px;
  }

  .shop-pagination {
    margin-top: 30px;
    gap: 6px;
  }

  .page-link {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
}

/* ================= SMALL MOBILE RESPONSIVE (<= 380px) ================= */
@media screen and (max-width: 380px) {
  .products-grid {
    gap: 12px 8px !important;
  }

  .shop-sidebar {
    width: 260px !important;
  }
}


/* ==========================================================================
   NO PRODUCTS / EMPTY STATE STYLES (RESPONSIVE)
   ========================================================================== */
.no-products-found {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.no-products-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
  padding: 40px 25px;
  background: #fdfdfd;
  border: 1px dashed var(--border-pill, #dcdcdc);
  border-radius: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.no-products-icon {
  width: 60px;
  height: 60px;
  background-color: var(--text-dark, #0a0a0a);
  color: var(--text-light, #ffffff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 6px;
}

.no-products-title {
  font-family: var(--font-primary, serif);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-dark, #0a0a0a);
  margin: 0;
}

.no-products-text {
  font-size: 13px;
  color: var(--text-muted, #666666);
  line-height: 1.5;
  margin: 0;
}

.reset-filters-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 24px;
  background-color: var(--text-dark, #0a0a0a);
  color: var(--text-light, #ffffff);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 1px solid var(--text-dark, #0a0a0a);
}

.reset-filters-btn:hover {
  background-color: var(--accent-cyan, #38b6ff);
  color: var(--text-dark, #0a0a0a);
  border-color: var(--accent-cyan, #38b6ff);
}

/* Mobile Responsiveness Rules */
@media screen and (max-width: 768px) {
  .no-products-found {
    padding: 35px 10px;
  }

  .no-products-card {
    padding: 28px 18px;
    gap: 10px;
  }

  .no-products-icon {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .no-products-title {
    font-size: 1.05rem;
  }

  .no-products-text {
    font-size: 12px;
  }

  .reset-filters-btn {
    width: 100%;
    padding: 11px;
  }
}