/* =========================================================
   SISIMO — Shop / Boutique Page Design System
   Matches the Vertbaudet reference architecture with SISIMO branding.
   Dense 4-column fashion catalogue, promotional campaign banner,
   category quick navigation pills, 3:4 product cards,
   slide-over right filter drawer, and infinite scroll.
   ========================================================= */

:root {
  --sc-bg: #FFFFFF;
  --sc-card-bg: #F5F5F3;
  --sc-primary: #1A1A1A;
  --sc-text: #222222;
  --sc-muted: #666666;
  --sc-light-gray: #999999;
  --sc-border: #E5E5E5;
  --sc-border-light: #EEEEEE;
  --sc-coral: #E06560;       /* Reference campaign banner coral/red */
  --sc-green: #528965;       /* Reference filter CTA green */
  --sc-green-hover: #437253;
  --sc-radius-sm: 4px;
  --sc-radius-md: 6px;
  --sc-radius-lg: 8px;
  --sc-radius-pill: 999px;
  --sc-font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─────────────────────────────────────────────────────────
   Base Page Layout
   ───────────────────────────────────────────────────────── */
.shop-catalog-page {
  background-color: var(--sc-bg);
  min-height: 100vh;
  color: var(--sc-text);
  padding-bottom: 80px;
}

.shop-catalog-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
}

@media (max-width: 767px) {
  .shop-catalog-container {
    padding: 0 16px;
  }
}

/* ─────────────────────────────────────────────────────────
   Breadcrumb
   ───────────────────────────────────────────────────────── */
.sc-breadcrumb {
  padding: 18px 0 14px;
  font-size: 12.5px;
  color: var(--sc-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-breadcrumb a {
  color: var(--sc-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sc-breadcrumb a:hover {
  color: var(--sc-text);
}

.sc-breadcrumb-sep {
  color: #B0B0B0;
  font-size: 10px;
}

.sc-breadcrumb-current {
  color: var(--sc-text);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────
   Promotional Campaign Banner (Reference style)
   ───────────────────────────────────────────────────────── */
.sc-banner {
  width: 100%;
  min-height: 110px;
  background: linear-gradient(135deg, #E06560 0%, #D85651 100%);
  border-radius: var(--sc-radius-md);
  color: #FFFFFF;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
}

.sc-banner-inner {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}

.sc-banner-title {
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: none;
}

.sc-banner-upto {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: -4px;
}

.sc-banner-discount {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.sc-banner-sub {
  font-size: 13.5px;
  opacity: 0.9;
  font-weight: 500;
}

@media (max-width: 767px) {
  .sc-banner {
    min-height: 90px;
    padding: 16px 14px;
    margin-bottom: 16px;
  }
  .sc-banner-inner {
    gap: 8px;
  }
  .sc-banner-title { font-size: 28px; }
  .sc-banner-discount { font-size: 42px; }
  .sc-banner-sub { font-size: 12px; width: 100%; }
}

/* ─────────────────────────────────────────────────────────
   Category Quick Navigation (Horizontal Pills)
   ───────────────────────────────────────────────────────── */
.sc-category-nav {
  margin-bottom: 20px;
  position: relative;
}

.sc-category-track {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

.sc-category-track::-webkit-scrollbar {
  display: none;
}

.sc-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 35px;
  padding: 0 16px;
  background: #FFFFFF;
  border: 1px solid #D8D8D8;
  border-radius: var(--sc-radius-md);
  color: var(--sc-text);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.18s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.sc-cat-pill:hover {
  border-color: #999999;
  color: #111111;
  background: #FAFAFA;
}

.sc-cat-pill.is-active {
  background: var(--sc-primary);
  border-color: var(--sc-primary);
  color: #FFFFFF;
  font-weight: 600;
}

.sc-cat-pill .count {
  font-size: 12px;
  opacity: 0.75;
}

.sc-cat-pill.is-active .count {
  opacity: 0.85;
}

/* ─────────────────────────────────────────────────────────
   Product Result Toolbar (Count + Sort + Filter)
   ───────────────────────────────────────────────────────── */
.sc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--sc-border-light);
  margin-bottom: 24px;
}

.sc-count {
  font-size: 14.5px;
  font-weight: 600;
  color: #333333;
}

.sc-count .num {
  font-weight: 700;
  color: #111111;
}

.sc-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-sort-select {
  height: 38px;
  padding: 0 32px 0 14px;
  background: #FFFFFF;
  border: 1px solid #D8D8D8;
  border-radius: var(--sc-radius-md);
  font-size: 13.5px;
  font-weight: 500;
  color: #222222;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23444' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.15s ease;
}

.sc-sort-select:hover,
.sc-sort-select:focus {
  border-color: #888888;
  outline: none;
}

.sc-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  background: #FFFFFF;
  border: 1px solid #D8D8D8;
  border-radius: var(--sc-radius-md);
  font-size: 13.5px;
  font-weight: 600;
  color: #222222;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sc-filter-btn:hover {
  border-color: #777777;
  background: #FAFAFA;
}

.sc-filter-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.sc-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--sc-coral);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
}

@media (max-width: 767px) {
  .sc-toolbar {
    padding: 10px 0 16px;
    margin-bottom: 18px;
  }
  .sc-count {
    font-size: 13px;
  }
  .sc-sort-select {
    height: 35px;
    font-size: 12.5px;
    padding-right: 28px;
  }
  .sc-filter-btn {
    height: 35px;
    padding: 0 14px;
    font-size: 12.5px;
  }
}

/* ─────────────────────────────────────────────────────────
   Product Grid (4 Columns Desktop / 2 Columns Mobile)
   ───────────────────────────────────────────────────────── */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
  margin-bottom: 40px;
}

@media (min-width: 1600px) {
  .sc-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 20px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .sc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 16px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .sc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 14px;
  }
}

@media (max-width: 767px) {
  .sc-grid {
    /* STRICTLY 2 COLUMNS ON MOBILE */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
    margin-bottom: 30px;
  }
}

/* ─────────────────────────────────────────────────────────
   Product Card (Fashion Editorial 3:4)
   ───────────────────────────────────────────────────────── */
.sc-card {
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.sc-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--sc-card-bg);
  border-radius: var(--sc-radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-card-media a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.sc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sc-card-media .primary-img {
  position: absolute;
  inset: 0;
  opacity: 1;
}

.sc-card-media .secondary-img {
  position: absolute;
  inset: 0;
  opacity: 0;
}

@media (hover: hover) {
  .sc-card:hover .secondary-img {
    opacity: 1;
  }
  .sc-card:hover .primary-img.has-secondary {
    opacity: 0;
  }
}

/* Wishlist Button */
.sc-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333333;
  transition: all 0.2s ease;
  padding: 0;
}

.sc-wishlist-btn:hover {
  transform: scale(1.1);
  background: #FFFFFF;
  color: var(--sc-coral);
}

.sc-wishlist-btn.is-active {
  color: var(--sc-coral);
}

.sc-wishlist-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: currentColor;
}

