@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap');

:root {
  --navy: #06213a;
  --deep: #041625;
  --blue: #06213a;
  --cyan: #00afc1;
  --aqua: #00afc1;
  --ink: #17212b;
  --muted: #66727d;
  --line: #e6ebef;
  --bg: #f6f8fa;
  --green: #238b57;
}
body { font-family: Inter, Arial, sans-serif; color: var(--ink); line-height: 1.5; }
h1, h2, h3, .brand strong { font-family: Manrope, Inter, sans-serif; }
.container { width: min(1360px, calc(100% - 64px)); }
.section { padding: 44px 0; }
.section-heading { margin: 0 0 24px; }
.section-heading h2, .why h2 { font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -.035em; }
.section-heading a { font-size: 14px; color: var(--navy); }
.site-header { transition: box-shadow .2s; }
.site-header.is-compact { box-shadow: 0 3px 18px rgba(4,22,37,.08); }
.site-header.is-compact .header-inner { min-height: 60px; }
.header-inner { min-height: 76px; }
.main-nav a { position: relative; font-size: 13px; }
.main-nav a:hover { color: var(--aqua); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: -12px; left: 0; right: 0; height: 2px; background: var(--aqua); }
.main-nav .sale { color: #f28a2e; }
.action { text-align: center; }
.action span { font-size: 25px; }
.hero, .hero-content { min-height: 580px; }
.hero { background-image: linear-gradient(90deg,rgba(4,22,37,.97) 0%,rgba(4,22,37,.84) 38%,rgba(4,22,37,.28) 78%,rgba(4,22,37,.12) 100%),url('https://www.mmsub.com/wp-content/uploads/slide-trgovina-main-page.jpg'); }
.hero-copy { max-width: 580px; }
.hero-content { justify-content: space-between; gap: 48px; }
.hero-image-link { display: block; width: min(42%,535px); flex: 0 0 min(42%,535px); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 15px; overflow: hidden; background: var(--deep); box-shadow: 0 20px 55px rgba(0,0,0,.22); }
.hero-image-link img { display: block; width: 100%; height: auto; aspect-ratio: 535 / 300; object-fit: cover; }
.hero-image-link span { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 12px 18px; font-weight: 700; }
.hero-image-link b { color: var(--aqua); font-size: 24px; }
.hero-image-link:hover { border-color: var(--aqua); transform: translateY(-3px); }
.hero h1 { font-size: clamp(3.25rem, 4.4vw, 3.75rem); line-height: 1.09; letter-spacing: -.045em; }
.hero p:not(.eyebrow) { font-size: 18px; line-height: 1.55; }
.eyebrow { color: var(--aqua); }
.button, .add-cart, .catalog-actions button, .newsletter button { min-height: 46px; cursor: pointer; }
.button.primary, .category-card em { background: var(--aqua); }
.button { border-radius: 7px; }
.benefits { padding: 30px 0; }
.benefits strong { font-size: 14px; }
.benefits small { font-size: 12px; }
.category-grid { gap: 16px; }
.category-card { aspect-ratio: 1 / 1; min-height: 0; border-radius: 14px; padding: 26px; transition: transform .18s, box-shadow .18s; }
.category-card::before { background: linear-gradient(0deg,rgba(4,22,37,.9),rgba(4,22,37,.18) 75%); }
.category-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(4,22,37,.12); }
.category-card span { font-size: clamp(18px, 1.8vw, 25px); line-height: 1.2; }
.category-cave { background-image: url('assets/mtde-cave.jpg'); }
.category-card small { font-size: 14px; }
.category-card em { min-height: 44px; display: inline-flex; align-items: center; }
.product-grid { gap: 18px; }
.product-card { min-width: 0; min-height: 390px; border: 1px solid var(--line); border-radius: 14px; padding: 15px; box-shadow: none; transition: transform .18s, box-shadow .18s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(4,22,37,.09); }
.product-card a:first-child { color: var(--ink); }
.product-card .product-image { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; margin: 0 0 14px; background: #fff; }
.product-card h3 { min-height: 2.5em; font-size: 16px; line-height: 1.3; margin: 0 0 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card p { font-size: 13px; min-height: 2.7em; margin: 0 0 6px; }
.product-card > strong { font-size: 20px; margin: auto 0 7px; }
.product-card .stock { color: var(--muted); margin: 0 0 12px; font-size: 12px; }
.product-card .add-cart { display: flex; justify-content: center; align-items: center; text-align: center; font-size: 14px; }
.new-product-grid { gap: 14px; }
.new-product-grid > a { display: flex; flex-direction: column; gap: 5px; min-height: 112px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.new-product-grid > a:hover { border-color: var(--aqua); }
.new-product-grid b { font-size: 14px; }
.new-product-grid span { font-size: 13px; color: var(--muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.new-product-grid strong { font-size: 16px; margin-top: auto; }
.brands { margin-top: 44px; }
.why { padding: 64px 0; background: #edf6f8; }
.why-grid strong { font-size: 16px; }
.why-grid p { font-size: 14px; }
.footer { background: var(--deep); }
.catalog-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.catalog-card { border-color: var(--line); border-radius: 14px; box-shadow: none; }
.catalog-card:hover { box-shadow: 0 10px 24px rgba(4,22,37,.09); }
.catalog-card .product-image { height: auto; aspect-ratio: 1 / 1; background-color: #fff; }
.product-image-fallback { display: flex; align-items: center; justify-content: center; background: var(--bg) !important; color: var(--muted); font-size: 13px; text-align: center; padding: 16px; }
.cart-image-fallback { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; border-radius: 5px; background: var(--bg); color: var(--muted); font-size: 10px; font-weight: 800; }
.catalog-card h3 { min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.catalog-card p { min-height: 2.7em; }
.catalog-price { color: var(--navy); }
.catalog-actions { flex-direction: column; }
.catalog-actions button { width: 100%; }
.stock-line { color: var(--muted); }
.stock-line::before { display: none; }
.shop-heading h1 { font-size: clamp(2.4rem,3.8vw,3.5rem); line-height: 1.1; }
.shop-intro { font-size: 16px; }
.shop-toolbar { gap: 14px; }
.shop-toolbar select, .search-field { border-color: var(--line); min-height: 48px; }
.filter-toggle { display: none; }
.filter-close { display: none !important; }
.cart-row input { width: 56px; height: 38px; border: 1px solid var(--line); border-radius: 5px; padding: 5px; }
.cart-row-controls { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.cart-row-controls label { font-size: 12px; color: var(--muted); }
.footer a { color: #d5dfe7; }
@media (max-width: 1100px) {
  .container { width: min(1360px, calc(100% - 48px)); }
  .main-nav { gap: 12px; }
  .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .hero-content { gap: 22px; }
  .hero-image-link { width: 38%; flex-basis: 38%; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 26px 0; }
  .hero, .hero-content { min-height: 490px; }
  .hero h1 { font-size: clamp(2.125rem,8.5vw,2.5rem); }
  .hero p:not(.eyebrow) { font-size: 16px; }
  .hero-copy { padding-bottom: 28px; }
  .hero-content { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 15px; padding-top: 25px; }
  .hero-copy { padding-bottom: 0; }
  .hero-image-link { width: 100%; flex-basis: auto; margin-bottom: 20px; }
  .hero-image-link img { height: auto; }
  .hero-image-link span { min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .section-heading h2, .why h2 { font-size: 2rem; }
  .category-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 10px; }
  .category-card { flex: 0 0 min(72vw,260px); aspect-ratio: 1 / 1; scroll-snap-align: start; padding: 18px; }
  .category-card span { font-size: 19px; }
  .product-grid { gap: 10px; }
  .product-card { min-height: 0; padding: 10px; }
  .product-card h3 { font-size: 14px; }
  .product-card > strong { font-size: 17px; }
  .product-card .add-cart { font-size: 12px; }
  .new-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .new-product-grid > a:last-child { display: flex; }
  .why { padding: 50px 0; }
  .shop-main { padding-top: 20px; }
  .shop-heading h1 { font-size: 2.25rem; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .catalog-card .product-image { height: auto; }
  .catalog-card h3 { font-size: 14px; }
  .catalog-actions button { min-height: 44px; }
  .shop-toolbar { position: sticky; top: 66px; z-index: 9; background: #fff; padding: 10px 0; margin: 10px 0; }
  .filter-toggle { display: block; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--navy); font-weight: 700; }
  .shop-toolbar select { display: none; }
  .shop-sidebar { display: none; }
  .shop-sidebar.open { display: flex; flex-direction: column; position: fixed; z-index: 31; top: 0; left: 0; bottom: 0; width: min(340px,90vw); padding: 24px 18px; background: #fff; box-shadow: 10px 0 30px rgba(4,22,37,.2); overflow-y: auto; border: 0; }
  .shop-sidebar.open h2, .shop-sidebar.open .side-note { display: block; }
  .shop-sidebar.open .filter-close { display: block !important; align-self: flex-end; width: 46px; font-size: 26px; }
  .shop-sidebar.open button { width: 100%; }
}
@media (max-width: 380px) {
  .product-grid, .catalog-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
}

/* MMSUB wordmark is cropped from the supplied brand board, without its labels. */
:root { --navy: #0b2d45; --deep: #071f31; --blue: #0b2d45; --cyan: #00b4c6; --aqua: #00b4c6; --ink: #172b38; }
.brand { min-width: 195px; width: 195px; flex: 0 0 195px; flex-direction: row; align-items: center; gap: 8px; line-height: normal; }
.brand::after { content: 'MMSUB'; font-family: Manrope, Inter, Arial, sans-serif; font-size: 29px; font-weight: 800; letter-spacing: -.075em; color: #0b2d45; }
.logo-art { display: block; flex: 0 0 65px; width: 65px; height: 48px; background: #fafaf9 url('mmsub_logo.png') -253px -28px / 333px auto no-repeat; }
.footer .brand { display: flex; width: 180px; min-width: 180px; flex-basis: 180px; }
.footer .brand::after { display: none; }
.footer .logo-art { flex-basis: 180px; width: 180px; height: 118px; border-radius: 4px; background-position: -310px -206px; background-size: 652px auto; }
h1, h2, h3 { font-family: Manrope, Inter, Arial, sans-serif; font-weight: 800; }
.main-nav a, .main-nav summary { font-family: Inter, Arial, sans-serif; font-weight: 700; letter-spacing: .015em; }
.section-kicker, .eyebrow { letter-spacing: .12em; }
.button, .add-cart, .catalog-actions button { font-family: Inter, Arial, sans-serif; font-weight: 700; }
@media (max-width: 650px) {
  .brand { min-width: 156px; width: 156px; flex-basis: 156px; gap: 5px; }
  .brand::after { font-size: 23px; }
  .logo-art { flex-basis: 54px; width: 54px; height: 40px; background-position: -209px -23px; background-size: 275px auto; }
  .footer .brand { width: 180px; min-width: 180px; flex-basis: 180px; }
  .footer .logo-art { flex-basis: 180px; width: 180px; height: 118px; background-position: -310px -206px; background-size: 652px auto; }
}
