/*-----------------------------------
    Menu (catalog, product page, home, header menu) on top of style.css
-----------------------------------*/

/* Menu photos are 4:5 (1080x1350); keep every card the same shape */
.product-image img,
.menu-gallery-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background-color: var(--kf-bg-secondary);
}
.product-thumb-carousel img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--kf-bg-secondary);
}

.product-category {
  font-size: 13px;
  margin-top: 6px;
  color: var(--kf-text-muted);
}
.product-category a {
  color: inherit;
}
.product-category a:hover {
  color: var(--kf-primary);
}

/* Section / category filters: links styled like the theme's product tab buttons */
.menu-filter-nav {
  justify-content: center;
  gap: 12px 30px;
}
.menu-filter-nav a {
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 5px;
  text-transform: uppercase;
  color: var(--kf-text-heading);
}
.menu-filter-nav a:hover,
.menu-filter-nav a.active {
  color: var(--kf-primary);
}
.menu-filter-nav a span {
  font-size: 12px;
  margin-left: 4px;
  color: var(--kf-text-muted);
}
.menu-section-nav {
  margin-bottom: 20px;
}
.menu-section-nav a {
  font-size: 16px;
}
.menu-category-nav {
  gap: 10px 22px;
  margin-bottom: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--kf-border);
}
.menu-category-nav a {
  font-size: 13px;
}

.menu-search {
  display: flex;
  gap: 8px;
}
.menu-search input {
  font-size: 14px;
  min-width: 220px;
  padding: 8px 12px;
  border: 1px solid var(--kf-border);
  background-color: var(--kf-bg-primary);
  color: var(--kf-text-heading);
}

.menu-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--kf-text-muted);
}

.single-product-description h2,
.single-product-description h3 {
  margin-top: 20px;
  margin-bottom: 12px;
}
.single-product-description ul {
  padding-left: 20px;
  list-style: disc;
}

/* Home "Operasional Outlet Kami": one opening-time box per outlet */
.outlet-opening-time {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--kf-bg-primary);
}
.outlet-opening-time .opening-time-schedule {
  flex-grow: 1;
}
.outlet-opening-time .opening-time-schedule li.is-today {
  font-weight: 600;
  color: var(--kf-primary);
}
.outlet-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  text-align: center;
  border-bottom: 1px solid var(--kf-border);
}
.outlet-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
}
.outlet-status.is-open {
  color: #1E7B45;
  background-color: rgba(30, 123, 69, 0.12);
}
.outlet-status.is-closed {
  color: #A33B2E;
  background-color: rgba(163, 59, 46, 0.12);
}
.outlet-address {
  font-size: 13px;
  margin: 0;
  color: var(--kf-text-muted);
}
.outlet-address i {
  margin-right: 6px;
}
.outlet-footer {
  padding: 12px 20px;
  text-align: center;
  border-top: 1px solid var(--kf-border);
}
.outlet-directions {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  color: var(--kf-primary);
}
.outlet-directions:hover {
  color: var(--kf-primary-hover);
}
.outlet-empty {
  font-size: 14px;
  margin: 0;
  padding: 15px 20px;
  text-align: center;
  color: var(--kf-text-muted);
}

/* Catalog search above the filter; results swapped in place by catalog.js */
#catalog-search {
  justify-content: center;
  margin-bottom: 30px;
}
#catalog-search input[type="search"] {
  width: 100%;
  max-width: 420px;
}
.menu-result-count {
  font-size: 14px;
  margin: -20px 0 30px;
  text-align: center;
  color: var(--kf-text-muted);
}
#catalog-results {
  transition: opacity 0.15s ease;
}
#catalog-results.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Header "Menu" mega menu: one equal Bootstrap column per section (Food / Drinks / Others) */
.mega-menu.menu-mega {
  display: block;
  padding: 35px 60px;
}
.menu-mega .row {
  --bs-gutter-x: 40px;
}
.menu-mega-title {
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--kf-border-medium);
  color: var(--kf-text-heading);
}
.menu-mega-title small {
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  color: var(--kf-text-muted);
}
.mega-menu .menu-mega-links {
  column-count: 2;
  column-gap: 20px;
  margin-top: 15px;
}
.mega-menu .menu-mega-links li {
  break-inside: avoid;
}
.mega-menu .menu-mega-links li + li {
  margin-top: 0;
}
.mega-menu .menu-mega-links li a {
  font-size: 15px;
  padding: 5px 0;
}
.menu-mega-footer {
  margin-top: 25px;
  padding-top: 15px;
  text-align: right;
  border-top: 1px solid var(--kf-border);
}
.menu-mega-footer a {
  font-size: 14px;
  font-weight: 600;
  color: var(--kf-primary);
}

