/*
Theme Name: Taste From Hungary Restaurant Theme
Theme URI: https://example.com/powerfuel-woo-theme
Author: PowerFuel Team
Author URI: https://example.com
Description: Modern restaurant WordPress theme for Hungarian cuisine and fine dining. Customizer-driven homepage with menu, booking, and contact shortcodes. Page editor content for About section. WooCommerce-ready for takeaway.
Version: 1.1.7
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: powerfuel
Tags: custom-menu, featured-images, threaded-comments, translation-ready, blog, footer-widgets, food-and-drink

Restaurant theme — homepage sections managed via Customizer; About text edited from Pages → Home.
Base styles are compiled from assets/scss/main.scss into assets/css/main.css
*/

/* Base styles are compiled from assets/scss/main.scss into assets/css/main.css */

/* ==========================================================================
   WooCommerce archive / category — mobile overrides (load last, highest priority)
   ========================================================================== */

@media screen and (max-width: 600px) {
  body,
  html {
    overflow-x: hidden;
  }

  .woocommerce,
  .woocommerce-page,
  .woocommerce.archive,
  .woocommerce-page.archive,
  .site-main,
  main,
  .content-area,
  .shop-page,
  .products-wrap,
  .woocommerce-products-wrapper,
  .shop-archive,
  .shop-layout,
  .shop-content,
  .container.shop-layout {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    box-sizing: border-box;
  }

  .shop-layout {
    display: block !important;
    grid-template-columns: none !important;
  }

  .shop-sidebar {
    width: 100% !important;
    max-width: 100% !important;
  }

  .woocommerce .woocommerce-result-count,
  .woocommerce-page .woocommerce-result-count,
  .woocommerce .woocommerce-ordering,
  .woocommerce-page .woocommerce-ordering {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 0 16px 0 !important;
    text-align: left !important;
  }

  .woocommerce .woocommerce-ordering select,
  .woocommerce-page .woocommerce-ordering select {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce.columns-1 ul.products,
  .woocommerce.columns-2 ul.products,
  .woocommerce.columns-3 ul.products,
  .woocommerce.columns-4 ul.products,
  .woocommerce.columns-5 ul.products,
  .woocommerce.columns-6 ul.products,
  .shop-archive ul.products,
  .shop-archive .powerfuel-products-loop {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px 0 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    list-style: none !important;
  }

  .woocommerce ul.products::before,
  .woocommerce ul.products::after,
  .woocommerce-page ul.products::before,
  .woocommerce-page ul.products::after {
    display: none !important;
    content: none !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  .woocommerce.columns-1 ul.products li.product,
  .woocommerce.columns-2 ul.products li.product,
  .woocommerce.columns-3 ul.products li.product,
  .woocommerce.columns-4 ul.products li.product,
  .woocommerce.columns-5 ul.products li.product,
  .woocommerce.columns-6 ul.products li.product,
  .shop-archive ul.products li.product.product-card {
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
  }

  .woocommerce ul.products li.product:hover,
  .shop-archive ul.products li.product.product-card:hover {
    transform: none !important;
  }

  .woocommerce ul.products li.product a,
  .woocommerce-page ul.products li.product a,
  .shop-archive .product-card__link {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .woocommerce ul.products li.product img,
  .woocommerce-page ul.products li.product img,
  .woocommerce ul.products li.product a img,
  .woocommerce-page ul.products li.product a img,
  .shop-archive .product-card__image,
  .shop-archive .product-card__image-wrap img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 16px auto !important;
  }

  .shop-archive .product-card__image-wrap {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce-page ul.products li.product .woocommerce-loop-product__title,
  .woocommerce ul.products li.product .price,
  .woocommerce-page ul.products li.product .price,
  .shop-archive .product-card__title,
  .shop-archive .product-card__price,
  .shop-archive .product-card__body,
  .shop-archive .product-card__actions {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .shop-archive .product-card__actions .button,
  .shop-archive .product-card__actions .add_to_cart_button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .woocommerce-notices-wrapper,
  .woocommerce .woocommerce-notices-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
  }

  .woocommerce-message,
  .woocommerce-error,
  .woocommerce-info,
  ul.woocommerce-error {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1rem 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding-left: 64px !important;
  }

  .woocommerce-message .button,
  .woocommerce-info .button,
  .woocommerce-error .button,
  ul.woocommerce-error .button {
    width: 100% !important;
    text-align: center !important;
  }
}

/* 2-column grid on small tablets / large phones (601px–768px) */
@media screen and (min-width: 601px) and (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .shop-archive ul.products,
  .shop-archive .powerfuel-products-loop {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 14px !important;
  }

  .woocommerce ul.products li.product,
  .shop-archive ul.products li.product.product-card {
    width: auto !important;
    float: none !important;
    min-width: 0 !important;
  }
}

/* ==========================================================================
   Homepage category tiles — 5 per row desktop, up to 10 cards (2 rows)
   ========================================================================== */

.pf-category-grid,
.category-grid,
.fuel-category-grid,
.category-tiles {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.pf-category-grid > .pf-category-card,
.pf-category-grid > .category-tile,
.pf-category-grid > a,
.category-tiles > .category-tile {
  min-width: 0 !important;
  max-width: 100% !important;
}

.pf-category-card,
.category-card,
.fuel-category-card,
.pf-category-grid .category-tile {
  width: 100% !important;
  min-height: 130px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
}

@media (max-width: 1200px) {
  .pf-category-grid,
  .category-grid,
  .fuel-category-grid,
  .category-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .pf-category-grid,
  .category-grid,
  .fuel-category-grid,
  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  .pf-category-grid,
  .category-grid,
  .fuel-category-grid,
  .category-tiles {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   WooCommerce polish — notices, archives, sorting, empty cart
   ========================================================================== */

.woocommerce-notices-wrapper {
  max-width: 1320px;
  margin: 24px auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
ul.woocommerce-error {
  position: relative;
  border: 0 !important;
  border-left: 6px solid var(--pf-primary, #e21b2d) !important;
  background: #101010 !important;
  color: #fff !important;
  border-radius: 14px !important;
  padding: 20px 24px 20px 64px !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  font-weight: 600;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.5;
  list-style: none;
  margin: 0 0 1rem;
  box-sizing: border-box;
}

.woocommerce-info:not(.cart-empty) {
  border-left-color: #6b7280 !important;
}

.woocommerce-error,
ul.woocommerce-error {
  border-left-color: #ff4757 !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  left: 28px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: var(--pf-primary, #e21b2d) !important;
}

.woocommerce-info:not(.cart-empty)::before {
  color: #9ca3af !important;
}

.woocommerce-error::before {
  color: #ff4757 !important;
}

ul.woocommerce-error {
  padding-left: 24px !important;
}

ul.woocommerce-error li {
  position: relative;
  color: #fff !important;
  margin: 0;
  padding: 0.35rem 0 0.35rem 2rem;
}

ul.woocommerce-error li::before {
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #ff4757 !important;
}

ul.woocommerce-error li + li {
  margin-top: 0.5rem;
}

.woocommerce-message:not(.cart-empty),
.woocommerce-info:not(.cart-empty) {
  animation: pfNoticeInOut 6s ease forwards;
}

@keyframes pfNoticeInOut {
  0% {
    opacity: 0;
    transform: translateY(-18px);
  }

  12% {
    opacity: 1;
    transform: translateY(0);
  }

  78% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .woocommerce-message:not(.cart-empty),
  .woocommerce-info:not(.cart-empty) {
    animation: none;
  }
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a,
.woocommerce-message .restore-item,
.woocommerce-info .restore-item {
  color: #fff !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button,
ul.woocommerce-error .button,
.woocommerce a.button.wc-forward,
.woocommerce a.button.wc-backward {
  background: var(--pf-primary, #e21b2d) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 13px 28px !important;
  font-weight: 900 !important;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none !important;
  display: inline-block;
  line-height: 1.2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover,
ul.woocommerce-error .button:hover,
.woocommerce a.button.wc-forward:hover,
.woocommerce a.button.wc-backward:hover {
  background: var(--pf-primary-dark, #9f1221) !important;
  color: #fff !important;
}

.woocommerce-products-header .term-description,
.tax-product_brand .term-description,
.tax-product_cat .term-description,
.shop-archive .term-description {
  background: #101010;
  color: #fff;
  border-left: 6px solid var(--pf-primary, #e21b2d);
  border-radius: 18px;
  padding: 28px 32px;
  margin: 24px 0 36px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  font-size: 17px;
  line-height: 1.7;
  font-family: Inter, system-ui, sans-serif;
}

.woocommerce-products-header .term-description p:last-child,
.tax-product_brand .term-description p:last-child,
.tax-product_cat .term-description p:last-child,
.shop-archive .term-description p:last-child {
  margin-bottom: 0;
}

.woocommerce-products-header .term-description h1,
.woocommerce-products-header .term-description h2,
.woocommerce-products-header .term-description h3,
.tax-product_brand .term-description h1,
.tax-product_brand .term-description h2,
.tax-product_brand .term-description h3,
.tax-product_cat .term-description h1,
.tax-product_cat .term-description h2,
.tax-product_cat .term-description h3,
.shop-archive .term-description h1,
.shop-archive .term-description h2,
.shop-archive .term-description h3 {
  color: #fff;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
}

.woocommerce-products-header .term-description a,
.tax-product_brand .term-description a,
.tax-product_cat .term-description a,
.shop-archive .term-description a {
  color: var(--pf-primary, #e21b2d);
  font-weight: 700;
}

.woocommerce .woocommerce-ordering select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  max-width: 100%;
  background-color: #101010;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  color: #fff;
  border: 2px solid var(--pf-primary, #e21b2d);
  border-radius: 999px;
  padding: 12px 42px 12px 18px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.woocommerce .woocommerce-ordering select:hover {
  border-color: var(--pf-primary-dark, #9f1221);
  background-color: #161616;
}

.woocommerce .woocommerce-ordering select:focus-visible {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(226, 27, 45, 0.35);
}

.woocommerce-page__inner {
  padding: 2rem 0 4rem;
}

.woocommerce-cart .wc-empty-cart-message {
  max-width: 760px;
  margin: 0 auto 2rem;
}

.woocommerce-cart .cart-empty.woocommerce-info {
  animation: none;
  margin-bottom: 0;
}

.woocommerce-cart .return-to-shop {
  text-align: center;
  margin: 0 0 3rem;
}

.woocommerce-cart .cross-sells {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.woocommerce-cart .cross-sells > h2 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 1.5rem;
}

.woocommerce-cart .cross-sells ul.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.woocommerce-cart .cross-sells ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  min-width: 0;
}

@media (min-width: 601px) {
  .woocommerce-cart .cross-sells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .woocommerce-cart .cross-sells ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .woocommerce-notices-wrapper {
    margin: 16px auto;
    padding: 0 16px;
  }

  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error,
  ul.woocommerce-error {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 18px 64px !important;
  }

  .woocommerce-message::before,
  .woocommerce-info::before,
  .woocommerce-error::before {
    top: 28px !important;
    transform: none !important;
  }

  .woocommerce-message .button,
  .woocommerce-info .button,
  .woocommerce-error .button,
  ul.woocommerce-error .button,
  .woocommerce a.button.wc-forward,
  .woocommerce a.button.wc-backward {
    width: 100%;
    text-align: center;
  }

  .woocommerce-products-header .term-description,
  .tax-product_brand .term-description,
  .tax-product_cat .term-description,
  .shop-archive .term-description {
    padding: 22px 20px;
    margin: 16px 0 28px;
    font-size: 16px;
  }
}
