/* ============================================================
   PURE KARET JEWELLERY — SHOP PAGE STYLES
   ============================================================ */

/* ---------- Shop Hero ---------- */
.shop-hero {
  background: var(--pk-off-white);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--pk-gray-200);
}

.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pk-gray-600);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--pk-gray-600);
}

.breadcrumb a:hover {
  color: var(--pk-gold);
}

.breadcrumb span {
  margin: 0 10px;
  color: var(--pk-gray-400);
}

.shop-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.shop-subtitle {
  font-size: 0.95rem;
  color: var(--pk-gray-600);
  max-width: 620px;
}

/* ---------- Shop Layout ---------- */
.shop-section {
  padding: 60px 0 100px;
  background: var(--pk-white);
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

/* ---------- Sidebar ---------- */
.shop-sidebar {
  position: sticky;
  top: 130px;
  background: var(--pk-white);
  padding-right: 20px;
}

.shop-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pk-gray-200);
}

.shop-sidebar-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--pk-black);
}

.shop-sidebar-close {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pk-black);
}

.shop-sidebar-close svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* ---------- Filter Group ---------- */
.filter-group {
  padding: 18px 0;
  border-bottom: 1px solid var(--pk-gray-200);
}

.filter-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pk-black);
  margin-bottom: 14px;
}

.filter-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.filter-toggle[aria-expanded="false"] svg {
  transform: rotate(-90deg);
}

.filter-toggle[aria-expanded="false"] + .filter-body {
  display: none;
}

.filter-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--pk-gray-600);
  transition: color 0.2s ease;
}

.filter-option:hover {
  color: var(--pk-gold);
}

.filter-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--pk-gray-400);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.filter-option input[type="checkbox"]:checked {
  background: var(--pk-gold);
  border-color: var(--pk-gold);
}

.filter-option input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid var(--pk-black);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.filter-option input[type="checkbox"]:checked ~ span {
  color: var(--pk-black);
  font-weight: 500;
}

/* ---------- Price Range ---------- */
.price-range {
  padding-top: 6px;
}

.price-range input[type="range"] {
  width: 100%;
  height: 2px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--pk-gray-200);
  outline: none;
  margin-bottom: 6px;
  cursor: pointer;
}

.price-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--pk-gold);
  border: 2px solid var(--pk-white);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.price-range input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--pk-gold);
  border: 2px solid var(--pk-white);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--pk-gray-600);
  margin-top: 8px;
}

/* ---------- Active Filters ---------- */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.active-filters:empty {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--pk-off-white);
  border: 1px solid var(--pk-gray-200);
  font-size: 0.72rem;
  color: var(--pk-black);
  letter-spacing: 0.05em;
}

.filter-chip button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--pk-gray-600);
  font-size: 0.9rem;
  line-height: 1;
}

.filter-chip button:hover {
  color: var(--pk-red);
}

/* ---------- Toolbar ---------- */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pk-gray-200);
  gap: 20px;
  flex-wrap: wrap;
}

.shop-toolbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.shop-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-count {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--pk-gray-600);
  margin: 0;
}

.filter-mobile-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--pk-black);
  color: var(--pk-white);
  border: none;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.filter-mobile-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.sort-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pk-gray-600);
}

.sort-select {
  padding: 10px 32px 10px 14px;
  border: 1px solid var(--pk-gray-200);
  background: var(--pk-white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--pk-black);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A5A5A' stroke-width='2' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.sort-select:focus {
  border-color: var(--pk-gold);
}

/* ---------- No Results ---------- */
.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.no-results p {
  margin-bottom: 26px;
}

/* ---------- Filter Overlay (mobile) ---------- */
.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.filter-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .shop-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 88%;
    max-width: 380px;
    height: 100vh;
    background: var(--pk-white);
    z-index: 999;
    padding: 24px 22px 40px;
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }

  .shop-sidebar.is-open {
    left: 0;
  }

  .shop-sidebar-close {
    display: flex;
  }

  .filter-mobile-btn {
    display: inline-flex;
  }

  .shop-toolbar {
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  .shop-hero {
    padding: 40px 0 32px;
  }

  .shop-section {
    padding: 40px 0 80px;
  }

  .shop-toolbar-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .shop-toolbar-right {
    width: 100%;
  }

  .sort-select {
    flex: 1;
  }

  .result-count {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .shop-toolbar-right {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-label {
    margin-bottom: 4px;
  }
}