/*
Theme Name: Shared Mobility Shop
Author: Marc Specht
Version: 1.1
*/

@import url(css/timeline.css);
@import url(css/button.css);
@import url(css/form.css);
@import url(css/hamburger.css);
@import url(css/product-choose.css);
@import url(css/woo.css);

:root{
  --primary: #26608A;
  --primary-dark: color-mix(in srgb, var(--primary) 80%, black 20%);
  --secondary: #bf3e74;
  --secondary-dark: color-mix(in srgb, var(--secondary) 80%, black 20%);
  --light-bg: #f0f0f0;
  --white: #fff;
  --wrapper-width: 1000px;
}

*{
  font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6, .wp-block-button a, bdi{
  font-family: 'Montserrat', Helvetica, Arial;
  font-weight: 600;
}

a {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6{
  font-weight: 600;
}

/* Reset and Box Model */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#custom-cart-message {
  position: fixed;
  top: 5rem;
  right: 20px;
  background: #2ecc71;
  color: white;
  padding: 15px 25px;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-size: 16px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#custom-cart-message.show {
  opacity: 1;
  pointer-events: auto;
}


/* Body */
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

/* Header */
header {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

header .site-branding {
  text-align: center;
}

header .site-branding h1 {
  font-size: 24px;
  color: #333;
}

/* Mobile-first default */
header nav, .sub-header {
  display: none;
}

.sub-header{
  display:none;
}

.mobile-menu {
  display: block;
}

.sub-header.active{
  display:block;
}

/* Show navigation on larger screens (e.g., tablets and desktops) */
@media (min-width: 769px) {
  header nav {
    display: block; /* or flex, depending on your layout */
  }
  .mobile-menu, .sub-header{
    display: none;
  }
}

.sub-header{
  background: var(--white);
}

.sub-header ul{
  padding:0;
}

.sub-header ul li{
    list-style-type: none;
   text-align: center;
   padding: 1rem 0;
   font-size: 2rem;
   font-weight: bold;
   font-family: 'Montserrat', Helvetica, Arial;
   font-weight: 600;
}

.sub-header ul li a{
  text-decoration: none;
   padding: 1rem 0;
}


header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

header nav ul li {
  display: inline;
}

header nav ul li a {
  text-decoration: none;
  color: #0073e6;
  font-weight: bold;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: #005bb5;
}

.sms-banner{
  padding: 4rem 0;
}

.sms-banner > div{
  max-width: var(--wrapper-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.home-cards > div{
  padding: 2rem 2rem 2rem 2rem;
  background: white;
  margin-bottom: 3rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 5%);
  border-radius: 5px;
}


.home-cards h4, 
.home-cards p{
  margin-bottom: 1rem;
  text-align: center;
}

.home-cards .wp-block-buttons, .home-cards .wp-block-button{
  flex: 1;
  width:100%;
}


.home-cards .wp-block-buttons{
  margin-bottom: -4rem;
}


.home-cards .wp-block-button a{
  flex:1;
}

.menu-main-container .menu-item{
position: relative;
}

.menu-main-container a[aria-current="page"]{
  text-decoration: underline;
}

.menu-cart-item{
  background: var(--primary);
}

.menu-cart-item a {
  color:var(--white);
}

@media (min-width: 769px) {
  .menu-cart-item{
    background: unset;
  }

  .menu-main-container a[aria-current="page"]{
    text-decoration: none;
  }
  .menu-main-container a[aria-current="page"]::after{
    content: '';
    position:absolute;
    left:50%;
    transform: translateX(-50%);
    top: 2.5rem;
    height: 2px;
    width: 100%;
    background: var(--secondary);
    border-radius: 1rem;
  }

  .menu-cart-item a::after{
    display:none;
  }

}

.site-wrapper {
  background:white;
  padding: 2rem;
  margin-left: auto;
  margin-top: 3rem;
  margin-right: auto;   
  box-sizing: border-box;
  max-width: var(--wrapper-width);
}

.site-wrapper-image{
  margin-top: -5rem; /* or however much you want to pull it up */
  background: white; /* semi-transparent or solid */
  padding: 2rem;
  z-index: 2;
  position: relative; /* Needed to establish stacking context */
}

.site-wrapper-transparent{
  background: unset;
}

p {
  margin-bottom: 15px;
}

/* Product Filter Form */
#product-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#product-filter label {
  font-weight: bold;
  color: #333;
}

#product-filter select,
#product-filter button {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  transition: border-color 0.3s;
}

#product-filter select:focus,
#product-filter button:focus {
  border-color: #0073e6;
  outline: none;
}

#product-filter button {
  cursor: pointer;
  background-color: #0073e6;
  color: #fff;
  font-weight: bold;
  border: none;
  transition: background-color 0.3s;
}

#product-filter button:hover {
  background-color: #005bb5;
}

/* Product Results */
#product-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

#product-results li{
  text-decoration: none;
}

#product-results .product img{
background-color: var(--light-bg);
  padding: 1rem;
}

#product-results .product {
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  list-style-type: none;
}

#product-results .product .woocommerce-loop-product__title{
  font-style:normal;
  font-size:1rem;
  margin-top:2rem;
  padding: 0 1rem;
}

