/* ============================================================
   Royal Foods — Motion & UI upgrade layer
   Load AFTER css/style.css (and css/buy.css) on every page
   ============================================================ */

:root {
  --rf-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rf-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --rf-orange: #f27532;
  --rf-orange-soft: rgba(242, 117, 50, 0.35);
}

/* ---------- base polish ---------- */
html { scroll-behavior: smooth; }
* { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(242, 117, 50, 0.4); color: #fff; }
:focus-visible { outline: 2px solid var(--rf-orange); outline-offset: 3px; }

html { scrollbar-width: thin; scrollbar-color: var(--rf-orange) #141414; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #141414; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff8a4c, var(--rf-orange) 55%, #d95720);
  border-radius: 99px;
  border: 2px solid #141414;
}
::-webkit-scrollbar-thumb:hover { background: #ff9a60; }

/* ---------- page enter / leave ---------- */
body { animation: rf-page-in 0.55s var(--rf-ease) both; }
@keyframes rf-page-in { from { opacity: 0; } to { opacity: 1; } }
body.is-leaving { animation: rf-page-out 0.24s ease forwards; }
@keyframes rf-page-out { to { opacity: 0; transform: translateY(-6px); } }

/* cross-document view transitions (Chrome 126+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: rf-vt-out 0.28s ease both; }
::view-transition-new(root) { animation: rf-vt-in 0.5s var(--rf-ease) both; }
@keyframes rf-vt-out { to { opacity: 0; transform: scale(0.99); } }
@keyframes rf-vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- scroll progress bar (injected by js/motion.js) ---------- */
.rf-progress {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, #ffb07a, var(--rf-orange), #d95720);
  box-shadow: 0 0 12px rgba(242, 117, 50, 0.75);
  opacity: 0;
  transition: width 0.15s linear, opacity 0.35s ease;
  pointer-events: none;
}

/* ---------- header / navbar ---------- */
.site-header { animation: rf-drop 0.85s 0.05s var(--rf-ease) both; }
@keyframes rf-drop {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: none; }
}
.navbar {
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 46px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.brand__icon {
  transition: transform 0.55s var(--rf-spring), box-shadow 0.4s ease;
}
.brand:hover .brand__icon {
  transform: rotate(-18deg) scale(1.1);
  box-shadow: 0 0 0 7px rgba(242, 117, 50, 0.14);
}
.brand { transition: letter-spacing 0.4s var(--rf-ease); }
.brand:hover { letter-spacing: -0.03em; }
.nav-link { transition: color 0.3s ease, letter-spacing 0.35s var(--rf-ease); }
.nav-link:hover { letter-spacing: 0.05em; }
.nav-cart { transition: background 0.3s ease, color 0.3s ease, transform 0.45s var(--rf-spring); }
.nav-cart:hover { transform: translateY(-3px) scale(1.06); }
.nav-cart svg { transition: transform 0.45s var(--rf-spring); }
.nav-cart:hover svg { transform: scale(1.08); }
.menu-toggle { transition: background 0.3s ease, transform 0.4s var(--rf-spring); }
.menu-toggle:hover { transform: scale(1.08); }

/* mobile nav: staggered link entrance */
@media (max-width: 860px) {
  .mobile-drawer.is-open .drawer-nav-item,
  .nav-panel.is-open .drawer-nav-item {
    animation: rf-drawer-item-in 0.35s var(--rf-ease) both;
  }
  .mobile-drawer.is-open .drawer-nav-item:nth-child(1),
  .nav-panel.is-open .drawer-nav-item:nth-child(1) { animation-delay: 0.04s; }
  .mobile-drawer.is-open .drawer-nav-item:nth-child(2),
  .nav-panel.is-open .drawer-nav-item:nth-child(2) { animation-delay: 0.08s; }
  .mobile-drawer.is-open .drawer-nav-item:nth-child(3),
  .nav-panel.is-open .drawer-nav-item:nth-child(3) { animation-delay: 0.12s; }
  .mobile-drawer.is-open .drawer-nav-item:nth-child(4),
  .nav-panel.is-open .drawer-nav-item:nth-child(4) { animation-delay: 0.16s; }
  .mobile-drawer.is-open .drawer-nav-item:nth-child(5),
  .nav-panel.is-open .drawer-nav-item:nth-child(5) { animation-delay: 0.20s; }
  .mobile-drawer.is-open .drawer-cat-chip,
  .nav-panel.is-open .drawer-cat-chip {
    animation: rf-drawer-chip-in 0.3s var(--rf-ease) both;
  }
  .nav-panel .nav-links > * {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s var(--rf-ease), transform 0.5s var(--rf-ease);
  }
  .nav-panel.is-open .nav-links > * { opacity: 1; transform: none; }
  .nav-panel.is-open .nav-links > *:nth-child(1) { transition-delay: 0.07s; }
  .nav-panel.is-open .nav-links > *:nth-child(2) { transition-delay: 0.13s; }
  .nav-panel.is-open .nav-links > *:nth-child(3) { transition-delay: 0.19s; }
  .nav-panel.is-open .nav-links > *:nth-child(4) { transition-delay: 0.25s; }
}
@keyframes rf-drawer-item-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes rf-drawer-chip-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- buttons: gloss sweep + magnetic hover ---------- */
.button, .nav-login, .contact-form__button, .live-order__button,
.buy-submit, .buy-add-cart, .auth-btn, .cart-checkout, .cart-empty a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translate(var(--rf-mx, 0px), var(--rf-my, 0px));
}
.button::before, .nav-login::before, .contact-form__button::before,
.live-order__button::before, .buy-submit::before, .buy-add-cart::before,
.auth-btn::before, .cart-checkout::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%);
  transform: translateX(-130%);
  pointer-events: none;
}
.button:hover::before, .nav-login:hover::before, .contact-form__button:hover::before,
.live-order__button:hover::before, .buy-submit:hover::before, .buy-add-cart:hover::before,
.auth-btn:hover::before, .cart-checkout:hover::before {
  transform: translateX(130%);
  transition: transform 0.8s var(--rf-ease);
}
.button:hover {
  transform: translate(var(--rf-mx, 0px), calc(var(--rf-my, 0px) - 3px)) scale(1.02);
}
.nav-login:hover { transform: translate(var(--rf-mx, 0px), var(--rf-my, 0px)) scale(1.05); }
.contact-form__button:hover,
.live-order__button:hover {
  transform: translate(var(--rf-mx, 0px), calc(var(--rf-my, 0px) - 3px)) scale(1.01);
}
.buy-submit:hover, .buy-add-cart:hover {
  transform: translate(var(--rf-mx, 0px), var(--rf-my, 0px)) scale(1.02);
}
.auth-btn:hover {
  transform: translate(var(--rf-mx, 0px), calc(var(--rf-my, 0px) - 2px)) scale(1.01);
}
.button:active, .nav-login:active, .contact-form__button:active,
.live-order__button:active, .buy-submit:active, .auth-btn:active {
  transform: translate(var(--rf-mx, 0px), var(--rf-my, 0px)) scale(0.96);
  transition-duration: 0.1s;
}
.button--primary { animation: rf-cta-glow 3.4s ease-in-out 1.4s infinite; }
@keyframes rf-cta-glow {
  0%, 100% { box-shadow: 0 12px 24px rgba(224, 84, 26, 0.3); }
  50% { box-shadow: 0 14px 36px rgba(224, 84, 26, 0.55); }
}
.button--primary span { display: inline-block; transition: transform 0.45s var(--rf-spring); }
.button--primary:hover span { transform: translateX(7px); }

