/* =========================================
   FEED OVERLAY (VERTICAL MODE) - LIGHT THEME
   ========================================= */

.feed-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 2000;
  display: none;
  flex-direction: column;
  color: #111;
}

.feed-overlay.active {
  display: flex;
}

/* Top row: back button left, title centered */
.feed-nav {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

/* Back arrow button: outline only, no container box */
.back-btn {
  justify-self: start;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  line-height: 0;
  color: #111;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.back-btn:hover,
.back-btn:active,
.back-btn:focus {
  background: transparent;
  outline: none;
}

.back-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.feed-title {
  justify-self: center;
  margin: 0;
  line-height: 1;
  font-size: 12px;
  font-weight: 700;
  color: #111;
}

.feed-list {
  flex: 1;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 100%;
  background: #fff;
}

.feed-list::-webkit-scrollbar {
  display: none;
}

/* ===== Feed Post ===== */
.feed-post {
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
}

.post-header {
  flex: 0 0 auto;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #111;
}

.avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 1px;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 50%;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  color: #fff;
}

.username {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.1;
  color: #111;
}

/* ===== Carousel ===== */
.post-media-wrap {
  flex: 1;
  position: relative;
  width: 100%;
  background: #fff;
  min-height: 0;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.dots-overlay {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
  z-index: 5;
}

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

.dot.active {
  background: rgba(0, 0, 0, 0.8);
}

/* ===== Post Footer ===== */
.post-footer {
  flex: 0 0 auto;
  background: #fff;
  padding: 10px 14px 12px;
  color: #111;
}

.price-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.buy-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.countdown-inline {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #111;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 59, 48, 0.10);
  white-space: nowrap;
}

.countdown-inline.soon {
  background: rgba(255, 149, 0, 0.15);
}

.countdown-inline.urgent {
  background: rgba(255, 59, 48, 0.16);
}

.buy-btn-feed {
  background-color: var(--accent-color);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex: 0 0 auto;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.price-now {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.2px;
}

.price-was {
  font-size: 13px;
  color: #666;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(0, 0, 0, 0.35);
}

.off-pill {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--sale-color);
  border: 1px solid rgba(47, 230, 107, 0.35);
  background: rgba(47, 230, 107, 0.10);
  padding: 4px 8px;
  border-radius: 999px;
  line-height: 1;
}

.caption-section {
  font-size: 14px;
  line-height: 1.45;
}

.caption-line {
  color: #111;
}

.caption-user {
  font-weight: 700;
  margin-right: 6px;
  color: #111;
}

.caption-desc {
  color: #111;
  white-space: pre-wrap;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.caption-desc.expanded {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

.see-more-btn {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}