@font-face {
  font-family: "Milker";
  src: url("/assets/fonts/Milker.otf") format("opentype");
  font-display: swap;
}
:root {
  --blue: #0090ff;
  --navy: #101b36;
  --ink: #20242b;
  --muted: #737985;
  --line: #e4e7ec;
  --paper: #ffffff;
  --soft: #f4f6f9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #fff; background: var(--navy); font-family: "DM Sans", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.site-header { min-height: 82px; padding: 10px max(5vw, 22px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #17436b; background: #080f24; color: #fff; }
.brand { display: flex; align-items: center; width: 175px; height: 60px; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; gap: 30px; align-items: center; }
.desktop-nav a, .footer-links a { font-size: 14px; font-weight: 600; color: #e8eef9; }
.desktop-nav a:hover, .footer-links a:hover { color: var(--blue); }
.cart-trigger { border: 1px solid #23619a; background: #173b61; color: #fff; padding: 10px 16px; cursor: pointer; border-radius: 0; font-size: 14px; font-weight: 700; }
#cart-count { color: var(--blue); margin-left: 5px; }
.hero { min-height: 520px; padding: 76px max(8vw, 24px); display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; }
.hero-copy { width: min(100%, 1050px); }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.hero .eyebrow { color: #b9e0ff; }
.hero-slogan-row { display: flex; align-items: center; justify-content: flex-start; gap: 22px; max-width: 1180px; overflow: visible; }
.hero h1, .about-section h2 { margin: 0; font-family: "Milker", Impact, "Arial Black", sans-serif; font-size: clamp(56px, 8vw, 100px); line-height: 1.02; letter-spacing: -.8px; font-weight: 400; text-transform: uppercase; }
.hero h1 span { color: var(--blue); }
.hero-icon { display: block; width: clamp(260px, 30vw, 360px); max-height: 360px; object-fit: contain; flex: 0 0 auto; margin-left: 0; transform: none; position: relative; z-index: 1; }
.button { display: inline-block; margin-top: 27px; padding: 13px 20px; border-radius: 0; font-size: 14px; font-weight: 800; }
.button-blue { background: var(--blue); color: white; }
.button-blue:hover { background: #0075d9; }
.shop-section { padding: 65px max(8vw, 24px) 78px; background: #080f24; color: #fff; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.section-heading h2 { margin: 0; font-family: "Milker", Impact, "Arial Black", sans-serif; font-size: 40px; font-weight: 400; text-transform: uppercase; }
.section-heading > p { color: #b8c5dc; font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
.product-card { min-width: 0; overflow: hidden; background: #1a2948; border: 1px solid #304466; border-radius: 0; }
.product-image { height: 270px; position: relative; overflow: hidden; display: grid; place-items: center; background: #24395f; border: 0; }
.product-image img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.product-image .blank-placeholder { display: block; }
.product-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--blue); color: #fff; padding: 6px 9px; font-size: 11px; font-weight: 700; }
.quick-add { position: absolute; bottom: 10px; left: 10px; right: 10px; padding: 11px; border: 0; background: var(--navy); color: white; font-size: 13px; font-weight: 700; cursor: pointer; }
.quick-add:hover { background: var(--blue); }
.product-info { display: flex; justify-content: space-between; gap: 12px; padding: 15px; background: #1a2948; }
.product-info h3 { margin: 0 0 5px; font-size: 15px; font-weight: 700; }
.product-info p { margin: 0; color: #b8c5dc; font-size: 12px; line-height: 1.5; }
.product-price { white-space: nowrap; font-size: 14px; font-weight: 700; }
.loading-card { color: #b8c5dc; padding: 25px 0; }
.about-section { padding: 60px max(8vw, 24px); display: grid; grid-template-columns: 1fr 1fr; gap: 45px; background: var(--navy); color: white; }
.about-section h2 { font-size: clamp(38px, 5vw, 58px); }
.about-copy { align-self: center; max-width: 440px; }
.about-copy p { color: #d3d9e5; font-size: 15px; line-height: 1.8; }
.about-copy a { color: #80c8ff; font-size: 14px; font-weight: 700; text-decoration: underline; }
.footer { padding: 28px max(5vw, 22px); display: flex; align-items: center; justify-content: space-between; gap: 25px; background: var(--navy); color: #fff; border-top: 1px solid #354b65; }
.footer-brand { display: block; width: 125px; height: 55px; }
.footer-brand img { width: 100%; height: 100%; object-fit: contain; }
.footer-links { display: flex; gap: 22px; }
.footer small { color: #b8c5dc; font-size: 12px; }
.drawer-backdrop { position: fixed; inset: 0; background: #0008; z-index: 9; opacity: 0; pointer-events: none; transition: .2s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; z-index: 10; right: 0; top: 0; height: 100dvh; width: min(440px, 100%); background: white; border-left: 1px solid var(--line); transform: translateX(102%); transition: .25s; display: flex; flex-direction: column; padding: 24px; }
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.drawer-head .eyebrow { margin-bottom: 6px; }
.drawer-head h2 { margin: 0; font-family: "Milker", Impact, sans-serif; text-transform: uppercase; font-size: 25px; font-weight: 400; }
.drawer-head h2 span { color: var(--muted); font: 600 13px "DM Sans", Arial, sans-serif; }
.close-drawer { border: 0; background: transparent; font-size: 30px; cursor: pointer; }
.cart-items { overflow: auto; flex: 1; padding: 14px 0; }
.empty-bag { text-align: center; color: var(--muted); font-size: 14px; line-height: 2; padding: 45px 0; }
.empty-bag a { color: var(--blue); font-weight: 700; }
.cart-line { display: grid; grid-template-columns: 65px 1fr auto; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { height: 65px; background: var(--soft); display: grid; place-items: center; font-size: 25px; }
.cart-line h3 { font-size: 13px; margin: 3px 0 7px; }
.cart-line small { color: var(--muted); }
.cart-line-right { text-align: right; font-size: 13px; font-weight: 700; }
.remove-item { display: block; background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 11px; margin: 8px 0 0 auto; cursor: pointer; }
.qty-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-controls button { width: 24px; height: 24px; border: 1px solid #cfd3d9; background: white; cursor: pointer; }
.drawer-bottom { border-top: 1px solid var(--line); padding-top: 14px; }
.discount-entry label { font-size: 12px; font-weight: 700; }
.discount-controls { display: flex; gap: 7px; margin-top: 7px; }
.applied-discount { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; padding: 8px 10px; background: #e7f4ff; color: #123b60; font-size: 12px; }
.applied-discount[hidden] { display: none; }
.applied-discount button { width: 23px; height: 23px; padding: 0; border: 0; border-radius: 0; background: #cce8ff; color: #123b60; font-size: 17px; line-height: 1; cursor: pointer; }
.applied-discount button:hover { background: #c4d6ee; }
.discount-entry input { min-width: 0; flex: 1; border: 1px solid #cfd3d9; padding: 10px; }
.discount-entry button { border: 0; background: var(--navy); color: white; padding: 0 14px; cursor: pointer; }
.discount-entry button:hover { background: var(--blue); }
.discount-entry button[hidden] { display: none; }
.discount-entry .remove-discount { background: #e9edf3; color: #303744; }
.discount-entry p, #checkout-message { min-height: 12px; color: var(--muted); font-size: 11px; }
.totals { margin: 12px 0; }
.totals > div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; color: var(--muted); }
.totals b { color: var(--ink); }
.totals .discount-row b { color: #16834f; }
.totals .total-line { border-top: 1px solid var(--line); margin-top: 7px; padding-top: 12px; color: var(--ink); font-weight: 800; }
.totals .total-line b { font-size: 19px; }
.checkout-note, .tax-note { color: var(--muted); font-size: 11px; text-align: center; }
.tax-note { line-height: 1.5; }
#paypal-button-container { min-height: 40px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 15px); opacity: 0; background: var(--navy); color: white; padding: 12px 18px; font-size: 13px; z-index: 20; transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) {
  .site-header { min-height: 72px; padding: 8px 5%; }
  .brand { width: 140px; height: 50px; }
  .desktop-nav { gap: 14px; }
  .desktop-nav a { font-size: 12px; }
  .hero { min-height: 470px; padding: 58px 7%; }
  .hero-slogan-row { gap: 10px; }
  .hero h1 { font-size: clamp(38px, 9.5vw, 64px); }
  .hero-icon { width: clamp(175px, 30vw, 245px); max-height: 245px; margin-left: 0; transform: none; }
  .shop-section { padding: 52px 6%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .product-image { height: clamp(150px, 42vw, 230px); }
  .product-info { display: block; }
  .product-price { display: block; margin-top: 8px; }
  .about-section { grid-template-columns: 1fr; gap: 12px; padding: 48px 7%; }
  .footer { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .brand { width: 108px; }
  .desktop-nav { gap: 9px; }
  .desktop-nav a { font-size: 11px; }
  .cart-trigger { padding: 9px 11px; }
  .hero-slogan-row { align-items: center; }
  .hero h1 { font-size: clamp(32px, 8.5vw, 46px); }
  .hero-icon { width: 140px; max-height: 160px; margin-left: 0; transform: none; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 250px; }
}

.contact-page { min-height: calc(100vh - 165px); padding: 85px max(8vw, 24px); background: var(--navy); color: #fff; }
.contact-page h1 { margin: 0 0 18px; font-family: "Milker", Impact, "Arial Black", sans-serif; font-size: clamp(48px, 7vw, 76px); font-weight: 400; text-transform: uppercase; }
.contact-page p:not(.eyebrow) { max-width: 520px; color: #d3d9e5; font-size: 16px; line-height: 1.7; }
.contact-email { display: inline-block; margin-top: 8px; color: #80c8ff; font-weight: 700; font-size: 17px; text-decoration: underline; }
.contact-location { margin-top: 32px; padding-top: 20px; border-top: 1px solid #304568; color: #b8c5dc; font-size: 14px; }

/* MECHAINS uses a simple, square-edged layout. */
*, *::before, *::after { border-radius: 0 !important; }
