/* ===== FLOWERS PAGE - cicekler.css ===== */

/* Active nav link */
.nav-active {
  color: var(--accent) !important;
}

.nav-active::after {
  width: 100% !important;
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 60px 48px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.1;
}

.page-hero__sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== LAYOUT ===== */
.flowers-main {
  padding: 32px 48px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.flowers-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* ===== FILTER SIDEBAR ===== */
.filter-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 130px;
}

.filter-sidebar__inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.filter-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.filter-sidebar__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.filter-reset-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-reset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-group {
  margin-bottom: 22px;
}

.filter-group h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Filter search box */
.filter-search-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  transition: border-color 0.2s ease;
}

.filter-search-box:focus-within {
  border-color: var(--accent);
}

.filter-search-box svg {
  width: 15px;
  height: 15px;
  stroke: var(--text-muted);
  flex-shrink: 0;
}

.filter-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  padding: 9px 8px;
  font-family: var(--font-body);
}

.filter-search-box input::placeholder {
  color: var(--text-muted);
}

/* Category filter buttons */
.filter-cats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.filter-cat-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-cat-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.filter-cat-btn .cat-emoji {
  font-size: 16px;
}

.filter-cat-btn .cat-count {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.7;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: 999px;
}

.filter-cat-btn.active .cat-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Price range */
.price-range input[type=range] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--accent) 100%, var(--border) 100%);
  border-radius: 4px;
  outline: none;
  margin-bottom: 8px;
}

.price-range input[type=range]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(212, 168, 67, .3);
}

.price-range__labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* Color swatches */
.color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.swatch:hover,
.swatch.active {
  border-color: var(--accent);
  transform: scale(1.15);
}

.swatch.active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

/* Sort select */
.filter-select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s ease;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--accent);
}

.filter-select--sm {
  width: auto;
  padding: 7px 10px;
  font-size: 12px;
}

/* ===== PRODUCTS AREA ===== */
.flowers-products-area {
  flex: 1;
  min-width: 0;
}

.flowers-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.flowers-topbar__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.products-count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Mobile filter button */
.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.mobile-filter-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.mobile-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Active filters tags */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 10px;
  background: rgba(212, 168, 67, .12);
  border: 1px solid rgba(212, 168, 67, .3);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
}

.active-filter-tag:hover {
  background: rgba(212, 168, 67, .2);
}

.active-filter-tag .tag-remove {
  font-size: 14px;
  opacity: 0.7;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-content: center;
}

.products-grid:has(> .product-card:only-child) {
  grid-template-columns: minmax(0, calc((100% - 48px) / 3));
}

.products-grid:has(> .product-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, calc((100% - 48px) / 3)));
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all .4s cubic-bezier(.34, 1.56, .64, 1);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.product-card__img {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card:hover .product-card__img img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-card__info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card__cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.product-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  margin: 2px 0;
}

/* .btn-add-cart — ana stiller style.css içinde */

/* No results */
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.no-results svg {
  width: 64px;
  height: 64px;
  stroke: var(--border);
  margin: 0 auto 16px;
  display: block;
}

.no-results h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.no-results p {
  font-size: 14px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE — TABLET (≤1024px) ===== */
@media (max-width: 1024px) {
  .page-hero {
    padding: 44px 28px 30px;
  }

  .flowers-main {
    padding: 28px 28px 48px;
  }

  .flowers-layout {
    gap: 24px;
  }

  .flowers-topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .products-grid:has(> .product-card:only-child) {
    grid-template-columns: minmax(0, calc((100% - 18px) / 2));
  }

  .products-grid:has(> .product-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet / mobil — filtre çekmecesi */
@media (max-width: 900px) {
  .flowers-main {
    padding: 24px 20px 40px;
  }

  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: flex-end;
  }

  .filter-sidebar.open {
    display: flex;
  }

  .filter-sidebar__inner {
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: var(--radius) var(--radius) 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .mobile-filter-btn {
    display: flex;
  }

  .page-hero {
    padding: 40px 20px 28px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 36px 16px 24px;
  }
}

@media (max-width: 600px) {
  .products-grid {
    gap: 14px;
    justify-content: center;
  }

  .products-grid:has(> .product-card:only-child) {
    grid-template-columns: minmax(0, calc((100% - 14px) / 2));
  }
}

@media(max-width: 400px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}