/* ==========================================================================
   RECIPES CATALOG & DEDICATED RECIPE DETAIL PAGE
   ========================================================================== */

/* ==========================================================================
   RECIPES PAGE - MINIMALIST ARCHITECTURAL SHOWCASE
   - Pure white canvas
   - Strict frameless protocol (border: none !important; box-shadow: none !important)
   - 3-Column editorial recipe grid (Desktop), 2-Column (Tablet), 1-Column (Mobile)
   - Space Mono time & servings metrics
   - Interactive recipe modal with full ingredients checklist & steps
   ========================================================================== */

.recipes-page-canvas {
  padding: 48px 48px 120px !important;
}

/* Recipes Toolbar (Tabs + Search) */
.recipes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(18, 19, 22, 0.08);
}

.recipes-filter-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.recipe-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #71757E;
  transition: all 0.2s ease;
  border-radius: 0 !important;
}

.recipe-tab-btn:hover {
  color: #121316;
  background-color: #FAF7F2 !important;
}

.recipe-tab-btn.is-active {
  color: #FFFFFF !important;
  background-color: #121316 !important;
}

.recipe-pill-count {
  font-size: 10px;
  opacity: 0.7;
}

.recipes-toolbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.recipes-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.recipes-search-input {
  width: 240px;
  padding: 9px 36px 9px 36px;
  background-color: #FAF7F2;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  font-family: var(--font-primary);
  font-size: 13.5px;
  color: #121316;
  box-sizing: border-box;
  transition: width 0.3s ease, background-color 0.2s ease;
}

.recipes-search-input:focus {
  width: 280px;
  background-color: #F3EFEA;
}

.recipes-counter-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #71757E;
  white-space: nowrap;
}

.recipes-counter-badge strong {
  color: #121316;
}

/* Recipes Catalog Grid */
.recipes-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 36px;
}

.recipe-card-item {
  display: flex;
  flex-direction: column;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.recipe-card-item:hover {
  transform: translateY(-6px);
}

.recipe-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #FAF7F2;
  border: none !important;
}

.recipe-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.recipe-card-item:hover .recipe-media-img {
  transform: scale(1.06);
}

.recipe-pillar-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background-color: #FFFFFF;
  border: none !important;
  border-radius: 0 !important;
}

.recipe-pillar-tag.pillar-spices { color: #D91D1A; }
.recipe-pillar-tag.pillar-herbs { color: #159E3F; }
.recipe-pillar-tag.pillar-blends { color: #D97706; }
.recipe-pillar-tag.pillar-salts { color: #0284C7; }

.recipe-metrics-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #71757E;
  margin-bottom: 10px;
}

.recipe-metric-dot {
  opacity: 0.35;
}

.recipe-card-title {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 800;
  color: #121316;
  margin: 0 0 10px 0;
  line-height: 1.25;
  letter-spacing: -0.015em;
  transition: color 0.2s ease;
}

.recipe-card-item:hover .recipe-card-title {
  color: #D97706;
}

.recipe-card-summary {
  font-size: 14px;
  line-height: 1.6;
  color: #4B5563;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-product-tag-row {
  margin-bottom: 12px;
}

.recipe-used-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #FAF7F2;
  padding: 5px 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #121316;
  letter-spacing: 0.02em;
}

.recipe-used-product-badge strong {
  font-weight: 800;
}

.recipe-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(18, 19, 22, 0.08);
  margin-top: auto;
}

.recipe-spice-badge {
  font-size: 12px;
  color: #71757E;
  font-style: italic;
}

.recipe-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #121316;
  transition: gap 0.2s ease;
}

.recipe-card-item:hover .recipe-action-btn {
  gap: 10px;
  color: #D97706;
}

/* ==========================================================================
   DEDICATED RECIPE DETAIL PAGE ARCHITECTURE (RECIPE-DETAIL.PHP)
   Minimalist Scandinavian Editorial Layout:
   - Full 250px breadcrumb hero with category theme
   - Hero split: high-res photo + title, summary, Space Mono metrics grid
   - Content split: Checkable Ingredients list + Numbered Preparation Method
   - B2B Foodservice & Wholesale Custom Blends CTA card
   - Related recipes grid
   ========================================================================== */

