/* ============================================================
   MIRA HOME — AR Product Select Page
   Extracted from inline <style>, made responsive
   ============================================================ */

body { background: var(--bg-section-alt); }

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.ar-select-hero {
  background: var(--bg-dark);
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}

.ar-select-hero .ar-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(200,149,108,.18);
  border: 1px solid rgba(200,149,108,.4);
  color: var(--color-primary-light);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}

.ar-select-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: .75rem;
}

.ar-select-hero p {
  color: rgba(255,255,255,.7);
  max-width: 520px;
  margin: 0 auto;
  font-size: .95rem;
}

/* ------------------------------------------------------------
   SEARCH
   ------------------------------------------------------------ */
.ar-select-section { padding: 3rem 0 5rem; }

.ar-search-bar {
  max-width: 480px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.ar-search-bar input {
  width: 100%;
  padding: .85rem 1rem .85rem 2.75rem;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-size: .9rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.ar-search-bar input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.ar-search-bar i {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-stone);
  font-size: 1rem;
}

/* ------------------------------------------------------------
   PRODUCT GRID
   ------------------------------------------------------------ */
.ar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}

.ar-product-card {
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none;
  color: inherit;
  /* Column flex so the badge below can be pinned to the bottom via
     margin-top:auto regardless of how much text sits above it. */
  display: flex;
  flex-direction: column;
}

.ar-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(101,67,33,.12);
  border-color: var(--color-primary-light);
}

.ar-card-img {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.ar-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s;
  background: #ffffff;
  padding: 8px;
}
.ar-product-card:hover .ar-card-img img { transform: scale(1.05); }

.ar-card-body {
  padding: 1rem;
  /* Column flex so the "View in AR" badge below can be pinned to the
     bottom of the card via margin-top:auto — see .ar-product-card. */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ar-card-cat {
  font-size: .72rem;
  color: var(--color-primary-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .25rem;
}

.ar-card-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.ar-card-variant-tag {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .76rem;
  color: var(--color-brown-mid, #7A5C44);
  margin: -.15rem 0 .5rem;
}

.ar-card-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 6px;
  /* Pins the badge to the bottom of the card — see .ar-card-body. */
  margin-top: auto;
  align-self: flex-start;
}

.ar-badge-3d {
  background: var(--color-primary-xlight);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary-light);
}

.ar-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-stone);
}

.ar-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: .4;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .ar-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .ar-select-hero { padding: 2.75rem 0 2.25rem; }
  .ar-select-hero p { font-size: .88rem; }
  .ar-select-section { padding: 2rem 0 3.5rem; }
  .ar-search-bar { margin-bottom: 1.75rem; }

  .ar-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 1rem;
  }

  .ar-card-body { padding: .75rem; }
  .ar-card-name { font-size: .82rem; min-height: 2.2em; }
  .ar-card-cat { font-size: .68rem; }
  .ar-card-badge { font-size: .66rem; padding: .2rem .55rem; }
}

@media (max-width: 479.98px) {
  .ar-select-hero { padding: 2.25rem 0 1.75rem; }

  .ar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }

  .ar-card-body { padding: .6rem; }
  .ar-card-name { font-size: .78rem; }
}