/* Pagination "..." (opens the page picker) */
.pagination .pagination-ellipsis a {
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
}
.pagination .pagination-ellipsis a.is-current {
  color: var(--kf-primary);
  box-shadow: 0 0 0 2px var(--kf-primary), 0 0 12px var(--kf-shadow);
}

/* Page picker modal */
.page-picker {
  border-radius: 0;
  background-color: var(--kf-bg-elevated);
  color: var(--kf-text-body);
}
.page-picker .modal-header {
  border-bottom-color: var(--kf-border);
}
.page-picker .modal-title {
  font-size: 18px;
  text-transform: uppercase;
  color: var(--kf-text-heading);
}
.page-picker-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
}
.page-picker-grid li a {
  background-color: var(--kf-bg-primary);
  box-shadow: 0 0 12px var(--kf-shadow);
}
.page-picker-grid li a.active {
  cursor: default !important;
}
.page-picker-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--kf-border);
}
.page-picker-form label,
.page-picker-total {
  font-size: 14px;
  margin: 0;
  color: var(--kf-text-muted);
}
.page-picker-form input {
  font-size: 14px;
  width: 80px;
  padding: 8px 10px;
  text-align: center;
  border: 1px solid var(--kf-border);
  background-color: var(--kf-bg-primary);
  color: var(--kf-text-heading);
}
.page-picker-error {
  font-size: 13px;
  margin: 10px 0 0;
  text-align: center;
  color: #A33B2E;
}

/* Home "Koleksi Minuman Favorit" */
.menu-collection-nav {
  gap: 15px 35px;
}
.menu-collection-more {
  margin-top: 35px;
  text-align: center;
}

/* Testimonials: initials placeholder in the colours of the POS product placeholder (#EFEFEF / #AAAAAA) */
.testimonial-initials {
  font-family: "Inter", "Open Sans", sans-serif;
  font-size: 34px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  letter-spacing: 1px;
  color: #AAAAAA;
  background-color: #EFEFEF;
  user-select: none;
}
.testimonial-rating {
  font-size: 18px;
  margin-bottom: 20px;
  letter-spacing: 3px;
  color: var(--kf-border-medium);
}
.testimonial-rating .is-filled {
  color: var(--kf-primary);
}
.testimonial-translation {
  font-size: 15px;
  margin-top: 12px;
  color: var(--kf-text-muted);
}
.testimonial-source {
  font-size: 13px;
  margin: 6px 0 0;
  color: var(--kf-text-muted);
}
.testimonial-source a {
  color: inherit;
  text-decoration: underline;
}
.testimonial-source a:hover {
  color: var(--kf-primary);
}

/* Blog: covers 3:2, article content from the Quill editor */
.blog-thumb img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background-color: var(--kf-bg-secondary);
}
.blog-sidebar-post-thumb img {
  width: 100%;
  background-color: var(--kf-bg-secondary);
}
.single-blog-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.blog-filter-bar {
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--kf-border);
  color: var(--kf-text-muted);
}
.blog-filter-bar a {
  font-weight: 600;
  color: var(--kf-primary);
}
.blog-quill-content {
  line-height: 1.8;
  overflow-wrap: break-word;
}
.blog-quill-content h1,
.blog-quill-content h2,
.blog-quill-content h3,
.blog-quill-content h4 {
  margin: 28px 0 12px;
}
.blog-quill-content p {
  margin-bottom: 16px;
}
.blog-quill-content ul,
.blog-quill-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.blog-quill-content ul {
  list-style: disc;
}
.blog-quill-content ol {
  list-style: decimal;
}
.blog-quill-content img,
.blog-quill-content video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px auto;
}
.blog-quill-content .ql-video-embed {
  position: relative;
  display: block;
  padding-top: 56.25%;
  margin: 10px 0;
}
.blog-quill-content .ql-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.blog-quill-content pre {
  padding: 12px 16px;
  white-space: pre-wrap;
  background-color: var(--kf-bg-secondary);
}
.blog-quill-content a {
  text-decoration: underline;
  color: var(--kf-primary);
}

