/* =========================================
   GRM Recipe Catalog Front CSS START
========================================= */

/* =========================
   GRM Recipe Catalog Front
========================= */
.grmrc-page {
  padding: 80px 0;
  background: #f7f5f1;
  color: #222;
}
.grmrc-page a {
  color: inherit;
  text-decoration: none;
}
.grmrc-archive-header,
.grmrc-single-header {
  max-width: 920px;
  margin: 0 auto 48px;
  text-align: center;
}
.grmrc-archive-label,
.grmrc-single-label,
.grmrc-section-label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9b7b45;
  font-weight: 700;
}
.grmrc-archive-title,
.grmrc-single-title {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.grmrc-archive-description {
  margin: 18px auto 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.9;
  color: #666;
}
.grmrc-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.grmrc-card {
  overflow: hidden;
  border-radius: 0px;
  padding: 0;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}
.grmrc-card:hover {
 }
.grmrc-card-link {
  display:flex;
  flex-direction:column;
  height:100%;
}
.grmrc-card-thumb {
  position: relative;
  aspect-ratio:1 / 1;
  overflow:hidden;
  background: #e9e2d7;
  border-radius: 0px;
}
.grmrc-collection-card .grmrc-card-thumb {
  aspect-ratio:1 / 1;
}
.grmrc-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grmrc-card:hover .grmrc-card-thumb img {

}
.grmrc-card-noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  color: #998b7d;
  font-size: 13px;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #eee7dc, #faf8f4);
}
.grmrc-card-body {
	flex:1;
    display:flex;
	flex-direction:column;
	padding: 10px;
}
.grmrc-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  margin-bottom: 10px;
}
.grmrc-card-meta span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(155, 123, 69, 0.25);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  line-height: 1;
  color: #9b7b45;
  background: #fbf7ef;
  font-weight: 700;
}
.grmrc-card-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
}
.grmrc-card-action {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  color: #9b7b45;
  margin-top:auto;
}
.grmrc-card-action::after {
  content: " →";
}
.grmrc-single {
  max-width: 980px;
  margin: 0 auto;
}
.grmrc-single-visual {
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}
.grmrc-single-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.grmrc-single-content {
  margin: 42px auto 0;
  max-width: 780px;
  font-size: 16px;
  line-height: 2;
  color: #444;
}
.grmrc-single-content > *:first-child {
  margin-top: 0;
}
.grmrc-single-content > *:last-child {
  margin-bottom: 0;
}
.grmrc-single-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.grmrc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  background: #222;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  transition:
	opacity 0.2s ease,
	transform 0.2s ease;
}
.grmrc-button:hover {
  opacity: 0.86;
  transform: translateY(-2px);
}
.grmrc-button-secondary {
  background: #9b7b45;
}
.grmrc-related-section {
  margin-top: 72px;
}
.grmrc-section-heading {
  margin-bottom: 28px;
  text-align: center;
}
.grmrc-section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
}
.grmrc-empty {
  text-align: center;
  color: #666;
}
@media (max-width: 991px) {
  .grmrc-page {
	padding: 60px 0;
  }
  .grmrc-card-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
  }
}
@media (max-width: 768px) {
  .grmrc-card-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grmrc-card-body {
	padding: 10px;
  }
  .grmrc-single-actions {
	display: grid;
	grid-template-columns: 1fr;
  }
  .grmrc-button {
	width: 100%;
  }
}

