/* META / INSTAGRAM SHOP STYLESHEET */
:root {
  --meta-blue: #0095F6;
  --meta-blue-hover: #0081e0;
  --meta-bg-light: #FAFAFA;
  --card-bg: #FFFFFF;
  --text-main: #000000;
  --text-muted: #737373;
  --border-color: #DBDBDB;
  --border-light: #EFEFEF;
  --gold-star: #FFC107;
  --stock-red: #ED4956;
  --whatsapp-green: #25D366;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--meta-bg-light);
  color: var(--text-main);
  line-height: 1.45;
  font-size: 14px;
}

.app-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: #FFFFFF;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  padding-bottom: 80px;
}

/* TOP INSTAGRAM HEADER */
.insta-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
}

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

.back-icon {
  color: var(--text-main);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.shop-brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.verified-icon {
  flex-shrink: 0;
}

.view-shop-btn {
  font-size: 11px;
  color: var(--meta-blue);
  text-decoration: none;
  font-weight: 600;
}

.insta-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-counter-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #F3F4F6;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  color: #374151;
  font-weight: 500;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulseAnimation 1.5s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.header-icon-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
}

/* MAIN CONTENT */
.main-content {
  padding: 0;
}

/* CAROUSEL & PRODUCT CARD */
.insta-product-card {
  border-bottom: 1px solid var(--border-light);
}

.insta-carousel {
  position: relative;
  width: 100%;
  background: #F8F9FA;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.slides-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-in-out;
}

.slide-item {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stock-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.carousel-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.carousel-dots .dot.active {
  background: var(--meta-blue);
  width: 16px;
  border-radius: 4px;
}

/* PRODUCT INFO BOX */
.product-info-box {
  padding: 16px;
}

.action-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.product-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.25;
  text-transform: uppercase;
}

.social-actions {
  display: flex;
  gap: 8px;
}

.social-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 2px;
}

.rating-inline-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-size: 12px;
}

.stars-gold {
  color: var(--gold-star);
  letter-spacing: 1px;
}

.rating-val {
  font-weight: 700;
}

.rating-count {
  color: var(--text-muted);
}

