/* =========================================================
   ZDN HOME – PRODUCTS / ROOMS STYLING (DESKTOP)
   Used for: Living, Dining, Bedroom, Office, Kitchen, Artwork
   ========================================================= */

/* -------------------------------
   ROOM PAGE WRAPPER
   ------------------------------- */

   .room-page {
    padding: 80px 0 100px;
    background: #ffffff;
}

.room-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 32px;
}

/* -------------------------------
   HEADER
   ------------------------------- */

.room-header {
    max-width: 640px;
    margin: 0 auto 32px;
    text-align: center;
}

.room-kicker {
    font-family: "Cinzel", serif;
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 8px;
}

.room-title {
    font-family: "Cinzel", serif;
    font-size: 1.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 10px;
}

.room-subtitle {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
}

/* -------------------------------
   FILTERS
   ------------------------------- */

.room-filters {
    margin: 20px 0 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.room-filters-label {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.85rem;
    color: #777;
    margin-right: 8px;
}

.room-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;

    color: #444;
    background: #ffffff;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.room-filter-pill:hover {
    border-color: rgba(0,0,0,0.18);
    transform: translateY(-1px);
}

.room-filter-pill.is-active {
    background: #111;
    color: #ffffff;
    border-color: #111;
}

/* -------------------------------
   PRODUCTS GRID
   ------------------------------- */

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 per row on large desktops */
    gap: 32px;
}

/* When screen is a bit narrower, drop to 2 columns */
@media (max-width: 1200px) {
    .room-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* -------------------------------
   PRODUCT CARD
   ------------------------------- */

.room-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;

    background: #ffffff;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: none;

    transform: translateY(0);
    transition: transform 0.35s ease;
}

.room-card:hover {
    transform: translateY(-6px);
}

/* Image wrapper */

.room-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;     /* keeps all cards same height */
    background: #f5f5f5;
    overflow: hidden;
}

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transform: scale(1.02);
    transition:
        transform 1.1s cubic-bezier(0.19, 1, 0.22, 1),
        filter 0.8s ease,
        opacity 0.8s ease;
    will-change: transform;
}

.room-card:hover .room-card-image img {
    transform: scale(1.08);
    filter: brightness(1.06);
}

.room-card-placeholder {
    width: 100%;
    height: 100%;
    background: #e9e9e9;
}

/* Text area */

.room-card-info {
    padding: 10px 4px 6px;
}

.room-card-collection {
    font-family: "Cinzel", serif;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 4px;
}

.room-card-name {
    font-family: "Cinzel", serif;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #222;
    margin: 0 0 2px;
}

.room-card-meta {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.83rem;
    color: #777;
    margin: 0;
}

/* -------------------------------
   EMPTY STATE
   ------------------------------- */

.room-empty {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

/* ============================================
   ROOM GRIDS – TABLET
   ============================================ */
@media (max-width: 1024px) and (min-width: 768px) {

  .lr-page {
    padding: 40px 32px 80px;
  }

  .lr-header h1 {
    font-size: 1.7rem;
  }

  .lr-header p {
    font-size: 0.9rem;
  }

  .lr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));  /* 3 cards per row */
    gap: 22px;
  }

  /* for slightly smaller tablets → 2 per row */
  @media (max-width: 880px) and (min-width: 768px) {
    .lr-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .lr-card-title {
    font-size: 0.9rem;
  }

  .lr-card-meta {
    font-size: 0.8rem;
  }
}
