/* ═══════════════════════════════════════════════════════════════════════════
   T-RAYO LUXURY ATELIER CATALOG STYLESHEET
   Refined Clean Typography, Proportionate Compact Cards, 100% Responsive
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --cat-bg: #07080c;
  --cat-surface: #0f121a;
  --cat-surface-elevated: #151822;
  --cat-border: rgba(255, 255, 255, 0.08);
  --cat-border-hover: rgba(255, 255, 255, 0.2);
  --cat-accent-emerald: #10b981;
  --cat-accent-gold: #d4af37;
  --cat-accent-cyan: #06b6d4;
  --cat-text-primary: #f8fafc;
  --cat-text-secondary: #94a3b8;
  --cat-text-muted: #64748b;
  --cat-radius-sm: 6px;
  --cat-radius-md: 10px;
  --cat-radius-lg: 14px;
  --cat-radius-pill: 9999px;
  --cat-transition: all 0.22s ease;
  --font-clean: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--cat-bg);
  color: var(--cat-text-primary);
  font-family: var(--font-clean);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ═══════════════════════════════════════
   QUICK CATEGORY CHIPS BAR
═══════════════════════════════════════ */
.category-chips-section {
  background: rgba(11, 13, 19, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cat-border);
  padding: 0.65rem 0;
  position: sticky;
  top: 60px;
  z-index: 80;
}

.category-chips-track {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 0.5rem;
  -webkit-overflow-scrolling: touch;
}

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

.chip-btn {
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cat-text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cat-border);
  padding: 6px 14px;
  border-radius: var(--cat-radius-pill);
  cursor: pointer;
  transition: var(--cat-transition);
  font-family: var(--font-clean);
  flex-shrink: 0;
}

.chip-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.chip-btn.active {
  color: #050608;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35);
}

/* ═══════════════════════════════════════
   CATALOG MAIN LAYOUT
═══════════════════════════════════════ */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.75rem;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
  max-width: 1360px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   FILTER SIDEBAR / DRAWER
═══════════════════════════════════════ */
.catalog-filters {
  background: linear-gradient(180deg, rgba(17, 20, 28, 0.85) 0%, rgba(11, 13, 19, 0.95) 100%);
  border: 1px solid var(--cat-border);
  border-radius: var(--cat-radius-lg);
  padding: 1.35rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 125px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.filters-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cat-border);
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cat-accent-emerald);
}

.filter-header {
  font-family: var(--font-clean);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}

.btn-close-filters {
  display: none;
  background: transparent;
  border: none;
  color: var(--cat-text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cat-text-secondary);
}

.filter-select, 
.filter-input {
  background-color: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--cat-border);
  padding: 0.6rem 0.8rem;
  border-radius: var(--cat-radius-sm);
  color: var(--cat-text-primary);
  font-size: 0.84rem;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: var(--cat-transition);
  font-family: var(--font-clean);
}

.filter-select:focus, 
.filter-input:focus {
  border-color: var(--cat-accent-emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.gsm-range-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gsm-divider {
  color: var(--cat-text-muted);
  font-weight: 700;
}

.size-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.size-pill {
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cat-border);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--cat-text-secondary);
  cursor: pointer;
  transition: var(--cat-transition);
  font-family: var(--font-clean);
}

.size-pill:hover,
.size-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--cat-accent-emerald);
  color: var(--cat-accent-emerald);
}

.filter-action-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.filter-apply-btn {
  width: 100%;
  padding: 0.7rem;
  font-weight: 700;
  font-size: 0.84rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #050608;
  border: none;
  border-radius: var(--cat-radius-sm);
  cursor: pointer;
  transition: var(--cat-transition);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
  font-family: var(--font-clean);
}

