/* ============================================================
   LIKHIT PENS — SHOP PAGE
   Source: docs/design.md → Section 6 "SHOP / ALL PRODUCTS PAGE"
   ============================================================ */

/* ── Collection Hero ── */
.collection-hero {
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-deep-brown);
  animation: fadeSlideUp 0.4s ease both;
}

.collection-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 240px;
}

.collection-hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  overflow: hidden;
}

.collection-hero-img-main,
.collection-hero-img-side {
  overflow: hidden;
  position: relative;
}

.collection-hero-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-hero:hover .collection-hero-images img {
  transform: scale(1.04);
}

.collection-hero-text {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.collection-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-antique-gold);
}

.collection-hero-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-parchment);
  margin: 0;
  line-height: 1.2;
}

.collection-hero-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(250,246,238,0.65);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 767px) {
  .collection-hero-inner { grid-template-columns: 1fr; }
  .collection-hero-images { min-height: 180px; }
  .collection-hero-text { padding: 24px 20px; }
  .collection-hero-title { font-size: 1.5rem; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.shop-layout {
  padding-top: calc(var(--navbar-height-desktop) + 36px);
  min-height: 100vh;
  background: var(--color-parchment);
  display: flex;
  gap: 0;
}

@media (max-width: 767px) {
  .shop-layout { padding-top: calc(var(--navbar-height-mobile) + 36px); flex-direction: column; }
}

/* ── Sidebar ── */
.shop-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--navbar-height-desktop) + 36px);
  height: calc(100vh - var(--navbar-height-desktop) - 36px);
  overflow-y: auto;
  padding: var(--space-7) var(--space-5) var(--space-7) var(--space-6);
  border-right: 1px solid rgba(201,168,76,0.15);
  background: var(--color-aged-white);
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.3) transparent;
}

@media (max-width: 1023px) {
  .shop-sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    bottom: 0;
    z-index: var(--z-overlay);
    width: 280px;
    transition: left 0.3s var(--ease-smooth);
    height: 100vh;
    padding-top: var(--space-9);
    box-shadow: none;
  }
  .shop-sidebar.open {
    left: 0;
    box-shadow: 4px 0 40px rgba(0,0,0,0.2);
  }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: calc(var(--z-overlay) - 1);
}

.sidebar-overlay.visible { display: block; }

.sidebar-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-antique-gold);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-section {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.sidebar-section:last-child { border-bottom: none; }

/* Search */
.sidebar-search {
  position: relative;
}

.sidebar-search-input {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1.5px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-sm);
  background: white;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-deep-brown);
  outline: none;
  transition: border-color 0.2s;
}

.sidebar-search-input:focus { border-color: var(--color-antique-gold); }
.sidebar-search-input::placeholder { color: rgba(59,31,10,0.35); }

.sidebar-search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(59,31,10,0.4);
  pointer-events: none;
}

/* Filter options */
.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  cursor: pointer;
  font-size: var(--text-sm);
  color: rgba(59,31,10,0.7);
  transition: color 0.2s;
  user-select: none;
}

.filter-option:hover { color: var(--color-deep-brown); }

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(201,168,76,0.5);
  border-radius: var(--radius-xs);
  background: white;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.filter-option input:checked {
  background: var(--color-antique-gold);
  border-color: var(--color-antique-gold);
}

.filter-option input:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
}

.filter-option.active { color: var(--color-antique-gold); font-weight: var(--weight-medium); }
.filter-option.active::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--color-antique-gold);
  border-radius: var(--radius-full);
  margin-right: 4px;
  flex-shrink: 0;
}

/* Price range slider */
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(59,31,10,0.5);
  margin-top: var(--space-2);
}

input[type="range"].price-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 2px;
  background: linear-gradient(90deg, var(--color-antique-gold), var(--color-light-gold));
  border-radius: var(--radius-full);
  outline: none;
  margin: 8px 0;
}

input[type="range"].price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-antique-gold);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 6px rgba(201,168,76,0.5);
}

/* Sort select */
.sort-select {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-sm);
  background: white;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-deep-brown);
  cursor: pointer;
  outline: none;
  appearance: none;
}

.sort-select:focus { border-color: var(--color-antique-gold); }

/* Clear filters */
.clear-filters {
  font-size: var(--text-xs);
  color: rgba(59,31,10,0.5);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: var(--font-body);
  padding: 0;
}

.clear-filters:hover { color: var(--color-antique-gold); }

/* ── Main grid area ── */
.shop-main {
  flex: 1;
  padding: var(--space-7) var(--space-6);
  transition: background-color 0.2s;
}

@media (max-width: 767px) {
  .shop-main { padding: var(--space-5) var(--space-4); }
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.shop-toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Mobile filter button */
.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border: 1.5px solid rgba(201,168,76,0.4);
  border-radius: var(--radius-sm);
  background: white;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-deep-brown);
  cursor: pointer;
}

@media (max-width: 1023px) {
  .filter-toggle-btn { display: flex; }
}

.results-count {
  font-size: var(--text-sm);
  color: rgba(59,31,10,0.5);
  font-weight: var(--weight-light);
}

/* Empty state */
.shop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-5);
  text-align: center;
  grid-column: 1 / -1;
}

.shop-empty-icon { opacity: 0.3; margin-bottom: var(--space-5); }
.shop-empty-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-deep-brown);
  margin-bottom: var(--space-3);
}
.shop-empty-sub {
  font-size: var(--text-sm);
  color: rgba(59,31,10,0.5);
  margin-bottom: var(--space-5);
}
