/*
Theme Name: Degis
Theme URI: https://pcman.nl
Author: Pcman
Author URI: https://pcman.nl
Description: Degis eCommerce theme.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.0
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: degis
Tags: one-column
*/


body {
  font-family: Inter, Arial;
  font-size: 14px;
}

:root {
  --transition: 0.2s;
  --transitionLong: 0.5s;
  --borderRadius: 4px;
  --accent: #2ca41b;
  --button-bg: #1c8308;
  --darkFilter: brightness(80%);
  --darkFilter2: brightness(85%);
}

@font-face {
  font-family: 'icomoon';
  src:  url('/wp-content/themes/degis/assets/icomoon-light.ttf')  format('truetype'), /* Safari, Android, iOS */

}

.page-content {
  max-width: 1250px;
  margin: 0 auto;
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial;
  font-weight: 600;
}

h1 {
    font-size: 30px;

}

h2 {
  font-size: 22px;
}

h2 > * {
  font-size: 22px;
  font-family: 'Montserrat', Arial;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
}

/* Product grid item */
.custom-product {
    list-style: none;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    background: #f9f9f9;
    transition: box-shadow 0.2s ease;
}

.custom-product:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Product link */
.custom-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Price */
.custom-product .price {
    display: block;
    margin: 10px 0;
    font-weight: bold;
}

/* Green Add to Cart button */
.custom-product .button {
    background-color: #27ae60;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.custom-product .button:hover {
    background-color: #219150;
}

/** main menu **/

.main-nav {
  background-color: #f5f8f9;
  display: flex;
  justify-content: center;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu > li {
  position: relative;
  margin: 0 15px;

  

}

.menu li {
        display: inline-block;
}

.menu ul {
    list-style: none;
}

.menu > li > a {
  display: inline-block;
  padding: 15px 0;
  text-decoration: none;
  color: #333;
  position: relative;
  transition: var(--transition);
}

.menu > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: green;
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.menu > li > a:hover::after {
  transform: scaleX(1);
}

.menu > li > a:hover {
  color: green;
}


/** my account **/


.woocommerce-form-login__submit {
  background: #2ca41b !important;
  color: white !important;
  font-weight:500 !important;
  font-size: 14px !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
  min-width: 260px !important;
  height: 49px !important;
}


.woocommerce-form-login__submit:before {
    border: 1px solid;
    border-radius: var(--borderRadius);
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition: var(--transition);
    width: 100%;
    z-index: -1;
    background-color: #2ca41b;
    color: var(--accent);
}

/** single-product page **/

.products-grid  {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;

  gap: 8px;
  max-width: 1250px;
  margin: 0 auto;
}


.single_add_to_cart_button.button.alt {
  background-color: #1c8308 !important;
      justify-content: center;
      width: 100%;
      height: 49px;
}

.single_add_to_cart_button.button.alt::before{
    border-radius: 4px;
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition-behavior: normal;
    transition-duration: 0.2s;
    transition-timing-function: ease;
    transition-delay: 0s;
    transition-property: all;
    width: 100%;
    z-index: -1;
    background-color: #1c8308;
    color: var(--accent);
}
.single_add_to_cart_button.button.alt:hover::before {
    color: white;
    filter: brightness(100%);
}

.add-to-cart-wrapper {
  display: flex;
  gap: 20px;
}

.cart-button-wrapper {
  width: 100%
}


.productpage p {
  font-size: 14px;
  line-height: 26.6px;
}


.custom-product img {
  width: 100%;
  height: 100%;
}



/** quantity input field **/

.icon-chevron-down:before {
    content: "\e908";
}
/* Chrome, Safari, Edge, Opera */
.qty input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.qty input[type="number"] {
  -moz-appearance: textfield;
}
.qty input {
  width: 50px;
      height: 40px;
    padding: 0 10px;
        -webkit-appearance: none;
        -moz-appearance: textfield;
}

.qty {
  position: relative;
}
.qty i[data-way="up"] {
    top: 0;
    padding-left: 12px;
    padding-right: 5px;
    transform: rotate(180deg);
}

.qty i[data-way="down"] {
    bottom: 0;
    padding-left: 5px;
    padding-right: 12px;
}
.qty i {
    color: var(--grey);
    cursor: pointer;
    font-size: 7px;
    line-height: 0;
    padding-bottom: 15px;
    position: absolute;
    right: 0;
}

.qty input {
    border: 1px solid #ececec;
    border-radius: 4px;
    font-family: Inter;
    -webkit-appearance: none;
    transition: 0.2s;
    height: 40px;
    padding: 0 10px;
    width: 50px;
    box-sizing: border-box;
}

.qty-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}