.filter-apply-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.filter-reset-btn {
  width: 100%;
  padding: 0.6rem;
  font-weight: 600;
  font-size: 0.8rem;
  background: transparent;
  color: var(--cat-text-secondary);
  border: 1px solid var(--cat-border);
  border-radius: var(--cat-radius-sm);
  cursor: pointer;
  transition: var(--cat-transition);
  font-family: var(--font-clean);
}

.filter-reset-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ═══════════════════════════════════════
   CATALOG TOP BAR & CONTROLS
═══════════════════════════════════════ */
.catalog-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.catalog-heading-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-title {
  font-family: var(--font-clean);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.catalog-count-badge {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--cat-accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 3px 9px;
  border-radius: var(--cat-radius-pill);
  font-family: var(--font-clean);
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-toggle-filters {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--cat-border);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--cat-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--cat-transition);
  font-family: var(--font-clean);
}

.btn-toggle-filters:hover {
  border-color: var(--cat-accent-emerald);
  color: var(--cat-accent-emerald);
}

.sort-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 18, 26, 0.85);
  border: 1px solid var(--cat-border);
  padding: 4px 10px;
  border-radius: var(--cat-radius-sm);
}

.sort-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cat-text-muted);
  text-transform: uppercase;
}

.catalog-sort-select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: var(--font-clean);
}

.catalog-sort-select option {
  background: #0f121a;
  color: #fff;
}

/* ═══════════════════════════════════════
   COMPACT & ELEGANT PRODUCTS GRID
   Cards stay neatly proportioned (~220px to ~260px)
═══════════════════════════════════════ */
.catalog-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

/* ═══════════════════════════════════════
   LUXURY STREETWEAR PRODUCT CARD (PROPORTIONATE)
═══════════════════════════════════════ */
.tr-product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #121520 0%, #0b0d14 100%);
  border: 1px solid var(--cat-border);
  border-radius: var(--cat-radius-md);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.tr-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.65), 0 0 16px rgba(212, 175, 55, 0.08);
}

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  background: radial-gradient(circle at 50% 36%, #1a1d29 0%, #0d0f17 100%);
  overflow: hidden;
}

.product-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tr-product-card:hover .product-thumbnail {
  transform: scale(1.04);
}

/* ── NORMAL, CLEAN, NON-STYLED GSM BADGE ── */
.badge-gsm {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(12, 15, 22, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
}

/* ── NORMAL CLEAN FIT BADGE ── */
.badge-fit {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-family: var(--font-clean);
  font-weight: 600;
  font-size: 0.64rem;
  padding: 2px 7px;
  border-radius: var(--cat-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ── WISHLIST BUTTON ── */
.card-wish-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(9, 11, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.card-wish-btn:hover {
  transform: scale(1.12);
  color: #ef4444;
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
}

.card-wish-btn.wished {
  color: #ffffff;
  background: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.65);
}

/* ── PRODUCT INFO (TIGHT, COMPACT, NEAT) ── */
.product-info {
  padding: 0.8rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.product-category {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--cat-accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-clean);
}

.product-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-clean);
}

.product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-title a:hover {
  color: var(--cat-accent-emerald);
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.price-current {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-clean);
}

.price-original {
  font-size: 0.78rem;
  text-decoration: line-through;
  color: var(--cat-text-muted);
}

.price-discount-tag {
  font-size: 0.68rem;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.spec-fabric {
  font-size: 0.74rem;
  color: var(--cat-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── ADD TO BAG BUTTON ── */
.card-add-btn {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.52rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  background: linear-gradient(135deg, #1b1e29 0%, #11131a 100%);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  font-family: var(--font-clean);
}

.card-add-btn:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: transparent;
  color: #040806;
  font-weight: 700;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.35);
}

.card-add-btn:active {
  transform: scale(0.98);
}

/* ═══════════════════════════════════════
   PAGINATION CONTROLS
═══════════════════════════════════════ */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.75rem;
}

.page-btn {
  padding: 0.45rem 0.85rem;
  background-color: var(--cat-surface);
  border: 1px solid var(--cat-border);
  border-radius: var(--cat-radius-sm);
  color: var(--cat-text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--cat-transition);
  font-family: var(--font-clean);
}

.page-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.page-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #050608;
  border-color: transparent;
  font-weight: 700;
}

/* ═══════════════════════════════════════
   UNIVERSAL FOOTER STYLES
═══════════════════════════════════════ */
.tr-footer {
  background: rgba(7, 8, 12, 0.95);
  border-top: 1px solid var(--cat-border);
  margin-top: 3.5rem;
  padding: 2.25rem 1.25rem 1.25rem;
  text-align: center;
}

.footer-nav-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.35rem;
  margin-bottom: 1.15rem;
}