.sc-wishlist-btn:not(.is-active) svg {
  fill: none;
  stroke-width: 1.6;
}

/* Product Badge / Label (Bottom Left) */
.sc-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 3px;
  line-height: 1.2;
}

.sc-badge.badge-clearance,
.sc-badge.badge-discount {
  background: var(--sc-coral);
  color: #FFFFFF;
}

.sc-badge.badge-new {
  background: #111111;
  color: #FFFFFF;
}

.sc-badge.badge-bestseller {
  background: #F4A261;
  color: #FFFFFF;
}

/* Product Details */
.sc-card-details {
  padding-top: 9px;
  display: flex;
  flex-direction: column;
}

.sc-card-brand {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sc-light-gray);
  margin-bottom: 2px;
}

.sc-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-text);
  line-height: 1.35;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 35px;
}

.sc-card-title a {
  color: inherit;
  text-decoration: none;
}

.sc-card-title a:hover {
  color: #000000;
  text-decoration: underline;
}

.sc-card-price {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 700;
  color: #111111;
  line-height: 1.2;
}

.sc-card-price .current.has-discount {
  color: var(--sc-coral);
}

.sc-card-price .old {
  font-size: 12px;
  font-weight: 400;
  color: var(--sc-light-gray);
  text-decoration: line-through;
}

.sc-card-price .discount-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--sc-coral);
}

@media (max-width: 767px) {
  .sc-card-media img { padding: 6px; }
  .sc-wishlist-btn { width: 28px; height: 28px; top: 6px; right: 6px; }
  .sc-wishlist-btn svg { width: 14px; height: 14px; }
  .sc-card-details { padding-top: 7px; }
  .sc-card-brand { font-size: 9.5px; }
  .sc-card-title { font-size: 12px; min-height: 32px; }
  .sc-card-price { font-size: 13.5px; }
  .sc-card-price .old { font-size: 11px; }
  .sc-badge { font-size: 9px; padding: 2px 5px; bottom: 6px; left: 6px; }
}

/* ─────────────────────────────────────────────────────────
   Infinite Scroll Loader & Skeleton Cards
   ───────────────────────────────────────────────────────── */
.sc-infinite-loader {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
  margin-bottom: 40px;
}

.sc-infinite-loader.is-loading {
  display: grid;
}

@media (max-width: 1199px) and (min-width: 768px) {
  .sc-infinite-loader { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .sc-infinite-loader { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
}

.sc-skeleton-card {
  display: flex;
  flex-direction: column;
}

.sc-skeleton-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #EDEDED;
  border-radius: var(--sc-radius-sm);
  position: relative;
  overflow: hidden;
}

.sc-skeleton-line {
  height: 12px;
  background: #EDEDED;
  border-radius: 3px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.sc-skeleton-line.short { width: 45%; }
.sc-skeleton-line.mid { width: 75%; }

.sc-skeleton-img::after,
.sc-skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  animation: sc-shimmer 1.4s infinite;
}

@keyframes sc-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ─────────────────────────────────────────────────────────
   FILTER DRAWER (Slide-over from RIGHT)
   ───────────────────────────────────────────────────────── */
.sc-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.sc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(620px, 100vw);
  background: #FFFFFF;
  z-index: 999995;
  transform: translateX(100%);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.18);
}

