/*
Theme Name: Flatsome Child
Description: Custom stylesheet for Gevako (Flatsome Child)
Author: UX Themes / Gevako
Template: flatsome
Version: 3.1
*/

/* ==========================================================================
   01. GLOBAL & LAYOUT FIXES
   ========================================================================== */

/* Hide Google reCaptcha badge */
.grecaptcha-badge {
  visibility: hidden;
}

/* Remove padding from main page wrapper */
.page-wrapper {
  padding-bottom: 0px !important;
  padding-top: 0px !important;
}

/* Base column padding */
.col {
  padding-bottom: 10px !important;
}

/* CLS (Cumulative Layout Shift) fixes for header height reservation */
@media screen and (max-width: 849px) {
  #top-bar {
    /* Reserve space for top bar on mobile (often 2 lines) */
    min-height: 60px;
  }
  #masthead .header-main {
    /* Reserve standard Flatsome mobile header height */
    min-height: 70px;
  }
}

@media screen and (min-width: 850px) {
  #top-bar {
    min-height: 30px;
  }
}

/* Column inner padding adjustments for mobile */
@media screen and (max-width: 549px) {
  .col,
  .col-inner {
    padding-top: 0px !important;
    padding-bottom: 10px !important;
  }
}

/* ==========================================================================
   02. HEADER & NAVIGATION
   ========================================================================== */

/* Prevent "Over Gevako" from splitting into two lines */
.header-nav-main li a.nav-top-link {
  white-space: nowrap !important;
}

/* Prevent the entire menu from wrapping to a second row */
ul.header-nav-main {
  flex-wrap: nowrap !important;
}

/* Hide text items on smaller desktops, but keep the flag and hamburger */
@media screen and (max-width: 1150px) {
  ul.header-nav-main li.menu-item:not([class*="language"]):not([class*="wpml"]):not([class*="polylang"]) {
    display: none !important;
  }

  /* Ensure the hamburger icon remains visible */
  ul.header-nav-main li.nav-icon {
    display: block !important;
    visibility: visible !important;
  }
}

/* Force main menu to the center of the header */
.header-main .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-main .header-inner > .flex-col:first-child,
.header-main .header-inner > .flex-col:last-child {
  flex: 0 0 auto !important;
}

.header-main .header-inner > .flex-col.hide-for-medium.flex-left {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Hide specific divider in menu */
#nav_menu-17 .is-divider {
  visibility: hidden !important;
}

/* Make specific menu items bold */
.bold-order-cancellation-withdrawal a {
  font-weight: bold !important;
}