/* ---------- gradient animated headings ---------- */
.burger-hero h1 span, .pizza-hero h1 span, .fries-hero h1 span, .fc-hero h1 span,
.gs-hero h1 span, .pr-hero h1 span, .pl-hero h1 span, .rs-hero h1 span,
.sh-hero h1 span, .sw-hero h1 span, .ao-hero h1 span, .deals-hero h1 span,
.auth-brand h1 span, .cart-header h1 span, .history-header h1 span, #hero-title span {
  background: linear-gradient(90deg, #f27532 0%, #ffb07a 25%, #f27532 50%, #ffb07a 75%, #f27532 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: rf-gradient-text 5.5s linear infinite;
}
@keyframes rf-gradient-text { to { background-position: 200% center; } }

/* ---------- eyebrow / section flourishes ---------- */
.eyebrow__dot { animation: rf-dot 2.4s ease-in-out infinite; }
@keyframes rf-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 117, 50, 0.5); transform: scale(1); }
  50% { box-shadow: 0 0 0 9px rgba(242, 117, 50, 0); transform: scale(1.25); }
}
.section-link span { transition: transform 0.45s var(--rf-spring); }
.section-link:hover span { transform: translateX(6px); }
.stat-item__number {
  background: linear-gradient(180deg, #ffc79b, #f27532);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 34px rgba(242, 117, 50, 0.35);
}

/* ---------- hero ambience (index) ---------- */
.hero__sun {
  background: radial-gradient(circle, rgba(242, 117, 50, 0.18) 0%, rgba(242, 117, 50, 0.04) 55%, transparent 72%);
  animation: rf-glow-pulse 6s ease-in-out infinite;
}
@keyframes rf-glow-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.hero__visual::before, .hero__visual::after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
.hero__visual::before {
  width: 112%;
  aspect-ratio: 1;
  border: 1px dashed rgba(242, 117, 50, 0.3);
  animation: rf-spin 30s linear infinite;
}
.hero__visual::after {
  width: 132%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: rf-spin 46s linear infinite reverse;
}
@keyframes rf-spin { to { transform: rotate(360deg); } }
.delivery-badge { animation: rf-bob 3.6s ease-in-out infinite; }
@keyframes rf-bob {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-11px); }
}
.hero__shadow { transition: transform 0.2s linear; }