.icon-chevron-down {
    font-size: 9px;
}
[class*=" icon-"], [class^=icon-] {
    font-family: icomoon !important;
    speak: never;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/** style all inputs **/

input, textarea {
    background: white;
    border: 1px solid black;
    border-radius: 6px;
    padding: 14px 15px;
    font-size: 1rem;
    width: 100%;
}

.button-transparent {
  transition: var(--transition);
  background-color: transparent;
  border: none;
  border-radius: 4px;
  display: inline-flex;
  filter: none;
  font-weight: 600;
  height: 49px;
  justify-content: center;
  line-height: 49px;
  min-width: fit-content;
  padding: 0 30px;
  position: relative;
  text-align: center;
  z-index: 0;
  color: white;
}

.button-transparent:hover {
        color: var(--accent)

}

.button-transparent::before {
    border: 1px solid;
    border-radius: var(--borderRadius);
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition: var(--transition);
    width: 100%;
    z-index: -1;
    background-color: var(--accent);
    color: var(--accent);
}

.button-transparent:hover::before {
      background-color: transparent;

}


.button {
  background-color: transparent;
  border: none;
  display: inline-flex;
  border-radius: 4px;
  filter: none;
  font-weight: 600;
  height: 49px;
  justify-content: center;
  line-height: 49px;
  min-width: fit-content;
  padding: 0 30px;
  position: relative;
  text-align: center;
  color: white;
  z-index: 0;
}

.button::before {
  color:var(--button-bg);
  background-color: var(--button-bg);
  border: 1px solid;
  border-radius: var(--borderRadius);
  content: '';
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transition: var(--transition);
  width: 100%;
  z-index: -1;
  color: white;
    filter: none;
}

.button:hover::before {
  filter: var(--darkFilter);
  color: white;
}

.error-message-wrapper {
    flex-basis: 100%;
    color: red;

}


.input-error {
  border: 2px solid red !important;
      outline:none;
    border-color:red;
}


.woocommerce-error {
  list-style: none;
  padding: 0px;
}

.woocommerce-error li {
  margin-top: 5px;
}
.woocommerce-error a:link {
  color:black
}

.woocommerce-error a:visited {
  color:black
}
/* span.error-message-wrapper:not(:first-of-type) {
  margin-top: 5px;
} */


.woocommerce-NoticeGroup {
  color: red;
  font-weight: 700
}



/* subcategories woocommerce */


/* .subcategories {
  display: flex
}


.subcategory-inner-wrapper a:link {
  color: black;
  text-decoration: none;
  font-size: 20px;

}

.subcategory-inner-wrapper a:hover {
  color: black;
}

.subcategory-inner-wrapper a:visited {
  color: black;  
}
 */







.product-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 25px;
}

.product-box {
  font-size: 20px;
  position: relative;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.8),
    rgba(245, 245, 245, 0.95)
  );
  box-shadow:
    inset 4px 4px 6px rgba(0, 0, 0, 0.03),
    inset -4px -4px 6px rgba(255, 255, 255, 0.8),
    2px 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(220, 220, 220, 0.7);
  transition: transform 0.2s ease;
  overflow: hidden;
}

/* Simulated gloss/reflection */
.product-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
}

.product-box:hover {
  transform: scale(1.05);


    background: linear-gradient(
    to bottom right,
    rgba(235, 235, 235, 0.8),
    rgba(235, 235, 235, 0.95)
  );
  box-shadow:
    inset 4px 4px 6px rgba(0, 0, 0, 0.03),
    inset -4px -4px 6px rgba(235, 235, 235, 0.8),
    2px 2px 10px rgba(0, 0, 0, 0.05);
}




