﻿/* ============================================================
   Foodaloo Child Theme for PrestaShop 8
   Basato su www.foodaloo.it
   Colore primario: #FAB536 | Font: Montserrat (titoli), Poppins (corpo)
   ============================================================ */

/* Base CSS del tema Classic parent — deve venire PRIMA di tutto */
@import url('../../../classic/assets/css/theme.css');

/* --- Google Fonts: Montserrat (titoli) + Poppins (corpo) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Poppins:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* --- CSS Variables (colori esatti da www.foodaloo.it) --- */
:root {
  --foodaloo-primary:       #fab536;
  --foodaloo-primary-dark:  #edab33;
  --foodaloo-primary-light: #fdd07a;
  --foodaloo-yellow-bright: #FFB200;
  --foodaloo-banner-btn:    #FBB340;
  --foodaloo-brown:         #4D3429;
  --foodaloo-white:         #ffffff;
  --foodaloo-black:         #17181a;
  --foodaloo-text:          #333333;
  --foodaloo-gray:          #777777;
  --foodaloo-light-gray:    #f5f5f5;
  --foodaloo-border:        #e0e0e0;
  --foodaloo-font-main:     'Montserrat', sans-serif;
  --foodaloo-font-body:     'Poppins', sans-serif;
  --foodaloo-radius:        10px;
  --foodaloo-radius-sm:     6px;
  --foodaloo-shadow:        0 2px 12px rgba(0,0,0,0.08);
}

/* ============================================================
   BASE / TIPOGRAFIA
   ============================================================ */

* {
  font-family: var(--foodaloo-font-main);
}

body,
html {
  font-weight: 300;
  color: var(--foodaloo-text);
  background-color: var(--foodaloo-white);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  color: var(--foodaloo-brown);
}

p, li, td {
  font-family: var(--foodaloo-font-body);
  font-weight: 300;
  color: var(--foodaloo-text);
}

a {
  color: var(--foodaloo-brown);
  transition: color 0.2s ease;
}
a:hover {
  color: var(--foodaloo-primary);
  text-decoration: none;
}

/* ============================================================
   HEADER
   ============================================================ */

#header {
  background-color: var(--foodaloo-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-bottom: 3px solid var(--foodaloo-primary);
}

#header .header-top {
  background-color: var(--foodaloo-white);
  color: var(--foodaloo-black);
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  font-size: 0.82rem;
}

#header .header-top a {
  color: var(--foodaloo-black);
}
#header .header-top a:hover {
  color: var(--foodaloo-primary);
}

/* Logo */
#header .logo img {
  max-height: 60px;
}

/* ── Logo Foodaloo (comune a tutte le pagine) ── */
.fl-logo-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none !important;
  line-height: 1;
}
.fl-logo-wordmark {
  display: flex;
  align-items: center;
  line-height: 1;
}
.fl-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 2.6rem;
  color: #17181a;
  letter-spacing: -0.02em;
}
.fl-logo-o {
  height: 1.78rem;
  width: auto;
  margin: 0 -1px;
  display: block;
  position: relative;
  top: 0;
}
.fl-logo-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 700;
  color: #17181a;
  margin-top: 2px;
  white-space: nowrap;
}
.fl-logo-tagline span { color: #FAB536; }

/* Navbar */
.menu-top .top-menu > li > a,
.menu-top .top-menu > li > span {
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--foodaloo-black);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.menu-top .top-menu > li > a:hover,
.menu-top .top-menu > li.current > a {
  color: var(--foodaloo-primary);
}

/* ── Nav bar Foodaloo (comune a tutte le pagine) ── */
.fl-nav-bar {
  background: #FAB536;
  border-top: none;
  border-bottom: none;
}
.fl-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0;
}
.fl-nav__item {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #17181a;
  padding: 10px 14px;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 0;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  display: block;
}
.fl-nav__item:hover,
.fl-nav__item--active {
  color: #17181a;
  background: rgba(0,0,0,0.10);
}
.fl-nav__item--active {
  border-bottom: 2px solid #17181a;
}
.fl-nav__dropdown {
  position: relative;
}
.fl-nav__dropdown:hover .fl-nav__submenu {
  display: block;
}
.fl-nav__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  border-top: 2px solid #FAB536;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  min-width: 200px;
  z-index: 999;
  padding: 6px 0;
}
.fl-nav__submenu a {
  display: block;
  padding: 8px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: #17181a;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.fl-nav__submenu a:hover {
  background: rgba(250,181,54,0.10);
  color: #e8a320;
}