.footer-nav-strip a {
  color: var(--cat-text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  transition: var(--cat-transition);
}

.footer-nav-strip a:hover {
  color: var(--cat-accent-emerald);
}

.footer-bottom p {
  color: var(--cat-text-muted);
  font-size: 0.8rem;
  margin: 0;
}

/* ═══════════════════════════════════════
   MOBILE FILTERS BACKDROP & DRAWER
═══════════════════════════════════════ */
.filters-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filters-backdrop.active {
  display: block;
  opacity: 1;
}

/* ═══════════════════════════════════════
   RESPONSIVE MEDIA QUERIES
═══════════════════════════════════════ */
@media (max-width: 1140px) {
  .catalog-layout {
    grid-template-columns: 240px 1fr;
    gap: 1.35rem;
    padding-inline: 1rem;
  }
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding-inline: 1rem;
  }

  /* Mobile Slide-in Drawer */
  .catalog-filters {
    position: fixed;
    top: 0;
    right: -320px;
    width: 290px;
    height: 100vh;
    overflow-y: auto;
    z-index: 999;
    border-radius: 0;
    border-left: 1px solid var(--cat-border);
    border-right: none;
    border-top: none;
    border-bottom: none;
    background: #0d0f17;
    padding: 1.35rem;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .catalog-filters.open {
    right: 0;
  }

  .btn-close-filters {
    display: block;
  }

  .btn-toggle-filters {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .category-chips-section {
    top: 60px;
    padding: 0.55rem 0;
  }

  .catalog-layout {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
  }

  .catalog-top-bar {
    margin-bottom: 1rem;
  }

  .catalog-title {
    font-size: 1.25rem;
  }

  /* 2-Columns compact grid on mobile */
  .catalog-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tr-product-card {
    border-radius: 8px;
    max-width: 100%;
  }

  .product-info {
    padding: 0.65rem 0.7rem;
    gap: 0.2rem;
  }

  .product-category {
    font-size: 0.58rem;
  }

  .product-title {
    font-size: 0.82rem;
  }

  .price-current {
    font-size: 0.92rem;
  }

  .price-original {
    font-size: 0.72rem;
  }

  .price-discount-tag {
    font-size: 0.64rem;
    padding: 1px 4px;
  }

  .spec-fabric {
    font-size: 0.68rem;
  }

  .badge-gsm {
    top: 6px;
    left: 6px;
    font-size: 0.62rem;
    padding: 2px 5px;
  }

  .badge-fit {
    bottom: 6px;
    left: 6px;
    font-size: 0.56rem;
    padding: 2px 5px;
  }

  .card-wish-btn {
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  .card-add-btn {
    margin-top: 0.4rem;
    padding: 0.42rem 0.5rem;
    font-size: 0.72rem;
    border-radius: 5px;
  }

  .footer-contact-strip {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .footer-contact-strip span[style*="opacity:0.3"] {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .catalog-products-grid {
    gap: 7px;
  }

  .product-info {
    padding: 0.55rem 0.6rem;
  }

  .product-title {
    font-size: 0.78rem;
  }

  .price-current {
    font-size: 0.85rem;
  }

  .card-add-btn {
    font-size: 0.68rem;
    padding: 0.38rem 0.45rem;
  }
}
