/*
Theme Name: Bartswijnkoperij
Description: Starter theme based on Bartswijnkoperij.
Author: EWM
Author URI: EWM
Version: 1.1
*/

/* Base / reset */
*, *::before, *::after { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth;; }
html { margin: 0; }
html, body, button, input, select, textarea { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; line-height: 1.6; font-size: 17px; }
body { margin: 0; background: #f4f0ed; color: #252022; -webkit-font-smoothing: antialiased; }
body.noscroll {overflow: hidden; width: 100%; height: 100%;}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

a, .meta a:hover, h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover, .entry-title a:hover {
  color: #cc1e1e;
}


h2 {
  margin: 0px 0 20px !important;
}

:root{
  --bg: #f4f0ed;
  --ink: #252022;
  --muted: #6f6a6c;
  --bar: #1a1615;         /* top bar background */
  --bar-ink: #f4f0ed;     /* top bar text/icon color */
  --accent: #a77b5b;      /* bronze accent */
  --container: 1200px;
  --radius: 14px;
  --baseline: 1.6rem;
  --subbar: #6b4c3b;      /* wine-brown secondary bar */
  --badge: #722F37;       /* red-wine badge */
}

::placeholder {
  color: inherit;
  opacity: 0.7;
}

.bg-cover, .bg-stretched {
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.ph-spinner {
  display: inline-block;
  animation: ph-spinner 1s linear infinite;
  font-size: 24px;
  float: right;
  display: none;
}

.p-inherit {
  padding: inherit !important;
}

.container {
  width: min(100% - 2rem, var(--container));
}

@keyframes ph-spinner {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

input[type="date"],input[type="time"],input[type="datetime-local"],input[type="week"],input[type="month"],input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"],input[type="tel"],input[type="number"],textarea {
  display: inline-block;
  color: #616161;
  padding: 6px 10px;
  font-family: inherit;
  font-weight: inherit;
  font-size: 1em;
  line-height: 1.65;
  max-width: 100%;
  border: 1px solid #000;
  background: transparent;
  border-radius: 3px;
  text-align: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
}

input:focus, textarea:focus, select:focus,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
}

button, input, optgroup, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
button, input, select, textarea {
  font-size: 100%;
  line-height: inherit;
  margin: 0;
  vertical-align: baseline;
}
.theme-button, .color-button, input[type="submit"], button, .button, .added_to_cart {
  display: inline-block;
  background-color: #2c87f0;
  color: #fff;
  padding: .538em 1.077em;
  font-family: inherit;
  font-size: .923em;
  font-weight: 400;
  margin: 0;
  border: 0;
  cursor: pointer;
  line-height: 1.65;
  -webkit-appearance: none;
  -webkit-font-smoothing: inherit;
  text-decoration: none;
  max-width: 100%;
  transition: 0.15s all ease;
  border-radius: 3px;
}
[type="button"]:not(:disabled), [type="reset"]:not(:disabled), [type="submit"]:not(:disabled), button:not(:disabled) {
  cursor: pointer;
}
input[type="submit"], button, #site-navigation .menu-button > a > span.link-inner, .button, .added_to_cart {
  border-radius: 0;
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 10px 40px;
}
.theme-button, input[type="submit"], button, #site-navigation .menu-button > a > span.link-inner, .woocommerce .button {
  font-family: "Roboto Condensed";
  font-weight: 600;
  text-transform: uppercase;
}
body .select2-container .select2-selection--single,
body .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 35px;
}
body .select2-container .select2-selection--single,
body .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 35px;
}
body .select2-container--default .select2-selection--single,
body .select2-container--default .select2-search--dropdown .select2-search__field,
body .select2-dropdown {
  background-color: transparent;
  border-color: #000;
}
.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 1px solid #aaa;
  border-radius: 4px;
}
input[type="checkbox"],
input[type="radio"] {
  margin-right: 5px;
}
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  padding: 0;
  margin: 0 0 20px 0;
  font-size: 1em;
}
thead {
  background: #f7f7f7;
}
td.product-name {
  word-break: break-word;
}

@media (max-width: 980px){
  .nav-list { display: none; }
  .mega { position: static; transform: none; width: 100%; box-shadow: 0 8px 24px rgba(0,0,0,.16); margin-top: .5rem; }
  .mega-grid { grid-template-columns: 1fr 1fr; padding-left: 0; }
}

/* Newsletter */
#newsletter-container form {
  display: flex;
}

#newsletter-container form input[type="email"] {
  background-color: #cccccc;
  color: black;
  padding: 10px;
  margin-right: 20px;
  width: 380px;
  text-align: center;
  outline: none;
  border: none;
}

#newsletter-container form input[type="submit"] {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 10px 40px;
  width: 300px;
}

.home_newsletter-fields input[type="email"] {
  outline: none;
}