/* Carrello / icone header */
.blockcart .cart-preview .header,
.user-info a {
  color: var(--foodaloo-black);
}
.blockcart .cart-products-count {
  background-color: var(--foodaloo-primary);
  color: var(--foodaloo-white);
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
}

/* Search bar */
.search-widget input[type="text"],
#search_widget input {
  border: 2px solid var(--foodaloo-border);
  border-radius: var(--foodaloo-radius);
  font-family: var(--foodaloo-font-body);
  transition: border-color 0.2s ease;
}
.search-widget input[type="text"]:focus,
#search_widget input:focus {
  border-color: var(--foodaloo-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(250,181,54,0.15);
}
.search-widget button,
#search_widget button {
  background-color: var(--foodaloo-primary);
  color: var(--foodaloo-white);
  border: none;
  border-radius: 0 var(--foodaloo-radius) var(--foodaloo-radius) 0;
}
.search-widget button:hover,
#search_widget button:hover {
  background-color: var(--foodaloo-primary-dark);
}

/* ============================================================
   BOTTONI
   ============================================================ */

.btn-primary,
.btn.btn-primary,
button.btn-primary {
  background-color: var(--foodaloo-primary) !important;
  border-color: var(--foodaloo-primary) !important;
  color: var(--foodaloo-white) !important;
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  border-radius: var(--foodaloo-radius) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn-primary:hover,
.btn.btn-primary:hover {
  background-color: var(--foodaloo-primary-dark) !important;
  border-color: var(--foodaloo-primary-dark) !important;
  transform: translateY(-1px);
}

.btn-secondary,
.btn.btn-secondary {
  border: 2px solid var(--foodaloo-primary);
  color: var(--foodaloo-primary) !important;
  background-color: transparent !important;
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  border-radius: var(--foodaloo-radius) !important;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.btn-secondary:hover,
.btn.btn-secondary:hover {
  background-color: var(--foodaloo-primary) !important;
  color: var(--foodaloo-white) !important;
}

/* Add to cart */
.add-to-cart,
.btn-add-to-cart,
#add-to-cart-or-refresh .add-to-cart {
  background-color: var(--foodaloo-primary) !important;
  border-color: var(--foodaloo-primary) !important;
  color: var(--foodaloo-white) !important;
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  border-radius: var(--foodaloo-radius) !important;
  font-size: 1rem;
  padding: 12px 24px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.add-to-cart:hover,
.btn-add-to-cart:hover {
  background-color: var(--foodaloo-primary-dark) !important;
  border-color: var(--foodaloo-primary-dark) !important;
  transform: translateY(-1px);
}

/* ============================================================
   PRODOTTI — CARD
   ============================================================ */

.product-miniature .product-thumbnail {
  border-radius: var(--foodaloo-radius);
  overflow: hidden;
}

.product-miniature .card,
.product-miniature article {
  border: 1px solid var(--foodaloo-border);
  border-radius: var(--foodaloo-radius);
  box-shadow: var(--foodaloo-shadow);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  overflow: hidden;
}
.product-miniature .card:hover,
.product-miniature article:hover {
  box-shadow: 0 6px 24px rgba(250,181,54,0.18);
  transform: translateY(-3px);
}

.product-miniature .product-title a {
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  color: var(--foodaloo-black);
  font-size: 0.95rem;
}
.product-miniature .product-title a:hover {
  color: var(--foodaloo-primary);
}

/* Prezzo */
.product-miniature .price,
.product-price {
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  color: var(--foodaloo-primary);
  font-size: 1.1rem;
}

.product-miniature .regular-price,
.regular-price {
  color: var(--foodaloo-gray);
  font-family: var(--foodaloo-font-body);
  font-weight: 300;
}

/* Badge "Nuovo" / "Sconto" */
.product-flag {
  background-color: var(--foodaloo-primary);
  color: var(--foodaloo-white);
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  border-radius: var(--foodaloo-radius-sm);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
.product-flag.discount-product {
  background-color: #e53935;
}

/* ============================================================
   PAGINA PRODOTTO
   ============================================================ */

.page-product #main .page-content h1 {
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  color: var(--foodaloo-black);
  font-size: 1.8rem;
}

.product-prices .current-price .price {
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  color: var(--foodaloo-primary);
  font-size: 2rem;
}

.product-information {
  font-family: var(--foodaloo-font-body);
  font-weight: 300;
  line-height: 1.7;
}

/* Tabs descrizione */
.page-product .tabs .nav-tabs .nav-link.active {
  border-bottom: 3px solid var(--foodaloo-primary);
  color: var(--foodaloo-primary);
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
}

/* Quantità */
.product-quantity .qty {
  border: 2px solid var(--foodaloo-border);
  border-radius: var(--foodaloo-radius-sm);
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
}
.product-quantity .input-group-btn-vertical .btn {
  border-color: var(--foodaloo-border);
  color: var(--foodaloo-primary);
}

/* ============================================================
   CATEGORIE / BREADCRUMB
   ============================================================ */

.breadcrumb-item a {
  color: var(--foodaloo-gray);
  font-family: var(--foodaloo-font-body);
}
.breadcrumb-item.active {
  color: var(--foodaloo-primary);
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--foodaloo-primary);
}

/* Titolo categoria */
.page-heading,
.category-name {
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  color: var(--foodaloo-black);
  border-bottom: 3px solid var(--foodaloo-primary);
  padding-bottom: 8px;
  display: inline-block;
}

/* Filtri */
.facet-title {
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  color: var(--foodaloo-black);
}
.facet-label .custom-checkbox input:checked ~ span {
  background-color: var(--foodaloo-primary);
  border-color: var(--foodaloo-primary);
}

/* ============================================================
   FORM / INPUT
   ============================================================ */

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
  border: 2px solid var(--foodaloo-border);
  border-radius: var(--foodaloo-radius-sm);
  font-family: var(--foodaloo-font-body);
  transition: border-color 0.2s ease;
}
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--foodaloo-primary);
  box-shadow: 0 0 0 3px rgba(250,181,54,0.15);
  outline: none;
}

