* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #ffffff;
  color: #3c4043;
  line-height: 1.5;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  background-color: #ffffff;
  min-height: 100vh;
}

/* Header */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #dadce0;
  padding: 16px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-right {
  display: flex;
  align-items: center;
}

.google-play-icon {
  width: 24px;
  height: 24px;
}

.google-play-text {
  font-size: 20px;
  font-weight: 400;
  color: #5f6368;
}

.search-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background-color: #f1f3f4;
}

.search-btn:active {
  background-color: #e8eaed;
}

.app-details {
  padding: 80px 16px 24px;
}

.app-header {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  margin-top: 40px;
}

.app-icon-container {
  flex-shrink: 0;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  border: 1px solid #dadce0;
  display: block;
}

.app-info {
  flex: 1;
  min-width: 0;
}

.app-title {
  font-size: 28px;
  font-weight: 400;
  color: #202124;
  margin-bottom: 4px;
  line-height: 1.2;
}

.app-subtitle {
  font-size: 14px;
  color: #01875f;
  margin-bottom: 8px;
  font-weight: 400;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stars {
  display: flex;
  gap: 1px;
}

.star {
  font-size: 14px;
  color: #dadce0;
}

.star.filled {
  color: #fbbc04;
}

.rating-score {
  font-size: 14px;
  color: #3c4043;
  font-weight: 500;
}

.downloads,
.age-rating {
  font-size: 12px;
  color: #5f6368;
  background-color: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.action-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  align-items: center;
  flex-direction: column;
}

.install-button {
  background-color: #01875f;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  transition: all 0.2s ease;
}

.install-button.secondary {
  background-color: #ffffff;
  color: #01875f;
  border: 1px solid #dadce0;
  margin-top: 8px;
}

.install-button.secondary:hover {
  background-color: #f8f9fa;
  border-color: #01875f;
}

.install-button:hover {
  background-color: #017a56;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(1, 135, 95, 0.3);
}

.install-button:disabled {
  background-color: #dadce0;
  color: #9aa0a6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.install-button.secondary:disabled {
  background-color: #f8f9fa;
  border-color: #dadce0;
}
.screenshot-img {
  border-width: 0;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  border-radius: 8px;
  cursor: pointer;
  height: 204px;
  min-width: 92px;
}
.install-button:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.install-button:active {
  background-color: #0d4d24;
}

.install-button.installing {
  background-color: #5f6368;
  cursor: not-allowed;
}

.install-button.installed {
  background-color: #f8f9fa;
  color: #137333;
  border: 1px solid #dadce0;
}

.install-button.installed:hover {
  background-color: #f1f3f4;
}

.wishlist-button,
.share-button {
  width: 40px;
  height: 40px;
  border: 1px solid #dadce0;
  background-color: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5f6368;
  transition: all 0.2s ease;
}

.wishlist-button:hover,
.share-button:hover {
  background-color: #f8f9fa;
  border-color: #bdc1c6;
}

.progress-container {
  margin-bottom: 24px;
  transition: all 0.3s ease;
  width: 100%;
  flex-direction: column;
  gap: 8px;
  display: none;
}

.progress-container.hidden {
  display: none !important;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e8f0fe;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a73e8 0%, #4285f4 100%);
  width: 0%;
  transition: width 0.2s ease-out;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #5f6368;
  font-weight: 400;
}

#progress-percentage {
  font-weight: 500;
  color: #1a73e8;
}

#progress-status {
  color: #5f6368;
}

/* Screenshots */
.screenshots-container {
  margin-bottom: 32px;
}

.screenshots-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.screenshots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 16px;
  margin: 0 -16px;

  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;

  touch-action: pan-x;
  overscroll-behavior-x: contain;

  transform: translateZ(0);
  will-change: scroll-position;
}

.screenshots::-webkit-scrollbar {
  display: none;
}

.screenshot {
  scroll-snap-align: center;
  flex-shrink: 0;
}

