/*
Theme Name:   Hello Elementor Child
Theme URI:    https://mylongevityu.com
Description:  Child theme for Hello Elementor — LiveLongevity customizations
Author:       LiveLongevity
Template:     hello-elementor
Version:      1.1.0
*/

/* ══════════════════════════════════════════════════════════════════
   RECIPES ARCHIVE PAGE  (/recipes)
   ══════════════════════════════════════════════════════════════════ */

/* Page title + subtitle */
.ll-recipes-page-header {
    text-align: center;
    padding: 48px 20px 32px;
    background: #fff;
}

.ll-recipes-page-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.ll-recipes-page-header .ll-recipes-subtitle {
    font-size: 15px;
    color: #888;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ── TPG grid wrapper ──────────────────────────────────────────── */
.rt-tpg-container {
    background: #fff;
    padding: 0 20px 48px;
}

/* Individual recipe card */
.rt-tpg-container .rt-holder {
    background: #fff;
    border: 0.5px solid #E5E5E5;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rt-tpg-container .rt-holder:hover {
    border-color: #b0b0b0;
    transform: translateY(-2px);
}

/* Card image */
.rt-tpg-container .rt-img-holder {
    height: 200px;
    overflow: hidden;
}

.rt-tpg-container .rt-img-holder img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rt-tpg-container .rt-holder:hover .rt-img-holder img {
    transform: scale(1.03);
}

/* Card detail area */
.rt-tpg-container .rt-detail {
    padding: 14px 16px 16px;
}

/* Category / keyword pill */
.rt-tpg-container .categories-links a {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #0F6E56 !important;
    background: #E1F5EE;
    border-radius: 20px;
    padding: 3px 10px;
    text-decoration: none;
    margin-bottom: 8px;
}

.rt-tpg-container .categories-links a:hover {
    background: #c8eddf;
}

/* Recipe title */
.rt-tpg-container .entry-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 8px;
    line-height: 1.3;
}

.rt-tpg-container .entry-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.rt-tpg-container .entry-title a:hover {
    color: #0F6E56;
}

/* Prep/cook meta row (from excerpt) */
.rt-tpg-container .tpg-excerpt {
    font-size: 11px;
    color: #999;
    margin: 0;
    line-height: 1.4;
}

/* Responsive grid */
@media (max-width: 1023px) {
    .rt-tpg-container .rt-col-3 {
        width: 50% !important;
    }
}

@media (max-width: 599px) {
    .rt-tpg-container .rt-col-3 {
        width: 100% !important;
    }
}

/* ══════════════════════════════════════════════════════════════════
   SINGLE RECIPE PAGE  (/recipe/*)
   ══════════════════════════════════════════════════════════════════ */

/* Constrain recipe card on single pages */
.single-wprm_recipe .entry-content,
.single-wprm_recipe .elementor-widget-container,
body.single-wprm_recipe .wprm-recipe-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Remove default post title on single recipe pages
   (WPRM template renders its own h1 inside the card) */
.single-wprm_recipe .page-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide Elementor-controlled page title on recipe pages */
.single-wprm_recipe {
    --page-title-display: none;
}

/* ══════════════════════════════════════════════════════════════════
   GLOBAL WPRM OVERRIDES
   ══════════════════════════════════════════════════════════════════ */

/* Suppress WPRM default border/background so our template CSS owns it */
.wprm-recipe-container {
    background: transparent;
    border: none;
    padding: 0;
}

/* ── Recipe Archive Grid ── */
.wprm-recipe-archive-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.wprm-recipe-archive-card {
  background: #ffffff;
  border: 0.5px solid #E5E5E5;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.wprm-recipe-archive-card:hover {
  transform: translateY(-2px);
  border-color: #B4B2A9;
}

.wprm-recipe-archive-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.wprm-recipe-archive-card-body {
  padding: 14px;
}

.wprm-recipe-archive-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: #0F6E56;
  background: #E1F5EE;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.wprm-recipe-archive-card-title {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.4;
}

.wprm-recipe-archive-card-meta {
  font-size: 11px;
  color: #888780;
  display: flex;
  gap: 12px;
}

@media (max-width: 768px) {
  .wprm-recipe-archive-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .wprm-recipe-archive-container {
    grid-template-columns: 1fr;
  }
}

/* Hide duplicate page title on single recipe pages */
.single-wprm_recipe .entry-title,
.single-wprm_recipe h1.entry-title {
  display: none;
}

/* ── Recipe Meta Bar ── */
.ll-recipe-meta-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid #E5E5E5;
  border-bottom: 1px solid #E5E5E5;
  margin: 20px 0 28px;
  padding: 0;
}

.ll-meta-item {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid #E5E5E5;
}

.ll-meta-item:last-child {
  border-right: none;
}

.ll-meta-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888780;
  margin-bottom: 4px;
}

.ll-meta-value {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #1A1A1A;
}