.home_newsletter-fields input[type="submit"] {
  border: 1px solid #000;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  padding: 0;
  margin: 0 0 20px 0;
  margin-bottom: 20px;
  font-size: 1em;
}
table th, table td {
  text-align: inherit;
  padding: .769em 1em;
  border: 1px solid #c4c4c4;
}

/* Search modal */
.search-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 2000; }
.search-backdrop[aria-hidden="false"] { display: flex; }
.search-modal { width: min(720px, 92vw); background: #fff; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.35); padding: 1rem; }
.search-row { display: flex; gap: .5rem; }
.search-row input { flex: 1; padding: .85rem 1rem; border: 1px solid #ddd; border-radius: 10px; font-size: 1rem; }
.search-row button { padding: .85rem 1rem; border-radius: 10px; border: 1px solid #cdb6a6; background: #f7f1ec; cursor: pointer; }

/* Hero banner */
.hero { background: transparent; }
.hero .container { padding: 0; }
.hero .hero-grid { height: 360px; display: grid; grid-template-columns: 2fr 1fr; }
.hero .hero-left { background: #e6ddd6; width: 100%; height: 100%; }
.hero .hero-right { display: grid; grid-template-rows: 1fr 1fr; height: 100%; }
.hero .hero-top { background: #d2b49c; }
.hero .hero-bottom { background: #a77b5b; }

.hero .hero-left .text-content,
.hero .hero-right .text-content {
  position: absolute;
}
.hero .hero-left .text-content.lower-left,
.hero .hero-right .text-content.lower-left {
  bottom: 2rem;
  left: 2rem;
}
.hero .hero-left .text-content.upper-right,
.hero .hero-right .text-content.upper-right {
  top: 2rem;
  right: 2rem;
}
.hero .hero-left .text-content p,
.hero .hero-right .text-content p {
  font-size: 30px;
  color: #EADDCB;
  margin-bottom: 0;
  line-height: unset;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 980px){
  .hero .container { padding: 1rem 0; }
  .hero .hero-grid { height: auto; grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero .hero-left { min-height: 180px; }
  .hero .hero-right { grid-template-rows: 180px 180px; }
}

/* Hero banner 2 */
.hero-banner-2 { background: transparent; }
.hero-banner-2 .container {}
.hero-banner-2 .hero-grid { height: 130px; display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-banner-2 .hero-left { background: #6B4C3B; }
.hero-banner-2 .hero-middle { background: #F1E4D1; }
.hero-banner-2 .hero-right { background: #000000; }

.hero-banner-2 h3 {
  color: #FFF;
  font-size: 23px;
  padding: 0;
  margin: 0;
}
.hero-banner-2 h3.font-black {
  color: #000;
}
.hero-banner-2 .banner-2-img {
  max-width: 7rem;
  object-fit: contain;
}
.hero-banner-2 .left-content {
  padding-left: 2rem;
}

@media (max-width: 980px){
  .hero-banner-2 .container { padding: 1rem 0; }
  .hero-banner-2 .hero-grid { height: auto; grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-banner-2 .hero-left, .hero-banner-2 .hero-middle, .hero-banner-2 .hero-right  { min-height: 180px; }
  .hero-banner-2 .hero-right { grid-template-rows: 180px 180px; }
}

/* carousel */
.carousel-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-container .carousel-track .product-item {
  flex: 0 0 20%;
  text-align: center;
  padding: 10px;
  max-width: 300px;
}
.carousel-container .carousel-track .product-item img {
  height: 100%;
  width: auto;
  display: block;
  margin: 0 auto 5px;
}

.carousel-container .carousel-track .product-item .product-item-title {
  font-size: 14px;
  color: #333;
}

.carousel-container .carousel-track .slick-arrow {
  position: absolute;
  top: 35%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 18px;
  user-select: none;
  z-index: 99;
}

.carousel-container .slick-arrow.slick-prev {
  left: 0;
}

.carousel-container .slick-arrow.slick-next {
  right: 0;
}

/* Content image - text */
.section-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: center;
}

.section-container .img-container {
  background: #d2b49c;
  height: 100%;
  display: flex;
  align-content: center;
}

.section-container .img-container img {
  width: 100%;
  height: auto;
}

.section-container .content {
  padding: 0 1rem;
  background: #e6ddd6;
  height: 100%;
}

.section-container .content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-container .content p {
  color: #555;
  line-height: 1.6;
}

/* Alternate layout for second section */
.section-container.reverse {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: center;
  margin-top: 0;
}

.section-container.reverse .section-content {
  order: 1;
}

.section-container .img-container {
  background: #d2b49c;
  height: 100%;
  display: flex;
  align-content: center;
}

.section-container.reverse .img-container img {
  order: 2;
}


/* Footer */
#footer {
  background-image: url(https://bartswijnkoperij.nl/wp-content/uploads/2024/09/footerbg.jpg.jpg);
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
#footer .section_wrapper {
  min-height: 300px;
  position: relative;
  box-sizing: border-box;
}
#footer .section_wrapper .footer-heading-column h3 {
  color:#ffffff;
  font-family:"Roboto Condensed", sans-serif;
  font-weight:700;
  font-size: 24px;
  line-height: 120%;
  margin-bottom: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  #footer .section_wrapper .footer-heading-column h3 {
    font-size:32px;
    line-height:3em;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  #footer .section_wrapper .footer-heading-column h3 {
    font-size: 28px;
  }
}
.footermenu {
  text-align: center;
}

.footermenu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  margin: auto;
}

.footermenu ul li a {
  display: block;
  color: white;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-family: "Roboto Condensed", sans-serif;
  font-size:15px;
}
.footermenu ul li a:hover {
  color:#cccccc;
}

/* Generic Page Template */
.page-header {
  background-position: center center;
  margin-bottom: 40px;
}
.page-header.background-image-page-header {
  min-height: 400px;
}
.page-header .page-header-inner {
  margin: 0 auto;
  padding: 0;
}
.page-header .page-header-inner .page-header-title h1 {
  color: #FFF;
}
.page-header.no-bg .page-header-inner .page-header-title h1 {
  color: #000;
}
.page-header .page-header-inner .page-header-breadcrumbs p#breadcrumbs {
  color: #FFF;
}
.page-header.no-bg .page-header-inner .page-header-breadcrumbs p#breadcrumbs {
  color: #000;
}

.content-wrap h2 {
  font-family: "Roboto Condensed";
  font-size: 28px;
  color: #0a0a0a;
}

/* Account */
#customer_login form.login, #customer_login form.register {
  padding: 15px;
  border: 1px solid #000;
  border-radius: 4px;
}
.woocommerce-page .woocommerce .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  border: 1px solid var(--subbar);
  border-radius: 3px;
}

.woocommerce-page .woocommerce .woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid var(--subbar);
}

.woocommerce-page .woocommerce .woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none;
}

.woocommerce-page .woocommerce .woocommerce-MyAccount-navigation ul li:first-child a {
  border-radius: 3px 3px 0 0;
}

.woocommerce-page .woocommerce .woocommerce-MyAccount-navigation ul li a {
  color: #000;
  display: block;
  padding: .538em .923em;
  transition: 0.15s all ease;
}

.woocommerce-page .woocommerce .woocommerce-MyAccount-navigation ul li.is-active a {
  background: #222220;
  color: #FFF;
}

.woocommerce-page .woocommerce .woocommerce-MyAccount-content {
  position: relative;
  padding: 15px 15px 15px 50px;
  border: 1px solid var(--subbar);
  border-radius: 4px;
  height: fit-content;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.search-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.search-overlay-open {
  overflow: hidden;
}

.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  padding: 20px;
}

.search-overlay form {
  width: 100%;
  border: 1px solid #ffffff;
}

.search-overlay input[type="search"] {
  width: 100%;
  padding: 20px 25px;
  font-size: 32px;
  font-weight: 300;
  background: transparent;
  color: #ffffff;
  outline: none;
  border: none;
}

.search-overlay .ph-magnifying-glass {
  font-size: 40px;
  color: #FFF;
  padding: 0 20px;
}

.search-overlay input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-overlay input[type="submit"],
.search-overlay button[type="submit"] {
  display: none;
}

.search-overlay-close {
  position: absolute;
  top: 35px;
  right: 15px;
  font-size: 42px;
  line-height: 1;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0;

}

.product-search-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.product-search-header h1 {
  font-size: 28px;
  margin-bottom: 40px;
}

.product-search-header span {
  color: #666;
}

.product-search-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.product-search-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 24px;
  border-bottom: 1px solid #d0d0d0;
  transition: box-shadow .25s ease;
}

.product-search-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.product-search-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-title {
  margin: 0;
  font-size: 22px;
}

.product-title a {
  color: #111;
  text-decoration: none;
}

.product-title a:hover {
  text-decoration: underline;
}

.product-description {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.product-description mark {
  background: none;
  font-weight: bold;
}

/* Attributes */
.product-attributes {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}

.product-attr {
  margin-top: 4px;
}

@media (max-width: 768px) {
  .section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section.reverse .section-content,
  .section.reverse img {
    order: unset;
  }
  
  .product-search-item {
    grid-template-columns: 1fr;
  }

  .search-overlay input[type="search"] {
    font-size: 24px;
  }
  #newsletter-container form {
    flex-direction: column;
  }

  #newsletter-container form input[type="email"],
  #newsletter-container form input[type="submit"] {
    width: 100%;
  }
}

/* Form */
.sib_signup_form {
  margin-bottom: 2rem;
}
.sib_signup_form input[type='button'] {
  font-size: 18px;
}