/* Featured Products Grid - Consistent with products page */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px 0;
  width: 100%;
  margin: 0 auto;
}

.product-grid .card {
  background: var(--card);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: var(--spring-transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 320px;
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
}

[data-theme="light"] .product-grid .card {
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.product-grid .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #ff9d00 0%, #ffb36a 100%);
  transform: scaleX(0);
  transition: var(--spring-transition);
}

.product-grid .card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 18px;
  margin-bottom: 12px;
  flex-shrink: 0;
  transition: var(--spring-transition);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  box-sizing: border-box;
}

[data-theme="light"] .product-grid .card img {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Image carousel for cards with 2+ images */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  box-sizing: border-box;
}
[data-theme="light"] .card-image-wrapper {
  background: rgba(0, 0, 0, 0.02);
}
.card-image-wrapper img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  margin-bottom: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  display: block !important;
}
.card-image-wrapper img.active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
}
.card-image-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}
.card-image-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s;
}
.card-image-dots span.active { background: #ff9d00; }

.product-grid .card h3 {
  color: #ffb36a;
  font-size: 1.1em;
  margin: 8px 0;
  font-weight: 700;
  height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  text-align: left;
}

[data-theme="light"] .product-grid .card h3 {
  color: #e67e00;
}

/* Key Features */
.key-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
  min-height: 28px;
}

.feature-tag {
  background: rgba(10, 132, 255, 0.15);
  color: #0a84ff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid rgba(10, 132, 255, 0.3);
  transition: all 0.3s ease;
}

[data-theme="light"] .feature-tag {
  background: rgba(10, 132, 255, 0.1);
  color: #0066cc;
  border: 1px solid rgba(10, 132, 255, 0.25);
}

.product-grid .card:hover .feature-tag {
  background: rgba(10, 132, 255, 0.25);
  border-color: rgba(10, 132, 255, 0.5);
}

[data-theme="light"] .product-grid .card:hover .feature-tag {
  background: rgba(10, 132, 255, 0.2);
  border-color: rgba(10, 132, 255, 0.4);
}

/* Price Container */
.price-container {
  margin: 8px 0;
  flex-shrink: 0;
}

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

.price-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.original-price {
  color: var(--muted);
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: line-through;
  opacity: 0.7;
}

[data-theme="light"] .original-price {
  color: #666;
}

.final-price {
  color: #0a84ff;
  font-weight: 800;
  font-size: 1.4em;
  line-height: 1.2;
}

[data-theme="light"] .final-price {
  color: #0066cc;
}

.discount-badge {
  background: linear-gradient(135deg, #ff9d00 0%, #ffb36a 100%);
  color: #000;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 157, 0, 0.3);
}

[data-theme="light"] .discount-badge {
  box-shadow: 0 2px 8px rgba(255, 157, 0, 0.25);
}

.product-grid .card .tag {
  background: linear-gradient(135deg, #ff9d00 0%, #ffb36a 100%);
  color: #000;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 700;
  display: inline-block;
  margin-top: auto;
  text-align: center;
  align-self: flex-start;
}

.product-grid .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 157, 0, 0.25);
  background: var(--card-hover);
}

[data-theme="light"] .product-grid .card:hover {
  border-color: rgba(255, 157, 0, 0.35);
}

.product-grid .card:hover::before {
  transform: scaleX(1);
}

.product-grid .card:hover img {
  transform: scale(1.05);
}

/* Mobile Layout */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px 0;
  }
  
  .product-grid .card {
    padding: 12px;
    min-height: 380px;
  }
  
  .product-grid .card img {
    height: 160px;
  }
  .card-image-wrapper {
    height: 160px;
  }
  
  .product-grid .card h3 {
    font-size: 0.95em;
    height: 42px;
    margin: 6px 0;
  }
  
  .key-features {
    gap: 4px;
    margin: 6px 0;
  }
  
  .feature-tag {
    font-size: 0.65em;
    padding: 3px 8px;
  }
  
  .product-grid .card .price {
    font-size: 1.1em;
    margin: 6px 0;
  }
  
  .final-price {
    font-size: 1.2em;
  }
  
  .discount-badge {
    font-size: 0.65em;
    padding: 5px 10px;
  }

  .product-grid .card .tag {
    font-size: 0.75em;
    padding: 5px 10px;
  }
}

/* ─────────────── BREAKPOINTS ─────────────── */

/* Desktop wide (≥1025px): 4 columns */
@media (min-width: 1025px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet (769px–1024px): 3 columns */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px 0;
  }

  .product-grid .card {
    min-height: 300px;
  }

  .product-grid .card img,
  .card-image-wrapper {
    height: 180px;
  }
}

/* Mobile (≤768px): 2 columns */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px 0;
  }

  .product-grid .card {
    padding: 12px;
    min-height: auto;
  }

  .product-grid .card img,
  .card-image-wrapper {
    height: 160px;
  }

  .product-grid .card h3 {
    font-size: 0.9em;
    height: auto;
    max-height: 42px;
    margin: 6px 0;
  }

  .key-features {
    gap: 4px;
    margin: 4px 0;
  }

  .feature-tag {
    font-size: 0.65em;
    padding: 3px 7px;
  }

  .final-price {
    font-size: 1.1em;
  }

  .discount-badge {
    font-size: 0.65em;
    padding: 4px 8px;
  }

  .product-grid .card .tag {
    font-size: 0.75em;
    padding: 5px 10px;
  }
}

