/* ═══════════════════════════════════════════════════════════
   CARL VENI — fragrances.css  (Catalog / Listing page)
═══════════════════════════════════════════════════════════ */

.frag-body  { padding-top: 0; }

.frag-wrapper { margin-top: var(--header-h); }


/* ════════════════════════════════════
   PAGE HEADER
════════════════════════════════════ */
.frag-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

/* Diagonal crosshatch — matches rest of site */
.frag-header__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(10, 10, 10, 0.038) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(10, 10, 10, 0.038) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.frag-header__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: end;
  gap: 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 48px 44px;
}

.frag-header__title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--color-text);
}

.frag-header__desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  text-transform: uppercase;
  max-width: 44ch;
  align-self: end;
  padding-bottom: 8px;
}


/* ════════════════════════════════════
   FILTER + SORT BAR
════════════════════════════════════ */
.frag-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 48px;
  height: 52px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: var(--header-h);
  z-index: 80;
}

.frag-bar__filters {
  display: flex;
  align-items: center;
  gap: 28px;
}

.frag-filter {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--dur-fast) ease;
  touch-action: manipulation;
  white-space: nowrap;
}

.frag-filter.is-active {
  color: var(--color-text);
}

.frag-filter:hover:not(.is-active) {
  color: var(--color-text);
}

.frag-bar__count {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.frag-bar__sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.frag-bar__sort-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.frag-bar__select {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-text);
  text-transform: uppercase;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555350' stroke-width='1.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}


/* ════════════════════════════════════
   PRODUCT GRID
════════════════════════════════════ */
.frag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Separator lines via background-color + 1px gaps */
  background: var(--color-border);
  gap: 1px;
  border-bottom: 1px solid var(--color-border);
}


/* ════════════════════════════════════
   PRODUCT CARD
════════════════════════════════════ */
.frag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  transition: background var(--dur-fast) ease;
}

.frag-card:hover { background: var(--color-surface); }

/* Badge */
.frag-card__badge {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  z-index: 2;
  pointer-events: none;
}

.frag-card__badge--new    { color: var(--color-text); }
.frag-card__badge--iconic { color: var(--color-gold); }

/* Image area */
.frag-card__img-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  background: #FAFAF8;
  background-image:
    linear-gradient(45deg, rgba(10, 10, 10, 0.032) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(10, 10, 10, 0.032) 1px, transparent 1px);
  background-size: 32px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frag-card__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.3);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.frag-card:hover .frag-card__img-wrap img {
  transform: scale(1.4);
}

/* Placeholder (no real image) */
.frag-card__img-wrap--placeholder {
  cursor: pointer;
}

.frag-placeholder {
  width: 42%;
  aspect-ratio: 1 / 2.4;
  clip-path: polygon(28% 0%, 72% 0%, 78% 8%, 78% 92%, 72% 100%, 28% 100%, 22% 92%, 22% 8%);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.frag-card:hover .frag-placeholder { transform: scale(1.06); }

.frag-placeholder--oud { background: linear-gradient(175deg, #1C1A2E 0%, #0A0A18 100%); }

/* Body */
.frag-card__body {
  flex: 1;
  padding: 20px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.frag-card__name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.2;
}

.frag-card__name a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.frag-card__name a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.frag-card__conc {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-top: 2px;
}

.frag-card__notes {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--color-muted);
  letter-spacing: 0.03em;
}

.frag-card__size {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-top: 8px;
  cursor: pointer;
}

.frag-card__size svg { color: var(--color-muted); }

/* Footer: ADD TO CART + price */
.frag-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding: 14px 18px;
  position: relative;
  z-index: 2;
}

.frag-card__atc {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity var(--dur-fast) ease;
  touch-action: manipulation;
}

.frag-card__atc:hover { opacity: 0.55; }
.frag-card__atc:active { transform: scale(0.97); }

.frag-card__price {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text);
}


/* Active navbar item */
.navbar__item--active > a {
  color: var(--color-text);
  font-weight: 600;
}


/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1200px) {
  .frag-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .frag-header__inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 24px 32px;
  }
  .frag-header__desc { max-width: none; }
  .frag-bar { padding: 0 24px; }
  .frag-bar__count { display: none; }
}

@media (max-width: 768px) {
  .frag-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .frag-bar { flex-wrap: wrap; height: auto; padding: 12px 20px; gap: 12px; }
  .frag-bar__filters { gap: 16px; }
}

@media (max-width: 480px) {
  .frag-grid { grid-template-columns: 1fr; }
  .frag-header__title { font-size: clamp(3rem, 14vw, 5rem); }
  .frag-header__inner { grid-template-columns: 1fr; gap: 16px; }
}