.sc-drawer.is-open {
  transform: translateX(0);
}

/* Drawer Header */
.sc-drawer-header {
  height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sc-border-light);
  flex-shrink: 0;
}

.sc-drawer-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sc-drawer-title {
  font-size: 24px;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.sc-drawer-reset {
  font-size: 13px;
  color: var(--sc-muted);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.sc-drawer-reset:hover {
  color: var(--sc-coral);
}

.sc-drawer-close {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #222222;
  font-size: 24px;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.sc-drawer-close:hover {
  background: #F4F4F4;
}

/* Drawer Body (Scrollable) */
.sc-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  overscroll-behavior: contain;
}

/* Filter Accordion Group */
.sc-filter-group {
  border-bottom: 1px solid var(--sc-border-light);
  padding: 20px 0;
}

.sc-filter-group:first-child {
  padding-top: 4px;
}

.sc-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.sc-filter-title {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.sc-filter-arrow {
  width: 14px;
  height: 14px;
  stroke: #444;
  transition: transform 0.2s ease;
}

.sc-filter-group.is-collapsed .sc-filter-arrow {
  transform: rotate(-90deg);
}

.sc-filter-content {
  padding-top: 16px;
}

.sc-filter-group.is-collapsed .sc-filter-content {
  display: none;
}

/* Discount Filter (Pill Buttons) */
.sc-discount-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-discount-btn {
  height: 36px;
  padding: 0 16px;
  border: 1px solid #D8D8D8;
  border-radius: var(--sc-radius-md);
  background: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  color: #222222;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sc-discount-btn:hover {
  border-color: #777777;
}

.sc-discount-btn.is-active {
  background: var(--sc-coral);
  border-color: var(--sc-coral);
  color: #FFFFFF;
}

/* Size / Age Filter (Dense wrapping grid) */
.sc-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sc-size-btn {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #D9D9D9;
  border-radius: var(--sc-radius-md);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  color: #222222;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sc-size-btn:hover {
  border-color: #888888;
}

.sc-size-btn.is-active {
  background: var(--sc-primary);
  border-color: var(--sc-primary);
  color: #FFFFFF;
  font-weight: 600;
}

/* Category Filter in Drawer */
.sc-category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-cat-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--sc-radius-md);
  cursor: pointer;
  font-size: 14px;
  color: #222222;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}

.sc-cat-option:hover {
  background: #F8F8F8;
}

.sc-cat-option.is-active {
  background: #F5F7F6;
  border-color: var(--sc-green);
  font-weight: 600;
  color: var(--sc-green);
}

.sc-cat-option .count {
  font-size: 12.5px;
  color: var(--sc-muted);
}

/* Price Range Inputs */
.sc-price-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-price-field {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid #D8D8D8;
  border-radius: var(--sc-radius-md);
  padding: 0 10px;
  height: 40px;
}

.sc-price-field span {
  color: var(--sc-muted);
  font-size: 13px;
  margin-right: 6px;
}

.sc-price-field input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.sc-price-sep {
  color: #B0B0B0;
  font-size: 14px;
}

/* Drawer Footer (Sticky Bottom with green CTA) */
.sc-drawer-footer {
  height: 84px;
  padding: 0 28px;
  background: #FFFFFF;
  border-top: 1px solid var(--sc-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sc-drawer-apply-btn {
  width: 100%;
  height: 50px;
  background: var(--sc-green);
  color: #FFFFFF;
  border: none;
  border-radius: var(--sc-radius-lg);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(82, 137, 101, 0.28);
  transition: background 0.18s ease, transform 0.15s ease;
}

.sc-drawer-apply-btn:hover {
  background: var(--sc-green-hover);
  transform: translateY(-1px);
}

.sc-drawer-apply-btn:active {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .sc-drawer {
    width: 100%;
  }
  .sc-drawer-header {
    padding: 0 20px;
    height: 66px;
  }
  .sc-drawer-title { font-size: 20px; }
  .sc-drawer-body { padding: 18px 20px; }
  .sc-drawer-footer { padding: 0 20px; height: 76px; }
  .sc-drawer-apply-btn { height: 46px; font-size: 14px; }
}

/* ─────────────────────────────────────────────────────────
   Empty State
   ───────────────────────────────────────────────────────── */
.sc-empty-state {
  text-align: center;
  padding: 70px 20px;
  grid-column: 1 / -1;
}

.sc-empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.sc-empty-state p {
  font-size: 14px;
  color: var(--sc-muted);
  margin-bottom: 22px;
}

.sc-empty-state button {
  height: 40px;
  padding: 0 24px;
  background: var(--sc-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--sc-radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
