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

html { font-size: 120%; }

body, h1, h2, h3, h4, h5, h6, p, a, li, button, input, textarea, span, div {
  font-family: 'Montserrat', sans-serif !important;
}

@media (max-width: 600px) {
  .bothnia-drinks-menu h2 { font-size: 1.6rem; }
  .bothnia-drinks-menu h3 { font-size: 1.1rem; }
  .bothnia-drinks-menu p {
    font-size: 0.72rem;
    word-break: keep-all;
    overflow-wrap: normal;
  }
}

.tilaukset-desc { min-height: 2.6em; }

/* Tilaukset page: fix pie-row thumbnail sizing + mobile responsiveness */
.tilaukset-pie-row { align-items: center; gap: 1.2em; }
.tilaukset-pie-img { flex: 0 0 90px !important; width: 90px !important; }
.tilaukset-pie-img img { width: 90px !important; height: 90px !important; object-fit: cover; border-radius: 6px; }
.tilaukset-pie-text { flex: 1 1 auto; min-width: 0; }

@media (max-width: 900px) {
  .tilaukset-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
  .bothnia-tilaukset { padding-left: 5% !important; padding-right: 5% !important; }
  .bothnia-tilaukset h1 { font-size: 2rem; }
  .bothnia-tilaukset h2 { font-size: 1.4rem; }
  .tilaukset-pie-img { flex-basis: 64px !important; width: 64px !important; }
  .tilaukset-pie-img img { width: 64px !important; height: 64px !important; }
  .tilaukset-pie-text p { font-size: 0.82rem; }
}

@media (max-width: 420px) {
  .tilaukset-grid { grid-template-columns: 1fr !important; }
}

/* Tilaukset page: dessert card polish — rounded photos, centered text, tidier spacing */
.tilaukset-grid { row-gap: 2.4em !important; }
.tilaukset-grid > .wp-block-group {
  align-items: center;
  text-align: center;
}
.tilaukset-grid img {
  border-radius: 10px;
}
.tilaukset-grid > .wp-block-group > p {
  max-width: 90%;
}

@media (max-width: 600px) {
  .tilaukset-grid { row-gap: 1.6em !important; column-gap: 1em !important; }
}

