/* Products page glam styling */

.products-hero-glam {
  background: linear-gradient(135deg, #f8f7f5 0%, #ffffff 100%);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.products-hero-glam::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 25%, rgba(212,165,116,0.14), transparent 42%),
              radial-gradient(circle at 80% 60%, rgba(26,26,26,0.08), transparent 38%);
  pointer-events: none;
}

.products-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.products-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.products-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin: 0;
}

.products-hero-subtitle {
  color: var(--text-medium);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 620px;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgba(26,26,26,0.04);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.products-hero-image {
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #ece7df 0%, #ffffff 100%);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
  min-height: 320px;
}

.products-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.products-shell-glam {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 0.75rem 3.5rem;
}

.filter-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.filter-pill {
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: #fff;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-pill.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.filter-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.products-grid-glam {
  display: grid;
  /* grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); */
  gap: 1.5rem;
}

.products-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 2rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* Minor tweaks to shared glam product card */
.product-card-glam {
  border: 1px solid rgba(0,0,0,0.05);
  min-height: 100%;
}

.product-card-info {
  padding: 1.1rem 1.25rem 1.35rem;
}

.product-card-desc {
  min-height: 46px;
}

/* Product card footer layout */
.product-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  width: 100%;
}

.product-card-footer > div {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.btn-add-cart-glam {
  flex: 1;
  width: 100%;
}

.wishlist-btn {
  flex-shrink: 0;
}

/* List view styling */
.products-grid-glam.list-view {
  grid-template-columns: 1fr;
}

.products-grid-glam.list-view .product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  min-height: unset;
}

.products-grid-glam.list-view .product-card-image {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
}

.products-grid-glam.list-view .product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-grid-glam.list-view .product-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

/* List view mobile adjustments */
@media (max-width: 768px) {
  .products-grid-glam.list-view .product-card {
    grid-template-columns: 150px 1fr;
    gap: 1rem;
  }

  .products-grid-glam.list-view .product-card-image {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 640px) {
  .products-grid-glam.list-view .product-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .products-grid-glam.list-view .product-card-image {
    width: 100%;
    height: 200px;
  }
  
  .products-grid-glam.list-view .product-card-info {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .products-grid-glam.list-view .product-card-image {
    height: 280px;
  }
}

@media (max-width: 360px) {
  .products-grid-glam.list-view .product-card-image {
    height: 260px;
  }
}

@media (max-width: 1024px) {
  .products-hero-inner { grid-template-columns: 1fr; }
  .products-hero-image { min-height: 360px; }
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .products-shell-glam { 
    padding: 1.5rem 0.5rem; 
  }
  
  .products-grid-glam {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.6rem;
  }
  
  .product-card-image {
    min-height: 140px;
  }
  
  .product-card-info {
    padding: 0.9rem 1rem 1.1rem;
  }
  
  .product-card-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .product-card-desc {
    display: none;
  }
  
  .product-card-price {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .filter-pill {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
  }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .products-shell-glam { 
    padding: 1rem 0.4rem; 
  }
  
  .products-grid-glam { 
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem; 
  }
  
  .product-card-image {
    min-height: 120px;
  }
  
  .product-card-info {
    padding: 0.75rem 0.85rem 0.9rem;
  }
  
  .product-card-title {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.4rem;
  }
  
  .product-card-desc {
    display: none;
  }
  
  .product-card-price {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }
  
  .product-card-actions {
    gap: 0.5rem;
  }
  
  .btn-add-cart,
  .btn-wishlist {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .products-shell-glam { 
    padding: 0.75rem 0.3rem; 
  }
  
  .products-grid-glam {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  
  .product-card-image {
    min-height: 100px;
  }
  
  .product-card-info {
    padding: 0.65rem 0.7rem 0.75rem;
  }
  
  .product-card-title {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
  }
  
  .product-card-desc {
    display: none;
  }
  
  .product-card-price {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .btn-add-cart,
  .btn-wishlist {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
  }
  
  .btn-add-cart {
    width: 100%;
  }
  
  .hero-pill {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 360px) {
  .products-shell-glam { 
    padding: 0.65rem 0.25rem; 
  }
  
  .products-grid-glam {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  
  .product-card-image {
    min-height: 100px;
  }
  
  .product-card-info {
    padding: 0.6rem 0.65rem 0.7rem;
  }
  
  .product-card-title {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }
  
  .product-card-desc {
    display: none;
  }
  
  .product-card-price {
    margin-bottom: 0.5rem;
  }
  
  .btn-add-cart,
  .btn-wishlist {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .btn-add-cart {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .products-shell-glam {
    display: block !important;
    position: relative;
  }

  .products-shell-glam .filter-sidebar,
  .products-shell-glam .sort-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    width: 100% !important;
    flex: unset !important;
    margin-bottom: 0 !important;
    background: white !important;
    border: none !important;
    border-radius: 0 !important;
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    max-width: 100%;
    padding: 2rem 1.5rem;
  }

  .products-shell-glam .filter-sidebar.active,
  .products-shell-glam .sort-sidebar.active {
    z-index: 1000;
    transform: translateX(0);
  }

  .filter-control-btn:hover,
  .sort-control-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(212, 165, 116, 0.05);
  }

  .view-toggle-btn:hover {
    border-color: var(--primary-color);
    background: rgba(212, 165, 116, 0.05);
  }

  .view-toggle-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    fill: black;
  }

  .filter-overlay,
  .sort-overlay {
    backdrop-filter: blur(4px) !important;
  }
}

/* Hide grid/list view toggle on screens smaller than 530px */
@media (min-width: 529px) {
  #grid-view-btn,
  #list-view-btn {
    display: none !important;
  }
}

/* Show filter and sort buttons on screens 760px to 900px */
@media (min-width: 760px) and (max-width: 900px) {
  .filter-control-btn,
  .sort-control-btn {
    display: inline-flex !important;
  }
}
