/* ===== STORE PAGE STYLES ===== */

/* LAYOUT */
.store {
  margin-top: 82px;
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 82px);
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

/* SIDEBAR */
.store-sidebar {
  padding: 36px 24px 36px 0;
  border-right: 1px solid #f0e8ec;
  position: sticky;
  top: 82px;
  height: fit-content;
  max-height: calc(100vh - 82px);
  overflow-y: auto;
}

.store-title {
  font-family: 'Delius Swash Caps', cursive;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 24px;
}

.sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 28px;
}
.cat-link {
  font-size: .85rem;
  color: var(--text-light);
  padding: 6px 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
  font-weight: 400;
}
.cat-link:hover {
  color: var(--hot-pink);
}
.cat-link.active {
  color: var(--text);
  font-weight: 600;
}

.sidebar-section {
  margin-bottom: 24px;
}

.filter-heading {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
  cursor: pointer;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.filter-header h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.filter-reset {
  background: none;
  border: none;
  font-size: .75rem;
  color: var(--text-light);
  text-decoration: underline;
  transition: var(--transition);
}
.filter-reset:hover {
  color: var(--hot-pink);
}

/* PRICE RANGE */
.price-range {
  position: relative;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  margin-bottom: 10px;
}
.range-input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: -6px;
  left: 0;
  width: 100%;
  height: 18px;
  background: transparent;
  pointer-events: none;
  outline: none;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--hot-pink);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  pointer-events: all;
  cursor: pointer;
}
.range-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--hot-pink);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  pointer-events: all;
  cursor: pointer;
}
.price-values {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--text-light);
}

/* SIZE / MATERIAL BUTTONS */
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.size-btn {
  padding: 5px 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: var(--white);
  font-size: .75rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.size-btn:hover {
  border-color: var(--hot-pink);
  color: var(--hot-pink);
}
.size-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* COLOR SWATCHES */
.color-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.color-swatch:hover {
  transform: scale(1.15);
}
.color-swatch.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text);
}

/* MOBILE SIDEBAR TOGGLE */
.sidebar-toggle-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--hot-pink);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(248,111,173,.4);
}

/* STORE CONTENT */
.store-content {
  padding: 36px 0 60px 32px;
}

.store-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.breadcrumb {
  font-size: .8rem;
  color: var(--text-light);
}
.breadcrumb a {
  color: var(--text-light);
  transition: var(--transition);
}
.breadcrumb a:hover {
  color: var(--hot-pink);
}
.breadcrumb span {
  color: var(--text);
  font-weight: 500;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort-control label {
  font-size: .75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  white-space: nowrap;
}
.sort-select {
  padding: 6px 28px 6px 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: 'Raleway', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2341364f'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  outline: none;
}
.sort-select:focus {
  border-color: var(--hot-pink);
}

/* STORE PRODUCT GRID */
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.store-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.store-card {
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.store-card:hover {
  transform: translateY(-4px);
}

.store-card-img {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--pink-light);
  aspect-ratio: 1;
}
.store-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.store-card:hover .store-card-img img {
  transform: scale(1.04);
}

.store-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 12px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  border-radius: 2px;
  z-index: 2;
}
.store-badge.new { background: var(--golden); }
.store-badge.hot { background: var(--hot-pink); }
.store-badge.sale { background: var(--lime); }

.store-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  border: none;
  color: var(--hot-pink);
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
  cursor: pointer;
}
.store-heart:hover,
.store-heart.liked {
  background: var(--hot-pink);
  color: #fff;
}

.store-card-name {
  font-family: 'Delius Swash Caps', cursive;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: 2px;
}
.store-card-price {
  font-family: 'Delius Swash Caps', cursive;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  font-size: .8rem;
}
.page-label {
  color: var(--text-light);
  margin-right: 8px;
  font-size: .75rem;
  font-style: italic;
}
.page-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: var(--white);
  color: var(--text);
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}
.page-btn:hover {
  border-color: var(--hot-pink);
  color: var(--hot-pink);
}
.page-btn.active {
  background: var(--hot-pink);
  color: #fff;
  border-color: var(--hot-pink);
}

/* NAV ACTIVE */
.nav-active {
  color: var(--hot-pink) !important;
}

/* RESPONSIVE */
@media(max-width:900px) {
  .store {
    grid-template-columns: 1fr;
  }
  .store-sidebar {
    position: fixed;
    top: 62px;
    left: 0;
    width: 280px;
    height: calc(100vh - 62px);
    background: var(--white);
    z-index: 500;
    padding: 24px;
    border-right: 1px solid #f0e8ec;
    transform: translateX(-100%);
    transition: transform .3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.06);
    overflow-y: auto;
  }
  .store-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-toggle-btn {
    display: block;
  }
  .store-content {
    padding-left: 0;
  }
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media(max-width:480px) {
  .store-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .store-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