/* Hide WP page title on recipe pages */
.single-wprm_recipe h1.entry-title,
.single-wprm_recipe .page-title,
.wprm-recipe-container ~ h1,
body.single-wprm_recipe .elementor-heading-title {
  display: none !important;
}

/* ── Recipe meta bar: show number only, hide "minutes" unit text ── */
.wprm-recipe-template-livelongevity .wprm-recipe-details-unit {
  display: none;
}

.wprm-recipe-template-livelongevity .wprm-screen-reader-text {
  display: none;
}

.wprm-recipe-template-livelongevity .ll-meta-value::after {
  content: none;
}

body.single-wprm_recipe div.page-header {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Remove gap between hero image and green intro box */
.wprm-recipe-container .ll-recipe-hero-image {
  margin: 0;
  padding: 0;
  display: block;
  line-height: 0;
}

.wprm-recipe-container .ll-recipe-hero-image img {
  margin: 0;
  padding: 0;
  display: block;
}

.wprm-recipe-container .ll-recipe-intro {
  margin-top: 0;
}

/* Add "min" after prep and cook time values */
.wprm-recipe-template-livelongevity .ll-meta-item:nth-child(1) .ll-meta-value::after {
  content: " min";
  font-size: 12px;
  color: #888;
  font-weight: 400;
}

.wprm-recipe-template-livelongevity .ll-meta-item:nth-child(2) .ll-meta-value::after {
  content: " min";
  font-size: 12px;
  color: #888;
  font-weight: 400;
}

/* ── Recipe Archive Grid ── */
.ll-recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.ll-recipe-card {
  background: #ffffff;
  border: 0.5px solid #E5E5E5;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ll-recipe-card:hover {
  transform: translateY(-3px);
  border-color: #B4B2A9;
}

.ll-recipe-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.ll-recipe-card-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.ll-recipe-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ll-recipe-card-no-img {
  width: 100%;
  height: 220px;
  background: #E1F5EE;
}

.ll-recipe-card-body {
  padding: 16px;
}

.ll-recipe-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #1A1A1A;
  margin: 0 0 8px;
  line-height: 1.4;
}

.ll-recipe-card-meta {
  font-size: 12px;
  color: #888780;
  display: flex;
  gap: 12px;
}

@media (max-width: 768px) {
  .ll-recipes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ll-recipes-grid {
    grid-template-columns: 1fr;
  }
}


/* ── Recipes page full-width fix ── */
.page-id-1034 .entry-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-id-1034 .ll-recipes-grid {
    padding: 40px 5% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* ── Nuclear fix for recipes grid alignment ── */
div.ll-recipes-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important;
    padding: 40px 5% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

div.ll-recipes-page-header {
    padding: 48px 5% 32px !important;
    margin: 0 auto !important;
    max-width: 1200px !important;
}

/* ── Recipes wrapper — centering fix ── */
.ll-recipes-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
}

/* ── Single card centering ── */
.ll-recipes-grid {
    justify-content: center !important;
}

/* ── Homepage 3-column section — align buttons to same row ── */
.elementor-section .elementor-column > .elementor-widget-wrap {
    display: flex !important;
    flex-direction: column !important;
}
.elementor-section .elementor-column > .elementor-widget-wrap .elementor-widget-button {
    margin-top: auto !important;
}

/* ── Bolt Buy Now button — brand color override ── */
.bolt-checkout-button-wrap .bolt-button-button,
.bolt-product-checkout-button .bolt-button-button,
#bolt-checkout-button .bolt-button-button {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
}

/* ── Bolt Buy Now button — override inline color variable ── */
.bolt-multi-step-checkout,
.bolt-checkout-button-wrap,
.bolt-product-checkout-button {
    --bolt-primary-action-color: #1a1a1a !important;
}

/* ── Add to Cart — high specificity override ── */
.woocommerce .single_add_to_cart_button.button.alt,
.woocommerce-page .single_add_to_cart_button.button.alt {
    background-color: #002F6C !important;
    color: #ffffff !important;
    border-color: #002F6C !important;
    opacity: 1 !important;
}

.woocommerce .single_add_to_cart_button.button.alt:hover,
.woocommerce-page .single_add_to_cart_button.button.alt:hover {
    background-color: #7c2529 !important;
    border-color: #7c2529 !important;
}

/* ── Hide product SKU and category meta ── */
.product_meta {
    display: none !important;
}


/* ── Live Longevity Info Bar ── */
#ll-info-bar {
    background-color: #7c2529;
    color: #ffffff;
    width: 100%;
    padding: 8px 20px;
    box-sizing: border-box;
    font-size: 13px;
    font-family: Arial, sans-serif;
    position: relative;
    z-index: 9999;
}
.ll-info-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ll-info-bar-left {
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.ll-info-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ll-info-bar-right a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.3px;
}
.ll-info-bar-right a:hover {
    text-decoration: underline;
}
.ll-divider {
    color: rgba(255,255,255,0.5);
}