/* Label */
label {
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--foodaloo-black);
}

/* ============================================================
   CARRELLO / CHECKOUT
   ============================================================ */

.cart-overview .cart-item {
  border-bottom: 1px solid var(--foodaloo-border);
  font-family: var(--foodaloo-font-body);
}

.cart-subtotals .label,
.cart-total .label {
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
}
.cart-total .value {
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  color: var(--foodaloo-primary);
}

.checkout-step .step-title {
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  border-left: 4px solid var(--foodaloo-primary);
  padding-left: 12px;
}

.step-number {
  background-color: var(--foodaloo-primary);
  color: var(--foodaloo-white);
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   SIDEBAR / BLOCCHI
   ============================================================ */

.block-categories .category-top-menu li a,
.links .title {
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  color: var(--foodaloo-black);
}
.block-categories .category-top-menu li a:hover {
  color: var(--foodaloo-primary);
}

.block .title {
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foodaloo-black);
  border-bottom: 2px solid var(--foodaloo-primary);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* ============================================================
   DIVIDER FOODALOO
   ============================================================ */

hr,
.foodaloo-hr {
  border: none;
  border-top: 2px solid var(--foodaloo-primary);
  margin: 16px 0;
  opacity: 0.3;
}

/* ============================================================
   ALERT / NOTIFICHE
   ============================================================ */

.alert-success {
  background-color: rgba(250,181,54,0.12);
  border-color: var(--foodaloo-primary);
  color: var(--foodaloo-black);
  border-radius: var(--foodaloo-radius);
  font-family: var(--foodaloo-font-body);
}

/* ============================================================
   PAGINAZIONE
   ============================================================ */

.page-list li a,
.pagination .page-link {
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  color: var(--foodaloo-black);
  border-color: var(--foodaloo-border);
  border-radius: var(--foodaloo-radius-sm);
}
.page-list li.current a,
.pagination .page-item.active .page-link {
  background-color: var(--foodaloo-primary);
  border-color: var(--foodaloo-primary);
  color: var(--foodaloo-white);
}
.page-list li a:hover,
.pagination .page-link:hover {
  background-color: var(--foodaloo-primary-light);
  border-color: var(--foodaloo-primary);
  color: var(--foodaloo-white);
}

/* ============================================================
   FOOTER
   ============================================================ */

#footer {
  background-color: var(--foodaloo-black); /* #17181a esatto */
  color: #cccccc;
  font-family: var(--foodaloo-font-body);
  font-weight: 300;
  border-top: 4px solid var(--foodaloo-primary);
}