/* Catalog banner: menu photo (Catalog:Banner:Image) under a dark overlay, heading + menu PDF button */
.catalog-hero {
  padding: 70px 0 80px;
}
.catalog-hero.has-image {
  background-position: center;
  background-size: cover;
}
.catalog-hero.has-image::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.55) 0%, rgba(20, 16, 12, 0.72) 100%);
}
.catalog-hero .container {
  position: relative;
  z-index: 1;
}
.catalog-hero-content {
  max-width: 680px;
  margin: 30px auto 0;
  text-align: center;
  color: #fff;
}
.catalog-hero-title {
  font-size: 48px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
}
@media only screen and (max-width: 767px) {
  .catalog-hero {
    padding: 50px 0 60px;
  }
  .catalog-hero-title {
    font-size: 34px;
  }
}
.catalog-hero-subtitle {
  font-size: 17px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
}
.catalog-hero-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.catalog-hero-note {
  font-size: 13px;
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
}

/* About page */
.about-story-image {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  border: 1px solid var(--kf-border);
  background-color: var(--kf-border);
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 15px;
  text-align: center;
  background-color: var(--kf-bg-primary);
}
.about-stat-value {
  font-family: "Oswald", sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  color: var(--kf-primary);
}
a.about-stat-value:hover {
  color: var(--kf-primary-hover);
}
.about-stat-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--kf-text-muted);
}
.about-cta {
  padding: 50px 20px;
  text-align: center;
  border: 1px solid var(--kf-border);
  background-color: var(--kf-bg-secondary);
}
.about-cta-title {
  text-transform: uppercase;
  margin-bottom: 10px;
}
.about-cta p {
  margin-bottom: 25px;
  color: var(--kf-text-body);
}
.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Page hero without heading (e.g. a blog article): photo strip with the breadcrumb only */
.catalog-hero.is-compact {
  padding: 60px 0;
}

/* Contact page: one card per outlet (map, status, address, daily hours) + contact channels */
.outlet-contact-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--kf-border);
  background-color: var(--kf-bg-primary);
}
.outlet-contact-map iframe {
  border: 0;
}
.outlet-contact-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
  padding: 22px 24px 24px;
}
.outlet-contact-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.outlet-contact-name {
  font-size: 22px;
  margin: 0;
  text-transform: uppercase;
}
.outlet-contact-hours {
  flex-grow: 1;
  padding: 0;
}
.outlet-contact-hours li.is-today {
  font-weight: 600;
  color: var(--kf-primary);
}
.outlet-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.outlet-contact-actions .btn i {
  margin-right: 6px;
}
.contact-channel-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.contact-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 16px;
  text-align: center;
  border: 1px solid var(--kf-border);
  background-color: var(--kf-bg-primary);
  color: var(--kf-text-body);
}
.contact-channel:hover {
  border-color: var(--kf-primary);
  color: var(--kf-text-body);
}
.contact-channel i {
  font-size: 28px;
  color: var(--kf-primary);
}
.contact-channel-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--kf-text-muted);
}
.contact-channel-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--kf-text-heading);
}

/* Footer: background photo (Footer:Background) under a dark overlay so the white text stays readable */
.site-footer {
  position: relative;
  background-color: #1F1A16;
}
.site-footer::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(24, 18, 14, 0.82) 0%, rgba(24, 18, 14, 0.9) 100%);
}
.site-footer > .section {
  position: relative;
  z-index: 1;
}
.site-footer .footer-widget-list-icon li a,
.site-footer .footer-widget-list li a {
  color: inherit;
  flex: 1 1 auto;
  min-width: 0;
}
.site-footer .footer-widget-list-icon li i {
  flex-shrink: 0;
}
.site-footer .footer-widget-list li a:hover,
.site-footer .footer-widget-list-icon li a:hover {
  color: var(--kf-primary);
}

/* Page loader (_Layout): logo centred on the theme background until window "load"; dark logo in light mode, light logo in dark mode */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--kf-bg-primary);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-loader-logo {
  width: auto;
  height: 64px;
  animation: site-loader-pulse 1.4s ease-in-out infinite;
}
.site-loader-logo.light,
[data-theme=dark] .site-loader-logo {
  display: none;
}
[data-theme=dark] .site-loader-logo.light {
  display: block;
}
@keyframes site-loader-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .site-loader-logo { animation: none; }
}
