/* 9jaVibeMall Web Fallback - Official Design System */
:root {
  --primary: #ff5500;
  --primary-hover: #e04b00;
  --primary-light: #ffeee6;
  --black: #101010;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --success: #16a34a;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--gray-50);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--black);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
}

.brand-title span {
  color: var(--primary);
}

/* Container */
.main-content {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 1rem 3rem 1rem;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* App Banner / Smart Callout */
.smart-app-banner {
  background: linear-gradient(135deg, #101010 0%, #262626 100%);
  color: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.smart-banner-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.smart-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 4px;
}

.smart-banner-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.smart-banner-text p {
  font-size: 0.825rem;
  color: var(--gray-400);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-dark {
  background-color: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background-color: #2b2b2b;
}

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.btn-outline:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1.05rem;
}

/* Product & Business Visuals */
.media-gallery {
  position: relative;
  background: var(--gray-100);
  width: 100%;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.main-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.thumbnails-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--gray-200);
}

.thumb-item {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  object-fit: cover;
  background: var(--gray-100);
}

.thumb-item.active {
  border-color: var(--primary);
}

/* Content Details */
.content-body {
  padding: 1.5rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
}

.badge-gray {
  background: var(--gray-100);
  color: var(--gray-700);
}

.content-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.price-current {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
}

.price-original {
  font-size: 1.15rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

.price-discount {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--success);
  background: #dcfce7;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.vendor-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.vendor-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--gray-200);
}

.vendor-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.vendor-info p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.description-section {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.25rem;
  margin-bottom: 1.75rem;
}

.description-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.description-text {
  font-size: 0.95rem;
  color: var(--gray-700);
  white-space: pre-line;
}

/* Actions Cluster */
.cta-cluster {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Download Section */
.download-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.download-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.download-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-top: auto;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-media {
  width: 100%;
  height: 320px;
}

.skeleton-title {
  height: 28px;
  width: 70%;
  margin-bottom: 1rem;
}

.skeleton-price {
  height: 36px;
  width: 40%;
  margin-bottom: 1.5rem;
}

.skeleton-text {
  height: 16px;
  width: 100%;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (min-width: 640px) {
  .cta-cluster {
    flex-direction: row;
  }
  .smart-app-banner {
    padding: 1.5rem;
  }
}