/* ---------- scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity 0.85s var(--rf-ease), transform 0.85s var(--rf-ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- cards: glow follows cursor + uniform lift ---------- */
[class*="-card"]:not([class*="__"]) {
  position: relative;
  transition: transform 0.55s var(--rf-ease), box-shadow 0.55s var(--rf-ease),
    border-color 0.4s ease, background 0.4s ease;
}
[class*="-card"]:not([class*="__"])::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--rf-x, 50%) var(--rf-y, 0%),
    rgba(242, 117, 50, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
[class*="-card"]:not([class*="__"]):hover::after { opacity: 1; }
[class*="-card"]:not([class*="__"]):hover {
  transform: translateY(-9px);
  box-shadow: 0 26px 52px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(242, 117, 50, 0.2) inset;
}
[class*="-card"]:not([class*="__"]) > img {
  transition: transform 0.85s var(--rf-ease), filter 0.6s ease;
}
[class*="-card"]:not([class*="__"]):hover > img { transform: scale(1.08); }
[class*="__badge"] { animation: rf-pop 0.55s var(--rf-spring) both; }
@keyframes rf-pop {
  from { opacity: 0; transform: scale(0.6) translateY(-6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- Gourmet Food Cards (all category pages) ---------- */
.burger-card, .pizza-card, .fc-card, .fries-card, .gs-card, .pr-card,
.pl-card, .rs-card, .sh-card, .sw-card, .ao-card, .deals-card {
  border-radius: 20px !important;
  border: 1px solid rgba(224, 214, 206, 0.8) !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.4s var(--rf-ease), box-shadow 0.4s var(--rf-ease), border-color 0.3s ease !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
.burger-card:hover, .pizza-card:hover, .fc-card:hover, .fries-card:hover,
.gs-card:hover, .pr-card:hover, .pl-card:hover, .rs-card:hover,
.sh-card:hover, .sw-card:hover, .ao-card:hover, .deals-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 22px 42px -12px rgba(247, 108, 43, 0.22), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(247, 108, 43, 0.35) !important;
}
[class*="-card__img"] {
  width: 100% !important;
  aspect-ratio: 1.25 !important;
  object-fit: cover !important;
  transition: transform 0.5s var(--rf-ease) !important;
  background: #f0ebe4;
}
.burger-card:hover [class*="-card__img"],
.pizza-card:hover [class*="-card__img"],
.fc-card:hover [class*="-card__img"],
.fries-card:hover [class*="-card__img"],
.gs-card:hover [class*="-card__img"],
.pr-card:hover [class*="-card__img"],
.pl-card:hover [class*="-card__img"],
.rs-card:hover [class*="-card__img"],
.sh-card:hover [class*="-card__img"],
.sw-card:hover [class*="-card__img"],
.ao-card:hover [class*="-card__img"],
.deals-card:hover [class*="-card__img"] {
  transform: scale(1.06) !important;
}
[class*="-card__body"] {
  padding: 18px 20px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}
:not(.testimonial-card):not(.category-card)[class*="-card__name"] {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1f140e !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 6px !important;
}
:not(.testimonial-card):not(.category-card)[class*="-card__desc"] {
  font-size: 0.8rem !important;
  color: #7d7067 !important;
  line-height: 1.55 !important;
  margin: 0 0 14px !important;
  flex: 1 !important;
}
.price-tag {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #f76c2b !important;
  margin-bottom: 14px !important;
  letter-spacing: -0.02em !important;
}
.size-prices {
  display: flex !important;
  gap: 6px !important;
  margin-bottom: 14px !important;
}
.size-prices span {
  flex: 1 !important;
  text-align: center !important;
  padding: 6px 4px !important;
  background: #f8f4ee !important;
  border: 1px solid #ebdcd2 !important;
  border-radius: 8px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #3b281d !important;
}
[class*="-card__btn"] {
  width: 100% !important;
  padding: 12px 16px !important;
  background: linear-gradient(135deg, #ff7a3d 0%, #e8551b 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-family: inherit !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.3s var(--rf-ease) !important;
  box-shadow: 0 4px 14px rgba(232, 85, 27, 0.3) !important;
  margin-top: auto !important;
}
[class*="-card__btn"]:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 22px rgba(232, 85, 27, 0.45) !important;
}
[class*="-card__btn"]:active {
  transform: scale(0.97) !important;
}
:not(.testimonial-card)[class*="-card__badge"] {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  background: linear-gradient(135deg, #ff7a3d, #e8551b) !important;
  color: #fff !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  box-shadow: 0 4px 12px rgba(232, 85, 27, 0.35) !important;
  z-index: 2 !important;
}

/* ---------- category-page (light) ambience ---------- */
main[class$="-page"] { position: relative; isolation: isolate; }
main[class$="-page"]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(720px 340px at 10% -6%, rgba(247, 108, 43, 0.12), transparent 62%),
    radial-gradient(640px 320px at 94% 6%, rgba(247, 108, 43, 0.09), transparent 62%);
}
[class$="-hero"] { animation: rf-hero-in 0.9s var(--rf-ease) both; }
@keyframes rf-hero-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.filter-tab {
  transition: all 0.4s var(--rf-ease), box-shadow 0.4s ease;
  animation: rf-fade-up 0.7s var(--rf-ease) both;
}
.filter-tab:nth-child(2) { animation-delay: 0.07s; }
.filter-tab:nth-child(3) { animation-delay: 0.14s; }
.filter-tab:nth-child(4) { animation-delay: 0.21s; }
.filter-tab:nth-child(5) { animation-delay: 0.28s; }
.filter-tab:hover { transform: translateY(-3px); }
@keyframes rf-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- ticker (index) ---------- */
.rf-ticker {
  position: relative;
  width: min(1240px, 100%);
  margin: 34px auto 0;
  padding: 15px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.rf-ticker__track {
  display: flex;
  width: max-content;
  animation: rf-marquee 34s linear infinite;
}
.rf-ticker:hover .rf-ticker__track { animation-play-state: paused; }
.rf-ticker__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 46px;
  padding-right: 46px;
}
.rf-ticker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rf-ticker__item::after { content: '\2726'; color: var(--rf-orange); font-size: 0.7rem; }
.rf-ticker__item em {
  color: var(--rf-orange);
  font-style: normal;
  font-size: 1rem;
}
@keyframes rf-marquee { to { transform: translateX(-50%); } }

/* ---------- cart / history / misc ---------- */
.cart-item {
  transition: transform 0.5s var(--rf-ease), box-shadow 0.5s var(--rf-ease),
    border-color 0.35s ease;
}
.cart-item:hover {
  transform: translateX(7px);
  border-color: rgba(242, 117, 50, 0.35);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.95);
}
.cart-summary { transition: box-shadow 0.5s var(--rf-ease), border-color 0.35s ease; }
.cart-summary:hover { border-color: rgba(242, 117, 50, 0.25); }
.stat-pill {
  transition: transform 0.45s var(--rf-ease), border-color 0.35s ease, box-shadow 0.45s ease;
}
.stat-pill:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 117, 50, 0.35);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}
.order-card { overflow: hidden; }
.order-card__status { animation: rf-pop 0.5s var(--rf-spring) both; }

/* ---------- micro interactions ---------- */
.add-button, .quantity-button, .favourite-button {
  transition: transform 0.45s var(--rf-spring), background 0.3s ease,
    box-shadow 0.35s ease, color 0.3s ease, border-color 0.3s ease;
}
.add-button:hover { transform: scale(1.14) translateY(-2px); }
.add-button:active { transform: scale(0.92); }
.favourite-button:hover { transform: scale(1.16); }
.favourite-button:active { transform: scale(0.88); }
.quantity-button:hover { transform: scale(1.12) rotate(6deg); }
.contact-item { transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; }
.contact-item:hover { transform: translateX(6px); }
.contact-item__icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-item:hover .contact-item__icon {
  transform: scale(1.06);
}
.feature-card__icon-wrap, .category-card__icon { will-change: transform; }

/* ---------- forms ---------- */
.contact-form input, .contact-form textarea,
.form-group input, .buy-form-group input, .buy-form-group textarea,
.live-order__field select, #order-address {
  transition: border-color 0.35s ease, box-shadow 0.35s ease,
    background 0.35s ease, transform 0.35s var(--rf-ease);
}
.contact-form input:focus, .contact-form textarea:focus {
  background: rgba(30, 30, 30, 0.95);
  transform: translateY(-2px);
}

