/* Four Elements Health - Home Page Styles */

/* Featured Combos */
.combos-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:980px){.combos-grid{grid-template-columns:1fr}}
.combo-card{position:relative;border-radius:14px;padding:14px;border:2px solid rgba(0,0,0,0.06);box-shadow:0 8px 24px rgba(0,0,0,0.08);overflow:hidden}
.combo-top{position:relative;padding:8px 8px 10px}
.combo-top h3{margin:8px 0 8px;font-size:26px;line-height:1.2;font-weight:800}
.combo-top .note{font-size:15px;opacity:.9}
.combo-badge{position:absolute;top:0;right:0;background:#111827;color:#fff;border-radius:999px;padding:6px 10px;font-size:12px}
.combo-card .plist{display:grid;grid-template-columns:1fr;gap:8px;padding:6px 0}
.combo-card .prod{background:rgba(255,255,255,0.7);-webkit-backdrop-filter:saturate(120%) blur(2px);backdrop-filter:saturate(120%) blur(2px);border:1px solid rgba(17,24,39,0.08);grid-template-columns:96px 1fr;padding:12px}
.combo-card .prod img{width:96px;height:96px}
.combo-card.men .prod img{background:#fff}
.combo-card .prod .pt{font-size:16px;line-height:1.3;color:#111827;font-weight:700}
.combo-card .prod .price{font-size:1rem}
.combo-card .actions{margin-top:10px;display:flex;justify-content:flex-end}
.combo-card .btn.dark{background:#111827;color:#fff;border-color:#111827}
.bundle-box{background:rgba(255,255,255,0.85);border:1px solid rgba(17,24,39,0.12);border-radius:12px;padding:10px 12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 8px 24px rgba(0,0,0,.08)}
.bundle-box .plist{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.combo-card.men .bundle-box .plist{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
@media(max-width:980px){.bundle-box .plist{grid-template-columns:1fr}}
@media(max-width:980px){.combo-card.men .bundle-box .plist{grid-template-columns:1fr}}
/* 16:9 video block inside combo cards */
.combo-video{position:relative;margin:8px 0 12px;border-radius:12px;overflow:hidden;border:1px solid rgba(17,24,39,0.08);box-shadow:0 4px 16px rgba(0,0,0,0.08);background:#fff}
.combo-video video{width:100%;height:auto;display:block;aspect-ratio:16/9;object-fit:cover;background:#000}
.combo-card.women .bundle-box .plist,.combo-card.kids .bundle-box .plist{gap:10px}
.combo-card.women{background:linear-gradient(135deg,#fde2f2 0%,#f8bbd0 100%)}
.combo-card.men{background:linear-gradient(135deg,#dbeafe 0%,#93c5fd 100%)}
/* Men combo: remove per-item background effect; let full box bg show through */
.combo-card.men .bundle-box{background:#fff;padding:0;border-color:rgba(17,24,39,0.12);box-shadow:0 8px 24px rgba(0,0,0,0.08);overflow:hidden}
.combo-card.men .prod{background:transparent;border-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
.combo-card.kids{background:linear-gradient(135deg,#dcfce7 0%,#86efac 100%);background-image:linear-gradient(135deg,#dcfce7 0%,#86efac 100%),radial-gradient(circle at 20% 30%, rgba(255,255,255,0.6) 0, rgba(255,255,255,0) 40%),radial-gradient(circle at 70% 70%, rgba(255,255,255,0.5) 0, rgba(255,255,255,0) 45%);background-blend-mode:overlay,normal}

/* Hero Section */
.hero {
    position: relative;
    height: 440px;
    min-height: 440px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    border-radius: 16px; /* curved video edges via container clip */
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 1;
}

/* Deep blue brand tint on hero overlay (trustworthy, high contrast) */
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(30,58,138,0.22), rgba(30,58,138,0.22)), rgba(0,0,0,0.25);
    z-index: 2;
}

.hero .c {
    position: relative;
    z-index: 3;
    /* make container span the hero to allow bottom-left placement of related block */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 0 2rem;
     padding-bottom: 6rem; /* ensure text doesn't collide with related panel */
 }

/* keep text nicely centered within the full-size overlay container */
.hero .c > *:not(.rel) { max-width: 800px; margin-left: 0; margin-right: 0; }

.hero .kicker {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; }

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
}

.hero .ctas { display: flex; gap: 10px; justify-content: flex-start; flex-wrap: wrap; margin-bottom: 1.25rem; }

/* Related products: bottom-left, compact, left-aligned */
.hero .rel {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 4; /* above overlay and video */
    background: transparent; /* remove panel color */
    padding: 0.75rem; /* compact */
    border-radius: 0; /* remove curved panel edges */
    -webkit-backdrop-filter: none; /* remove blur */
    backdrop-filter: none; /* remove blur */
    width: min(560px, 92%);
    text-align: left;
    display: grid;
    gap: 10px;
}

/* Hide related products headline in hero panel */
.hero .rel h5 { display: none; }

/* tighten spacing immediately after hero for the next section header */
.hero + .section .sec-h { margin-top: 0; padding-top: 0; }

.hero .rel h5 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
}

/* Use a responsive grid for related items; align from left */
.hero .plist, .mos .plist, .music .plist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
}
/* Ensure mini product tiles fill grid cell width on home page */
.prod { width: 100%; }

/* Compact hero related tiles */
.hero .rel .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero .rel .prod { background: #fff; border: 1px solid #e5e7eb; box-shadow: none; border-radius: 10px; padding: 8px; opacity: 1; }
.hero .rel .prod .name { font-size: 0.9rem; font-weight: 600; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero .rel .prod .desc, .hero .rel .prod p { font-size: 0.85rem; }
.hero .rel .prod .price { font-size: 0.95rem; }

@media (max-width: 768px) {
  .hero .rel { width: min(320px, 92%); }
  .hero .rel .plist { grid-template-columns: 1fr; }
  .hero .c { padding-bottom: 5rem; }
}
@media (max-width: 480px) {
  .hero .rel { width: min(300px, 94%); }
  .hero .c { padding-bottom: 4.5rem; }
}

/* Categories Section */
.categories { padding: 5rem 0; background: white; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem; /* reduced from 3rem */
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.15); border-color: #007bff; }

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.category-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #2c3e50; }
.category-card p { color: #666; line-height: 1.6; }

/* Category carousel styles */
#cat-grid.cat-row { position: relative; padding: 10px 38px; }
#cat-grid .cat-viewport { overflow: hidden; width: 100%; }
#cat-grid .cat-track { display: flex; gap: 12px; align-items: stretch; flex-wrap: nowrap; transition: transform .3s ease; }
#cat-grid .cat { flex: 0 0 240px; min-width: 240px; display:flex; flex-direction:column; background:#fff; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; text-decoration:none; color:inherit; }
#cat-grid .cat .img{height:120px; overflow:hidden; background:#f9fafb}
#cat-grid .cat .img img{width:100%; height:100%; object-fit:cover}
#cat-grid .cat .b{padding:10px}
#cat-grid .cat h3{font-size:1.2rem}
#cat-grid .cat-arrow{position:absolute; top:50%; transform:translateY(-50%); width:34px; height:34px; border-radius:50%; border:1px solid var(--line,#e5e7eb); background:rgba(0,0,0,.5); color:#fff; display:grid; place-items:center; cursor:pointer; -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); z-index:2}
#cat-grid .cat-arrow.left{left:8px}
#cat-grid .cat-arrow.right{right:8px}
@media (max-width: 768px){
  #cat-grid .cat{flex-basis: 80%; min-width: 80%;}
}

/* Products Section */
.products { padding: 5rem 0; background: #f8f9fa; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 1.5rem; }

.product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.product-image { width: 100%; height: 250px; object-fit: cover; background: #fff; }
.product-info { padding: 1.5rem; }
.product-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; color: #2c3e50; }
.product-description { color: #666; margin-bottom: 1rem; line-height: 1.5; }
.product-price { font-size: 1.5rem; font-weight: 700; color: #28a745; margin-bottom: 1rem; }
.product-actions { display: flex; gap: 1rem; }
.product-actions .btn { flex: 1; text-align: center; }

/* Trending Section */
.trending { padding: 5rem 0; background: white; }

.trending-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }

.trending-item { background: white; border-radius: 10px; padding: 1.5rem; box-shadow: 0 3px 10px rgba(0,0,0,0.08); transition: all 0.3s ease; border-left: 4px solid #007bff; }
.trending-item:hover { transform: translateX(5px); box-shadow: 0 5px 20px rgba(0,0,0,0.12); }

/* Featured Section */
.featured { padding: 5rem 0; background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; text-align: center; }
.featured h2 { font-size: 2.5rem; margin-bottom: 2rem; }
.featured p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }

/* Mosaic Section */
.mosaic { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.mosaic-item { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.mosaic-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* Music Section */
/* Fixed Music Therapy section with stronger yellow and musical notes background */
.music { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 2rem; 
  align-items: center; 
  background: #ffcc00; /* stronger yellow */
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(0,0,0,0.08) 1px, transparent 1px),
    radial-gradient(circle at 60% 30%, rgba(0,0,0,0.08) 1px, transparent 1px),
    radial-gradient(circle at 35% 70%, rgba(0,0,0,0.08) 1px, transparent 1px),
    radial-gradient(circle at 85% 80%, rgba(0,0,0,0.08) 1px, transparent 1px),
    radial-gradient(circle at 10% 80%, rgba(0,0,0,0.08) 1px, transparent 1px),
    radial-gradient(circle at 70% 15%, rgba(0,0,0,0.08) 1px, transparent 1px);
  background-size: 80px 80px, 120px 120px, 90px 90px, 100px 100px, 110px 110px, 75px 75px;
  color: #111827; 
  padding: 3rem; 
  border-radius: 12px; 
  margin: 2rem 0; 
  position: relative;
}

.music::before {
  content: "♪ ♫ ♪ ♫ ♪";
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.2rem;
  color: rgba(0,0,0,0.15);
  font-weight: 300;
}

.music::after {
  content: "♬ ♪ ♫ ♬";
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 1rem;
  color: rgba(0,0,0,0.12);
  font-weight: 300;
}
.music .lg { border-radius: 12px; overflow: hidden; height: 300px; }
.music .lg img { width: 100%; height: 100%; object-fit: cover; }
.music .badge { display: inline-block; background: rgba(17, 24, 39, 0.1); color: #111827; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.8rem; margin-bottom: 1rem; backdrop-filter: blur(10px); }
.music h2 { font-size: 2rem; margin: 8px 0 6px; color: #111827; }
.music .note { opacity: 0.8; line-height: 1.5; color: #374151; }

/* Utility Classes */
.note { color: #666; font-size: 0.9rem; font-style: italic; }
.badge { display: inline-block; background: #007bff; color: white; padding: 0.3rem 0.8rem; border-radius: 15px; font-size: 0.8rem; font-weight: 500; }

/* Footer */
footer { background: #2c3e50; color: white; padding: 3rem 0 1rem; text-align: center; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { margin-bottom: 1rem; color: #ecf0f1; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a { color: #bdc3c7; text-decoration: none; transition: color 0.3s ease; }
.footer-section ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid #34495e; padding-top: 1rem; color: #bdc3c7; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero { height: 38vh; /* keep slightly smaller on tablets */ min-height: 280px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.05rem; }
    .hero .ctas { flex-direction: column; align-items: center; }
    .sec-h { flex-direction: column; gap: 1rem; text-align: center; }
    .sec-h h2 { font-size: 2rem; }
    .grid.cols4, .grid.cols3, .grid.cols2 { grid-template-columns: 1fr; }
    .rail { gap: 1rem; }
    .music { grid-template-columns: 1fr; text-align: center; }
    .music .lg { height: 200px; }
}

@media (max-width: 480px) {
    .hero { height: 36vh; min-height: 260px; }
    .hero h1 { font-size: 2rem; }
    .hero .c { padding: 0 1rem; }
    .section { padding: 2rem 0; }
    .sec-h h2 { font-size: 1.5rem; }
    .music { padding: 2rem; margin: 1rem 0; }
    .container { padding: 0 15px; }
}

/* Home mix & match and insights, aligned to blogs + medical UI brand */
/* Utilities */
:root{ --ink:#111827; --muted:#6b7280; --line:#e5e7eb; --card:#fff; --text-primary:#111827; --primary-gradient: linear-gradient(135deg,#f59e0b,#b45309); }

.vlist{display:flex;flex-direction:column;gap:12px}
.vlist .hitem{display:grid;grid-template-columns:160px 1fr;gap:12px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:visible}
.vlist .hitem img{width:100%;height:120px;object-fit:cover}
.vlist .hitem .t{padding:10px}
.vlist .hitem .actions{display:flex;gap:8px;margin-top:6px}

/* Video news grid (2x2) under items 2–7 */
.vgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:4px}
.vnews{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;text-decoration:none;color:inherit}
.vnews img,.vnews video{width:100%;height:140px;object-fit:cover;display:block}
.vnews .b{padding:10px 12px}
.vnews .b h4{margin:0;font-size:1rem;font-weight:700}

.mixgrid{display:grid;grid-template-columns:repeat(3, 1fr);gap:16px}
.mixgrid .card{background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.mixgrid .card.big .img{height:260px}
.mixgrid .card .img img,.mixgrid .card .img video{width:100%;height:100%;object-fit:contain !important; display: block; background: #fff; }
.mixgrid .card .b{padding:10px 12px}
.mixgrid .grid.cols1{display:grid;grid-template-columns:1fr;gap:16px}
.mixgrid .card.tall .img{height:100%}
/* Premium layout spans and overflow fix */
.mixgrid .card.big { grid-column: span 2; }
.mixgrid .card.tall { grid-row: span 2; }
.mixgrid > * { min-width: 0; }
#premium-col1, #premium-col2 { min-width: 0; }

/* Insights grid placement */
#ins-hero{grid-area: hero}
#vlist-left{grid-area: left;}
#vlist-left .hitem{align-items:flex-start}
/* right column is a nested grid */
.ins-right{grid-area: right; display:grid; grid-template-rows:auto auto 1fr; gap:12px; align-items:start}

/* Constrain Guides & Insights hero card so it doesn't expand full page */
#ins-hero { background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; min-height:260px; }
#ins-hero img, #ins-hero video, #ins-hero iframe { width:100% !important; height:auto !important; aspect-ratio:16 / 9 !important; max-height:220px !important; object-fit:cover !important; display:block !important; }
/* Safety: if a .hero component is injected inside #ins-hero, neutralize its viewport sizing */
#ins-hero .hero { position: static !important; height:auto !important; min-height:0 !important; box-shadow:none !important; border-radius:0 !important; }
#ins-hero .hero video { width:100% !important; height:auto !important; aspect-ratio:16 / 9 !important; object-fit:cover !important; }
.ins-video{height:100%;}
.ins-video video{width:100%;height:100%;object-fit:cover;display:block}
.ins-video .pane{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;height:100%}
.ins-video .pane video{width:100%;height:100%;object-fit:cover;display:block}
.ins-video .pane .c{padding:10px 12px}
.ins-feat-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ins-feat-h h3{margin:0;font-size:1.1rem}
.ins-grid #feat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
/* Define explicit grid areas to ensure left list appears below hero */
.ins-grid{display:grid;grid-template-columns:1.2fr 1fr;grid-template-areas:"hero right" "left right";gap:16px;margin-top:12px;align-items:start}
@media(max-width:980px){
  .ins-grid{grid-template-columns:1fr;grid-template-areas:"hero" "left" "right"}
  .ins-right{grid-column:auto}
  #ins-hero,#vlist,#vlist-left,.ins-video,.ins-feat-h,#feat-grid{grid-column:auto;grid-row:auto;height:auto}
  .ins-video .pane video{height:120px}
}
/* Stronger override: ensure 2-column not overridden by later rules */
.ins-grid { display:grid !important; grid-template-columns: 1.2fr 1fr !important; grid-template-areas: "hero right" "left right" !important; gap:16px !important; align-items:start !important; }
@media(max-width: 768px){
  .ins-grid { grid-template-columns:1fr !important; grid-template-areas:"hero" "left" "right" !important; }
}
.tags{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 6px}
.tag{font-size:12px;background:#eef2ff;color:#3730a3;border-radius:999px;padding:4px 8px}

/* Blog video grid: make the first row cards 16:9 */
#vlist-left .vgrid .vnews:nth-child(-n+2) img,
#vlist-left .vgrid .vnews:nth-child(-n+2) video {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  display: block !important;
  max-height: 220px !important; /* limit so titles remain visible */
}
#vlist-left .vgrid .vnews:nth-child(-n+2) { min-height: 260px !important; }

/* Buttons and cards */
.card .name { font-weight:700; font-size:14px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.card .actions { display:flex; gap:8px; margin-top:8px; }
.btn { display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:10px; cursor:pointer; border:1px solid var(--border, #e5e7eb); background:#fff; color:#111827; font-weight:700; text-decoration:none; transition: all .15s ease; }
.btn:hover { filter: brightness(0.98); box-shadow: 0 2px 8px rgba(0,0,0,0.08); transform: translateY(-1px); }
.btn.primary, .btn-primary { background: var(--brand, #ffb823); color:#fff; border-color: var(--brand, #ffb823); }
.btn.outline, .btn-outline { background:#fff; color: var(--brand, #ffb823); border-color: var(--brand, #ffb823); }
.btn.outline:hover, .btn-outline:hover { background: rgba(255,184,35,0.08); }

/* Mosaic tiles used in home */
.mos { display:flex; flex-direction:column; background:#fff; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; }
.mos.big { grid-row: span 2; }
.mos img, .mos video { width:100%; height:180px; object-fit:cover; }
.mos .b { padding:10px 12px; }

/* Trend rail prefers compact card */
#trend-rail { scroll-snap-type: x mandatory; }
#trend-rail .card { scroll-snap-align: start; }

/* OTT final pass: contain rails, light grey cards, first row horizontal, second row ~4.3 cards with 4:3 media */
#ott-rails { box-sizing: border-box; width: 800px; max-width: 800px; margin: 0 auto; }
#ott-rails .ott-row { position: relative !important; padding: 10px 38px !important; }
#ott-rails .ott-viewport { overflow: hidden !important; width: 100% !important; }
#ott-rails .ott-track { display: flex !important; gap: 12px !important; align-items: stretch !important; flex-wrap: nowrap !important; }

/* Neutral card styling */
#ott-rails .ott-row .ott-card {
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
#ott-rails .ott-row .ott-card .t,
#ott-rails .ott-row .ott-card .b,
#ott-rails .ott-row .ott-card .img,
#ott-rails .ott-row .ott-card .media,
#ott-rails .ott-row .ott-card .thumb { background: #f3f4f6 !important; }
#ott-rails .ott-row .ott-card .detail {
  background: linear-gradient(180deg, rgba(243,244,246,0.0), rgba(243,244,246,0.85)) !important;
  color: #111 !important;
}
#ott-rails .ott-row .ott-card .detail .dur { color: #333 !important; }
#ott-rails .ott-row .ott-card .b h4 { color: #111 !important; }
#ott-rails .ott-row .ott-card .b .note { color: #444 !important; }
@media (max-width: 768px) {
  .ott-card{width:220px}
  .ott-card video,.ott-card img{height:130px}
  .ott-card iframe{height:130px}
}

/* Ensure YouTube iframe sizing in OTT cards */
.ott-card iframe{width:100%;height:160px;display:block;background:#000;border:0}

/* Brand styling for OTT cards */
.ott-row{border-color: var(--brand,#ffb823)}
.ott-arrow{border-color: var(--brand,#ffb823)}
.ott-arrow:hover{background: rgba(255,184,35,0.18); color:#111}
.ott-card{border-color: var(--brand,#ffb823)}
.ott-card .b h4{color:#fff}
.ott-card .b .note{color:#ffb823}
.ott-card .detail{
  position:absolute;left:0;bottom:0;width:100%;
  display:flex;justify-content:space-between;align-items:center;
  padding:6px 10px;background:linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.55));
  color:#fff;font-size:12px
}
.ott-card .detail .dur{display:inline-flex;align-items:center;gap:6px;color:#ffb823}
.ott-card .detail .title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Improve contrast for text on yellow cards in Health Video Blogs */
#ott-rails .ott-card{ background: #f3f4f6 !important; }
#ott-rails .ott-card .b h4{ color:#111 !important; }
#ott-rails .ott-card .b .note{ color:#444 !important; }
#ott-rails .ott-card .detail{ color:#111 !important; }
#ott-rails .ott-card .detail .dur{ color:#333 !important; }
.ott-arrow{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:rgba(0,0,0,.5);color:#fff;display:grid;place-items:center;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:2}
.ott-arrow:hover{background:rgba(0,0,0,.7)}
.ott-arrow.left{left:8px}
.ott-arrow.right{right:8px}

/* Strong overrides to ensure grey background appears on all video cards */
#ott-rails .ott-card { background: #f3f4f6 !important; }
#ott-rails .ott-card iframe { background: #f3f4f6 !important; }
#ott-rails .ott-card video { background: #f3f4f6 !important; }
#ott-rails .ott-card img { background: #f3f4f6 !important; }

/* Restore visible OTT cards with explicit sizing */
#ott-rails .ott-track .ott-card { display: block !important; position: relative !important; flex: 0 0 240px !important; min-width: 240px !important; }
#ott-rails #ott-track-1 { display: flex !important; gap: 12px !important; }
#ott-rails #ott-track-1 .ott-card { flex: 0 0 calc((100% - 24px) / 3) !important; min-width: calc((100% - 24px) / 3) !important; height: 340px !important; }
#ott-rails #ott-track-1 .ott-card iframe,
#ott-rails #ott-track-1 .ott-card video,
#ott-rails #ott-track-1 .ott-card img {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  max-height: 220px !important; /* slightly increased to better fill 16:9 */
  object-fit: cover !important;
  display: block !important;
}
#ott-rails #ott-track-1 .ott-viewport { min-height: 360px !important; }

/* Second row 9:16 portrait layout with increased height */
#ott-rails #ott-track-2 .ott-card { flex: 0 0 calc((100% - 36px) / 4) !important; min-width: calc((100% - 36px) / 4) !important; height: 420px !important; }
#ott-rails #ott-track-2 .ott-card iframe,
#ott-rails #ott-track-2 .ott-card video,
#ott-rails #ott-track-2 .ott-card img {
  width: 100% !important;
  aspect-ratio: 9 / 16 !important; /* display 4:3 videos in second row */
  height: auto !important;
  max-height: 360px !important;
  object-fit: cover !important;
  display: block !important;
  background: #f3f4f6 !important;
}
#ott-rails #ott-track-2 .ott-viewport { min-height: 440px !important; overflow: hidden !important; }

/* Hero-specific mini product title styling */
.hero .prod .pt { font-weight:700; color:#111827; }

/* Responsive refinements */
@media(max-width: 980px){
  .mixgrid{grid-template-columns:1fr;}
  .mixgrid .card.big .img{height:200px}
  .vlist .hitem{grid-template-columns:120px 1fr}
  .vgrid{grid-template-columns:1fr}
  .vnews img,.vnews video{height:120px}
}
/* Desktop enforcement: ensure 4-column grid on wide screens */
@media(min-width: 981px){
  .mixgrid{grid-template-columns:repeat(3, 1fr) !important; grid-auto-flow: dense;}
}

/* Home page button styles aligned with Product Detail branding */
.btn.outline { background: #fff; color: var(--brand, #ffb823); border: 1px solid var(--brand, #ffb823); }
.btn.outline:hover { background: rgba(255,184,35,0.08); }

/* Floating Shopping Cart Panel */
.cart-panel {
  position: fixed;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 320px;
  max-height: 80vh;
  overflow: auto;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  z-index: 10000;
}
.cart-panel.min { width: 56px; height: 56px; padding: 0; overflow: hidden; border-radius: 28px; display: grid; place-items: center; }
.cart-panel .cart-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; }
.cart-panel .cart-header .title { font-weight: 700; color: #111827; font-size: 14px; }
.cart-panel .cart-header .toggle { border: none; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color:#374151; }
.cart-panel .cart-body { padding: 10px 12px; }
.cart-panel .cart-items .row { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:6px 0; border-bottom:1px dashed #e5e7eb; }
.cart-panel .cart-items .name { flex: 1; color:#111827; font-size: 14px; }
.cart-panel .cart-items .qty { color:#6b7280; font-size: 12px; }
.cart-panel .cart-items .price { color:#111827; font-weight:600; font-size: 14px; }
.cart-panel .cart-summary { margin-top: 8px; display:flex; justify-content:space-between; align-items:center; }
.cart-panel .cart-summary .total { font-weight:700; }
.cart-panel .cart-summary .advice { color:#374151; font-size: 12px; }

/* Cart panel: narrower width and smaller text */
.cart-panel { width: 240px !important; }
.cart-panel .cart-header { padding: 8px 10px !important; }
.cart-panel .cart-header .title { font-size: 14px !important; }
.cart-panel .cart-header .toggle { font-size: 18px !important; }
.cart-panel .cart-body { padding: 8px 10px !important; }
.cart-panel .cart-items .name { font-size: 12px !important; }
.cart-panel .cart-items .qty { font-size: 11px !important; }
.cart-panel .cart-items .price { font-size: 12px !important; }
.cart-panel .cart-summary .total { font-size: 13px !important; }
.cart-panel .cart-summary .advice { font-size: 11px !important; }

/* Tighten spacing around Premium Showcase to sit closer to top video */
.sec-h h2 { font-size: 1.35rem !important; line-height: 1.25 !important; }
.hero + .section .sec-h { margin-top: 0 !important; padding-top: 0 !important; }
.mixgrid { margin-top: 0 !important; }

/* Ensure Guides & Insights grid maintains spacing for clarity */
.ins-grid { margin-top: 12px !important; }

@media(max-width:980px){
  .ins-grid{grid-template-columns:1fr;grid-template-areas:"hero" "left" "right"}
  .ins-right{grid-column:auto}
  #ins-hero,#vlist,#vlist-left,.ins-video,.ins-feat-h,#feat-grid{grid-column:auto;grid-row:auto;height:auto}
  .ins-video .pane video{height:120px}
}
.tags{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 6px}
.tag{font-size:12px;background:#eef2ff;color:#3730a3;border-radius:999px;padding:4px 8px}

/* Blog video grid: make the first row cards 16:9 */
#vlist-left .vgrid .vnews:nth-child(-n+2) img,
#vlist-left .vgrid .vnews:nth-child(-n+2) video {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  display: block !important;
  max-height: 220px !important; /* limit so titles remain visible */
}
#vlist-left .vgrid .vnews:nth-child(-n+2) { min-height: 260px !important; }

/* Buttons and cards */
.card .name { font-weight:700; font-size:14px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.card .actions { display:flex; gap:8px; margin-top:8px; }
.btn { display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:10px; cursor:pointer; border:1px solid var(--border, #e5e7eb); background:#fff; color:#111827; font-weight:700; text-decoration:none; transition: all .15s ease; }
.btn:hover { filter: brightness(0.98); box-shadow: 0 2px 8px rgba(0,0,0,0.08); transform: translateY(-1px); }
.btn.primary, .btn-primary { background: var(--brand, #ffb823); color:#fff; border-color: var(--brand, #ffb823); }
.btn.outline, .btn-outline { background:#fff; color: var(--brand, #ffb823); border-color: var(--brand, #ffb823); }
.btn.outline:hover, .btn-outline:hover { background: rgba(255,184,35,0.08); }

/* Mosaic tiles used in home */
.mos { display:flex; flex-direction:column; background:#fff; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; }
.mos.big { grid-row: span 2; }
.mos img, .mos video { width:100%; height:180px; object-fit:cover; }
.mos .b { padding:10px 12px; }

/* Trend rail prefers compact card */
#trend-rail { scroll-snap-type: x mandatory; }
#trend-rail .card { scroll-snap-align: start; }

/* OTT final pass: contain rails, light grey cards, first row horizontal, second row ~4.3 cards with 4:3 media */
#ott-rails { box-sizing: border-box; }
#ott-rails .ott-row { position: relative !important; padding: 10px 38px !important; }
#ott-rails .ott-viewport { overflow: hidden !important; width: 100% !important; }
#ott-rails .ott-track { display: flex !important; gap: 12px !important; align-items: stretch !important; flex-wrap: nowrap !important; }

/* Neutral card styling */
#ott-rails .ott-row .ott-card {
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
#ott-rails .ott-row .ott-card .t,
#ott-rails .ott-row .ott-card .b,
#ott-rails .ott-row .ott-card .img,
#ott-rails .ott-row .ott-card .media,
#ott-rails .ott-row .ott-card .thumb { background: #f3f4f6 !important; }
#ott-rails .ott-row .ott-card .detail {
  background: linear-gradient(180deg, rgba(243,244,246,0.0), rgba(243,244,246,0.85)) !important;
  color: #111 !important;
}
#ott-rails .ott-row .ott-card .detail .dur { color: #333 !important; }
#ott-rails .ott-row .ott-card .b h4 { color: #111 !important; }
#ott-rails .ott-row .ott-card .b .note { color: #444 !important; }
@media (max-width: 768px) {
  .ott-card{width:220px}
  .ott-card video,.ott-card img{height:130px}
  .ott-card iframe{height:130px}
}

/* Ensure YouTube iframe sizing in OTT cards */
.ott-card iframe{width:100%;height:160px;display:block;background:#000;border:0}

/* Brand styling for OTT cards */
.ott-row{border-color: var(--brand,#ffb823)}
.ott-arrow{border-color: var(--brand,#ffb823)}
.ott-arrow:hover{background: rgba(255,184,35,0.18); color:#111}
.ott-card{border-color: var(--brand,#ffb823)}
.ott-card .b h4{color:#fff}
.ott-card .b .note{color:#ffb823}
.ott-card .detail{
  position:absolute;left:0;bottom:0;width:100%;
  display:flex;justify-content:space-between;align-items:center;
  padding:6px 10px;background:linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.55));
  color:#fff;font-size:12px
}
.ott-card .detail .dur{display:inline-flex;align-items:center;gap:6px;color:#ffb823}
.ott-card .detail .title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Improve contrast for text on yellow cards in Health Video Blogs */
#ott-rails .ott-card{ background: #f3f4f6 !important; }
#ott-rails .ott-card .b h4{ color:#111 !important; }
#ott-rails .ott-card .b .note{ color:#444 !important; }
#ott-rails .ott-card .detail{ color:#111 !important; }
#ott-rails .ott-card .detail .dur{ color:#333 !important; }
.ott-arrow{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:rgba(0,0,0,.5);color:#fff;display:grid;place-items:center;cursor:pointer;backdrop-filter:blur(4px);z-index:2}
.ott-arrow:hover{background:rgba(0,0,0,.7)}
.ott-arrow.left{left:8px}
.ott-arrow.right{right:8px}

/* Strong overrides to ensure grey background appears on all video cards */
#ott-rails .ott-card { background: #f3f4f6 !important; }
#ott-rails .ott-card iframe { background: #f3f4f6 !important; }
#ott-rails .ott-card video { background: #f3f4f6 !important; }
#ott-rails .ott-card img { background: #f3f4f6 !important; }

/* Restore visible OTT cards with explicit sizing */
#ott-rails .ott-track .ott-card { display: block !important; position: relative !important; flex: 0 0 240px !important; min-width: 240px !important; }
#ott-rails #ott-track-1 { display: flex !important; gap: 12px !important; }
#ott-rails #ott-track-1 .ott-card { flex: 0 0 calc((100% - 24px) / 3) !important; min-width: calc((100% - 24px) / 3) !important; height: 340px !important; }
#ott-rails #ott-track-1 .ott-card iframe,
#ott-rails #ott-track-1 .ott-card video,
#ott-rails #ott-track-1 .ott-card img {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  max-height: 220px !important; /* slightly increased to better fill 16:9 */
  object-fit: cover !important;
  display: block !important;
}
#ott-rails #ott-track-1 .ott-viewport { min-height: 360px !important; }

/* Second row 9:16 portrait layout with increased height */
#ott-rails #ott-track-2 .ott-card { flex: 0 0 calc((100% - 36px) / 4) !important; min-width: calc((100% - 36px) / 4) !important; height: 420px !important; }
#ott-rails #ott-track-2 .ott-card iframe,
#ott-rails #ott-track-2 .ott-card video,
#ott-rails #ott-track-2 .ott-card img {
  width: 100% !important;
  aspect-ratio: 9 / 16 !important; /* display 4:3 videos in second row */
  height: auto !important;
  max-height: 360px !important;
  object-fit: cover !important;
  display: block !important;
  background: #f3f4f6 !important;
}
#ott-rails #ott-track-2 .ott-viewport { min-height: 440px !important; overflow: hidden !important; }

/* Hero-specific mini product title styling */
.hero .prod .pt { font-weight:700; color:#111827; }

/* Responsive refinements */
@media(max-width: 980px){
  .mixgrid{grid-template-columns:1fr;}
  .mixgrid .card.big .img{height:200px}
  .vlist .hitem{grid-template-columns:120px 1fr}
  .vgrid{grid-template-columns:1fr}
  .vnews img,.vnews video{height:120px}
}

/* Home page button styles aligned with Product Detail branding */
.btn.outline { background: #fff; color: var(--brand, #ffb823); border: 1px solid var(--brand, #ffb823); }
.btn.outline:hover { background: rgba(255,184,35,0.08); }

/* Floating Shopping Cart Panel */
.cart-panel {
  position: fixed;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 320px;
  max-height: 80vh;
  overflow: auto;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  z-index: 10000;
}
.cart-panel.min { width: 56px; height: 56px; padding: 0; overflow: hidden; border-radius: 28px; display: grid; place-items: center; }
.cart-panel .cart-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; }
.cart-panel .cart-header .title { font-weight: 700; color: #111827; font-size: 14px; }
.cart-panel .cart-header .toggle { border: none; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color:#374151; }
.cart-panel .cart-body { padding: 10px 12px; }
.cart-panel .cart-items .row { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:6px 0; border-bottom:1px dashed #e5e7eb; }
.cart-panel .cart-items .name { flex: 1; color:#111827; font-size: 14px; }
.cart-panel .cart-items .qty { color:#6b7280; font-size: 12px; }
.cart-panel .cart-items .price { color:#111827; font-weight:600; font-size: 14px; }
.cart-panel .cart-summary { margin-top: 8px; display:flex; justify-content:space-between; align-items:center; }
.cart-panel .cart-summary .total { font-weight:700; }
.cart-panel .cart-summary .advice { color:#374151; font-size: 12px; }

/* Cart panel: narrower width and smaller text */
.cart-panel { width: 240px !important; }
.cart-panel .cart-header { padding: 8px 10px !important; }
.cart-panel .cart-header .title { font-size: 14px !important; }
.cart-panel .cart-header .toggle { font-size: 18px !important; }
.cart-panel .cart-body { padding: 8px 10px !important; }
.cart-panel .cart-items .name { font-size: 12px !important; }
.cart-panel .cart-items .qty { font-size: 11px !important; }
.cart-panel .cart-items .price { font-size: 12px !important; }
.cart-panel .cart-summary .total { font-size: 13px !important; }
.cart-panel .cart-summary .advice { font-size: 11px !important; }

/* Tighten spacing and smaller category headings; Go to Cart button */
.hero + .section { margin-top: 0 !important; padding-top: 0 !important; }
 .hero + .section .sec-h { margin-top: 0 !important; padding-top: 0 !important; }
 .hero + .section .sec-h h2 { margin-top: 0 !important; }
 .sec-h h2 { font-size: 1.35rem !important; line-height: 1.25 !important; }
 /* Remove gaps and allow top-aligned hero */
 body.home #site-header + main { padding-top: 0 !important; }
 .home #site-header + main .section:first-of-type { padding-top: 0 !important; padding-bottom: 0 !important; }
 .home .hero { margin-top: 0 !important; border-radius: 16px !important; }
 .home #site-header .hero { display: block !important; border-radius: 16px !important; box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important; }
 /* Remove overlay tint specifically on home hero */
 .home .hero .overlay { display: none !important; }
 /* Home hero: render related products inside flow, not overlapping */
 .home .hero .rel { display: none !important; }
.home .hero .overlay { display: none !important; }
 .home .hero .c { padding-bottom: 1.5rem !important; }
 /* Life Stage & Goals: enforce 4 items per row on desktop, 1 per row on mobile */
 #cat-grid.grid.cols4 { grid-template-columns: repeat(4, 1fr); }
 @media (max-width: 768px) { #cat-grid.grid.cols4 { grid-template-columns: 1fr; } }
 /* Slightly larger headline for each category card */
 #cat-grid .cat h3 { font-size: 1.2rem; }
 
.cart-summary .goto-cart { display:inline-block; margin-left: 8px; padding: 4px 8px; border-radius: 6px; background:#111827; color:#fff; text-decoration:none; font-size: 12px; }
.cart-summary .goto-cart:hover { background:#0f172a; }
/* Premium Showcase right panel overrides */
#premium-right{display:flex;flex-direction:column}
#premium-right .img{flex:1 1 auto;height:auto}
#premium-right video{width:100%;height:auto !important;aspect-ratio:9 / 16 !important;object-fit:contain !important;display:block;background:#fff}
#premium-right .b{border-top:1px solid var(--line);padding:10px 12px}
#premium-right .actions{margin-top:8px}
@media (min-width: 981px){
  .mixgrid{grid-template-columns:1fr 1.4fr 1fr !important;}
  #premium-hero{grid-column:1;grid-row:1}
  #premium-grid{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(2, minmax(0,1fr));gap:16px}
  #premium-right{grid-column:3;grid-row:1}
}
@media (max-width: 980px){
  #premium-grid{grid-template-columns:1fr}
}
.vlist .hitem .actions{display:flex;gap:8px;margin-top:6px}

/* Mosaic tiles used in home */
.mos { display:flex; flex-direction:column; background:#fff; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; }
.mos.big { grid-row: span 2; }
.mos img, .mos video { width:100%; height:180px; object-fit:cover; }
.mos .b { padding:10px 12px; }

/* Trend rail prefers compact card */
#trend-rail { scroll-snap-type: x mandatory; }
#trend-rail .card { scroll-snap-align: start; }

/* OTT final pass: contain rails, light grey cards, first row horizontal, second row ~4.3 cards with 4:3 media */
#ott-rails { box-sizing: border-box; }
#ott-rails .ott-row { position: relative !important; padding: 10px 38px !important; }
#ott-rails .ott-viewport { overflow: hidden !important; width: 100% !important; }
#ott-rails .ott-track { display: flex !important; gap: 12px !important; align-items: stretch !important; flex-wrap: nowrap !important; }

/* Neutral card styling */
#ott-rails .ott-row .ott-card {
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
#ott-rails .ott-row .ott-card .t,
#ott-rails .ott-row .ott-card .b,
#ott-rails .ott-row .ott-card .img,
#ott-rails .ott-row .ott-card .media,
#ott-rails .ott-row .ott-card .thumb { background: #f3f4f6 !important; }
#ott-rails .ott-row .ott-card .detail {
  background: linear-gradient(180deg, rgba(243,244,246,0.0), rgba(243,244,246,0.85)) !important;
  color: #111 !important;
}
#ott-rails .ott-row .ott-card .detail .dur { color: #333 !important; }
#ott-rails .ott-row .ott-card .b h4 { color: #111 !important; }
#ott-rails .ott-row .ott-card .b .note { color: #444 !important; }
@media (max-width: 768px) {
  .ott-card{width:220px}
  .ott-card video,.ott-card img{height:130px}
  .ott-card iframe{height:130px}
}

/* Ensure YouTube iframe sizing in OTT cards */
.ott-card iframe{width:100%;height:160px;display:block;background:#000;border:0}

/* Brand styling for OTT cards */
.ott-row{border-color: var(--brand,#ffb823)}
.ott-arrow{border-color: var(--brand,#ffb823)}
.ott-arrow:hover{background: rgba(255,184,35,0.18); color:#111}
.ott-card{border-color: var(--brand,#ffb823)}
.ott-card .b h4{color:#fff}
.ott-card .b .note{color:#ffb823}
.ott-card .detail{
  position:absolute;left:0;bottom:0;width:100%;
  display:flex;justify-content:space-between;align-items:center;
  padding:6px 10px;background:linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.55));
  color:#fff;font-size:12px
}
.ott-card .detail .dur{display:inline-flex;align-items:center;gap:6px;color:#ffb823}
.ott-card .detail .title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Improve contrast for text on yellow cards in Health Video Blogs */
#ott-rails .ott-card{ background: #f3f4f6 !important; }
#ott-rails .ott-card .b h4{ color:#111 !important; }
#ott-rails .ott-card .b .note{ color:#444 !important; }
#ott-rails .ott-card .detail{ color:#111 !important; }
#ott-rails .ott-card .detail .dur{ color:#333 !important; }
.ott-arrow{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:rgba(0,0,0,.5);color:#fff;display:grid;place-items:center;cursor:pointer;backdrop-filter:blur(4px);z-index:2}
.ott-arrow:hover{background:rgba(0,0,0,.7)}
.ott-arrow.left{left:8px}
.ott-arrow.right{right:8px}

/* Strong overrides to ensure grey background appears on all video cards */
#ott-rails .ott-card { background: #f3f4f6 !important; }
#ott-rails .ott-card iframe { background: #f3f4f6 !important; }
#ott-rails .ott-card video { background: #f3f4f6 !important; }
#ott-rails .ott-card img { background: #f3f4f6 !important; }

/* Restore visible OTT cards with explicit sizing */
#ott-rails .ott-track .ott-card { display: block !important; position: relative !important; flex: 0 0 240px !important; min-width: 240px !important; }
#ott-rails #ott-track-1 { display: flex !important; gap: 12px !important; }
#ott-rails #ott-track-1 .ott-card { flex: 0 0 calc((100% - 24px) / 3) !important; min-width: calc((100% - 24px) / 3) !important; height: 340px !important; }
#ott-rails #ott-track-1 .ott-card iframe,
#ott-rails #ott-track-1 .ott-card video,
#ott-rails #ott-track-1 .ott-card img {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  max-height: 220px !important; /* slightly increased to better fill 16:9 */
  object-fit: cover !important;
  display: block !important;
}
#ott-rails #ott-track-1 .ott-viewport { min-height: 360px !important; }

/* Second row 9:16 portrait layout with increased height */
#ott-rails #ott-track-2 .ott-card { flex: 0 0 calc((100% - 36px) / 4) !important; min-width: calc((100% - 36px) / 4) !important; height: 420px !important; }
#ott-rails #ott-track-2 .ott-card iframe,
#ott-rails #ott-track-2 .ott-card video,
#ott-rails #ott-track-2 .ott-card img {
  width: 100% !important;
  aspect-ratio: 9 / 16 !important; /* display 4:3 videos in second row */
  height: auto !important;
  max-height: 360px !important;
  object-fit: cover !important;
  display: block !important;
  background: #f3f4f6 !important;
}
#ott-rails #ott-track-2 .ott-viewport { min-height: 440px !important; overflow: hidden !important; }

/* Hero-specific mini product title styling */
.hero .prod .pt { font-weight:700; color:#111827; }

/* Responsive refinements */
@media(max-width: 980px){
  .mixgrid{grid-template-columns:1fr;}
  .mixgrid .card.big .img{height:200px}
  .vlist .hitem{grid-template-columns:120px 1fr}
  .vgrid{grid-template-columns:1fr}
  .vnews img,.vnews video{height:120px}
}

/* Home page button styles aligned with Product Detail branding */
.btn.outline { background: #fff; color: var(--brand, #ffb823); border: 1px solid var(--brand, #ffb823); }
.btn.outline:hover { background: rgba(255,184,35,0.08); }

/* Floating Shopping Cart Panel */
.cart-panel {
  position: fixed;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 320px;
  max-height: 80vh;
  overflow: auto;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  z-index: 10000;
}
.cart-panel.min { width: 56px; height: 56px; padding: 0; overflow: hidden; border-radius: 28px; display: grid; place-items: center; }
.cart-panel .cart-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; }
.cart-panel .cart-header .title { font-weight: 700; color: #111827; font-size: 14px; }
.cart-panel .cart-header .toggle { border: none; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color:#374151; }
.cart-panel .cart-body { padding: 10px 12px; }
.cart-panel .cart-items .row { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:6px 0; border-bottom:1px dashed #e5e7eb; }
.cart-panel .cart-items .name { flex: 1; color:#111827; font-size: 14px; }
.cart-panel .cart-items .qty { color:#6b7280; font-size: 12px; }
.cart-panel .cart-items .price { color:#111827; font-weight:600; font-size: 14px; }
.cart-panel .cart-summary { margin-top: 8px; display:flex; justify-content:space-between; align-items:center; }
.cart-panel .cart-summary .total { font-weight:700; }
.cart-panel .cart-summary .advice { color:#374151; font-size: 12px; }

/* Cart panel: narrower width and smaller text */
.cart-panel { width: 240px !important; }
.cart-panel .cart-header { padding: 8px 10px !important; }
.cart-panel .cart-header .title { font-size: 14px !important; }
.cart-panel .cart-header .toggle { font-size: 18px !important; }
.cart-panel .cart-body { padding: 8px 10px !important; }
.cart-panel .cart-items .name { font-size: 12px !important; }
.cart-panel .cart-items .qty { font-size: 11px !important; }
.cart-panel .cart-items .price { font-size: 12px !important; }
.cart-panel .cart-summary .total { font-size: 13px !important; }
.cart-panel .cart-summary .advice { font-size: 11px !important; }

/* Tighten spacing and smaller category headings; Go to Cart button */
.hero + .section { margin-top: 0 !important; padding-top: 0 !important; }
 .hero + .section .sec-h { margin-top: 0 !important; padding-top: 0 !important; }
 .hero + .section .sec-h h2 { margin-top: 0 !important; }
 .sec-h h2 { font-size: 1.35rem !important; line-height: 1.25 !important; }
 /* Remove gaps and allow top-aligned hero */
body.home #site-header + main { padding-top: 0 !important; }
 .home #site-header + main .section:first-of-type { padding-top: 0 !important; padding-bottom: 0 !important; }
 .home .hero { margin-top: 0 !important; border-radius: 0 !important; }
 .home #site-header .hero { display: block !important; border-radius: 0 !important; box-shadow: none !important; }
 
.cart-summary .goto-cart { display:inline-block; margin-left: 8px; padding: 4px 8px; border-radius: 6px; background:#111827; color:#fff; text-decoration:none; font-size: 12px; }
.cart-summary .goto-cart:hover { background:#0f172a; }
#premium-hero .img{ width:100%; height:auto !important; }
#premium-hero video{ width:100% !important; height:auto !important; aspect-ratio: 9 / 16 !important; object-fit: contain !important; display:block; background:#fff; }
#premium-right .b{border-top:1px solid var(--line);padding:10px 12px}
#premium-right .actions{margin-top:8px}
.vlist .hitem .actions{display:flex;gap:8px;margin-top:6px}

/* Mosaic tiles used in home */
.mos { display:flex; flex-direction:column; background:#fff; border:1px solid #e