#product-results .product .button, .btn-primary{
  cursor: pointer;
  background-color: var(--secondary);
  color: #fff;
  font-weight: bold;
  border: none;
  transition: background-color 0.3s;
  padding: 1rem 2rem;
  color: white;
  transition: background-color .2s ease;
  cursor: pointer;
  margin-bottom: 1rem;
  text-decoration: none;
  font-size: .8rem;
  text-transform: uppercase;
  display: block;
  text-align: center;
  font-weight: bold;
  margin-left:1rem;
  margin-right:1rem;
  margin-top:2rem;
  border: none;
  width: calc(100% - 2rem);
}

.btn-primary{
  margin:0;
  width: 100%;
}

.btn-primary:hover{
    background-color: var(--secondary-dark);

}

#product-results .product:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#product-results .product img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

#product-results .product h3 {
  margin-top: 10px;
  font-size: 18px;
  color: #333;
}

#product-results .product p {
  font-size: 14px;
  color: #666;
}

#product-results a, .product a{
  text-decoration: none;
  color: unset;
}

bdi{
font-size:x-large;
  color:var(--primary-dark);
}

#product-results bdi{
  
  padding: 0 1rem;
}

.product-item{
  padding-bottom: 1rem;
}

bdi::after{
  content: ' p/m excl. BTW';
  font-size:.7rem;
  font-style: italic;
}

.added_to_cart{
  text-align: center;
  text-decoration: underline!important;
  display:block;
  padding-bottom:1rem;
}

#product-results .product .price {
  margin-top: 10px;
}


.featured-image img{
    object-fit: cover;
    width: 100%;
    position: relative;
    z-index: 1;
}

footer {
  background-color: var(--primary); /* lichtgrijs (zelfde als bg-light in Bootstrap) */
  color: #ffffff; /* donkergrijs tekstkleur */
  font-size: 0.95rem;
}

footer h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #0d6efd; /* Bootstrap primary kleur (blauw) */
  text-decoration: underline;
}

footer .list-unstyled li {
  margin-bottom: 0.5rem;
}

.footer-bottom{
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
}

.footer-bottom img {
  max-width: 250px;
  max-height: fit-content;
  margin-top: 0.5rem;
  flex:1;
}

.footer-bottom a {
align-items: center;
  justify-content: center;
  flex:1;
  display: flex;
}

.footer-bottom .custom-logo {
  max-width: 250px; /* adjust as needed */
  height: auto !important;
  width: auto;
}

/* Make sure it scales on small screens */
@media (max-width: 480px) {
  .footer-bottom .custom-logo {
    max-width: 120px;
  }
}

footer p {
  margin-bottom: 0.25rem;
}

footer .text-center {
  font-size: 0.85rem;
  margin-top: 1rem;
  border-top: 1px solid #dee2e6;
  padding-top: 1rem;
}

.option-group {
    margin-bottom: 2rem;
  }
.options-container {
  width: 100%;
  display: flex;
  justify-content:  space-around;
  gap: 1rem;
  flex-wrap: wrap;
}
.option-item {
  flex:1;
  cursor: pointer;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  user-select: none;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.option-item:hover{
    border-color: var(--primary);
}

.option-item img {
  max-width: 100%;
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.option-item[aria-pressed="true"] {
  border-color: var(--primary);
}

#show-products {
  background: var(--primary);
  padding: 1rem 2rem;
  color: white;
  transition: background-color .2s ease;
  cursor: pointer;
  margin-bottom: 2rem;
  text-decoration: none;
  font-size: .8rem;
  text-transform: uppercase;
  text-align: center;
  font-weight: bold;
  margin-top:3rem;
  border: none;

}
#show-products:disabled {
  opacity: 90%;
  cursor: not-allowed;
}

#show-products:hover{
  background: var(--primary-dark);
}

.site-header {
display: flex;
align-items: center;  /* vertically center items */
justify-content: space-between; /* logo left, menu right */
padding: 0 20px; /* optional spacing */
}

.header--container{
  position:fixed;
  width: 100vw;
  top:0;
  z-index: 998;
}

header {
  display: flex;
  align-items: center;       /* vertically center logo and menu */
  justify-content: center;  /* logo left, menu right */
  padding: 1rem 20px;           /* optional horizontal padding */
}

/* Style for the logo container (the <a> or <img> output by the_custom_logo) */
header .custom-logo-link {
  display: flex;
  align-items: center;
}

header .custom-logo {
  max-height: 60px;
  max-width: 300px;
  height: auto;
  width: auto;
}

/* Make menu horizontal */
header nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 10px;                 /* spacing between menu items */
}

header nav ul li:last-child a{
  background: var(--primary);
  padding: 1rem 2rem;
  color: white;
  margin-left: .5rem;
  transition: background-color .2s ease; /* smooth transition */
}

header nav ul li:last-child a:hover{
  color:white;
  background: var(--primary-dark)
}

/* Menu links styling */
header nav ul li a {
  text-decoration: none;
  color: #000;
  font-size: .8rem;
  text-transform: uppercase;
  padding: 1rem 5px;
  display: block;
  text-align: center;
}

/* Optional: menu hover effect */
header nav ul li a:hover {
  color: #0073aa;
}

.product-thumb{
  height:200px;
  display:flex;
  align-items: center;
}


.category-button-find-sharing{
  background: var(--primary);
  color:white;
  flex:1;
  border-radius: 5px;
  font-weight: bold;
  display: flex;
  justify-content: center; 
  align-items: center;    
  text-align: center;    
}