/* Nav pill buttons in header — teal-to-orange gradient */
.wp-block-buttons .wp-block-button__link {
  background: linear-gradient(135deg, #33484D 0%, #C8823C 100%);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: #F0E9DC;
  border: none;
  font-weight: 700;
  transition: background-position 0.35s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.wp-block-buttons .wp-block-button__link:hover,
.wp-block-buttons .wp-block-button__link:focus {
  background-position: 100% 50%;
  color: #F0E9DC;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.35);
}
.wp-block-buttons .wp-block-button__link:active {
  transform: translateY(0);
  background-position: 60% 50%;
}

/* Mobile nav: hide pill buttons, show gradient popup menu */
.bothnia-mobile-nav { display: none; }
@media (max-width: 600px) {
  header .wp-block-buttons { display: none !important; }
  .bothnia-mobile-nav { display: block; padding: 0 5%; margin: 10px 0; position: relative; z-index: 100; }

  .bothnia-menu-toggle {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    color: #F0E9DC;
    background: linear-gradient(135deg, #33484D 0%, #C8823C 100%);
  }

  .bothnia-mobile-panel {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(160deg, #33484D 0%, #C8823C 130%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 70px 24px 40px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 9999;
    overflow-y: auto;
  }
  .bothnia-mobile-panel.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .bothnia-mobile-panel a {
    display: block;
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 14px 0;
    color: #F0E9DC;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(240,233,220,0.25);
  }
  .bothnia-menu-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: #F0E9DC;
    font-size: 1.8rem;
    line-height: 1;
    padding: 6px;
  }
  .bothnia-menu-photo {
    width: 100%;
    max-width: 300px;
    border-radius: 14px;
    margin-top: 28px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.4);
  }
}

/* Drinks video section with overlay CTA button */
.wp-block-group.bothnia-drinks-video {
  position: relative !important;
  width: 420px !important;
  max-width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 600px) {
  .wp-block-group.bothnia-drinks-video {
    width: calc(100% + 60px) !important;
    max-width: calc(100% + 60px) !important;
    margin-left: -30px !important;
    margin-right: -30px !important;
    left: auto !important;
    position: relative !important;
  }
}
.bothnia-drinks-video .bothnia-video-cta {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: #F0E9DC;
  background: linear-gradient(135deg, #33484D 0%, #C8823C 100%);
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: background-position 0.35s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.bothnia-drinks-video .bothnia-video-cta:hover {
  background-position: 100% 50%;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  color: #F0E9DC;
}

.wp-block-group.bothnia-drinks-video { padding: 0 !important; overflow: hidden; }
.bothnia-drinks-video .wp-block-video { margin: 0 !important; }
.bothnia-drinks-video .wp-block-video video { width: 100% !important; display: block; }

/* Footer social icons: white, centered */
.bothnia-footer-social .wp-social-link {
  background-color: transparent !important;
}
.bothnia-footer-social .wp-social-link svg {
  fill: #ffffff !important;
}
.bothnia-footer-social .wp-social-link:hover svg {
  fill: #C8823C !important;
}

/* Facade photo: match video card width */
.wp-block-image.bothnia-video-facade {
  width: 420px;
  max-width: 90%;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 600px) {
  .wp-block-image.bothnia-video-facade {
    width: calc(100% + 60px) !important;
    max-width: calc(100% + 60px) !important;
    margin-left: -30px !important;
    margin-right: -30px !important;
  }
}

/* Lounas video CTA: move up into a clearer/free area of the frame */
.bothnia-lounas-video .bothnia-video-cta {
  bottom: auto !important;
  top: 65% !important;
}

/* Fix phantom inline-element gap under video/iframe players */
.bothnia-drinks-video video,
.bothnia-drinks-video iframe {
  display: block !important;
  vertical-align: top !important;
}

/* Deliberate gap between the two video groups */
.bothnia-lounas-video {
  margin-top: 12px !important;
}
@media (max-width: 600px) {
  .bothnia-lounas-video {
    width: calc(100% + 60px) !important;
    max-width: calc(100% + 60px) !important;
    margin-left: -30px !important;
    margin-right: -30px !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
  }
}

/* Videos row: side by side on desktop, stacked on mobile */
.bothnia-videos-row {
  column-gap: 20px;
  row-gap: 12px;
}
.bothnia-lounas-video {
  margin-top: 0 !important;
}
@media (max-width: 600px) {
  .bothnia-videos-row {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }
  .bothnia-videos-row > * {
    flex-basis: auto !important;
    align-self: stretch !important;
  }
}

/* Fix videos-row wrapper adding extra padding, and prevent CTA text wrap */
.bothnia-videos-row {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.bothnia-video-cta {
  white-space: nowrap !important;
}
@media (max-width: 480px) {
  .bothnia-video-cta {
    padding-left: 24px !important;
    padding-right: 24px !important;
    font-size: 0.9rem !important;
  }
}

/* Prevent horizontal overflow from full-bleed video breakout tricks */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* Lounas photo slideshow: full width with gap on mobile, matching video treatment */
@media (max-width: 600px) {
  .wp-block-jetpack-slideshow {
    width: calc(100% + 60px) !important;
    max-width: calc(100% + 60px) !important;
    margin-left: -30px !important;
    margin-right: -30px !important;
    margin-top: 12px !important;
  }
}

/* Fill the empty space between the two videos on desktop with matching background color */
@media (min-width: 601px) {
  .bothnia-videos-row {
    background-color: #1C3432;
  }
}

/* ===== Shop page: brand styling for WooCommerce blocks ===== */
.wc-block-product-template__responsive,
ul.products {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  padding: 20px 6% 60px;
}
.wc-block-product-template__responsive .wc-block-product,
ul.products li.product {
  background: #101010;
  border: 1px solid rgba(210,162,76,0.25);
  border-radius: 14px;
  padding: 20px 20px 28px;
  text-align: center;
  max-width: 260px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.wc-block-product-template__responsive .wc-block-product:hover,
ul.products li.product:hover {
  transform: translateY(-4px);
  border-color: #D2A24C;
}
.wc-block-product-template__responsive img,
ul.products li.product img {
  border-radius: 10px;
  margin-bottom: 12px;
}
.wc-block-product-template__responsive .wp-block-post-title,
ul.products li.product h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #F9E9D3 !important;
  margin: 8px 0 4px;
}
.wc-block-product-template__responsive .wc-block-components-product-price,
.wc-block-product-template__responsive .price,
ul.products li.product .price {
  color: #D2A24C !important;
  font-weight: 700;
  font-size: 1.2rem;
}
.wc-block-product-template__responsive .wp-block-woocommerce-product-button .wp-block-button__link,
ul.products li.product .add_to_cart_button,
ul.products li.product .button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: 700;
  color: #1A1A1A !important;
  background: linear-gradient(135deg, #33484D 0%, #C8823C 100%);
  border: none;
  text-decoration: none;
}

/* Page title + category filter widget */
.wp-block-post-title.has-white-color {
  color: #F9E9D3 !important;
}
.wp-block-woocommerce-product-collection h3,
.wc-block-product-categories__list,
.widget_product_categories,
.widget-title {
  color: #F9E9D3 !important;
}
.wc-block-product-categories li a,
.widget_product_categories li a {
  color: #F9E9D3 !important;
}
.wc-block-product-categories li a:hover,
.widget_product_categories li a:hover {
  color: #D2A24C !important;
}

/* Fix near-invisible product title links (theme's default link color is almost transparent) */
.wc-block-product-template__responsive .wp-block-post-title a,
ul.products li.product h2 a,
.wp-block-post-title a {
  color: #F9E9D3 !important;
  opacity: 1 !important;
}
.wc-block-product-template__responsive .wp-block-post-title a:hover,
ul.products li.product h2 a:hover {
  color: #D2A24C !important;
}

/* Shop grid: force row layout on desktop, single column on mobile (override WooCommerce's own responsive JS-driven column count) */
.wc-block-product-template__responsive,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 32px !important;
  padding: 20px 6% 60px;
}
.wc-block-product-template__responsive .wc-block-product,
ul.products li.product {
  max-width: none !important;
  width: 100% !important;
}
@media (max-width: 600px) {
  .wc-block-product-template__responsive,
  ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* Hide MailPoet marketing opt-in checkbox on checkout */
.wc-block-checkout__contact-fields .wc-block-components-checkbox {
  display: none !important;
}

/* Fix checkout form label/input contrast on white fields */
.wc-block-components-text-input label,
.wc-block-checkout__form label,
.wc-block-components-address-form label,
.wc-block-components-checkout-step__container label {
  color: #1A1A1A !important;
}
.wc-block-components-text-input input,
.wc-block-checkout__form input,
.wc-block-components-address-form input {
  color: #1A1A1A !important;
}
.wc-block-components-combobox-control label,
.wc-block-components-dropdown-selector label {
  color: #1A1A1A !important;
}

/* Constrain oversized page titles (Shop/Cart/Checkout) on mobile */
@media (max-width: 600px) {
  .wp-block-post-title {
    font-size: 2.2rem !important;
    line-height: 1.15 !important;
    word-break: break-word;
  }
}