.recipe-detail-canvas {
  padding: 48px 48px 120px !important;
}

.recipe-detail-container {
  max-width: 1320px;
  margin: 0 auto;
}

.recipe-detail-back-bar {
  margin-bottom: 36px;
}

.recipe-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #71757E;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.recipe-back-link:hover {
  color: #121316;
  gap: 12px;
}

/* Hero Section */
.recipe-detail-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(18, 19, 22, 0.08);
}

.recipe-detail-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #FAF7F2;
}

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

.recipe-detail-hero-info {
  display: flex;
  flex-direction: column;
}

.recipe-detail-tags-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.recipe-detail-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #121316;
  margin: 0 0 20px 0;
}

.recipe-detail-summary {
  font-size: 16px;
  line-height: 1.7;
  color: #4B5563;
  margin: 0 0 32px 0;
}

/* Monospace Cooking Metrics */
.recipe-detail-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 22px 24px;
  background-color: #FAF7F2;
  margin-bottom: 32px;
}

.recipe-detail-metric-col {
  display: flex;
  flex-direction: column;
}

.recipe-detail-metric-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #71757E;
  margin-bottom: 4px;
}

.recipe-detail-metric-val {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  color: #121316;
}

.recipe-detail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Split: Ingredients vs Method */
.recipe-detail-body-split {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}

.recipe-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 2px solid #121316;
  margin-bottom: 28px;
}

.recipe-section-title {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 800;
  color: #121316;
  letter-spacing: -0.015em;
  margin: 0;
}

.recipe-section-counter {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #71757E;
}

.recipe-ingredients-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 36px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recipe-ingredient-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #1F2937;
}

.recipe-ing-checkbox {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: #121316;
  cursor: pointer;
  flex-shrink: 0;
}

.recipe-ing-label {
  cursor: pointer;
  user-select: none;
}

.recipe-ing-checkbox:checked + .recipe-ing-label {
  color: #9CA3AF;
  text-decoration: line-through;
}

/* ==========================================================================
   USED PRODUCTS SHOWCASE ("Kullanılan Başlıca Bitki ve Diğer Ürünler")
   Resimli Kartlar - Tıklayınca Doğrudan Ürüne Yönlendirir
   ========================================================================== */

/* Sidebar Compact Product Cards (Under Ingredients Checklist) */
.recipe-used-products-sidebar {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(18, 19, 22, 0.08);
}

.sidebar-products-header {
  margin-bottom: 16px;
}

.sidebar-products-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: #121316;
  margin: 4px 0 4px 0;
  letter-spacing: -0.015em;
}

.sidebar-products-subtitle {
  font-size: 13px;
  color: #71757E;
  margin: 0;
}

