/* ============================================================
   Simply Grilling — Bootstrap 5 theme ("Ember & Char")
   Single custom stylesheet layered on top of bootstrap.min.css
   ============================================================ */

:root {
  --sg-bg: #151210;
  --sg-panel: #1d1916;
  --sg-deep: #100d0b;
  --sg-darkest: #0e0b09;
  --sg-border: #2f2823;
  --sg-border-soft: #241f1b;
  --sg-line: #26211c;
  --sg-text: #efe9e2;
  --sg-body-text: #c4bab0;
  --sg-muted: #a89e93;
  --sg-dim: #8a7f74;
  --sg-faint: #6f6155;
  --sg-accent: #e2531c;
  --sg-accent-light: #f0863a;
  --sg-gold: #e2a53c;
  --sg-outline: #4a423a;
  --sg-input-border: #3a332d;
  --sg-font-display: 'Oswald', sans-serif;
  --sg-font-body: 'Barlow', sans-serif;
  --sg-font-mono: 'JetBrains Mono', monospace;
}

/* ---- Base ---- */
body {
  margin: 0;
  background: var(--sg-bg);
  color: var(--sg-text);
  font-family: var(--sg-font-body);
}
a { color: var(--sg-accent-light); text-decoration: none; }
a:hover { color: var(--sg-accent); }

h1, h2, h3, h4, .sg-display {
  font-family: var(--sg-font-display);
  text-transform: uppercase;
}

.sg-mono { font-family: var(--sg-font-mono); }
.sg-eyebrow {
  font-family: var(--sg-font-mono);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--sg-accent-light);
  text-transform: uppercase;
}
.sg-meta {
  font-family: var(--sg-font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sg-dim);
}
.sg-text-body { color: var(--sg-body-text); }
.sg-text-muted { color: var(--sg-muted); }
.sg-text-dim { color: var(--sg-dim); }
.sg-text-accent { color: var(--sg-accent-light); }
.sg-text-gold { color: var(--sg-gold); }

.container { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.sg-narrow { max-width: 820px; }

/* ---- Top bar ---- */
.sg-topbar {
  background: var(--sg-deep);
  border-bottom: 1px solid var(--sg-border-soft);
  font-family: var(--sg-font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--sg-dim);
  text-transform: uppercase;
}
.list-group-item {
  color: var(--sg-text);
}
/* ---- Navbar ---- */
.sg-navbar {
  background: rgba(21, 18, 16, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sg-border-soft);
}
.sg-brand-mark {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sg-accent);
  color: var(--sg-bg);
  font-family: var(--sg-font-display);
  font-weight: 700; font-size: 16px;
}
.sg-brand-name {
  font-family: var(--sg-font-display);
  font-weight: 600; font-size: 20px;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--sg-text);
}
.sg-nav-link {
  font-family: var(--sg-font-display);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sg-muted) !important;
}
.sg-nav-link:hover, .sg-nav-link.active { color: var(--sg-accent-light) !important; }
.sg-cart-btn {
  border: 1px solid var(--sg-outline);
  color: var(--sg-text);
  border-radius: 0;
  font-family: var(--sg-font-display);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 16px;
}
.sg-cart-btn:hover { border-color: var(--sg-accent); color: var(--sg-accent-light); }
.sg-cart-badge { background: var(--sg-accent); color: var(--sg-bg); }

/* ---- Navbar Dropdown ---- */
.navbar-nav .dropdown-menu {
  background: rgba(21, 18, 16, 0.98);
  border: 1px solid var(--sg-outline);
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}
.navbar-nav .dropdown-menu .dropdown-item {
  font-family: var(--sg-font-display);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sg-muted);
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
}
.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.05);
  color: var(--sg-accent-light);
}
.navbar-nav .dropdown-menu .dropdown-item.active {
  background: transparent;
  color: var(--sg-accent-light);
}
.navbar-nav .dropdown-toggle::after {
  margin-left: 0.5rem;
  vertical-align: 0.15em;
}