#footer a {
  color: #cccccc;
  transition: color 0.2s ease;
}
#footer a:hover {
  color: var(--foodaloo-primary);
}

#footer .footer-container .h3,
#footer .footer-container h3,
#footer .h4,
#footer h4 {
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  color: var(--foodaloo-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--foodaloo-primary);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

#footer .footer-container li {
  font-size: 0.88rem;
  line-height: 2;
}

/* Copyright bar */
#footer .footer-bottom,
.footer-copyright {
  background-color: #0e0f11;
  color: #888888;
  font-size: 0.8rem;
  padding: 12px 0;
  text-align: center;
  font-family: var(--foodaloo-font-body);
}

/* ── Footer custom Foodaloo (comune a tutte le pagine) ── */
.fl-footer {
  background: #17181a;
  color: rgba(255,255,255,0.65);
  padding: 48px 0 0;
  border-top: 4px solid #FAB536;
}
.fl-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 2fr;
  gap: 32px;
  padding-bottom: 40px;
}
.fl-footer__col h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  border-bottom: 2px solid #FAB536;
  padding-bottom: 6px;
}
.fl-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fl-footer__col ul li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.85;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s;
}
.fl-footer__col ul li a:hover { color: #FAB536; }
.fl-footer__col p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}
.fl-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.fl-footer__tagline {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.fl-footer__tagline span { color: #FAB536; }

/* Footer logo sizing (in footer non deve scalare come la pagina interna) */
.fl-footer .fl-logo-text,
.fl-footer__bottom .fl-logo-text {
  font-size: 2rem !important;
  color: #fff;
}
.fl-footer .fl-logo-o,
.fl-footer__bottom .fl-logo-o {
  height: 1.37rem !important;
}

@media (max-width: 991px) {
  .fl-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .fl-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .fl-nav-bar { display: none; }
}

/* Newsletter */
.block_newsletter input[type="email"] {
  border-radius: var(--foodaloo-radius) 0 0 var(--foodaloo-radius);
  border: 2px solid var(--foodaloo-primary);
}
.block_newsletter input[type="submit"],
.block_newsletter button[type="submit"] {
  background-color: var(--foodaloo-primary);
  border-color: var(--foodaloo-primary);
  color: var(--foodaloo-white);
  border-radius: 0 var(--foodaloo-radius) var(--foodaloo-radius) 0;
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  text-transform: uppercase;
}
.block_newsletter input[type="submit"]:hover,
.block_newsletter button[type="submit"]:hover {
  background-color: var(--foodaloo-primary-dark);
  border-color: var(--foodaloo-primary-dark);
}

/* ============================================================
   COLORI BRAND AGGIUNTIVI (esatti da foodaloo.it)
   ============================================================ */

/* Titolo categoria — stile bottone giallo vivo come sul sito */
.category-cover .category-name,
.block-categories .h6 a,
#js-product-list-header .h2 {
  color: var(--foodaloo-brown);
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
}

/* Badge prezzo / saldo: rosso-arancio come WooCommerce del sito */
.product-flag.on-sale,
.product-flag.discount-product {
  background-color: #f65b47;
}

/* Evidenziazione banner / promozioni — FBB340 esatto */
.banner-promo,
.promo-highlight {
  background-color: var(--foodaloo-banner-btn);
  color: var(--foodaloo-white);
  border-radius: 16px;
  font-weight: 900;
}

/* Blocco categoria grande — stile .pulsante-category del sito */
.subcategories-list .subcategory-name {
  background-color: var(--foodaloo-yellow-bright);
  color: var(--foodaloo-white);
  font-family: var(--foodaloo-font-main);
  font-weight: 400;
  font-style: oblique;
  padding: 3px 8px;
  border-radius: 4px;
}
.subcategories-list .subcategory-name:hover {
  background-color: var(--foodaloo-white);
  color: var(--foodaloo-yellow-bright);
}

/* Testo brand scuro — #4D3429 per elementi in evidenza */
.product-description strong,
.block-promo .promo-name {
  color: var(--foodaloo-brown);
}

/* Separatori brand */
hr {
  border-top: 1px solid var(--foodaloo-primary);
  opacity: 0.25;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .page-product #main .page-content h1 {
    font-size: 1.4rem;
  }
  .product-prices .current-price .price {
    font-size: 1.6rem;
  }
  #header .logo img {
    max-height: 45px;
  }
}