.sidebar-products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-product-card {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: center;
  background-color: #FAF7F2;
  padding: 12px 14px;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-product-card:hover {
  background-color: #F3EFEA;
  transform: translateX(4px);
}

.sidebar-product-accent {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background-color: #121316;
  transition: width 0.25s ease;
}

.sidebar-product-card.pillar-spices .sidebar-product-accent { background-color: #D91D1A; }
.sidebar-product-card.pillar-herbs .sidebar-product-accent { background-color: #159E3F; }
.sidebar-product-card.pillar-blends .sidebar-product-accent { background-color: #D97706; }
.sidebar-product-card.pillar-salts .sidebar-product-accent { background-color: #0284C7; }

.sidebar-product-card:hover .sidebar-product-accent {
  width: 5px;
}

.sidebar-product-img-wrap {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sidebar-product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.sidebar-product-card:hover .sidebar-product-img {
  transform: scale(1.08);
}

.sidebar-product-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-product-cat {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71757E;
}

.sidebar-product-cat.pillar-spices { color: #D91D1A; }
.sidebar-product-cat.pillar-herbs { color: #159E3F; }
.sidebar-product-cat.pillar-blends { color: #D97706; }
.sidebar-product-cat.pillar-salts { color: #0284C7; }

.sidebar-product-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  color: #121316;
  margin: 0;
  line-height: 1.3;
}

.sidebar-product-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #121316;
  margin-top: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.sidebar-product-card:hover .sidebar-product-action {
  gap: 8px;
  color: #D91D1A;
}

/* Dedicated Showcase Grid (Full-width section before CTA) */
.recipe-showcase-products-section {
  margin-bottom: 72px;
  padding-top: 56px;
  border-top: 1px solid rgba(18, 19, 22, 0.08);
}

.recipe-products-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.recipe-product-showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #FAF7F2;
  padding: 24px;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.recipe-product-showcase-card:hover {
  transform: translateY(-6px);
  background-color: #F3EFEA;
}

.showcase-card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #121316;
  transition: height 0.3s ease;
}

.recipe-product-showcase-card.pillar-spices .showcase-card-accent { background-color: #D91D1A; }
.recipe-product-showcase-card.pillar-herbs .showcase-card-accent { background-color: #159E3F; }
.recipe-product-showcase-card.pillar-blends .showcase-card-accent { background-color: #D97706; }
.recipe-product-showcase-card.pillar-salts .showcase-card-accent { background-color: #0284C7; }

.recipe-product-showcase-card:hover .showcase-card-accent {
  height: 7px;
}

.showcase-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.showcase-prod-img {
  max-width: 90%;
  max-height: 160px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.recipe-product-showcase-card:hover .showcase-prod-img {
  transform: scale(1.08);
}

.showcase-pillar-tag {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  background-color: #FFFFFF;
}

.showcase-pillar-tag.pillar-spices { color: #D91D1A; }
.showcase-pillar-tag.pillar-herbs { color: #159E3F; }
.showcase-pillar-tag.pillar-blends { color: #D97706; }
.showcase-pillar-tag.pillar-salts { color: #0284C7; }

.showcase-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.showcase-mono-badge {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71757E;
}

.showcase-card-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: #121316;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.showcase-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #121316;
  margin-top: 8px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.recipe-product-showcase-card:hover .showcase-action-btn {
  gap: 10px;
  color: #D91D1A;
}

/* Preparation Steps */
.recipe-steps-ordered-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.recipe-step-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}

.recipe-step-num {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  color: #121316;
  line-height: 1.4;
}

.recipe-step-text {
  font-size: 15.5px;
  line-height: 1.75;
  color: #374151;
  margin: 0;
}

/* B2B / Wholesale Box */
.recipe-wholesale-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 44px;
  background-color: #F9F9F8;
  color: #141518;
  border: 1px solid rgba(20, 21, 24, 0.08);
  border-left: 4px solid var(--c-spices);
  margin-bottom: 80px;
}

.recipe-wholesale-cta-card .cta-heading {
  font-family: var(--font-serif) !important;
  font-size: 1.65rem;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  color: #141518 !important;
}

.recipe-wholesale-cta-card .cta-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: #52565E;
  margin: 0;
  max-width: 680px;
}

.recipe-wholesale-cta-card .btn-white-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background-color: #141518;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: 9999px !important;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.recipe-wholesale-cta-card .btn-white-action:hover {
  background-color: var(--c-spices);
  color: #FFFFFF;
  gap: 12px;
}

/* Related Recipes Section */
.recipe-related-section {
  padding-top: 48px;
  border-top: 1px solid rgba(18, 19, 22, 0.08);
}

.recipe-related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.recipe-related-title {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #121316;
  margin: 0;
}

/* RESPONSIVE RECIPES RULES */
@media (max-width: 1024px) {
  .recipes-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }
  .recipe-detail-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .recipe-detail-body-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .recipe-wholesale-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .recipes-page-canvas,
  .recipe-detail-canvas {
    padding: 32px 20px 80px !important;
  }
  .recipes-catalog-grid {
    grid-template-columns: 1fr;
  }
  .recipe-detail-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