.product-boxes {
  margin-bottom:20px;
}


.product-link:link {
  font-size: 20px;
  color: black;
  text-decoration: none;
}

.product-link:hover {
  font-size: 20px;
  color: black
}

.product-link:visited {
  font-size: 20px;
  color: black
}


.navigation.pagination {
  text-align: center;
  margin: 20px 0;
}

.navigation .nav-links {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.navigation .page-numbers {
  display: inline-block;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  background-color: white;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  min-width: 32px;
  text-align: center;
}

.navigation .page-numbers:hover {
  background-color: #f0f0f0;
  border-color: #999;
}

.navigation .page-numbers.current {
  background-color: #1c8308;
  color: white;
  font-weight: bold;
  border-color: #333;
}

.navigation .page-numbers.dots {
  border: none;
  background: none;
  color: #999;
  pointer-events: none;
}


.empty-results {
  display: block;
  font-size: 18px;
  font-weight: 700
}


#autocomplete-suggestions {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    width: 100%;
    box-sizing: border-box;
    display: none;
}

.autocomplete-suggestion {
    padding: 8px;
    cursor: pointer;
}

.autocomplete-suggestion:hover {
    background-color: #f0f0f0;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
     background-color: #1c8308;
     color: #ffffff; 
}


.printermodelselection {
  display: flex;
  flex-direction: column;
  max-width: 500px;
}


.printermodelselection div:nth-child(1) {
margin-bottom: 20px;
}

.select2-container-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.clear-select2 {
    position: absolute;
    right: 10px;  /* Adjust based on your layout */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    z-index: 10;  /* Ensures the button is above the Select2 input */
    display: none;  /* Initially hidden */
}

.clear-select2:hover {
    color: #333;
}

/* .select2-container--default .select2-selection--single .select2-selection__clear  {
  margin-left: 10px;
} */
  

.content-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr; /* sidebar and content */
  grid-template-rows: 1fr auto;     /* content and footer */
  grid-template-areas: 
    "sidebar content"
    "footer footer";

}

.content-sidebar{
  grid-area: sidebar;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 20px;
  max-height:calc(100% - 110px)
}

.category-description {
  grid-area: footer;
}


#product-results {
  grid-area: content;
  padding-left: 25px;

}



/** login form **/

.woocommerce-form-login__rememberme {
  width: 25px;

}

.degis-checkbox  {
  margin-top: 10px;
}

    .degis-checkbox input:checked ~ label:before {
      background: var(--accent);
      border: 0px;
      padding: 0;
      margin: 0;
      border: 0;
      outline: 0;
    }
    .degis-checkbox label:before {
    background: white;
    border-radius: 4px;
    border: 1px solid black;
    content: '';
    display: inline-block;
    height: 20px;
    left: 0;
    position: absolute;
    top: 0;
    vertical-align: middle;
    width: 20px;
    }
    .degis-checkbox label {
          position: relative;
    padding-left: 30px !important;
    padding-top: 4px;
    cursor: pointer;


    display: table-cell;
    line-height: 14px;
    padding-bottom: 15px;
    word-break: normal;


    }
    

    .degis-checkbox input {
      -webkit-appearance: none;
      width: auto;
      float: left;
      padding: 0;
      margin: 0;
      border: 0;
      outline: 0;
      margin-right: 10px;
    }
    /* .degis-checkbox {
      margin-top: 4px;
      padding-right: 0;
      overflow: visible;
      width: 88%;
      white-space: normal;
    } */
    .degis-checkbox  input:checked ~ label:after {
      color: white;
      content: '\e907';
      display: block;
      font-family: icomoon !important;
      font-size: 1.4em;
      height: 20px;
      left: 2px;
      position: absolute;
      top: 3px;
      width: 20px;
    }



.password-login[type="text"] {
  padding-left: 2.5rem
}