/* Top bar layout on tablet and mobile */
@media screen and (max-width: 849px) {
  /* Force top bar nav to the right */
  .header-top .nav.nav-center {
    justify-content: flex-end !important;
  }

  /* Keep dropdown on the right, but align text to the left */
  .nav-top-link + .nav-dropdown {
    left: auto !important;
    right: 0 !important;
    min-width: 140px !important;
    width: auto !important;
    text-align: left !important;
  }

  /* Ensure list items align text to the left */
  .nav-dropdown > li > a {
    justify-content: flex-start !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Disable pointer events on hidden launcher icons */
.launcher-icon[aria-hidden="true"],
.launcher-icon[aria-hidden="true"] button,
.launcher-icon[aria-hidden="true"] [tabindex] {
  pointer-events: none !important;
  tab-index: -1 !important;
}

/* --- Social icons in header --- */
.header-social-youtube,
.header-social-github {
  display: inline-block;
  padding: 12px;
}

.header-social-youtube {
  margin-right: 10px;
}

#top-bar .header-social-youtube,
#top-bar .header-social-github {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 6px;
}

.header-social-icons {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
}

.header-social-github svg {
  fill: #181717;
  transition: fill 0.3s;
}

.header-social-github:hover svg {
  fill: #4078c0;
}

.header-social-youtube svg {
  fill: #ff0000;
  transition: fill 0.3s;
}

.header-social-youtube:hover svg {
  fill: #cc0000;
}

/* ==========================================================================
   03. WPML / LANGUAGE SWITCHER
   ========================================================================== */

/* Hide text (like "English") and keep icons visible */
.header-language-dropdown__link.nav-top-link {
  font-size: 0 !important;
}

li.wpml-ls-item a.nav-top-link span.wpml-ls-native {
  display: none !important;
}

/* Increase the size of the flag and the dropdown icon */
.header-language-dropdown__link.nav-top-link i {
  font-size: 18px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.header-language-dropdown__link.nav-top-link img {
  height: 18px !important;
  width: auto !important;
}

/* Force the flag size and prevent Flatsome from shrinking it on mobile */
li.wpml-ls-item a img.wpml-ls-flag {
  height: 18px !important;
  width: 25px !important;
  min-width: 25px !important;
  max-width: 25px !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

/* Add a subtle border and shadow to lift the flag from the background */
.wpml-ls-flag {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 2px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Keep flag centered and prevent wrapping */
li.wpml-ls-item a {
  padding-left: 5px !important;
  padding-right: 5px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

/* Hide the dropdown arrow in all menus */
li.wpml-ls-item a i.icon-angle-down,
.header-main .header-language-dropdown .icon-angle-down,
.header-main .header-language-dropdown a i.icon-angle-down {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}

/* Ensure the menu item remains clickable and is not blocked */
.wpml-ls-menu-item {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 9999 !important;
}

/* Force visibility of dropdown on hover/focus */
.wpml-ls-menu-item:hover > .wpml-ls-sub-menu,
.wpml-ls-menu-item:focus-within > .wpml-ls-sub-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.wpml-ls-item-toggle {
  cursor: pointer !important;
}

/* Tighten up the language switcher / flags container in footer */
.absolute-footer .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ==========================================================================
   04. TYPOGRAPHY & GLOBAL ELEMENTS
   ========================================================================== */

/* Set global h1 size */
h1 {
  font-size: 28px;
}

/* Hide h1 on homepage */
.home h1.entry-title {
  display: none;
}

/* Block uppercase for page titles and menus */
.entry-title,
.ux-menu-title {
  text-transform: none;
}

/* Breadcrumbs styling */
.breadcrumbs {
  color: #474747;
}

.breadcrumbs a {
  color: #0056b3;
}

.breadcrumbs a:hover {
  color: #474747;
}

/* Slider and lightbox arrows */
.flickity-prev-next-button,
.mfp-arrow {
  color: #32a88e !important;
}

/* Off-canvas sidebar background */
.off-canvas-left.dark .mfp-content {
  background-color: #474747;
}

/* Force equal YouTube thumbnail sizes (aspect ratio fix) */
.video-wrapper,
.video,
.wp-block-embed-youtube,
iframe[src*="youtube.com"] {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

/* Flatsome specific video wrapper fix */
.video iframe {
  width: 100% !important;
  height: 100% !important;
}

/* ==========================================================================
   05. WOOCOMMERCE - GLOBAL & ARCHIVE
   ========================================================================== */

/* --- Global price styling --- */
.price {
  line-height: 1.3;
  display: block;
  text-align: left !important;
}

.price-incl {
  font-weight: 700;
  color: #474747;
}

.price-excl {
  display: block;
  font-size: 0.75em;
  color: #474747;
  font-weight: 400;
  margin-top: 2px;
}

.price-incl span.amount,
.price-excl span.amount {
  color: #111;
}

/* Fix alignment of the euro symbol */
.price .woocommerce-Price-currencySymbol {
  vertical-align: baseline;
  font-size: inherit;
  font-weight: inherit;
}

/* --- Archive / shop grid prices --- */
.products .price-incl {
  font-size: 1em;
}

.products .price-excl {
  font-size: 0.7em;
}

/* --- Category page sidebar layout --- */
.category-page-row .col.large-3 {
  max-width: 16.66667% !important;
  flex-basis: 16.66667% !important;
}

.category-page-row .col.large-9 {
  max-width: 83.33333% !important;
  flex-basis: 83.33333% !important;
}

.widget_product_categories ul.product-categories li a {
  font-size: 0.9rem !important;
  line-height: 1.3 !important;
  padding: 4px 0 !important;
}

.widget_product_categories .widget-title {
  font-size: 0.95rem !important;
  text-transform: none;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

@media screen and (max-width: 849px) {
  /* Tablet and mobile: hide sidebar and expand product column */
  .category-page-row > .col.large-3 {
    display: none !important;
  }
  .category-page-row > .col.large-9 {
    max-width: 100% !important;
    flex-basis: 100% !important;
    width: 100% !important;
  }
}

/* --- Badges --- */
.badge-container {
  margin: 5px 10px 0 !important;
}

.badge-inner {
  font-size: 11px !important;
}

@media screen and (max-width: 549px) {
  .badge-inner {
    font-size: 0.75rem !important;
  }
}

/* --- Brand grid / tiles --- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
}

.brand-tile {
  text-align: center;
}

.brand-inner {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.brand-img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 12px;
}

.brand-inner h3 {
  font-size: 16px;
  margin: 0;
}

.brand-inner:hover {
  box-shadow: 0 8px 20px rgba(64, 138, 255, 0.35);
  transform: translateY(-4px);
  border-color: #0056b3;
}

/* ==========================================================================
   06. WOOCOMMERCE - SINGLE PRODUCT
   ========================================================================== */

.single-product .product-info .product-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.product-info .price {
  font-size: 1.25em !important;
}

.product-summary .woocommerce-Price-currencySymbol {
  font-size: inherit !important;
}

/* Tighten spacing between price and description */
.single-product .product-short-description {
  margin-top: 15px !important;
}

@media screen and (max-width: 549px) {
  .single-product .product-short-description {
    margin-top: 10px !important;
  }
}

.single-product .product-info .col-inner {
  padding-top: 10px !important;
}

.single-product .price-wrapper + .product-short-description br {
  display: none;
}

/* Make product attribute labels lowercase */
.woocommerce-product-attributes-item__label {
  text-transform: none !important;
  letter-spacing: normal;
}

/* Remove line under variation price */
.woocommerce-variation-price {
  border-top: none;
  padding: 0;
}

.product-main {
  padding-bottom: 10px !important;
}

/* --- Trust lists --- */
.checkout-trust-list,
.cart-trust-list,
.product-page-trust-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 5px !important;
  margin-bottom: 20px !important;
}

.checkout-trust-list li,
.cart-trust-list li {
  margin-bottom: 5px !important;
  line-height: 1.5 !important;
}

.product-footer .woocommerce-tabs {
  padding: 10px 0 !important;
}

/* ==========================================================================
   07. WOOCOMMERCE - CART & CHECKOUT
   ========================================================================== */

/* Align prices in tables */
.woocommerce-cart td.product-subtotal,
.woocommerce-checkout .order-total,
.woocommerce-checkout .product-total {
  vertical-align: middle;
}

.woocommerce-cart .price-excl,
.woocommerce-checkout .price-excl {
  margin-top: 0;
  line-height: 1;
}

/* Align purchase note to the left */
.woocommerce-table__product-purchase-note td {
  text-align: left !important;
}

.woocommerce-table__product-purchase-note td p {
  text-align: left !important;
  margin-left: 0;
  margin-right: auto;
}

/* Reduce padding in checkout review table */
.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* Reduce spacing in checkout billing fields */
.woocommerce-billing-fields__field-wrapper .form-row {
  margin-bottom: 0px !important;
}

.woocommerce-billing-fields__field-wrapper .form-row label {
  margin-bottom: 4px !important;
}

.woocommerce-checkout #order_comments {
  height: 50px !important;
  min-height: 50px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* ==========================================================================
   08. TAX SWITCHER
   ========================================================================== */

/* Force colors */
.wp-block-wdevs-tax-switch {
  --wts-bg-color-checked: #0056b3 !important;
  --wts-bg-color: #006dcb !important;
  transform: scale(0.7);
  transform-origin: right center;
}

.wp-block-wdevs-tax-switch .wdevs-tax-switch-label-text {
  font-size: 14px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.wp-block-wdevs-tax-switch .wdevs-tax-switch-slider {
  border: 2px solid #ffffff !important;
}

.wp-block-wdevs-tax-switch .wdevs-tax-switch-slider:before {
  background-color: #fff !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  left: 3px !important;
  transition: all 0.3s ease;
}

.wp-block-wdevs-tax-switch .wdevs-tax-switch-checkbox:checked + .wdevs-tax-switch-slider:before {
  left: calc(100% - 28px) !important;
}

/* Header alignment */
.header-top .wp-block-wdevs-tax-switch {
  display: inline-flex !important;
  align-items: center !important;
  margin-bottom: 0 !important;
  margin-right: 5px !important;
}

/* Mobile adjustments */
@media screen and (max-width: 549px) {
  .wp-block-wdevs-tax-switch {
    transform: scale(0.7) !important;
    margin-right: -40px !important;
  }
  .wp-block-wdevs-tax-switch .wdevs-tax-switch-label-text {
    font-size: 12px !important;
  }
}

/* Tax switcher CLS fix */
.wts-price-container {
  display: inline-flex;
  column-gap: 5px;
  justify-content: flex-start !important;
  width: 100%;
}

.wts-price-wrapper {
  display: inline-grid;
  justify-items: start;
}

.wts-price-wrapper > span {
  grid-area: 1 / 1;
}

.wts-price-wrapper .wts-inactive {
  display: inline-block !important;
  visibility: hidden !important;
  pointer-events: none;
}

.wts-price-wrapper .wts-active {
  display: inline-block !important;
  visibility: visible !important;
}

/* ==========================================================================
   09. FOOTER
   ========================================================================== */

.absolute-footer,
.absolute-footer a {
  color: #000000 !important;
}

.absolute-footer a:hover {
  color: #0974b3 !important;
}

.dark a:hover {
  color: #aaaaaa;
}

.footer-legal-info {
  text-align: center;
  opacity: 0.9;
  font-size: 0.9em;
}

.copyright-footer p {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

@media screen and (max-width: 549px) {
  .footer-legal-info {
    font-size: 0.85em;
  }
  .absolute-footer ul.links li {
    font-size: 0.9em !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
  }
}

/* ==========================================================================
   10. BLOG & POSTS
   ========================================================================== */

/* Hide author info */
.post-author,
.entry-author,
.author-name,
.byline {
  display: none;
}

/* Remove divider below blog title */
.blog-single .entry-divider {
  display: none !important;
}

.entry-content {
  padding-top: 0.25em !important;
}

.article-inner.has-shadow .entry-header-text-top {
  padding-top: 0.25em !important;
}

/* ==========================================================================
   11. PLUGINS & CUSTOM BLOCKS (Reviews, Ratings, Banners, CSP/Cookies plugin)
   ========================================================================== */

/* Cookies and Content Security Policy plugin (by Jonk) modal colors */
.modal-cacsp-position .modal-cacsp-box.modal-cacsp-box-settings .modal-cacsp-box-settings-list ul li a.modal-cacsp-toggle-switch.modal-cacsp-toggle-switch-active span {
  color: #333333 !important;
}

/* --- Gevako ratings / reviews --- */
.gevako-rating-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

.gevako-rating-link {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px;
  color: #006dcb !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.gevako-rating-wrapper .icon-star {
  color: #ffd700 !important;
  margin-right: 6px;
  font-size: 14px;
}

.gevako-rating-link:hover {
  color: #000000 !important;
}

.rating-count-desktop {
  display: none;
}

@media screen and (min-width: 850px) {
  .rating-count-desktop {
    display: inline;
    margin-left: 4px;
  }
}

@media screen and (max-width: 549px) {
  .gevako-rating-wrapper {
    font-size: 12px;
    margin-top: 5px !important;
    align-items: center !important;
  }
}

/* Wprev (Google Place reviews) */
.wprev_outer_wb {
  margin-top: -20px !important;
}

.wprev-google-place {
  padding: 5px 5px !important;
}

.wprev-google-left {
  padding: 2px 8px 2px 5px !important;
}

/* Hide datetime in Customer Reviews slider and grid */
.cr-reviews-slider .cr-review-card .middle-row .datetime,
.cr-reviews-grid .cr-review-card .middle-row .datetime {
  display: none !important;
}

/* --- Banners --- */
.gevako-banner-text h1,
.gevako-banner-text h2,
.gevako-banner-text p,
.gevako-banner-text strong,
.gevako-banner-text span {
  letter-spacing: 0.05em !important;
}

.gevako-banner-row .banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 20%,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(0, 0, 0, 0.2) 45%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
}

.gevako-banner-row .banner-layers {
  position: absolute !important;
  z-index: 2;
}

.banner-rs5 {
  filter: drop-shadow(10px -10px 20px rgba(0, 0, 0, 0.9));
}

/* ==========================================================================
   12. COMMENTED OUT / INACTIVE CODE
   (Kept for reference, uncomment when needed. Chatway, Pressidium and the
   Flatsome cookie notice were removed entirely since these are no longer
   in use.)
   ========================================================================== */

/*
#exploded-view img.frame {
  transition: opacity 0.5s ease-in-out;
}

.header-top {
  max-height: 30px;
}
.header-main {
  max-height: 60px;
}

@media (max-width: 549px) {
  #logo img {
    max-height: 20px !important;
    width: auto !important;
    margin-bottom: 5px !important;
    align-items: center !important;
  }
}
*/