/* ---- Product Cards ---- */
.sg-ph-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--sg-muted);
  font-family: var(--sg-font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sg-aspect-1-1 img,
.sg-aspect-4-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sg-aspect-4-3 {
  position: relative;
  overflow: hidden;
}
.tip-title {
  color: #fff;
  transition: all 200ms ease-in-out;
}
/* ---- Buttons ---- */
.btn.sg-btn-primary {
  background: var(--sg-accent); color: var(--sg-bg);
  font-family: var(--sg-font-display);
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 0; border: 1px solid var(--sg-accent);
}
.btn.sg-btn-primary:hover { background: var(--sg-accent-light); border-color: var(--sg-accent-light); color: var(--sg-bg); }
.btn.sg-btn-outline {
  background: transparent; color: var(--sg-text);
  border: 1px solid var(--sg-outline); border-radius: 0;
  font-family: var(--sg-font-display);
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.btn.sg-btn-outline:hover { border-color: var(--sg-accent); color: var(--sg-accent-light); }
.btn.sg-btn-filter {
  background: transparent; color: var(--sg-muted);
  border: 1px solid var(--sg-input-border); border-radius: 0;
  font-family: var(--sg-font-display);
  font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 18px;
}
.btn.sg-btn-filter:hover { color: var(--sg-accent-light); border-color: var(--sg-outline); }
.btn.sg-btn-filter.active { background: var(--sg-accent); border-color: var(--sg-accent); color: var(--sg-bg); }

/* ---- Cards ---- */
.sg-card {
  background: var(--sg-panel);
  border: 1px solid var(--sg-border);
  border-radius: 0;
  color: var(--sg-text);
}
a.sg-card, .sg-card-hover { transition: border-color .15s ease; }
a.sg-card:hover, .sg-card-hover:hover { border-color: var(--sg-accent); }
.sg-card-deep { background: var(--sg-deep); border: 1px solid var(--sg-border); }

/* ---- Badges ---- */
.badge.sg-badge {
  background: var(--sg-border); color: var(--sg-accent-light);
  border-radius: 0;
  font-family: var(--sg-font-mono);
  font-weight: 500; font-size: 9px; letter-spacing: .08em;
}
.badge.sg-badge-muted { background: var(--sg-border); color: var(--sg-muted); border-radius: 0; font-family: var(--sg-font-mono); font-weight: 500; font-size: 9px; letter-spacing: .08em; }
.badge.sg-badge-fill { background: var(--sg-accent); color: var(--sg-bg); border-radius: 0; font-family: var(--sg-font-mono); font-weight: 500; font-size: 10px; letter-spacing: .1em; }
.badge.sg-badge-gold { background: var(--sg-gold); color: var(--sg-bg); border-radius: 0; font-family: var(--sg-font-mono); font-weight: 500; font-size: 9px; letter-spacing: .1em; }
.badge.sg-badge-skip { background: #4a1f14; color: #e08a70; border-radius: 0; font-family: var(--sg-font-mono); font-weight: 500; font-size: 9px; letter-spacing: .1em; }

/* Category Badges */
.catbadge {
  background: var(--sg-border) !important;
  color: var(--sg-accent-light) !important;
  border-radius: 0 !important;
  font-family: var(--sg-font-mono) !important;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 8px;
  display: inline-block;
  transition: all 0.2s ease;
}
.catbadge:hover {
  background: var(--sg-accent) !important;
  color: var(--sg-bg) !important;
  text-decoration: none;
}
.cat-card-text {
  color: var(--sg-text);
  line-height: 1.3em;
}


.steplist {
  width: 100%;
  height:10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}
.recipe-steps h5 {
  font-family: var(--sg-font-display);
  text-transform: uppercase;
}


/* ---- Filter Buttons ---- */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--sg-accent-light);
  color: var(--sg-text);
  border: 1px solid var(--sg-outline);
  border-radius: 0;
  font-family: var(--sg-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.filter-btn-inactive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  color: var(--sg-text);
  border: 1px solid var(--sg-outline);
  border-radius: 0;
  font-family: var(--sg-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-btn:hover {
  background: transparent;
  border-color: var(--sg-accent);
  color: var(--sg-accent-light);
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

.filter-btn.active {
  background: var(--sg-accent);
  color: var(--sg-bg);
  border-color: var(--sg-accent);
}

.filter-btn.active:hover {
  background: var(--sg-accent-light);
  border-color: var(--sg-accent-light);
  color: var(--sg-bg);
}
.text-dark, .card-body {
  color: var(--sg-text) !important;
  border: 1px solid var(--sg-border);
}
.card {
  background-color: var(--sg-panel);
}
.filter-btn-inactive .badge {
  background: var(--sg-accent-light) !important;
  color: var(--sg-text) !important;
  padding: 2px 6px;
  border-radius: 0 !important;
  font-family: var(--sg-font-mono) !important;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
}
.filter-btn .badge {
  background: var(--sg-bg);
  color: var(--sg-text) !important;
  padding: 2px 6px;
  border-radius: 0 !important;
  font-family: var(--sg-font-mono) !important;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
}

.filter-btn:hover .badge {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--sg-accent-light) !important;
}

.filter-btn.active .badge {
  background: rgba(0, 0, 0, 0.2) !important;
  color: var(--sg-bg) !important;
}

/* Recipe filter buttons (Bootstrap button style) */
.btn.btn-primary .badge.bg-light,
.btn.btn-outline-primary .badge.bg-light {
  background: var(--sg-accent-light) !important;
  color: var(--sg-text) !important;
  border-radius: 0 !important;
  font-family: var(--sg-font-mono) !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 2px 6px;
}

.btn.btn-primary .badge.bg-light {
  background: rgba(0, 0, 0, 0.2) !important;
  color: var(--sg-bg) !important;
}

.btn.btn-primary:hover .badge.bg-light {
  background: rgba(0, 0, 0, 0.25) !important;
}

.btn.btn-outline-primary:hover .badge.bg-light {
  background: rgba(255, 255, 255, 0.25) !important;
  color: var(--sg-accent-light) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .filter-buttons {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* ---- Recipe Cards ---- */
.recipe-card {
  background: var(--sg-card-bg);
  border: 1px solid var(--sg-border);
  border-radius: 0;
  padding: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.recipe-card .card-title a {
  color: var(--sg-text);
  text-transform: uppercase;
  font-family: var(--sg-font-display);
  transition: all 200ms ease-in-out;
}

.recipe-card:hover .card-title a {
  color: var(--sg-accent-light);
  transition: all 200ms ease-in-out;
}



.recipe-card:hover {
  border-color: var(--sg-outline);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.recipe-card-image {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-card-image img {
  transform: scale(1.05);
}

.recipe-card-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recipe-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.recipe-card-categories .badge {
  background: var(--sg-border) !important;
  color: var(--sg-accent-light) !important;
  border-radius: 0 !important;
  font-family: var(--sg-font-mono) !important;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.recipe-card-title-link {
  text-decoration: none;
  color: var(--sg-text);
  transition: color 0.2s ease;
}

.recipe-card-title-link:hover {
  color: var(--sg-accent-light);
  text-decoration: none;
}

.recipe-card-title {
  font-family: var(--sg-font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.32em;
  margin: 0 0 10px;
  color: inherit;
}
.recipe-card .card-title {
  line-height: 1.4em;
}
.recipe-card .card-text {
  line-height: 1.25em;
}
.recipe-card-times {
  /*display: flex;
  flex-wrap: wrap;
  gap: 8px;*/
  font-family: var(--sg-font-mono);
  font-size: 14px;
  color: var(--sg-text);
  letter-spacing: .04em;
}
.recipe-card-times strong {
  color: var(--sg-accent-light);
}
.recipe-card-times small {
  color: var(--sg-dim) !important;
}
.recipe-card-times p {
  line-height: 1.2em;
}
.recipe-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--sg-muted);
  margin-bottom: 15px;
  flex: 1;
}

.recipe-card .btn {
  margin-top: auto;
  border-radius: 0;
  font-family: var(--sg-font-display);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 10px 20px;
}

.recipe-card .btn-primary {
  background: var(--sg-accent);
  border-color: var(--sg-accent);
  color: var(--sg-bg);
}
.recipe-card .card-text {
  color: var(--sg-text);
}
.recipe-card .btn-primary:hover {
  background: var(--sg-accent-light);
  border-color: var(--sg-accent-light);
  color: var(--sg-bg);
}

/* Home page recipe cards (alternative style) */
.home-recipe.sg-card {
  background: var(--sg-card-bg);
  border: 1px solid var(--sg-border);
  border-radius: 0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  color: var(--sg-text);
}

.home-recipe.sg-card:hover {
  border-color: var(--sg-outline);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: var(--sg-text);
}

.home-recipe .sg-heading-recipe-card {
  font-family: var(--sg-font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.32em;
  margin: 0 0 10px;
  transition: color 0.2s ease;
}

.home-recipe:hover .sg-heading-recipe-card {
  color: var(--sg-accent-light);
}

.home-recipe .sg-tip-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--sg-muted);
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  margin: 0;
  list-style: none;
}

.pagination .page-item {
  list-style: none;
}

.pagination .page-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  background: transparent;
  color: var(--sg-text);
  border: 1px solid var(--sg-outline);
  border-radius: 0;
  font-family: var(--sg-font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination .page-link:hover {
  background: transparent;
  border-color: var(--sg-accent);
  color: var(--sg-accent-light);
  text-decoration: none;
}

.pagination .page-item.active .page-link {
  background: var(--sg-accent);
  border-color: var(--sg-accent);
  color: var(--sg-bg);
  cursor: default;
}

.pagination .page-item.active .page-link:hover {
  background: var(--sg-accent);
  border-color: var(--sg-accent);
  color: var(--sg-bg);
}

.pagination .page-item.disabled .page-link {
  background: transparent;
  border-color: var(--sg-border);
  color: var(--sg-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination .page-item.disabled .page-link:hover {
  background: transparent;
  border-color: var(--sg-border);
  color: var(--sg-muted);
}

/* Prev/Next buttons */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  font-family: var(--sg-font-display);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 8px 16px;
  min-width: auto;
}

/* Dots separator */
.pagination .page-item.disabled .page-link {
  border-color: transparent;
  background: transparent;
}

/* Pagination wrapper */
.pagination-wrapper {
  margin: 30px 0;
}

/* Mobile responsive */
@media (max-width: 576px) {
  .pagination {
    gap: 4px;
  }
  
  .pagination .page-link {
    min-width: 36px;
    height: 36px;
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .pagination .page-item:first-child .page-link,
  .pagination .page-item:last-child .page-link {
    padding: 6px 12px;
    font-size: 10px;
  }
}

/* ---- WooCommerce Product Cards ---- */
.product-card {
  background: var(--sg-card-bg);
  border: 1px solid var(--sg-border);
  border-radius: 0;
  padding: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  border-color: var(--sg-outline);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 1 / 1;
  background: var(--sg-border);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-badge-sale {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

.product-badge-sale .badge {
  background: var(--sg-accent) !important;
  color: var(--sg-bg) !important;
  border-radius: 0 !important;
  font-family: var(--sg-font-display) !important;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 10px;
}

.product-card .card-body {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.product-card-categories .catbadge {
  background: var(--sg-border) !important;
  color: var(--sg-accent-light) !important;
  border-radius: 0 !important;
  font-family: var(--sg-font-mono) !important;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.product-card-title-link {
  text-decoration: none;
  color: var(--sg-text);
  transition: color 0.2s ease;
}

.product-card-title-link:hover {
  color: var(--sg-accent-light);
  text-decoration: none;
}

.product-card-title {
  font-family: var(--sg-font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.32em;
  margin: 0 0 10px;
  color: inherit;
}

.product-price {
  font-family: var(--sg-font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--sg-accent-light);
  letter-spacing: .02em;
}

.product-price del {
  color: var(--sg-muted);
  opacity: 0.6;
  font-size: 14px;
  margin-right: 8px;
}

.product-price ins {
  text-decoration: none;
  color: var(--sg-accent);
}

.product-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--sg-muted);
  margin-bottom: 15px;
  flex: 1;
}

/* Add to Cart Button */
.product-card .button,
.product-card .added_to_cart {
  width: 100%;
  margin-top: auto;
  border-radius: 0 !important;
  font-family: var(--sg-font-display) !important;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 10px 20px;
  background: var(--sg-accent) !important;
  border-color: var(--sg-accent) !important;
  color: var(--sg-bg) !important;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
  display: block;
}

.product-card .button:hover,
.product-card .added_to_cart:hover {
  background: var(--sg-accent-light) !important;
  border-color: var(--sg-accent-light) !important;
  color: var(--sg-bg) !important;
}

/* Loading state */
.product-card .button.loading {
  opacity: 0.7;
  cursor: wait;
}

/* Added to cart button */
.product-card .added_to_cart {
  background: var(--sg-border) !important;
  border-color: var(--sg-border) !important;
  color: var(--sg-text) !important;
  margin-top: 10px;
}

.product-card .added_to_cart:hover {
  background: var(--sg-outline) !important;
  border-color: var(--sg-outline) !important;
}

/* WooCommerce result count and ordering */
.woocommerce-result-count {
  font-family: var(--sg-font-mono);
  font-size: 13px;
  color: var(--sg-muted);
  letter-spacing: .04em;
}

.woocommerce-ordering select {
  background: var(--sg-card-bg);
  border: 1px solid var(--sg-outline);
  border-radius: 0;
  color: var(--sg-text);
  font-family: var(--sg-font-mono);
  font-size: 13px;
  padding: 8px 12px;
}

.woocommerce-ordering select:focus {
  border-color: var(--sg-accent);
  outline: none;
}

/* ---- Photo placeholders (replace with real <img>) ---- */
.sg-ph {
  background-image: repeating-linear-gradient(45deg, #26201b 0 10px, #201b17 10px 20px);
  display: flex; align-items: center; justify-content: center;
  color: var(--sg-faint);
  font-family: var(--sg-font-mono);
  font-size: 10px; text-transform: uppercase; text-align: center;
  border: 1px solid var(--sg-border);
  padding: 8px;
}
.sg-ph-borderless { border: none; }

/* ---- Hero sections ---- */
.sg-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--sg-border-soft); }
.sg-hero::before {
  content: ''; position: absolute; inset: 0;
  
  opacity: .65;
}
.sg-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(85% 120% at 78% 115%, rgba(226, 83, 28, .5), transparent 55%);
}
.sg-hero > * { position: relative; z-index: 1; }
.sg-hero-plain::before { background-image: none; opacity: 0; }
.sg-hero-plain::after { background: radial-gradient(70% 130% at 85% 120%, rgba(226, 83, 28, .3), transparent 55%); }
.sg-hero-left::after { background: radial-gradient(70% 130% at 15% 120%, rgba(226, 83, 28, .32), transparent 55%); }
.sg-hero-center::after { background: radial-gradient(80% 140% at 50% 120%, rgba(226, 83, 28, .35), transparent 60%); }

.sg-h1 { font-weight: 700; font-size: clamp(40px, 6vw, 54px); line-height: .95; }
.sg-h1-xl { font-weight: 700; font-size: clamp(48px, 8vw, 82px); line-height: .92; }

/* ---- Sections ---- */
.sg-section { border-bottom: 1px solid var(--sg-border-soft); }
.sg-section-deep { background: var(--sg-deep); }
.sg-section-title { font-weight: 600; font-size: 32px; margin: 0; }
.sg-accent-rule { border-left: 3px solid var(--sg-accent); padding-left: 28px; }

/* ---- Forms ---- */
.form-control.sg-input {
  background: var(--sg-panel);
  border: 1px solid var(--sg-input-border);
  color: var(--sg-text);
  border-radius: 0;
  padding: 11px 14px;
  font-size: 14px;
}
.form-control.sg-input::placeholder { color: var(--sg-dim); }
.form-control.sg-input:focus {
  background: var(--sg-panel); color: var(--sg-text);
  border-color: var(--sg-accent); box-shadow: none;
}
.form-check-input.sg-check {
  background-color: var(--sg-bg);
  border-color: var(--sg-outline);
  border-radius: 0;
}
.form-check-input.sg-check:checked { background-color: var(--sg-accent); border-color: var(--sg-accent); }

/* ---- Bootstrap component overrides ---- */
.nav-tabs.sg-tabs {
  --bs-nav-tabs-border-color: var(--sg-border);
  --bs-nav-tabs-border-radius: 0;
}
.nav-tabs.sg-tabs .nav-link {
  font-family: var(--sg-font-display);
  font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sg-muted);
  border-radius: 0;
  padding: 12px 22px;
}
.nav-tabs.sg-tabs .nav-link.active {
  background: var(--sg-panel);
  color: var(--sg-accent-light);
  border-color: var(--sg-border) var(--sg-border) var(--sg-panel);
}
.sg-tab-pane-box { background: var(--sg-panel); border: 1px solid var(--sg-border); border-top: none; }

.list-group.sg-list {
  --bs-list-group-bg: var(--sg-panel);
  --bs-list-group-border-color: var(--sg-border);
  --bs-list-group-color: var(--sg-text);
  --bs-list-group-border-radius: 0;
  --bs-list-group-action-hover-bg: var(--sg-deep);
  --bs-list-group-action-hover-color: var(--sg-accent-light);
}

.progress.sg-progress { height: 6px; background: var(--sg-border); border-radius: 0; }
.sg-progress .progress-bar { background: var(--sg-accent); }
.sg-progress .progress-bar.mid { background: var(--sg-gold); }
.sg-progress .progress-bar.low { background: #8a5a3c; }

.accordion.sg-accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-padding-x: 2px;
  --bs-accordion-btn-padding-y: 14px;
  --bs-accordion-body-padding-x: 2px;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--sg-text);
  --bs-accordion-btn-color: var(--sg-text);
  --bs-accordion-btn-focus-box-shadow: none;
}
.sg-accordion .accordion-item { background: transparent; border-bottom: 1px solid var(--sg-border); }
.sg-accordion .accordion-button {
  font-family: var(--sg-font-display);
  font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: none;
}
.sg-accordion .accordion-button::after { filter: invert(60%) sepia(60%) saturate(2000%) hue-rotate(340deg); }
.sg-accordion .accordion-body { color: var(--sg-muted); font-size: 14px; line-height: 1.6; }

/* ---- Quantity stepper ---- */
.sg-qty { border: 1px solid var(--sg-input-border); display: inline-flex; align-items: center; }
.sg-qty .btn { color: var(--sg-text); border: none; border-radius: 0; font-size: 16px; padding: 8px 16px; }
.sg-qty .sg-qty-value { font-family: var(--sg-font-mono); font-size: 15px; min-width: 40px; text-align: center; }

/* ---- Size picker ---- */
.btn.sg-size {
  background: transparent; color: var(--sg-muted);
  border: 1px solid var(--sg-input-border); border-radius: 0;
  font-family: var(--sg-font-display); font-weight: 600; font-size: 13px;
  min-width: 52px; padding: 10px 0;
}
.btn.sg-size.active { background: var(--sg-accent); border-color: var(--sg-accent); color: var(--sg-bg); }

/* ---- Pit note / callout ---- */
.sg-callout { background: var(--sg-panel); border-left: 3px solid var(--sg-accent); }

/* ---- Article typography ---- */
.sg-article { font-size: 16px; line-height: 1.75; color: var(--sg-body-text); }
.sg-article .lead-para { font-size: 18px; color: #d8cfc4; }
.sg-article h2 { font-weight: 600; font-size: 24px; color: var(--sg-text); margin: 32px 0 12px; }
.sg-article strong { color: var(--sg-text); }

/* ---- Footer ---- */
.sg-footer {
  background: var(--sg-darkest);
  color: var(--sg-dim);
  font-size: 12px;
  border-top: 1px solid var(--sg-border-soft);
}
.sg-footer a { color: var(--sg-dim); }
.sg-footer a:hover { color: var(--sg-accent-light); }
.sg-footer-brand {
  font-family: var(--sg-font-display);
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sg-accent);
}

/* ===========================================================
   UTILITY CLASSES (moved from inline styles)
   =========================================================== */

/* ---- Spacing utilities ---- */
.sg-py-hero { padding-top: 40px; padding-bottom: 40px; }
.sg-py-section-lg { padding-top: 68px; padding-bottom: 68px; }
.sg-py-section { padding-top: 60px; padding-bottom: 60px; }
.sg-py-section-md { padding-top: 56px; padding-bottom: 56px; }
.sg-py-header { padding-top: 72px; padding-bottom: 64px; }
.sg-py-header-sm { padding-top: 56px; padding-bottom: 48px; }
.sg-py-page-header { padding-top: 48px; padding-bottom: 8px; }
.sg-py-cart { padding-top: 28px; padding-bottom: 80px; }
.sg-py-breadcrumb { padding-top: 24px; }
.sg-py-product { padding-top: 32px; padding-bottom: 64px; }
.sg-py-recipe-header { padding-top: 28px; padding-bottom: 36px; }
.sg-py-recipe-stats { padding-bottom: 24px; }
.sg-py-recipe-content { padding-top: 12px; padding-bottom: 72px; }
.sg-py-listing { padding-top: 36px; padding-bottom: 72px; }
.sg-py-tips-featured { padding-top: 48px; padding-bottom: 48px; }
.sg-py-tips-grid { padding-top: 44px; padding-bottom: 72px; }
.sg-py-cta { padding-top: 56px; padding-bottom: 56px; }
.sg-py-product-section { padding-top: 48px; padding-bottom: 72px; }
.sg-py-tip { padding-top: 32px; padding-bottom: 72px; }

/* ---- Typography utilities ---- */
.sg-heading-xl { font-size: 46px; line-height: 1; margin: 0 0 16px; }
.sg-heading-lg { font-size: 42px; line-height: 1; margin: 0 0 10px; }
.sg-heading-page { font-size: 44px; line-height: 0.95; margin: 0; }
.sg-heading-section { font-size: 34px; margin: 0 0 8px; }
.sg-heading-card { font-size: 32px; margin: 0 0 8px; }
.sg-heading-feature { font-size: 30px; margin: 0 0 12px; }
.sg-heading-review { font-size: 26px; margin: 0; }
.sg-heading-product { font-size: 24px; margin: 0 0 22px; }
.sg-heading-recipe { margin: 0 0 14px; }
.sg-heading-tip { font-size: 19px; margin: 0 0 8px; }
.sg-heading-card-sm { font-size: 21px; margin: 0 0 6px; }
.sg-heading-tip-article { font-size: 17px; margin: 0 0 6px;line-height: 1.32em; }
.sg-heading-recipe-card { font-size: 19px; margin: 0 0 5px;line-height: 1.32em; }
.sg-heading-store { font-size: 18px; margin: 0 0 5px; }

.sg-text-lg { font-size: 19px; line-height: 1.6; }
.sg-text-md { font-size: 17px; line-height: 1.65; }
.sg-text-base { font-size: 16px; line-height: 1.6; }
.sg-text-sm { font-size: 15px; line-height: 1.65; }
.sg-text-xs { font-size: 14px; line-height: 1.6; }
.sg-text-xxs { font-size: 13px; line-height: 1.6; }
.sg-text-xxxs { font-size: 12px; }
.sg-text-tiny { font-size: 11px; }
.sg-text-micro { font-size: 10px; }

.sg-text-color { color: var(--sg-text); }
.sg-text-rating { font-size: 12px; }
.sg-text-rating-lg { font-size: 15px; }
.sg-text-rating-md { font-size: 13px; }
.sg-text-number { font-size: 20px; }
.sg-text-price { font-size: 14px; }
.sg-text-price-lg { font-size: 24px; }
.sg-text-button-text { font-size: 13px; }
.sg-text-badge-label { font-size: 10px; }
.sg-text-badge-xs { font-size: 9px; }

.sg-ls-wide { letter-spacing: .06em; }
.sg-ls-wider { letter-spacing: .2em; }
.sg-ls-tight { letter-spacing: .04em; }
.sg-ls-normal { letter-spacing: .1em; }

.sg-m-0 { margin: 0; }
.sg-mb-xs { margin: 0 0 5px; }
.sg-mb-sm { margin: 0 0 8px; }
.sg-mb-md { margin: 0 0 10px; }
.sg-mb-lg { margin: 0 0 12px; }
.sg-mb-xl { margin: 0 0 14px; }
.sg-mb-xxl { margin: 0 0 16px; }
.sg-mb-18 { margin: 0 0 18px; }
.sg-mb-20 { margin: 0 0 20px; }
.sg-mb-22 { margin: 0 0 22px; }
.sg-mb-24 { margin: 0 0 24px; }
.sg-mb-26 { margin: 0 0 26px; }
.sg-mb-28 { margin: 0 0 28px; }
.sg-mb-34 { margin: 0 0 34px; }
.sg-mt-24 { margin-top: 24px; }
.sg-mt-46 { margin-top: 46px; }

/* ---- Width and max-width utilities ---- */
.sg-max-w-760 { max-width: 760px; }
.sg-max-w-640 { max-width: 640px; }
.sg-max-w-520 { max-width: 520px; }
.sg-max-w-500 { max-width: 500px; }
.sg-max-w-480 { max-width: 480px; }
.sg-max-w-260 { max-width: 260px; }
.sg-max-w-240 { max-width: 240px; }
.sg-max-w-110 { max-width: 110px; }

/* ---- Aspect ratio utilities ---- */
.sg-aspect-4-3 { aspect-ratio: 4/3; }
.sg-aspect-1-1 { aspect-ratio: 1; }
.sg-aspect-16-9 { aspect-ratio: 16/9; }
.sg-aspect-16-10 { aspect-ratio: 16/10; }

/* ---- Size utilities ---- */
.sg-size-52 { width: 52px; height: 52px; }
.sg-size-72 { width: 72px; }
.sg-size-64 { width: 64px; height: 64px; }
.sg-size-34 { width: 34px; height: 34px; }
.sg-min-h-160 { min-height: 160px; }

/* ---- Border utilities ---- */
.sg-border-line { border-bottom: 1px solid var(--sg-line); }
.sg-border-left-line { border-left: 1px solid var(--sg-line); }
.sg-border-left-accent { border-left: 3px solid var(--sg-accent); }
.sg-border-top-soft { border-top: 1px solid var(--sg-border-soft); }
.sg-border-bottom-none { border-bottom: none; }
.sg-border-accent { border-color: var(--sg-accent); }

/* ---- Padding utilities ---- */
.sg-p-list-item { padding: 10px 2px; }
.sg-p-step { padding-left: 16px; }
.sg-p-input { padding: 9px 14px; }
.sg-p-button-sm { padding: 10px 20px; }
.sg-p-button-md { padding: 11px 22px; }
.sg-p-button-lg { padding: 12px 24px; }
.sg-p-button-xl { padding: 12px 26px; }
.sg-p-button-hero { padding: 14px 28px; }
.sg-p-button-checkout { padding: 13px; }

/* ---- Display utilities ---- */
.sg-display-none { display: none; }

/* ---- Position utilities ---- */
.sg-pos-badge { top: 10px; left: 10px; }

/* ---- Font size specific to elements ---- */
.sg-fs-score { font-size: 34px; }
.sg-fs-22 { font-size: 22px; }

/* ---- Additional margins ---- */
.sg-mb-2px { margin-top: 2px; }
.sg-mb-4 { margin-bottom: 12px; }
.sg-mb-6 { margin: 0 0 6px; }

/* ---- Recipe/ingredient specific ---- */
.sg-ingredient-text { font-size: 15px; color: #d8cfc4; }
.sg-step-number { width: 34px; height: 34px; background: var(--sg-border); font-size: 15px; }
.sg-step-text { font-size: 16px; margin: 0 0 4px; }
.sg-step-desc { font-size: 14px; line-height: 1.6; margin: 0; }
.sg-note-border { border-left: 3px solid var(--sg-accent); padding-left: 16px; }
.sg-note-title { font-size: 15px; margin: 0 0 4px; }
.sg-note-text { font-size: 14px; line-height: 1.6; margin: 0; }
.sg-cook-stat { font-size: 10px; letter-spacing: .1em; }
.sg-cook-value { font-size: 20px; }
.sg-cook-info { font-size: 13px; }

/* ---- Store/Product specific ---- */
.sg-product-link { font-size: 15px; color: var(--sg-text); }
.sg-product-cat { font-size: 12px; margin-top: 2px; }
.sg-product-size-label { font-size: 10px; letter-spacing: .2em; }

/* ---- Review specific ---- */
.sg-review-title { font-size: 21px; margin: 0 0 6px; }
.sg-review-desc { font-size: 13px; line-height: 1.6; margin: 0; }
.sg-review-badge { letter-spacing: .1em; }
.sg-review-score { font-size: 34px; }
.sg-review-meta { font-size: 11px; }
.sg-review-progress-width { width: 92%; }

/* ---- Tips specific ---- */
.sg-tip-badge { letter-spacing: .1em; }
.sg-tip-time { font-size: 10px; }
.sg-tip-title { font-size: 19px; margin: 0 0 8px; }
.sg-tip-desc { font-size: 13px; line-height: 1.4; margin: 0; }
.sg-tip-feature-title { font-size: 30px; margin: 0 0 10px; color: var(--sg-text); }
.sg-tip-feature-desc { font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.sg-tip-feature-link { font-size: 13px; letter-spacing: .06em; }

/* ---- About page specific ---- */
.sg-about-number { font-size: 22px; color: var(--sg-accent); margin-bottom: 12px; }
.sg-about-title { font-size: 19px; margin: 0 0 8px; }
.sg-about-text { font-size: 14px; line-height: 1.6; margin: 0; }

/* ---- Cursor utilities ---- */
.sg-cursor-pointer { cursor: pointer; }


.home-featured-slide {
  position: relative;
}

.home-featured-title {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  padding: 15px 20px 60px;
  background: linear-gradient(to bottom, 
  rgb(0 0 0 / 90%) 0%,     /* Starts black */
    rgb(0 0 0 / 70%) 65%,    /* Stays pure black until here */
    rgb(0 0 0 / 0%) 100%  );
  color: var(--sg-text);
  transition: all 200ms ease-in-out;
}
.home-featured-link:hover .home-featured-title {
  color: var(--sg-accent-light);
  transition: all 200ms ease-in-out;
}
.home-featured-excerpt {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 35px 20px 15px;
  background: linear-gradient(to top, rgb(0 0 0 / 90%) 0%,     /* Starts black */
    rgb(0 0 0 / 70%) 65%,    /* Stays pure black until here */
    rgb(0 0 0 / 0%) 100%);
  color: var(--sg-text);
  transition: all 200ms ease-in-out;
  font-size: 20px;
  line-height: 1.3em;
}
.home-featured-link:hover .home-featured-excerpt {
  color: var(--sg-accent-light);
  transition: all 200ms ease-in-out;
}
.home-opener h1 {
  font-size: 3.2em;
  line-height: 1.1em;
}
@media screen and (min-width : 320px) and (max-width : 1134px) {
  .home-opener h1 {
    font-size: 2.2em;
    line-height: 1.1em;
  }
  .home-opener p {
    font-size: 17px !important;
    line-height: 1.3em;
  }
}

/* ---- Home Featured Slideshow ---- */
.home-featured-slideshow {
  position: relative;
  overflow: hidden;
}

.home-featured-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.home-featured-slide.active {
  display: block;
  opacity: 1;
}

.home-featured-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  z-index: 10;
}

.home-featured-prev,
.home-featured-next {
  pointer-events: all;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.home-featured-prev:hover,
.home-featured-next:hover {
  background: rgba(0, 0, 0, 0.8);
  opacity: 1;
  transform: scale(1.1);
}

.home-featured-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.home-featured-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.home-featured-indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.home-featured-indicator.active {
  background: white;
  transform: scale(1.2);
}
.simplygrilling-post {

}
.step-data, .prep-box {
  background: var(--sg-line);
  border: 1px solid var(--sg-dim);
  padding: 8px 10px 5px;
}
.step-data p, .prep-box p {
  margin: 0;
}
.step-meta {
  margin-top: 15px;
}
select, input {
  background: #fff !important;
  padding: 5px 10px;
}
/* Hide controls on mobile for cleaner look */
@media (max-width: 768px) {
  .home-featured-prev,
  .home-featured-next {
    width: 32px;
    height: 32px;
  }
  
  .home-featured-prev svg,
  .home-featured-next svg {
    width: 18px;
    height: 18px;
  }
}