:root {
  --sheet-top: 58%;
  --sheet-radius: 32px;
  --sheet-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #201214, #050607 75%);
}

.app-shell {
  --hero-scale: 1;
  width: min(480px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  background: #000;
  position: relative;
  overflow: hidden;
}

.logo-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo {
  width: 65px;
  height: auto;
  object-fit: contain;
  margin: -10px auto 0;
}

/* Results Link Button */
.results-link {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.results-link:hover {
  background: rgba(45, 211, 130, 0.3);
  border-color: #2dd382;
  transform: scale(1.1);
}

.results-link:active {
  transform: scale(0.95);
}

.results-link svg {
  width: 22px;
  height: 22px;
}

.hero {
  min-height: 100vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--hero-scale));
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.app-shell.is-expanded {
  --hero-scale: 1.15;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.5));
}

.hero-product-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding-bottom: 15%;
  touch-action: pan-y;
  cursor: pointer;
}

.hero-product-carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  touch-action: pan-y;
}

.hero-product-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.hero-product-image {
  width: 100%;
  max-width: 300px;
  max-height: 350px;
  height: auto;
  object-fit: contain;
  user-select: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.bottom-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--sheet-top);
  background: #fff;
  border-radius: var(--sheet-radius);
  box-shadow: var(--sheet-shadow);
  transition: top 0.55s cubic-bezier(0.2, 0.8, 0.2, 1.2),
    box-shadow 0.3s ease;
  touch-action: pan-x;
  z-index: 10;
  will-change: top;
  overflow: hidden;
}

.bottom-sheet.dragging {
  transition: none;
}

.bottom-sheet.no-transition {
  transition: none !important;
}

.sheet-handle {
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: #d1d5db;
  margin: 10px auto;
}

.sheet-content {
  padding: 0 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background: #9ca3af;
}

.dot.active {
  background: #2dd382;
  width: 24px;
  border-radius: 999px;
}

.btn-primary,
.btn-secondary {
  width: 100%;
  border-radius: 999px;
  padding: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2dd382, #21c361);
  color: #fff;
  box-shadow: 0 12px 25px rgba(45, 211, 130, 0.35);
}

.btn-secondary {
  border: 1px solid #7cdca7;
  color: #0f172a;
  background: #f5fff9;
}

.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.98);
}

/* Native Mobile Select Styling */
.select-wrapper {
  position: relative;
  width: 100%;
}

.store-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 999px;
  padding: 0.9rem 3rem 0.9rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid #7cdca7;
  color: #0f172a;
  background: #f5fff9;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.store-select:focus {
  outline: none;
  border-color: #2dd382;
  box-shadow: 0 0 0 3px rgba(45, 211, 130, 0.1);
  transform: scale(1.01);
}

.store-select:active {
  transform: scale(0.98);
}

.store-select option {
  padding: 1rem;
  font-weight: 500;
  background: #fff;
  color: #0f172a;
}

.select-arrow {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #2dd382;
  transition: transform 0.3s ease;
}

.store-select:focus ~ .select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.star-rating {
  cursor: pointer;
}

.star-rating .star {
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.star-rating .star:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5));
}

.star-rating .star:active {
  transform: scale(0.95);
}