.woocommerce form .password-input,.woocommerce-page form .password-input{display:flex;justify-content:center;position:relative}.woocommerce form .password-input input[type=password],.woocommerce-page form .password-input input[type=password]{padding-left:2.5rem}.woocommerce form .password-input input::-ms-reveal,.woocommerce-page form .password-input input::-ms-reveal{display:none}.woocommerce form .show-password-input,.woocommerce-page form .show-password-input{background-color:transparent;border-radius:0;border:0;color:var(--wc-form-color-text,#000);cursor:pointer;font-size:inherit;line-height:inherit;margin:0;padding:0;position:absolute;left:.7em;text-decoration:none;top:50%;transform:translateY(-50%);-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-webkit-font-smoothing:inherit}.woocommerce form .show-password-input::before,.woocommerce-page form .show-password-input::before{background-repeat:no-repeat;background-size:cover;background-image:url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.3 3.3C16.9 2.9 16.2 2.9 15.7 3.3L13.3 5.7C12.2437 5.3079 11.1267 5.1048 10 5.1C6.2 5.2 2.8 7.2 1 10.5C1.2 10.9 1.5 11.3 1.8 11.7C2.6 12.8 3.6 13.7 4.7 14.4L3 16.1C2.6 16.5 2.5 17.2 3 17.7C3.4 18.1 4.1 18.2 4.6 17.7L17.3 4.9C17.7 4.4 17.7 3.7 17.3 3.3ZM6.7 12.3L5.4 13.6C4.2 12.9 3.1 11.9 2.3 10.7C3.5 9 5.1 7.8 7 7.2C5.7 8.6 5.6 10.8 6.7 12.3ZM10.1 9C9.6 8.5 9.7 7.7 10.2 7.2C10.7 6.8 11.4 6.8 11.9 7.2L10.1 9ZM18.3 9.5C17.8 8.8 17.2 8.1 16.5 7.6L15.5 8.6C16.3 9.2 17 9.9 17.6 10.8C15.9 13.4 13 15 9.9 15H9.1L8.1 16C8.8 15.9 9.4 16 10 16C13.3 16 16.4 14.4 18.3 11.7C18.6 11.3 18.8 10.9 19.1 10.5C18.8 10.2 18.6 9.8 18.3 9.5ZM14 10L10 14C12.2 14 14 12.2 14 10Z" fill="%23111111"/></svg>');content:"";display:block;height:22px;width:22px}.woocommerce form .show-password-input.display-password::before,.woocommerce-page form .show-password-input.display-password::before{background-image:url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.3 9.49999C15 4.89999 8.50002 3.79999 3.90002 7.19999C2.70002 8.09999 1.70002 9.29999 0.900024 10.6C1.10002 11 1.40002 11.4 1.70002 11.8C5.00002 16.4 11.3 17.4 15.9 14.2C16.8 13.5 17.6 12.8 18.3 11.8C18.6 11.4 18.8 11 19.1 10.6C18.8 10.2 18.6 9.79999 18.3 9.49999ZM10.1 7.19999C10.6 6.69999 11.4 6.69999 11.9 7.19999C12.4 7.69999 12.4 8.49999 11.9 8.99999C11.4 9.49999 10.6 9.49999 10.1 8.99999C9.60003 8.49999 9.60003 7.69999 10.1 7.19999ZM10 14.9C6.90002 14.9 4.00002 13.3 2.30002 10.7C3.50002 8.99999 5.10002 7.79999 7.00002 7.19999C6.30002 7.99999 6.00002 8.89999 6.00002 9.89999C6.00002 12.1 7.70002 14 10 14C12.2 14 14.1 12.3 14.1 9.99999V9.89999C14.1 8.89999 13.7 7.89999 13 7.19999C14.9 7.79999 16.5 8.99999 17.7 10.7C16 13.3 13.1 14.9 10 14.9Z" fill="%23111111"/></svg>')}



/** my account **/


.myaccount-wrapper {
  display: grid;
  gap: 30px;
  grid-template-columns: 260px 1fr; /* sidebar and content */

}


.woocommerce-MyAccount-navigation ul {
  list-style-type: none;
  padding-inline-start: 0px;
}

.woocommerce-MyAccount-navigation ul li {
  margin-bottom: 15px;
  border-bottom: #ccc 1px solid;
  padding-bottom: 15px;
}

.woocommerce-MyAccount-navigation ul li a:link {
  color: black;
  text-decoration: none;
}

.woocommerce-MyAccount-navigation ul li a:visited {
  color: black
}