/* =========================
   Recipe Print Select
========================= */
.grmrc-print-select-bar {
  position: sticky;
  top: 100px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 28px;
  border: 1px solid rgba(155, 123, 69, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.grmrc-print-select-count {
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.grmrc-print-preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: #222;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.grmrc-print-preview-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.grmrc-recipe-card {
  position: relative;
}

.grmrc-print-select {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.grmrc-print-select-input {
  margin: 0;
}

.grmrc-recipe-card.is-print-selected {
  outline: 3px solid rgba(155, 123, 69, 0.45);
  outline-offset: 3px;
}

.grmrc-recipe-card.is-print-selected .grmrc-print-select {
  background: #9b7b45;
  color: #fff;
}

@media (max-width: 768px) {
  .grmrc-print-select-bar {
	align-items: stretch;
	flex-direction: column;
	top: 70px;
  }

  .grmrc-print-preview-button {
	width: 100%;
  }
}

.grmrc-selected-recipes {
  margin: 20px 0 30px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
}
.grmrc-selected-title {
  font-weight: 700;
  margin-bottom: 10px;
}
.grmrc-selected-list{
	margin:0;
	padding:0;
	list-style:none;
}
.grmrc-selected-list li{
	margin:6px 0;
	list-style:none;
}

/* =========================
   Recipe Layout Badge
========================= */
.grmrc-layout-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fbf7ef;
  color: #9b7b45;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(155, 123, 69, 0.25);
}

/* =========================
   Selected Recipe Sortable
========================= */
.grmrc-selected-help {
  margin: 10px 0 0;
  font-size: 12px;
  color: #8a7a68;
}

.grmrc-selected-item {
  cursor: move;
  padding: 10px 12px;
  border: 1px solid #e2d8ca;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.grmrc-selected-item.is-dragging {
  opacity: 0.45;
}

/* =========================
   Recipe Layout Badge
========================= */

/* =========================
   Recipe Layout Badge
========================= */

.grmrc-card-meta .grmrc-layout-page {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.grmrc-card-meta .grmrc-layout-half {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}

.grmrc-card-meta .grmrc-layout-third {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

/* =========================
   Page Builder
========================= */
.grmrc-page-builder-wrap {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
}

.grmrc-page-builder-section {
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.grmrc-page-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.grmrc-page-builder-title {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.4;
}

.grmrc-page-builder-head .grmrc-page-builder-title {
  margin-bottom: 0;
}

.grmrc-page-builder-add,
.grmrc-builder-page-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: #222;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.grmrc-builder-page-remove {
  background: #9b7b45;
}

.grmrc-page-builder-selected {
  margin: 0;
  padding: 0;
  list-style: none;
}

.grmrc-page-builder-selected-item,
.grmrc-page-builder-empty {
  border: 1px solid #e2d8ca;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}

.grmrc-page-builder-selected-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.grmrc-builder-page {
  border: 1px solid #e2d8ca;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
  background: #fbf7ef;
}

.grmrc-builder-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.grmrc-builder-page-head h3 {
  margin: 0;
  font-size: 18px;
}

.grmrc-builder-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
}

.grmrc-builder-drop-area {
  border: 2px dashed rgba(155, 123, 69, 0.35);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  color: #8a7a68;
  background: #fff;
}

@media (max-width: 991px) {
  .grmrc-page-builder-wrap {
	grid-template-columns: 1fr;
  }
}

/* =========================
   Page Builder Placement
========================= */
.grmrc-page-builder {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

.grmrc-builder-panel {
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.grmrc-builder-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.grmrc-builder-panel-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.grmrc-builder-panel-description {
  margin: 6px 0 0;
  font-size: 13px;
  color: #777;
}

.grmrc-builder-add-page,
.grmrc-builder-remove-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #222;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.grmrc-builder-remove-page {
  background: #9b7b45;
}

.grmrc-builder-recipe-list,
.grmrc-builder-drop {
  display: grid;
  gap: 10px;
  min-height: 72px;
}

.grmrc-builder-page-list {
  display: grid;
  gap: 18px;
}

.grmrc-builder-page {
  border: 1px solid #e2d8ca;
  border-radius: 16px;
  padding: 18px;
  background: #fbf7ef;
}

.grmrc-builder-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.grmrc-builder-page-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.grmrc-builder-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.grmrc-builder-layout label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.grmrc-builder-drop {
  border: 2px dashed #d8c8b5;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.grmrc-builder-recipe {
  cursor: move;
  border: 1px solid #e2d8ca;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.grmrc-builder-recipe.is-dragging {
  opacity: 0.45;
}

.grmrc-builder-recipe-title {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
}

.grmrc-builder-empty {
  margin: 0;
  font-size: 13px;
  color: #8a7a68;
}

@media (max-width: 991px) {
  .grmrc-page-builder {
	grid-template-columns: 1fr;
  }
}

/* =========================
   Preview
========================= */
.grmrc-builder-preview {
  margin-top: 40px;
}
.grmrc-preview-page {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
}
.grmrc-preview-layout {
  font-weight: 700;
  margin-bottom: 10px;
}
.grmrc-preview-item {
  padding: 10px;
  border: 1px solid #eee;
  margin-bottom: 10px;
  border-radius: 8px;
}

/* =========================
   Image Preview
========================= */
.grmrc-builder-preview-section {
  margin-top: 28px;
}

.grmrc-builder-preview {
  display: grid;
  gap: 28px;
}

.grmrc-preview-page {
  overflow: hidden;
  border: 1px solid #e2d8ca;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.grmrc-preview-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #fbf7ef;
  color: #9b7b45;
  font-size: 13px;
  font-weight: 700;
}

.grmrc-preview-slots {
  display: grid;
  min-height: 520px;
}

.grmrc-preview-layout-1 .grmrc-preview-slots {
  grid-template-rows: 1fr;
}

.grmrc-preview-layout-2 .grmrc-preview-slots {
  grid-template-rows: repeat(2, 1fr);
}

.grmrc-preview-layout-3 .grmrc-preview-slots {
  grid-template-rows: repeat(3, 1fr);
}

.grmrc-preview-recipe {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid #eee5d8;
  background: #fff;
}

.grmrc-preview-recipe:first-child {
  border-top: 0;
}

.grmrc-preview-image {
  overflow: hidden;
  background: #f4efe7;
}

.grmrc-preview-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #fff;
}

.grmrc-preview-caption {
  padding: 12px 16px 14px;
  background: #fff;
}

.grmrc-preview-title {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
  color: #222;
}

@media (max-width: 768px) {
  .grmrc-preview-slots {
	min-height: 360px;
  }
}

/* =========================
   A4 Preview Frame
========================= */

.grmrc-preview-page {
  max-width: 794px;
  margin: 0 auto;
  border: 2px solid #222;
  background: #fff;
}

.grmrc-preview-slots {
  display: block;
  min-height: 0;
}

.grmrc-preview-recipe {
  display: block;
  border-top: 1px solid #ddd;
}

.grmrc-preview-image {
  padding: 0;
}

.grmrc-preview-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: initial;
}

.grmrc-preview-caption {
  display: none;
}

/* =========================
   Remove Preview Header
========================= */

.grmrc-preview-page-header {
  display: none !important;
}

.grmrc-preview-recipe {
  border-top: 0 !important;
}

/* =========================
   A4 Width Fix
========================= */

.grmrc-builder-preview {
  display: grid;
  gap: 40px;
}

.grmrc-preview-page {
  width: 100% !important;
  max-width: 794px !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}

/* =========================
   Preview Final Fix
========================= */

.grmrc-preview-page,
.grmrc-preview-slots,
.grmrc-preview-recipe,
.grmrc-preview-image {
  padding: 0 !important;
  margin: 0 !important;
}

.grmrc-preview-recipe {
  border: 0 !important;
}

.grmrc-preview-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
}

.grmrc-preview-page {
  max-width: 794px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* =========================
   Rules Panel
========================= */
.grmrc-builder-rules-panel {
  margin-top: 20px;
}

.grmrc-builder-rules {
  line-height: 2;
}

/* =========================
   Rules Panel Final
========================= */
.grmrc-builder-rules-panel {
  align-self: start;
}

.grmrc-builder-rules {
  margin-top: 12px;
  font-size: 13px;
  line-height: 2;
  color: #333;
}

.grmrc-builder-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.grmrc-builder-panel {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

/* =========================
   Page Builder Sidebar Fix
========================= */

.grmrc-builder-sidebar {
  width: 100%;
}

.grmrc-builder-sidebar .grmrc-builder-panel {
  width: 100%;
  box-sizing: border-box;
}

.grmrc-builder-selected .grmrc-builder-panel-header {
  display: block;
}

.grmrc-builder-selected .grmrc-builder-panel-title {
  margin: 0 0 8px;
}

.grmrc-builder-selected .grmrc-builder-panel-description {
  margin: 0 0 18px;
}

/* =========================
   IMPORTANT NOTICE
========================= */

.grmrc-notice-box {
  margin: 30px 0;
  padding: 20px;
  border: 1px solid #ffe08a;
  border-left: 5px solid #f5b800;
  background: #fffbea;
}

.grmrc-notice-title {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 700;
  color: #b8860b;
}

.grmrc-notice-box p {
  margin: 0 0 10px;
  line-height: 1.8;
}

p.grmrc-notice-important {
  margin-bottom: 0;
  font-weight: 700 !important;
  color: #c0392b !important;
}

/* =========================
   PDF BUTTON START
========================= */
.grmrc-builder-pdf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: #222;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
/* PDF BUTTON END */

/* =========================
   PDF PRINT START
========================= */
@media print {
  body * {
	visibility: hidden !important;
  }

  .grmrc-builder-preview-section,
  .grmrc-builder-preview-section * {
	visibility: visible !important;
  }

  .grmrc-builder-preview-section {
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
  }

  .grmrc-builder-preview-section > .grmrc-builder-panel-header {
	display: none !important;
  }

  .grmrc-builder-preview {
	display: block !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
  }

  .grmrc-preview-page {
	width: 210mm !important;
	max-width: 210mm !important;
	height: 297mm !important;
	max-height: 297mm !important;
	margin: 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: #fff !important;
	page-break-after: always !important;
	break-after: page !important;
  }

  .grmrc-preview-page:last-child {
	page-break-after: auto !important;
	break-after: auto !important;
  }

  .grmrc-preview-slots,
  .grmrc-preview-recipe,
  .grmrc-preview-image {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: #fff !important;
  }

  .grmrc-preview-image img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: none !important;
	object-fit: initial !important;
	background: #fff !important;
  }
}
/* PDF PRINT END */

/* =========================
   Pagination Example START
========================= */

.grmrc-pagination{
	margin:40px 0;
}

.grmrc-pagination-list{
	display:flex;
	flex-wrap:wrap;
	justify-content:center;
	align-items:center;
	gap:10px;

	margin:0;
	padding:0;

	list-style:none;
}

.grmrc-pagination-item{
	margin:0;
	padding:0;
}

.grmrc-pagination .page-numbers{
	display:flex;
	align-items:center;
	justify-content:center;

	width:44px;
	height:44px;

	border:1px solid #ddd;
	border-radius:50%;

	background:#fff;
	color:#222;

	text-decoration:none;

	transition:.2s;
}

.grmrc-pagination a.page-numbers:hover{
	background:#222;
	border-color:#222;
	color:#fff;
}

.grmrc-pagination .current{
	background:#222;
	border-color:#222;
	color:#fff;
	font-weight: 700 !important;
}

.grmrc-pagination .prev,
.grmrc-pagination .next{
	width:auto;
	min-width:44px;
	padding:0 20px;
	border-radius:30px;
}

/* Pagination Example END */

/* =========================================
   GRM Recipe Catalog Front CSS END
========================================= */
