/* ================================================================
   Oliviath Single Post — Hero + Content Styling
   Created: 2026-05-28
   ================================================================ */

/* Hide the existing top featured-image block when hero is present */
body.single-post .single-featured-image{display:none !important}
body.single-post header.s-banner-title{display:none !important}

/* === HERO BANNER === */
.ol-hero{position:relative;max-width:1280px;margin:24px auto 32px;border-radius:20px;overflow:hidden;min-height:340px;background:linear-gradient(135deg,#5fb4a8 0%,#4a9d92 60%,#3a8579 100%);box-shadow:0 8px 32px rgba(58,133,121,.15);color:#fff;}
.ol-hero__bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0.55;mix-blend-mode:soft-light;}
.ol-hero__inner{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:40px 56px;gap:24px;min-height:340px;}
.ol-hero__left{flex:1;max-width:60%}
.ol-hero__brand{font-family:'Sarabun','Prompt',serif;font-size:18px;letter-spacing:4px;text-transform:uppercase;opacity:0.95;margin-bottom:8px;}
.ol-hero__brand strong{font-size:24px;font-weight:700;display:block;letter-spacing:2px}
.ol-hero__title{font-family:'Sarabun','Prompt',sans-serif;font-size:34px;font-weight:700;line-height:1.25;color:#fff;margin:14px 0;text-shadow:0 2px 8px rgba(0,0,0,.18);}
.ol-hero__subtitle{font-size:15px;line-height:1.6;opacity:0.94;margin:0;max-width:480px;}
.ol-hero__qr{background:#fff;color:#222;padding:10px;border-radius:14px;width:130px;text-align:center;box-shadow:0 4px 16px rgba(0,0,0,.18);}
.ol-hero__qr img{width:100%;display:block;border-radius:6px}
.ol-hero__qr-label{font-size:11px;margin-top:6px;font-weight:600;color:#333}

/* === BREADCRUMB === */
.ol-breadcrumb{max-width:1280px;margin:0 auto 16px;padding:0 16px;font-size:13px;color:#6b7280;}
.ol-breadcrumb a{color:#6b7280;text-decoration:none}
.ol-breadcrumb a:hover{color:#5fb4a8}
.ol-breadcrumb .sep{margin:0 6px;color:#9ca3af}

/* === ENTRY META === */
.content-single .entry-title{font-size:26px;font-weight:700;color:#1a1a1a;margin-bottom:14px;line-height:1.35;}
.content-single .entry-meta{font-size:13px;color:#6b7280;display:flex;flex-wrap:wrap;gap:14px;margin-bottom:24px;padding-bottom:14px;border-bottom:1px solid #f0f0f0;}

/* === CONTENT BODY === */
.content-single .entry-content{font-family:'Sarabun','Prompt',sans-serif;font-size:16px;line-height:1.75;color:#333;}
.content-single .entry-content h2{font-size:22px;font-weight:700;color:#2a7a6f;margin:32px 0 14px;padding-left:32px;position:relative;}
.content-single .entry-content h2::before{content:"\1F33F";position:absolute;left:0;top:2px;font-size:20px;}
.content-single .entry-content h3{font-size:17px;font-weight:600;color:#1a1a1a;margin:20px 0 8px;}
.content-single .entry-content p{margin:0 0 14px}
.content-single .entry-content a{color:#2a7a6f;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.content-single .entry-content a:hover{color:#1a5a51}

/* === CALLOUT BOX === */
.ol-callout{background:#f0fbf9;border-left:4px solid #5fb4a8;border-radius:8px;padding:16px 20px 16px 56px;margin:24px 0;position:relative;color:#2a4a44;line-height:1.7;}
.ol-callout::before{content:"\1F4A1";position:absolute;left:18px;top:16px;font-size:22px;}
.ol-callout strong{display:block;margin-bottom:6px;color:#1a5a51;font-size:15px}

/* === FAQ ACCORDION === */
.ol-faq{margin:24px 0}
.ol-faq details{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:0;margin-bottom:10px;transition:box-shadow .2s;}
.ol-faq details[open]{box-shadow:0 2px 12px rgba(0,0,0,.06)}
.ol-faq summary{cursor:pointer;padding:14px 18px;font-weight:600;font-size:15px;color:#1a1a1a;list-style:none;display:flex;justify-content:space-between;align-items:center;}
.ol-faq summary::after{content:"\25BE";font-size:14px;color:#5fb4a8;transition:transform .2s}
.ol-faq details[open] summary::after{transform:rotate(180deg)}
.ol-faq summary::-webkit-details-marker{display:none}
.ol-faq details > p,.ol-faq details > div{padding:0 18px 16px;color:#4b5563;line-height:1.7}

/* === BANNER CTA === */
.ol-cta-banner{background:linear-gradient(135deg,#f0fbf9 0%,#e0f5f1 100%);border-radius:14px;padding:24px 28px;margin:32px 0;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;}
.ol-cta-banner__text{flex:1;min-width:260px}
.ol-cta-banner__title{font-size:20px;font-weight:700;color:#1a5a51;margin:0 0 6px}
.ol-cta-banner__sub{font-size:14px;color:#4b5563;margin:0 0 14px}
.ol-cta-banner__line{display:inline-flex;align-items:center;gap:8px;background:#06c755;color:#fff;padding:10px 18px;border-radius:24px;text-decoration:none;font-weight:600;font-size:14px;}
.ol-cta-banner__line:hover{background:#04a346;color:#fff}
.ol-cta-banner__qr{width:120px}
.ol-cta-banner__qr img{width:100%;border-radius:8px}

/* === AUTHOR BOX === */
.entry-author{background:#fafafa;border-radius:12px;padding:18px 20px;margin:32px 0;display:flex;align-items:flex-start;gap:14px;}
.entry-author .pic img{width:56px;height:56px;border-radius:50%}
.entry-author .info .name{font-size:15px;margin:0 0 4px;font-weight:600}
.entry-author .info .desc{font-size:13px;color:#6b7280;line-height:1.5}

/* === SIDEBAR === */
.widget{background:#fff;border-radius:12px;padding:18px 20px;margin-bottom:18px;box-shadow:0 1px 4px rgba(0,0,0,.04);}
.widget-title{font-size:16px;font-weight:700;color:#1a1a1a;margin:0 0 12px;display:flex;align-items:center;gap:8px;}
.widget ul{list-style:none;padding:0;margin:0}
.widget li{padding:6px 0;border-bottom:1px solid #f3f4f6;font-size:14px}
.widget li:last-child{border-bottom:none}
.widget li a{color:#4b5563;text-decoration:none}
.widget li a:hover{color:#5fb4a8}

/* === RELATED POSTS === */
.single-related{padding:32px 0;background:#fafafa;border-radius:16px;margin-top:32px}
.single-related .s-title{font-size:22px;font-weight:700;color:#1a1a1a;text-align:center;margin-bottom:24px}
.single-related .s-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;padding:0 16px}

/* === RESPONSIVE === */
@media(max-width:768px){
.ol-hero{margin:16px 8px 24px;min-height:auto}
.ol-hero__inner{flex-direction:column;text-align:center;padding:24px 20px}
.ol-hero__left{max-width:100%}
.ol-hero__title{font-size:22px}
.ol-hero__qr{width:100px;align-self:center}
.content-single .entry-content h2{font-size:18px;padding-left:28px}
.ol-cta-banner{flex-direction:column;text-align:center}
}

/* === PRODUCT GRID (injected after 1st paragraph) === */
.ol-product-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:8px;
  margin:24px 0 32px;
  padding:0;
}
.ol-product-card{
  display:flex;flex-direction:column;
  background:#fff;
  border:1px solid #f0f0f0;
  border-radius:10px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  transition:transform .2s, box-shadow .2s;
  position:relative;
}
.ol-product-card:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  color:inherit;
}
.ol-product-card__img{
  width:100%;
  aspect-ratio:1/1;
  background-size:cover;
  background-position:center;
  background-color:#f3f4f6;
  background-repeat:no-repeat;
}
.ol-product-card__body{
  padding:8px 10px 10px;
  display:flex;flex-direction:column;
  gap:4px;flex:1;
}
.ol-product-card__title{
  font-size:12px;line-height:1.4;
  font-weight:600;color:#1a1a1a;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0;
}
.ol-product-card__price{
  font-size:13px;
  color:#EE6C4D;
  font-weight:700;
  margin-top:auto;
}
.ol-product-card__price ins{text-decoration:none}
.ol-product-card__price del{
  color:#9ca3af;
  font-weight:400;
  font-size:11px;
  margin-right:4px;
}
.ol-product-card__price .woocommerce-Price-amount{font-size:13px}
@media(min-width:768px){
  .ol-product-grid{
    grid-template-columns:repeat(5, 1fr);
    gap:12px;
  }
  .ol-product-card__title{font-size:13px}
  .ol-product-card__price{font-size:14px}
  .ol-product-card__body{padding:10px 12px 12px}
}
@media(min-width:1024px){
  .ol-product-grid{
    grid-template-columns:repeat(5, 1fr);
    gap:14px;
  }
}

/* === FIX 2026-05-28-v4: breadcrumb 1-line overflow + remove underline on product cards + tighten left whitespace === */

/* Breadcrumb — single line with horizontal scroll/ellipsis */
.ol-breadcrumb{
  white-space:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  display:flex;
  align-items:center;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:0 12px;
}
.ol-breadcrumb::-webkit-scrollbar{display:none}
.ol-breadcrumb > span:last-child{
  text-overflow:ellipsis;
  overflow:hidden;
  min-width:0;
  flex-shrink:1;
}

/* Product cards — NO underline anywhere */
.ol-product-card,
.ol-product-card:hover,
.ol-product-card:focus,
.ol-product-card:visited,
.ol-product-card *,
.entry-content .ol-product-card,
.entry-content .ol-product-card:hover,
.entry-content .ol-product-card *{
  text-decoration:none !important;
  border-bottom:0 !important;
}
.ol-product-card__title,
.ol-product-card__price,
.ol-product-card__price *{
  text-decoration:none !important;
}
.ol-product-card__price del{text-decoration:line-through !important}

/* Tighten left whitespace on mobile */
@media(max-width:768px){
  .s-container,.main-body{padding-left:8px !important;padding-right:8px !important;max-width:100% !important}
  .content-single .entry-content,.entry-content{padding-left:0 !important;padding-right:0 !important;margin-left:0 !important;margin-right:0 !important}
  .ol-product-grid{margin-left:0 !important;margin-right:0 !important;gap:6px}
  .ol-breadcrumb{padding:0 8px;font-size:12px}
  .ol-hero{margin-left:4px;margin-right:4px;border-radius:14px}
}

/* Reduce excessive whitespace on desktop too */
@media(min-width:769px){
  .ol-product-grid{margin-left:0;margin-right:0;max-width:none}
}

/* === FIX v5: Match Hero + Breadcrumb width to content (.s-container = 1170px) === */
.ol-hero{
  max-width:1170px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  margin-top:24px;
  margin-bottom:24px;
}
.ol-breadcrumb{
  max-width:1170px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:0 30px !important;
}
@media(max-width:768px){
  .ol-hero{
    margin-left:8px !important;
    margin-right:8px !important;
    max-width:calc(100% - 16px) !important;
  }
  .ol-breadcrumb{
    padding:0 8px !important;
    max-width:100% !important;
  }
}

/* === CATEGORY CTA BUTTONS (after product grid) === */
.ol-cat-buttons{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
  margin:20px 0 32px;
}
.ol-cat-btn{
  display:flex;align-items:center;justify-content:center;gap:8px;
  background:linear-gradient(135deg,#5fb4a8 0%,#4a9d92 100%);
  color:#fff !important;
  padding:14px 16px;
  border-radius:12px;
  font-weight:700;font-size:15px;
  text-decoration:none !important;
  transition:transform .2s,box-shadow .2s;
  box-shadow:0 2px 8px rgba(58,133,121,.18);
  text-align:center;
}
.ol-cat-btn:hover,.ol-cat-btn:focus{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(58,133,121,.32);
  color:#fff !important;
  text-decoration:none !important;
}
.ol-cat-btn.-wreath{background:linear-gradient(135deg,#EE6C4D 0%,#d44f30 100%);box-shadow:0 2px 8px rgba(238,108,77,.22)}
.ol-cat-btn.-wreath:hover{box-shadow:0 6px 18px rgba(238,108,77,.4)}
.ol-cat-btn.-funeral{background:linear-gradient(135deg,#7b94c4 0%,#5f78a8 100%);box-shadow:0 2px 8px rgba(123,148,196,.22)}
.ol-cat-btn.-funeral:hover{box-shadow:0 6px 18px rgba(123,148,196,.4)}
.ol-cat-btn__icon{font-size:18px;line-height:1}
.ol-cat-btn__label{flex:1;line-height:1.25}
.ol-cat-btn__arrow{font-size:18px;font-weight:400;line-height:1;opacity:.85}
.ol-cat-btn,.ol-cat-btn *,.entry-content .ol-cat-btn{text-decoration:none !important;border-bottom:0 !important}

@media(max-width:768px){
  .ol-cat-buttons{
    grid-template-columns:repeat(3, 1fr);
    gap:6px;
    margin:14px 0 24px;
  }
  .ol-cat-btn{
    flex-direction:column;
    padding:10px 6px;
    font-size:12px;
    border-radius:10px;
    gap:4px;
  }
  .ol-cat-btn__icon{font-size:20px}
  .ol-cat-btn__arrow{display:none}
}

/* === COVER IMAGE (after breadcrumb, full content column width) === */
.ol-cover-img{
  width:100%;
  margin:0 0 20px;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 4px 18px rgba(0,0,0,.08);
  background:#f3f4f6;
  line-height:0;
}
.ol-cover-img img,.ol-cover-img__pic{
  display:block;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  object-fit:cover;
  border-radius:14px;
}
@media(max-width:768px){
  .ol-cover-img{margin:0 0 14px;border-radius:10px}
  .ol-cover-img img{border-radius:10px}
}