/* Small Mobile (≤430px): 1 column */
@media (max-width: 430px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 0;
  }

  .product-grid .card {
    min-height: auto;
  }

  .product-grid .card img,
  .card-image-wrapper {
    height: 200px;
  }

  .product-grid .card h3 {
    font-size: 0.95em;
    height: auto;
  }

  .final-price {
    font-size: 1.3em;
  }

  .discount-badge {
    font-size: 0.7em;
  }
}

/* Categories */
.categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
  padding: 0 15px;
}

.categories .category {
  padding: 10px 20px;
  background: var(--card);
  border-radius: 20px;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: var(--spring-transition);
  border: 1px solid var(--border);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-width: 80px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.categories .category:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(255,157,0,0.15);
}

.categories .category:active {
  transform: scale(0.95);
}

.categories .category.active {
  background: rgba(255, 157, 0, 0.15) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(255, 157, 0, 0.25) !important;
  box-shadow: 0 4px 15px rgba(255,157,0,0.2) !important;
}

/* Mobile responsive for categories */
@media (max-width: 768px) {
  .categories {
    gap: 8px;
    padding: 0 10px;
  }
  
  .categories .category {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  .categories {
    gap: 6px;
  }
  
  .categories .category {
    padding: 8px 14px;
    font-size: 12px;
    min-width: 60px;
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  color: var(--accent);
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.section-subtitle {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 28px;
  }

}

/* ─────────────────────── SOCIAL FEED SECTION ─────────────────────── */
.social-feed-section {
  padding: 40px 0;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0 auto;
}

.social-card {
  background: var(--card);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: var(--spring-transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  height: 100%;
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 157, 0, 0.4);
  box-shadow: 0 12px 30px rgba(255, 157, 0, 0.15);
}

.social-card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.social-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.social-card:hover .social-poster {
  transform: scale(1.03);
}

.social-embed-holder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.social-embed-holder iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.social-platform-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.social-platform-badge.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-platform-badge.tiktok {
  background: #000;
  border: 1px solid rgba(255,255,255,0.2);
}

.social-platform-badge.youtube {
  background: #ff0000;
}

.social-featured-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  background: rgba(255, 157, 0, 0.9);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
}

.social-sound-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.social-sound-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 157, 0, 0.8);
  color: #000;
}

.social-equalizer {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.social-equalizer.playing {
  opacity: 1;
}

.social-equalizer span {
  width: 3px;
  background: #ff9d00;
  border-radius: 2px;
  animation: bounceEqualizer 0.8s infinite ease-in-out alternate;
}

.social-equalizer span:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.social-equalizer span:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.social-equalizer span:nth-child(3) { height: 40%; animation-delay: 0.2s; }

@keyframes bounceEqualizer {
  0% { height: 20%; }
  100% { height: 100%; }
}

.social-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.social-card-title {
  color: var(--text);
  font-size: 0.95em;
  font-weight: 700;
  margin: 6px 0 4px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38px;
}

.social-card-desc {
  color: var(--muted);
  font-size: 0.8em;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px;
}

.social-card-footer {
  margin-top: auto;
}

.social-watch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.social-watch-btn:hover {
  background: #ff9d00;
  color: #000;
  border-color: #ff9d00;
  box-shadow: 0 4px 14px rgba(255, 157, 0, 0.3);
}

/* Responsive grid rules for social section */
@media (max-width: 1200px) {
  .social-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (max-width: 992px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .social-card {
    padding: 10px;
    border-radius: 16px;
  }

  .social-card-title {
    font-size: 0.85em;
    height: 34px;
  }

  .social-card-desc {
    display: none;
  }

  .social-watch-btn {
    padding: 8px;
    font-size: 11px;
  }
}

/* ─────────────────────── STUDIO V2 NATIVE VIDEO PLAYER STYLING ─────────────────────── */
.ts-native-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.ts-video-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  overflow: hidden;
}

.ts-video-progress-fill {
  height: 100%;
  width: 0%;
  background: #ff9d00;
  box-shadow: 0 0 8px rgba(255, 157, 0, 0.8);
  transition: width 0.1s linear;
}

.ts-product-tag-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 157, 0, 0.3);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ts-product-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ts-product-title {
  font-size: 11px;
  font-weight: 700;
  color: #ff9d00;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-product-price {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.ts-view-product-btn {
  background: linear-gradient(135deg, #ff9d00 0%, #e08b00 100%);
  color: #000;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ts-view-product-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 157, 0, 0.4);
}

.studio-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.studio-footer-links-single {
  display: block;
}

.studio-footer-links-single .social-watch-btn {
  width: 100%;
}

.studio-footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.social-watch-btn.youtube:hover {
  background: #ff0000;
  color: #fff;
  border-color: #ff0000;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4);
}

.social-watch-btn.facebook:hover {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.social-watch-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  border-color: #dc2743;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.4);
}

.social-watch-btn.tiktok:hover {
  background: #000;
  color: #00f2fe;
  border-color: #00f2fe;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.4);
}

.social-platform-badge.multi-platform {
  background: rgba(245, 166, 35, 0.25);
  border-color: rgba(245, 166, 35, 0.5);
  color: #ff9d00;
}

.social-play-state-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  z-index: 15;
  pointer-events: none;
}

/* Extra small mobile screens alignment (< 480px) */
@media (max-width: 480px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .social-card {
    padding: 10px !important;
    border-radius: 16px !important;
  }

  .ts-product-tag-box {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 8px 6px !important;
  }

  .ts-product-info {
    text-align: center !important;
    align-items: center !important;
  }

  .ts-view-product-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 6px 4px !important;
    font-size: 10.5px !important;
  }

  .studio-footer-links,
  .studio-footer-links-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .social-watch-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 6px 4px !important;
    font-size: 10.5px !important;
  }
}