.sales-tag {
  background: #FEF3C7;
  color: #92400E;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* PRICE BLOCK */
.price-main-block {
  background: #F9FAFB;
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.price-current {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
}

.price-old {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.discount-pill {
  background: var(--stock-red);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
}

.shipping-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #059669;
  font-weight: 600;
}

/* VARIANT & SIZE SELECTORS */
.variant-selector-section, .size-selector-section {
  margin-bottom: 16px;
}

.variant-label {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.variant-options-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.variant-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  min-width: 80px;
  transition: all 0.2s ease;
  background: #FFF;
}

.variant-chip img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.variant-chip span {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.variant-chip.active {
  border-color: var(--text-main);
  box-shadow: 0 0 0 1px var(--text-main);
  background: #FAF5FF;
}

.pill-group {
  display: flex;
  gap: 8px;
}

.size-pill {
  padding: 8px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  background: #FFF;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-pill.active {
  border-color: var(--text-main);
  background: var(--text-main);
  color: #FFF;
}

.size-pill.disabled {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* STOCK PROGRESS */
.stock-progress-box {
  background: #FFF5F5;
  border: 1px solid #FED7D7;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.stock-text-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

.stock-bar-bg {
  height: 6px;
  background: #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}

.stock-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, var(--stock-red));
  border-radius: 10px;
}

/* META CTA BUTTON */
.btn-meta-cta {
  display: block;
  width: 100%;
  background: var(--meta-blue);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 149, 246, 0.3);
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-meta-cta:active {
  transform: scale(0.98);
  background: var(--meta-blue-hover);
}

.trust-icons-bar {
  display: flex;
  justify-content: space-around;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* GENERAL SECTION CARDS */
.section-card {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border-light);
  background: #FFFFFF;
}

.section-heading {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

/* BENEFITS GRID */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.benefit-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #F9FAFB;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.benefit-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.benefit-info h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.benefit-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* VIDEO WRAPPER */
.video-container-wrapper {
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-caption {
  padding: 10px;
  background: #111827;
  color: #D1D5DB;
  font-size: 12px;
  text-align: center;
}

/* PROSE & ACCORDIONS */
.prose-content {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
}

.prose-content p {
  margin-bottom: 10px;
}

.check-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 12px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10B981;
  font-weight: 800;
}

.acc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acc-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.acc-header {
  width: 100%;
  padding: 12px 14px;
  background: #F9FAFB;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.acc-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.acc-item.open .acc-arrow {
  transform: rotate(180deg);
}

.acc-body {
  padding: 12px 14px;
  font-size: 12px;
  color: #4B5563;
  line-height: 1.5;
  display: none;
  background: #FFF;
  border-top: 1px solid var(--border-light);
}

.acc-item.open .acc-body {
  display: block;
}

/* GOOGLE REVIEWS TRUST BADGE */
.google-trust-badge {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.google-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.google-title-text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.verified-tag {
  font-size: 10px;
  color: #059669;
  font-weight: 600;
}

.google-score-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.big-score {
  font-size: 32px;
  font-weight: 900;
  color: #0F172A;
  line-height: 1;
}

.stars-col {
  display: flex;
  flex-direction: column;
}

.sub-text {
  font-size: 11px;
  color: var(--text-muted);
}

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

.stat-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.bar-bg {
  flex: 1;
  height: 6px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--gold-star);
  border-radius: 4px;
}

/* REVIEWS LIST & CARDS */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #FFF;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.review-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-weight: 700;
  font-size: 13px;
}

.bg-v { background: #3B82F6; }
.bg-o { background: #EC4899; }
.bg-i { background: #10B981; }

.user-name {
  font-weight: 700;
  font-size: 12px;
}

.verified-buyer {
  font-size: 10px;
  color: #10B981;
  font-weight: 600;
}

.review-date {
  font-size: 10px;
  color: var(--text-muted);
}

.review-text {
  font-size: 12px;
  color: #374151;
  line-height: 1.45;
  margin-bottom: 8px;
}

.review-photos-grid {
  display: flex;
  gap: 6px;
}

.review-photos-grid img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.btn-add-review {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  background: #F3F4F6;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.add-review-modal {
  display: none;
  margin-top: 12px;
  padding: 12px;
  background: #F9FAFB;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.modal-title {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 6px;
}

.star-picker {
  font-size: 20px;
  color: #D1D5DB;
  cursor: pointer;
  margin-bottom: 10px;
}

.star-picker span.selected, .star-picker span:hover {
  color: var(--gold-star);
}

/* ORDER FORM */
.order-section {
  background: #FAFAFA;
}

.form-product-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 14px;
}

.form-prod-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.form-prod-name {
  font-size: 13px;
  font-weight: 700;
}

.form-prod-price {
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-fields-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: -4px;
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
  background: #FFF;
  transition: border-color 0.2s ease;
}

.input-field:focus {
  border-color: var(--meta-blue);
}

.btn-submit {
  margin-top: 4px;
}

.form-trust-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* OWNER TRUST BLOCK */
.owner-trust-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

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

.owner-avatar-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.owner-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--meta-blue);
}

.owner-online-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #10B981;
  border: 2px solid #FFF;
  border-radius: 50%;
}

.owner-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.owner-name {
  font-weight: 800;
  font-size: 15px;
}

.owner-role {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.owner-quote-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 12px;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 12px;
}

.owner-quote-box p {
  margin-bottom: 8px;
}

.owner-quote-box p:last-child {
  margin-bottom: 0;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--whatsapp-green);
  color: #FFF;
  font-weight: 700;
  font-size: 13px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

/* FOOTER */
.insta-footer {
  padding: 20px 16px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  background: #FAFAFA;
}

.footer-links {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

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

/* FLOATING BOTTOM BAR */
.floating-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

.floating-price-info {
  display: flex;
  flex-direction: column;
}

.floating-label {
  font-size: 10px;
  color: var(--text-muted);
}

.floating-price {
  font-weight: 800;
  font-size: 16px;
  color: #111827;
}

.floating-btn {
  width: auto;
  padding: 10px 20px;
  font-size: 13px;
}
