/* QQuack shared styles | header, buttons, footer */
:root {
  --yellow: #ffd900;
  --yellow2: #ffe94d;
  --yellow-deep: #e0a800;
  --black: #050708;
  --panel: #0e1418;
  --panel2: #141c21;
  --line: #29343b;
  --white: #f7f8fa;
  --muted: #b3bcc4;
  --glow: 0 0 0 1px #ffd90055, 0 10px 30px -8px #ffd90055;
  --shadow: 0 14px 34px -14px #000;
  --radius: 14px;
  --body: "Inter", Arial, sans-serif;
  --display: "Barlow Condensed", Impact, sans-serif;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 90px }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% 55%, #ffd9000d, transparent 60%),
    radial-gradient(900px 500px at 5% 85%, #ffd90009, transparent 60%),
    var(--black);
  color: var(--white);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none }
button, input { font: inherit }
button, a { -webkit-tap-highlight-color: transparent }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px }
::selection { background: var(--yellow); color: #111 }

/* Header */
.site-header, .site-footer { color: var(--white); font-family: var(--body); line-height: 1.5 }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 5, 6, .86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid #ffffff14;
}
.header-inner { max-width: 1440px; min-height: 80px; margin: auto; padding: 8px 3.5%; display: flex; align-items: center; gap: 28px }
.brand { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; min-width: 0 }
.brand img { width: 70px; height: 60px; object-fit: contain; mix-blend-mode: screen; transition: transform .3s }
.brand:hover img { transform: rotate(-6deg) scale(1.05) }
.brand-name { font: 900 34px/.9 var(--display); font-style: italic; color: var(--yellow); text-shadow: 2px 2px #000, 0 0 14px #b38c0099; white-space: nowrap }
.brand-race { font-size: 20px; margin-left: 3px }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 1.8vw, 30px); flex: 1; height: 64px }
.main-nav a { height: 100%; display: flex; align-items: center; position: relative; color: #e4e7ea; white-space: nowrap; font-size: 15px; font-weight: 600; transition: color .2s }
.main-nav a:after { content: ""; position: absolute; height: 3px; bottom: 0; left: 50%; right: 50%; border-radius: 3px 3px 0 0; background: var(--yellow); transition: left .25s, right .25s }
.main-nav a:hover, .main-nav a.active { color: var(--yellow) }
.main-nav a:hover:after, .main-nav a.active:after { left: 0; right: 0 }
.header-actions { display: flex; align-items: center; gap: 10px }
.icon-button, .cart-link { border: 0; background: transparent; color: white; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 18px; position: relative; transition: background .2s, color .2s }
.icon-button:hover, .cart-link:hover { background: #ffffff12; color: var(--yellow) }
.cart-count { position: absolute; top: 1px; right: 0; min-width: 19px; height: 19px; padding: 0 4px; display: grid; place-items: center; border-radius: 10px; background: var(--yellow); color: #111; font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px var(--black) }

/* Buttons */
.button { border: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 20px; font-weight: 800; font-size: 15px; line-height: 1.1; letter-spacing: .1px; cursor: pointer; transition: transform .2s, box-shadow .2s, filter .2s, background .2s }
.button:hover { transform: translateY(-2px); filter: brightness(1.06) }
.button:active { transform: translateY(0) }
.button i { transition: transform .2s }
.button:hover .fa-arrow-right { transform: translateX(3px) }
.button-yellow { background: linear-gradient(180deg, var(--yellow2), var(--yellow)); color: #101010; box-shadow: 0 4px 0 #b68d00, 0 10px 24px -8px #ffd90088 }
.button-yellow:hover { box-shadow: 0 6px 0 #b68d00, 0 16px 30px -8px #ffd900aa }
.button-outline { border: 1px solid #5d666c; background: #0b0e10; color: white }
.button-outline:hover { border-color: var(--yellow); color: var(--yellow) }
.button-dark { background: #0c0d0e; color: #fff; box-shadow: 0 4px 0 #00000055 }
.button-dark:hover { background: #1b1d1f }
.button-small { padding: 11px 18px; font-size: 14px; white-space: nowrap }
.mobile-menu { display: none; color: white; border: 1px solid var(--line); background: #0d1216; padding: 10px 13px; border-radius: 9px; font-size: 18px; cursor: pointer }

/* Tyre card (home carousel + shop grid) */
.tyre-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: #fff; color: #121416; box-shadow: 0 14px 30px -14px #000; transition: transform .3s, box-shadow .3s }
.tyre-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--yellow), 0 18px 40px -12px #ffd90066 }
.wishlist { position: absolute; z-index: 2; top: 14px; left: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #ffffffcc; color: #1b1d1f; font-size: 21px; cursor: pointer; transition: transform .2s, color .2s }
.wishlist:hover { transform: scale(1.12) }
.wishlist[aria-pressed="true"] { color: #e0283a }
.discount { position: absolute; z-index: 2; top: 16px; right: 14px; padding: 7px 11px; border-radius: 9px; background: var(--yellow); color: #111; font-size: 14px; font-weight: 800; box-shadow: 0 4px 12px -4px #ffd900aa }
.tyre-image { height: 230px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px 20px 4px; background: radial-gradient(ellipse at 50% 85%, #e8ebee, #fff 70%) }
.tyre-image img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 12px 12px #0003); transition: transform .45s }
.tyre-card:hover .tyre-image img { transform: scale(1.06) rotate(-3deg) }
.tyre-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px 18px 18px; background: #f8f9fb; border-top: 1px solid #eceff2 }
.tyre-brand { align-self: flex-start; min-height: 28px; display: inline-flex; align-items: center; font: 900 22px/1 var(--display); font-style: italic; letter-spacing: .3px }
.tyre-brand.michelin { background: #1b3c96; color: #fff; padding: 3px 10px }
.tyre-brand.goodyear { background: #0d3a8c; color: #ffd100; padding: 3px 10px }
.tyre-brand.bridgestone, .tyre-brand.yokohama { color: #111 }
.tyre-brand.continental { color: #f39c00; font-style: normal }
.tyre-brand.pirelli { background: #ffd900; color: #d4001a; padding: 3px 10px; font-style: normal }
.tyre-brand.hankook { color: #f26b1d }
.tyre-brand.falken { color: #1a49a8 }
.tyre-body h3 { margin: 2px 0 0; font-size: 21px; line-height: 1.2; font-weight: 700 }
.tyre-size { margin: -4px 0 0; color: #5f6870; font-size: 17px }
.tyre-rating { display: flex; align-items: center; gap: 6px; font-size: 16px; color: #5f6870 }
.tyre-rating .stars { color: #f5b800; font-size: 15px; letter-spacing: 2px }
.tyre-rating strong { color: #222 }
.tyre-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: #2b3035; margin-top: 2px }
.tyre-meta i { margin-right: 4px }
.tyre-meta .fa-circle-check { color: #1fb24a }
.tyre-price { display: flex; align-items: baseline; gap: 12px; margin-top: 2px }
.tyre-price strong { font-size: 30px; font-weight: 800; letter-spacing: -.5px; color: #0c0d0e }
.tyre-price s { color: #7b848c; font-size: 17px; font-weight: 600 }
.tyre-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 6px }
.tyre-actions .button { padding: 14px 8px; font-size: 15px; white-space: nowrap }

/* Cart toast (static/js/cart.js) */
.cart-toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 14px 20px; border: 1px solid var(--yellow); border-radius: 12px; background: #111619; color: #fff; font: 600 15px var(--body); box-shadow: 0 16px 40px -10px #000, 0 0 24px -6px #ffd90066; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; transition: transform .3s, opacity .3s, visibility .3s; }
.cart-toast i { color: var(--yellow); }
.cart-toast a { margin-left: 6px; padding: 6px 12px; border-radius: 8px; background: var(--yellow); color: #111; font-size: 13px; font-weight: 800; white-space: nowrap; }
.cart-toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* Footer */
.site-footer { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid #ffd90044; background: #050708 var(--footer-bg) center bottom/cover no-repeat }
.site-footer:before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,6,8,.97) 0%, rgba(4,6,8,.9) 45%, rgba(4,6,8,.55) 75%, rgba(4,6,8,.85) 100%) }
.site-footer:after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(420px, 60%); height: 3px; background: linear-gradient(90deg, transparent, var(--yellow), transparent); box-shadow: 0 0 20px var(--yellow) }
.footer-main { max-width: 1440px; margin: auto; padding: 64px 3.5% 140px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1.4fr; gap: 40px }
.footer-brand { display: inline-flex; align-items: center; gap: 6px; font: 900 36px/1 var(--display); font-style: italic; color: var(--yellow); text-shadow: 2px 2px #000, 0 0 14px #b38c0099 }
.footer-brand img { width: 64px; height: 54px; object-fit: contain; mix-blend-mode: screen }
.footer-brand span { font-size: 20px }
.footer-about p { margin: 16px 0 22px; max-width: 320px; color: #c3cad0; font-size: 15px; line-height: 1.65 }
.footer-social { display: flex; gap: 10px }
.footer-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #ffffff26; background: #ffffff0d; color: #fff; font-size: 16px; transition: background .2s, color .2s, transform .2s, box-shadow .2s }
.footer-social a:hover { background: var(--yellow); color: #111; transform: translateY(-3px); box-shadow: 0 0 18px #ffd90088 }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px }
.footer-col h3 { position: relative; margin: 6px 0 10px; padding-bottom: 12px; font: 800 22px/1 var(--display); letter-spacing: .6px; text-transform: uppercase }
.footer-col h3:after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 2px; background: var(--yellow) }
.footer-col > a, .footer-contact span { color: #c3cad0; font-size: 15px; transition: color .2s, transform .2s }
.footer-col > a:hover { color: var(--yellow); transform: translateX(4px) }
.footer-contact > a, .footer-contact > span { display: flex; align-items: baseline; gap: 10px }
.footer-contact i { flex: 0 0 18px; color: var(--yellow); text-align: center }
.footer-newsletter p { margin: 0 0 4px; color: #c3cad0; font-size: 15px; line-height: 1.55 }
.newsletter-form { display: flex; width: 100%; max-width: 340px; padding: 5px; border: 1px solid #ffffff26; border-radius: 12px; background: #ffffff10; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .2s }
.newsletter-form:focus-within { border-color: var(--yellow) }
.newsletter-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 10px 12px; font-size: 15px; outline: none }
.newsletter-form input::placeholder { color: #9aa4ac }
.newsletter-form .button { padding: 12px 16px; box-shadow: none }
.footer-pay { display: flex; gap: 10px; margin-top: 10px; color: #d6dade; font-size: 30px }
.footer-pay i { transition: color .2s }
.footer-pay i:hover { color: var(--yellow) }
.footer-bottom { position: relative; max-width: 1440px; margin: auto; padding: 22px 3.5%; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #ffffff1f; color: #b3bcc4; font-size: 14px }
.footer-bottom p { margin: 0 }
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 22px }
.footer-bottom a { transition: color .2s }
.footer-bottom a:hover { color: var(--yellow) }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0 }

@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important } html { scroll-behavior: auto } }

/* Responsive */
@media (max-width: 1280px) {
  .header-inner { gap: 16px }
  .brand img { width: 58px; height: 50px }
  .brand-name { font-size: 29px }
  .main-nav { gap: 14px }
  .main-nav a { font-size: 14px }
  .header-actions { gap: 6px }
  .header-actions .button-small { padding: 10px 13px }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; gap: 36px 32px }
  .footer-about, .footer-newsletter { grid-column: span 1 }
}
@media (max-width: 1060px) {
  .main-nav a { font-size: 13px }
  .main-nav { gap: 11px }
}
@media (max-width: 900px) {
  .header-inner { min-height: 68px; flex-wrap: wrap; padding: 8px 4%; gap: 10px }
  .brand { flex: 1 1 auto }
  .brand img { width: 52px; height: 46px }
  .brand-name { font-size: 28px }
  .mobile-menu { display: inline-flex; order: 2 }
  .header-actions { order: 3; margin-left: auto }
  .header-actions .icon-button { display: none }
  .main-nav { display: none; order: 4; flex: 0 0 100%; height: auto; padding: 8px 0 14px; flex-direction: column; align-items: stretch; gap: 0 }
  .main-nav.open { display: flex }
  .main-nav a { height: 48px; font-size: 16px; border-bottom: 1px solid #ffffff10 }
  .main-nav a:after { display: none }
  .footer-main { grid-template-columns: 1fr 1fr; padding: 52px 4% 110px }
  .footer-about { grid-column: 1 / -1 }
  .footer-bottom { padding-left: 4%; padding-right: 4%; flex-wrap: wrap }
}
@media (max-width: 560px) {
  .header-actions { gap: 4px }
  .header-actions .button-small { padding: 9px 11px; font-size: 13px }
  .cart-link { width: 36px }
  .brand img { width: 44px; height: 40px }
  .brand-name { font-size: 24px }
  .brand-race { display: none }
  .footer-main { gap: 32px 16px; padding: 44px 16px 90px }
  .footer-newsletter { grid-column: 1 / -1 }
  .newsletter-form { max-width: none }
  .footer-col h3 { font-size: 20px }
  .footer-col > a, .footer-contact span { font-size: 14px }
  .footer-bottom { flex-direction: column; text-align: center; padding: 20px 16px }
  .footer-bottom > div { justify-content: center; gap: 10px 18px }
}
@media (max-width: 420px) {
  .header-inner { gap: 8px; padding-left: 12px; padding-right: 12px }
  .brand-name { display: none }
  .brand img { width: 46px; height: 42px }
  .mobile-menu { order: 3; padding: 8px 11px }
  .header-actions { order: 2 }
  .header-actions .button-small { padding: 9px 10px; font-size: 12.5px }
  .cart-link { width: 34px }
}