/* ============================================================
   FOODALOO — ESTENSIONI v1.1
   Sticky header, mini-cart, checkout UX, animazioni scroll,
   toast notifiche, miglioramenti mobile
   ============================================================ */

/* ================================================================
   STICKY HEADER — comportamento scroll
   ================================================================ */

#header {
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: box-shadow 0.25s ease, transform 0.3s ease;
}

#header.header-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
}

#header.header-hidden {
  transform: translateY(-100%);
}

/* ================================================================
   TOP BAR PROMO
   ================================================================ */

.header-top-bar {
  background-color: var(--foodaloo-primary);
  color: var(--foodaloo-white);
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  padding: 6px 0;
  letter-spacing: 0.03em;
}

.header-top-bar a {
  color: var(--foodaloo-white);
  text-decoration: underline;
}

/* ================================================================
   MINI-CART DROPDOWN
   ================================================================ */

.blockcart .cart-preview {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 360px;
  background-color: var(--foodaloo-white);
  border: 1px solid var(--foodaloo-border);
  border-top: 3px solid var(--foodaloo-primary);
  border-radius: var(--foodaloo-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  z-index: 1100;
  padding: 0;
  overflow: hidden;
}

.blockcart .cart-preview .cart-product-name {
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  color: var(--foodaloo-black);
  font-size: 0.9rem;
}

.blockcart .cart-preview .price {
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  color: var(--foodaloo-primary);
}

.blockcart .cart-preview .cart-subtotals,
.blockcart .cart-preview .cart-total {
  border-top: 1px solid var(--foodaloo-border);
  padding: 10px 16px;
  font-family: var(--foodaloo-font-main);
}

.blockcart .cart-preview .cart-total .value {
  font-weight: 800;
  color: var(--foodaloo-primary);
  font-size: 1.1rem;
}

.blockcart .checkout.cart-detailed-actions {
  padding: 12px 16px;
  background-color: #f9f9f9;
  border-top: 1px solid var(--foodaloo-border);
  display: flex;
  gap: 8px;
}

/* ================================================================
   PRODOTTO — CARD migliorata
   ================================================================ */

.product-miniature .highlighted-informations {
  background-color: var(--foodaloo-primary);
  padding: 10px;
  transition: transform 0.25s ease;
}

.product-miniature .highlighted-informations .quick-view a,
.product-miniature .highlighted-informations a {
  color: var(--foodaloo-white);
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  font-size: 0.8rem;
}

.product-miniature .comments_note,
.product-miniature .star-content {
  color: var(--foodaloo-primary);
  font-size: 0.85rem;
}

.quickview-wishlist-button,
.wishlist-button-add {
  background: none;
  border: 2px solid var(--foodaloo-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quickview-wishlist-button:hover,
.wishlist-button-add:hover,
.wishlist-button-add.added {
  border-color: var(--foodaloo-primary);
  color: var(--foodaloo-primary);
  background-color: rgba(250,181,54,0.08);
}

/* ================================================================
   PAGINA PRODOTTO — miglioramenti
   ================================================================ */

.product-variants .control-label {
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  color: var(--foodaloo-black);
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}

.product-variants-item .input-container input[type="radio"]:checked + span {
  background-color: var(--foodaloo-primary);
  color: var(--foodaloo-white);
  border-color: var(--foodaloo-primary);
}

.product-discount .discount-percentage {
  background-color: #f65b47;
  color: var(--foodaloo-white);
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.product-quantity #quantity_wanted {
  border: 2px solid var(--foodaloo-primary);
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  border-radius: var(--foodaloo-radius-sm);
}

.product-quantity .input-group-btn-vertical .btn {
  background-color: var(--foodaloo-primary);
  border-color: var(--foodaloo-primary);
  color: var(--foodaloo-white);
  font-weight: 800;
}

.product-quantity .input-group-btn-vertical .btn:hover {
  background-color: var(--foodaloo-primary-dark);
}

.product-availability .available {
  color: #27ae60;
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  font-size: 0.85rem;
}

.product-availability .unavailable {
  color: #e53935;
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ================================================================
   CHECKOUT — step migliorati
   ================================================================ */

.checkout-process .checkout-step {
  background-color: var(--foodaloo-white);
  border: 1px solid var(--foodaloo-border);
  border-radius: var(--foodaloo-radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.checkout-process .checkout-step.-current {
  border-color: var(--foodaloo-primary);
  box-shadow: 0 0 0 3px rgba(250,181,54,0.12);
}

.checkout-process .checkout-step.-complete {
  border-color: #27ae60;
}

.checkout-process .checkout-step .step-title {
  background-color: var(--foodaloo-light-gray);
  padding: 14px 20px;
  border-bottom: 1px solid var(--foodaloo-border);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.checkout-process .checkout-step.-current .step-title {
  background-color: rgba(250,181,54,0.08);
}

.checkout-process .checkout-step .content {
  padding: 20px;
}

.checkout-step button[type="submit"],
.checkout-step .continue {
  background-color: var(--foodaloo-primary) !important;
  border-color: var(--foodaloo-primary) !important;
  color: var(--foodaloo-white) !important;
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  border-radius: var(--foodaloo-radius) !important;
  padding: 12px 28px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.checkout-step button[type="submit"]:hover,
.checkout-step .continue:hover {
  background-color: var(--foodaloo-primary-dark) !important;
}

.delivery-options-list .delivery-option {
  border: 2px solid var(--foodaloo-border);
  border-radius: var(--foodaloo-radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.delivery-options-list .delivery-option:hover {
  border-color: var(--foodaloo-primary);
  background-color: rgba(250,181,54,0.05);
}

/* ================================================================
   CARRELLO — pagina dettaglio
   ================================================================ */

.cart-grid-body .card {
  border: 1px solid var(--foodaloo-border);
  border-radius: var(--foodaloo-radius);
  box-shadow: var(--foodaloo-shadow);
}

#promo-code-form .input-group input {
  border-radius: var(--foodaloo-radius-sm) 0 0 var(--foodaloo-radius-sm) !important;
  border-color: var(--foodaloo-primary);
}

#promo-code-form .input-group button {
  background-color: var(--foodaloo-brown);
  border-color: var(--foodaloo-brown);
  color: var(--foodaloo-white);
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  border-radius: 0 var(--foodaloo-radius-sm) var(--foodaloo-radius-sm) 0 !important;
}

#promo-code-form .input-group button:hover {
  background-color: var(--foodaloo-black);
}

.cart-grid-right .checkout a.btn {
  background-color: var(--foodaloo-primary) !important;
  border-color: var(--foodaloo-primary) !important;
  color: var(--foodaloo-white) !important;
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  font-size: 1.05rem;
  width: 100%;
  padding: 14px;
  border-radius: var(--foodaloo-radius) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background-color 0.2s ease, transform 0.15s ease;
  display: block;
  text-align: center;
}

.cart-grid-right .checkout a.btn:hover {
  background-color: var(--foodaloo-primary-dark) !important;
  transform: translateY(-2px);
}

/* ================================================================
   ACCOUNT CLIENTE
   ================================================================ */

.page-my-account #content .links a {
  border: 1px solid var(--foodaloo-border);
  border-radius: var(--foodaloo-radius);
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  color: var(--foodaloo-black);
}

.page-my-account #content .links a:hover {
  border-color: var(--foodaloo-primary);
  box-shadow: 0 4px 16px rgba(250,181,54,0.2);
  transform: translateY(-3px);
  text-decoration: none;
}

.page-my-account #content .links a i {
  color: var(--foodaloo-primary);
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.table thead th {
  background-color: var(--foodaloo-primary);
  color: var(--foodaloo-white);
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  border-color: var(--foodaloo-primary-dark);
}

/* ================================================================
   TOAST / NOTIFICA CARRELLO
   ================================================================ */

#foodaloo-cart-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background-color: var(--foodaloo-brown);
  color: var(--foodaloo-white);
  padding: 14px 20px;
  border-radius: var(--foodaloo-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  font-family: var(--foodaloo-font-main);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-left: 4px solid var(--foodaloo-primary);
}

#foodaloo-cart-toast.show {
  transform: translateY(0);
  opacity: 1;
}

#foodaloo-cart-toast .toast-icon {
  background-color: var(--foodaloo-primary);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

/* ================================================================
   ANIMAZIONI SCROLL
   ================================================================ */

.fl-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fl-animate.fl-visible {
  opacity: 1;
  transform: translateY(0);
}

.fl-animate-delay-1 { transition-delay: 0.1s; }
.fl-animate-delay-2 { transition-delay: 0.2s; }
.fl-animate-delay-3 { transition-delay: 0.3s; }

/* ================================================================
   MODALI
   ================================================================ */

.modal-content {
  border: none;
  border-radius: var(--foodaloo-radius);
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  overflow: hidden;
}

.modal-header {
  background-color: var(--foodaloo-primary);
  border-bottom: none;
  padding: 16px 24px;
}

.modal-header .modal-title {
  font-family: var(--foodaloo-font-main);
  font-weight: 800;
  color: var(--foodaloo-white);
}

.modal-header .close {
  color: var(--foodaloo-white);
  opacity: 0.85;
  font-size: 1.4rem;
}

.modal-header .close:hover { opacity: 1; }

/* ================================================================
   SELECTION & SCROLLBAR brand
   ================================================================ */

::selection {
  background-color: rgba(250,181,54,0.28);
  color: var(--foodaloo-brown);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--foodaloo-light-gray); }
::-webkit-scrollbar-thumb { background: var(--foodaloo-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--foodaloo-primary-dark); }

:focus-visible {
  outline: 3px solid var(--foodaloo-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ================================================================
   RESPONSIVE — mobile (global)
   ================================================================ */

@media (max-width: 991px) {
  .blockcart .cart-preview { width: 300px; right: 0; }
}

@media (max-width: 767px) {
  .checkout-process .checkout-step .content { padding: 12px; }
  .cart-grid-right .checkout a.btn { font-size: 0.95rem; padding: 12px; }
  .page-my-account #content .links a { padding: 14px; }
  #foodaloo-cart-toast { left: 16px; right: 16px; max-width: none; bottom: 16px; }
}