.screenshot:first-child {
  margin-left: 0;
}

.screenshot:last-child {
  margin-right: 0;
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 1px solid #dadce0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-description {
  background: white;
  padding: 24px;
  margin: 16px 0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.app-description h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 16px 0;
  color: #202124;
}

.app-description p {
  font-size: 14px;
  line-height: 1.5;
  color: #5f6368;
  margin: 0 0 24px 0;
}

.features-list {
  margin-top: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.feature-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 20px;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 4px 0;
  color: #202124;
}

.feature-content p {
  font-size: 14px;
  line-height: 1.4;
  color: #5f6368;
  margin: 0;
}

.app-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e8eaed;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 24px;
  font-weight: 500;
  color: #1a73e8;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #5f6368;
  text-transform: uppercase;
}

.reviews-section {
  background: white;
  padding: 24px;
  margin: 16px 0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.reviews-header {
  margin-bottom: 24px;
}

.reviews-header h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 16px 0;
  color: #202124;
}

.rating-overview {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rating-score-large {
  font-size: 56px;
  font-weight: 300;
  color: #202124;
  line-height: 1;
}

.rating-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stars-large {
  display: flex;
  gap: 2px;
  font-size: 18px;
}

.stars-large .star {
  color: #dadce0;
}

.stars-large .star.filled {
  color: #fbbc04;
}

.rating-count {
  font-size: 14px;
  color: #5f6368;
}

.rating-breakdown {
  margin: 24px 0;
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.rating-number {
  font-size: 14px;
  color: #5f6368;
  width: 16px;
}

.progress-bar-bg {
  flex: 1;
  height: 8px;
  background: #e8eaed;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #34a853;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.reviews-list {
  margin-top: 32px;
}

.review-item {
  border-bottom: 1px solid #e8eaed;
  padding: 20px 0;
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a73e8;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  flex-shrink: 0;
}

.reviewer-info {
  flex: 1;
}

.reviewer-name {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 2px;
}

.review-date {
  font-size: 12px;
  color: #5f6368;
}

.review-rating {
  display: flex;
  gap: 2px;
  font-size: 14px;
}

.review-rating .star {
  color: #dadce0;
}

.review-rating .star.filled {
  color: #fbbc04;
}

.review-text {
  font-size: 14px;
  line-height: 1.5;
  color: #202124;
}

.mock-screen {
  width: 90%;
  height: 90%;
  background: white;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-header {
  font-size: 16px;
  font-weight: 500;
  color: #202124;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.mock-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.mock-item {
  height: 40px;
  background: #f8f9fa;
  border-radius: 4px;
  animation: shimmer 2s infinite;
}

.mock-item.sale {
  background: linear-gradient(90deg, #ffebee 25%, #ffcdd2 50%, #ffebee 75%);
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}

.mock-product {
  aspect-ratio: 1;
  background: #f8f9fa;
  border-radius: 4px;
}

.mock-cart-item {
  height: 60px;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 8px;
}

.mock-button {
  height: 40px;
  background: #137333;
  border-radius: 20px;
  margin-top: auto;
}

.app-description {
  margin-bottom: 32px;
}

.app-description h2 {
  font-size: 20px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 16px;
}

.app-description h3 {
  font-size: 16px;
  font-weight: 500;
  color: #202124;
  margin: 20px 0 12px 0;
}

.app-description p {
  font-size: 14px;
  color: #3c4043;
  line-height: 1.6;
  margin-bottom: 16px;
}

.app-description ul {
  font-size: 14px;
  color: #3c4043;
  line-height: 1.6;
  padding-left: 20px;
}

.app-description li {
  margin-bottom: 4px;
}

.app-info-section {
  border-top: 1px solid #dadce0;
  padding-top: 24px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f4;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 14px;
  color: #5f6368;
  font-weight: 400;
}

.info-value {
  font-size: 14px;
  color: #202124;
  font-weight: 400;
  text-align: right;
}

@media (max-width: 480px) {
  .container {
    max-width: 100%;
  }

  .header {
    padding: 12px 16px;
  }

  .header-content {
    padding: 0;
  }

  .app-details {
    padding: 68px 12px 24px;
  }

  .app-header {
    gap: 12px;
  }

  .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }

  .app-title {
    font-size: 24px;
  }

  .screenshots {
    padding: 0 12px;
    margin: 0 -12px;
  }

  .screenshot-fade-right {
    width: 30px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .container {
    max-width: 100%;
  }

  .header-content {
    max-width: 100%;
    padding: 0 20px;
  }

  .app-details {
    padding: 80px 20px 32px;
  }

  .app-icon {
    width: 112px;
    height: 112px;
  }

  .app-title {
    font-size: 32px;
  }

  .action-buttons {
    gap: 12px;
    display: flex;
    flex-direction: column;
  }

  .install-button {
    min-width: 120px;
    padding: 12px 32px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 600px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    margin: 20px auto;
    overflow: hidden;
  }

  .header {
    border-radius: 12px 12px 0 0;
  }

  .header-content {
    max-width: 100%;
    padding: 0 24px;
  }

  .app-details {
    padding: 90px 24px 40px;
  }

  .app-header {
    gap: 20px;
    margin-bottom: 24px;
  }

  .app-icon {
    width: 128px;
    height: 128px;
  }

  .app-title {
    font-size: 36px;
  }

  .screenshots {
    padding: 0 24px;
    margin: 0 -24px;
  }
}

@media (min-width: 1025px) {
  .container {
    max-width: 640px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    margin: 40px auto;
    overflow: hidden;
  }

  .header {
    border-radius: 16px 16px 0 0;
    padding: 20px;
  }

  .header-content {
    max-width: 100%;
    padding: 0 24px;
  }

  .app-details {
    padding: 100px 32px 48px;
  }

  .app-header {
    gap: 24px;
    margin-bottom: 28px;
  }

  .app-icon {
    width: 140px;
    height: 140px;
  }

  .app-title {
    font-size: 40px;
  }

  .screenshots {
    padding: 0 32px;
    margin: 0 -32px;
  }

  .screenshot-fade-right {
    width: 60px;
  }

  .action-buttons {
    gap: 16px;
  }

  .install-button {
    min-width: 140px;
    padding: 14px 36px;
    font-size: 16px;
  }
}

@media (min-width: 1441px) {
  .container {
    max-width: 720px;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .header {
    padding: 8px 16px;
  }

  .app-details {
    padding: 60px 16px 20px;
  }

  .app-header {
    margin-bottom: 16px;
  }
}

.button-text {
  transition: opacity 0.2s ease;
}

.install-button.installing .button-text {
  opacity: 0.7;
}

@media (max-width: 480px) {
  .app-description,
  .reviews-section {
    margin: 12px 0;
    padding: 16px;
  }

  .feature-item {
    gap: 12px;
    margin-bottom: 16px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .feature-content h4 {
    font-size: 15px;
  }

  .app-stats {
    margin-top: 24px;
    padding-top: 16px;
  }

  .stat-number {
    font-size: 20px;
  }

  .rating-overview {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .rating-score-large {
    font-size: 48px;
  }

  .review-item {
    padding: 16px 0;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .app-description,
  .reviews-section {
    margin: 16px 20px;
    padding: 20px;
  }

  .rating-overview {
    gap: 16px;
  }
}

@media (min-width: 769px) {
  .app-description,
  .reviews-section {
    margin: 20px 24px;
    padding: 24px;
  }

  .features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
  }

  .feature-item {
    margin-bottom: 0;
  }

  .app-stats {
    max-width: 400px;
    margin: 32px auto 0;
  }

  .rating-overview {
    gap: 24px;
  }

  .reviews-list {
    max-height: 400px;
    overflow-y: auto;
  }
}

* {
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}