/* ---------- modals ---------- */
.buy-overlay, .checkout-overlay {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.45s var(--rf-ease), visibility 0.45s, backdrop-filter 0.4s ease;
}
.buy-modal, .checkout-modal {
  transition: transform 0.55s var(--rf-spring), opacity 0.4s ease, box-shadow 0.4s ease;
}
.buy-modal__close { transition: all 0.4s var(--rf-spring); }
.buy-modal__close:hover { transform: rotate(90deg) scale(1.1); }
.buy-size, .buy-qty__btn {
  transition: all 0.35s var(--rf-ease), box-shadow 0.35s ease;
}
.buy-size:hover { transform: translateY(-2px); }

/* ---------- footer ---------- */
.footer__links a, .footer__contact a, .footer__contact-item {
  transition: color 0.25s ease, transform 0.35s var(--rf-ease);
}
.footer__links a:hover, .footer__contact-item:hover { transform: translateX(6px); }
.footer__logo { transition: letter-spacing 0.35s var(--rf-ease), transform 0.35s var(--rf-ease); display: inline-flex; }
.footer__logo:hover { letter-spacing: -0.02em; transform: translateY(-2px); }
.footer__top { position: relative; }
.footer__top::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 117, 50, 0.6), transparent);
  background-size: 200% 100%;
  animation: rf-gradient-slide 6s linear infinite;
}
@keyframes rf-gradient-slide { to { background-position: -200% 0; } }

/* ---------- images while loading ---------- */
img.rf-img-loading {
  background-color: rgba(128, 128, 128, 0.12);
  background-image: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.22) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: rf-shimmer 1.3s linear infinite;
}
@keyframes rf-shimmer { to { background-position: -200% 0; } }

/* ---------- cart badge bump ---------- */
.cart-badge.is-bumping { animation: rf-bump 0.55s var(--rf-spring); }
@keyframes rf-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.6) rotate(-8deg); }
  100% { transform: scale(1); }
}

/* ---------- order success confetti (extra sparkle) ---------- */
.order-success__title, .order-success__subtitle {
  text-shadow: 0 6px 24px rgba(242, 117, 50, 0.35);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .rf-progress { display: none; }
}
